From e33bb2ac1eed8e368effd36159a73823c368db08 Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Thu, 21 Jun 2018 16:25:30 +0000 Subject: [PATCH] Console: Add Azerbaijani, add translated eepsite help pages 48x48 az.png converted from: https://upload.wikimedia.org/wikipedia/commons/d/dd/Flag_of_Azerbaijan.svg Public domain as specified on: https://en.wikipedia.org/wiki/File:Flag_of_Azerbaijan.svg --- .tx/config | 22 ++++++++++++++---- .../snark/standalone/ConfigUIHelper.java | 1 + .../router/web/helpers/ConfigUIHelper.java | 1 + apps/routerconsole/jsp/console.jsp | 4 +++- apps/routerconsole/jsp/home.jsp | 4 +++- build.xml | 2 +- .../resources/eepsite/docroot/help/index.html | 3 +++ installer/resources/icons/flags48x48/az.png | Bin 0 -> 400 bytes 8 files changed, 30 insertions(+), 7 deletions(-) create mode 100644 installer/resources/icons/flags48x48/az.png diff --git a/.tx/config b/.tx/config index 9ac275ce3b..74301002e1 100644 --- a/.tx/config +++ b/.tx/config @@ -94,6 +94,7 @@ trans.zh_TW = apps/routerconsole/locale/messages_zh_TW.po source_file = apps/routerconsole/locale-news/messages_en.po source_lang = en trans.ar = apps/routerconsole/locale-news/messages_ar.po +trans.az = apps/routerconsole/locale-news/messages_az.po trans.cs = apps/routerconsole/locale-news/messages_cs.po trans.de = apps/routerconsole/locale-news/messages_de.po trans.el = apps/routerconsole/locale-news/messages_el.po @@ -128,6 +129,7 @@ trans.zh_TW = apps/routerconsole/locale-news/messages_zh_TW.po type = PO source_file = apps/routerconsole/locale-countries/messages_en.po source_lang = en +trans.az = apps/routerconsole/locale-countries/messages_az.po trans.ca = apps/routerconsole/locale-countries/messages_ca.po trans.da = apps/routerconsole/locale-countries/messages_da.po trans.de = apps/routerconsole/locale-countries/messages_de.po @@ -225,6 +227,7 @@ trans.zh_TW = apps/susidns/locale/messages_zh_TW.po source_file = apps/desktopgui/locale/messages_en.po source_lang = en trans.ar = apps/desktopgui/locale/messages_ar.po +trans.az = apps/desktopgui/locale/messages_az.po trans.bg = apps/desktopgui/locale/messages_bg.po trans.ca = apps/desktopgui/locale/messages_ca.po trans.cs = apps/desktopgui/locale/messages_cs.po @@ -262,6 +265,7 @@ trans.zh_CN = apps/desktopgui/locale/messages_zh.po source_file = apps/susimail/locale/messages_en.po source_lang = en trans.ar = apps/susimail/locale/messages_ar.po +trans.az = apps/susimail/locale/messages_az.po trans.cs = apps/susimail/locale/messages_cs.po trans.da = apps/susimail/locale/messages_da.po trans.de = apps/susimail/locale/messages_de.po @@ -296,6 +300,7 @@ trans.zh_TW = apps/susimail/locale/messages_zh_TW.po [I2P.debconf] source_file = debian/po/templates.pot source_lang = en +trans.az = debian/po/az.po trans.cs = debian/po/cs.po trans.de = debian/po/de.po trans.el = debian/po/el.po @@ -326,6 +331,7 @@ trans.zh_TW = debian/po/zh_TW.po [I2P.i2prouter-script] source_file = installer/resources/locale/po/messages_en.po source_lang = en +trans.az = installer/resources/locale/po/messages_az.po trans.ca = installer/resources/locale/po/messages_ca.po trans.de = installer/resources/locale/po/messages_de.po trans.es = installer/resources/locale/po/messages_es.po @@ -367,6 +373,7 @@ trans.zh_CN = installer/resources/locale/po/messages_zh.po source_file = core/java/src/gnu/getopt/MessagesBundle.properties source_lang = en type = PROPERTIES +trans.az = core/java/src/gnu/getopt/MessagesBundle_az.properties trans.cs = core/java/src/gnu/getopt/MessagesBundle_cs.properties trans.de = core/java/src/gnu/getopt/MessagesBundle_de.properties trans.es = core/java/src/gnu/getopt/MessagesBundle_es.properties @@ -398,6 +405,7 @@ trans.zh_TW = core/java/src/gnu/getopt/MessagesBundle_zh_TW.properties [I2P.streaming] source_file = apps/ministreaming/locale/messages_en.po source_lang = en +trans.az = apps/ministreaming/locale/messages_az.po trans.ca = apps/ministreaming/locale/messages_ca.po trans.cs = apps/ministreaming/locale/messages_cs.po trans.de = apps/ministreaming/locale/messages_de.po @@ -450,12 +458,18 @@ type = HTML source_file = installer/resources/eepsite/docroot/help/index.html source_lang = en trans.de = installer/resources/eepsite/docroot/help/index_de.html -trans.es = installer/resources/eepsite/docroot/help/index_es.html +;; not yet translated on TX, use old page +;;trans.es = installer/resources/eepsite/docroot/help/index_es.html trans.fr = installer/resources/eepsite/docroot/help/index_fr.html -trans.nl = installer/resources/eepsite/docroot/help/index_nl.html +;; not yet translated on TX, use old page +;;trans.nl = installer/resources/eepsite/docroot/help/index_nl.html +trans.pl = installer/resources/eepsite/docroot/help/index_nl.html +trans.pt = installer/resources/eepsite/docroot/help/index_nl.html trans.ru_RU = installer/resources/eepsite/docroot/help/index_ru.html -trans.sv_SE = installer/resources/eepsite/docroot/help/index_sv.html -trans.zh_CN = installer/resources/eepsite/docroot/help/index_zh.html +;; not yet translated on TX, use old page +;;trans.sv_SE = installer/resources/eepsite/docroot/help/index_sv.html +;; not yet translated on TX, use old page +;;trans.zh_CN = installer/resources/eepsite/docroot/help/index_zh.html [I2P.ztest] ;; diff --git a/apps/i2psnark/java/src/org/klomp/snark/standalone/ConfigUIHelper.java b/apps/i2psnark/java/src/org/klomp/snark/standalone/ConfigUIHelper.java index 0a39362674..fbd7f7e01a 100644 --- a/apps/i2psnark/java/src/org/klomp/snark/standalone/ConfigUIHelper.java +++ b/apps/i2psnark/java/src/org/klomp/snark/standalone/ConfigUIHelper.java @@ -28,6 +28,7 @@ public class ConfigUIHelper { */ private static final String langs[][] = { { "ar", "lang_ar", "Arabic ﻉﺮﺒﻳﺓ", null }, + { "az", "az", "Azerbaijani", null }, { "cs", "cz", "ÄŒeÅ¡tina", null }, { "zh", "cn", "Chinese ä¸æ–‡", null }, //{ "zh_TW", "tw", "Chinese ä¸æ–‡", "Taiwan" }, diff --git a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigUIHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigUIHelper.java index 67c587f36c..29cc1c6b4a 100644 --- a/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigUIHelper.java +++ b/apps/routerconsole/java/src/net/i2p/router/web/helpers/ConfigUIHelper.java @@ -106,6 +106,7 @@ public class ConfigUIHelper extends HelperBase { // { "en", "us", "English", null }, { "ar", "lang_ar", "Arabic ﻉﺮﺒﻳﺓ", null }, + { "az", "az", "Azerbaijani", null }, { "cs", "cz", "ÄŒeÅ¡tina", null }, { "zh", "cn", "Chinese ä¸æ–‡", null }, { "zh_TW", "tw", "Chinese ä¸æ–‡", "Taiwan" }, diff --git a/apps/routerconsole/jsp/console.jsp b/apps/routerconsole/jsp/console.jsp index 271f82b739..c20a825506 100644 --- a/apps/routerconsole/jsp/console.jsp +++ b/apps/routerconsole/jsp/console.jsp @@ -34,6 +34,7 @@ <div class="langbox"> <% /* English, then alphabetical by English name please */ %> <a href="/console?lang=en&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=us" title="English" alt="English"></a> <a href="/console?lang=ar&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=lang_ar" title="Arabic عربية" alt="Arabic عربية"></a> + <a href="/console?lang=az&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=az" title="Azerbaijani" alt="Azerbaijani"></a> <a href="/console?lang=cs&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=cz" title="ÄŒeÅ¡tina" alt="ÄŒeÅ¡tina"></a> <a href="/console?lang=zh&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=cn" title="Chinese ä¸æ–‡" alt="Chinese ä¸æ–‡"></a> <a href="/console?lang=zh_TW&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=tw" title="Chinese ä¸æ–‡ (Taiwan)" alt="Chinese ä¸æ–‡ (Taiwan)"></a> @@ -47,7 +48,8 @@ <a href="/console?lang=in&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=id" title="bahasa Indonesia" alt="bahasa Indonesia"></a> <a href="/console?lang=it&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=it" title="Italiano" alt="Italiano"></a> <a href="/console?lang=ja&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=jp" title="Japanese 日本語" alt="Japanese 日本語"></a> - <a href="/console?lang=ko&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=kr" title="Korean í•œêµì–´" alt="Korean í•œêµì–´"></a><br> +<br> + <a href="/console?lang=ko&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=kr" title="Korean í•œêµì–´" alt="Korean í•œêµì–´"></a> <a href="/console?lang=mg&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=mg" title="Malagasy" alt="Malagasy"></a> <a href="/console?lang=hu&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=hu" title="Magyar" alt="Magyar"></a> <a href="/console?lang=nb&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=no" title="Norsk (bokmÃ¥l)" alt="Norsk (bokmÃ¥l)"></a> diff --git a/apps/routerconsole/jsp/home.jsp b/apps/routerconsole/jsp/home.jsp index 7ecb9f8c5b..2e561a7b21 100644 --- a/apps/routerconsole/jsp/home.jsp +++ b/apps/routerconsole/jsp/home.jsp @@ -61,6 +61,7 @@ <div class="langbox" id="langbox"> <a href="/home?lang=en&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=us" title="English" alt="English"></a> <a href="/home?lang=ar&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=lang_ar" title="Arabic عربية" alt="Arabic عربية"></a> + <a href="/home?lang=az&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=az" title="Azerbaijani" alt="Azerbaijani"></a> <a href="/home?lang=cs&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=cz" title="ÄŒeÅ¡tina" alt="ÄŒeÅ¡tina"></a> <a href="/home?lang=zh&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=cn" title="Chinese ä¸æ–‡" alt="Chinese ä¸æ–‡"></a> <a href="/home?lang=zh_TW&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=tw" title="Chinese ä¸æ–‡ (Taiwan)" alt="Chinese ä¸æ–‡ (Taiwan)"></a> @@ -74,7 +75,8 @@ <a href="/home?lang=in&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=id" title="bahasa Indonesia" alt="bahasa Indonesia"></a> <a href="/home?lang=it&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=it" title="Italiano" alt="Italiano"></a> <a href="/home?lang=ja&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=jp" title="Japanese 日本語" alt="Japanese 日本語"></a> - <a href="/home?lang=ko&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=kr" title="Korean í•œêµì–´" alt="Korean í•œêµì–´"></a><br> +<br> + <a href="/home?lang=ko&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=kr" title="Korean í•œêµì–´" alt="Korean í•œêµì–´"></a> <a href="/home?lang=mg&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=mg" title="Malagasy" alt="Malagasy"></a> <a href="/home?lang=hu&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=hu" title="Magyar" alt="Magyar"></a> <a href="/home?lang=nb&consoleNonce=<%=consoleNonce%>"><img height="11" width="16" style="padding: 0 2px;" src="/flags.jsp?c=no" title="Norsk (bokmÃ¥l)" alt="Norsk (bokmÃ¥l)"></a> diff --git a/build.xml b/build.xml index cc02055cec..9161bbc7e0 100644 --- a/build.xml +++ b/build.xml @@ -1326,7 +1326,7 @@ <fileset dir="installer/resources/eepsite/" excludes="**/.placeholder" /> </copy> <copy todir="pkg-temp/eepsite/docroot/help/lib/" > - <fileset dir="installer/resources/icons/flags/" includes="cn.png de.png es.png fr.png ir.png it.png jp.png nl.png ru.png se.png us.png" /> + <fileset dir="installer/resources/icons/flags/" includes="az.png cn.png de.png es.png fr.png ir.png it.png jp.png nl.png pl.png pt.png ru.png se.png us.png" /> </copy> <copy file="installer/resources/themes/console/images/favicon.ico" tofile="pkg-temp/eepsite/docroot/favicon.ico" /> <copy todir="pkg-temp/docs/icons/flags" > diff --git a/installer/resources/eepsite/docroot/help/index.html b/installer/resources/eepsite/docroot/help/index.html index 35ad6a1ae2..5fdd4bb4b1 100644 --- a/installer/resources/eepsite/docroot/help/index.html +++ b/installer/resources/eepsite/docroot/help/index.html @@ -12,11 +12,14 @@ <div class="langbar"> <a href="index.html"><img src="lib/us.png" title="English" alt="English"></a> + <a href="index_az.html"><img src="lib/az.png" title="Azerbaijani" alt="Azerbaijani"></a> <a href="index_zh.html"><img src="lib/cn.png" title="ä¸æ–‡" alt="ä¸æ–‡"></a> <a href="index_de.html"><img src="lib/de.png" title="Deutsch" alt="Deutsch"></a> <a href="index_es.html"><img src="lib/es.png" title="Español" alt="Español"></a> <a href="index_fr.html"><img src="lib/fr.png" title="Français" alt="Français"></a> <a href="index_nl.html"><img src="lib/nl.png" title="Nederlands" alt="Nederlands"></a> + <a href="index_pl.html"><img src="lib/pl.png" title="Polish" alt="Polish"></a> + <a href="index_pt.html"><img src="lib/pt.png" title="Português" alt="Português"></a> <a href="index_ru.html"><img src="lib/ru.png" title="РуÑÑкий" alt="РуÑÑкий"></a> <a href="index_sv.html"><img src="lib/se.png" title="Svenska" alt="Svenska"></a> </div> diff --git a/installer/resources/icons/flags48x48/az.png b/installer/resources/icons/flags48x48/az.png new file mode 100644 index 0000000000000000000000000000000000000000..0796d4edeffd1fc384e7eab94df898aeda0b561c GIT binary patch literal 400 zcmV;B0dM|^P)<h;3K|Lk000e1NJLTq001xm001xu1^@s6R|5Hm00006VoOIv0RI60 z0RN!9r;`8x010qNS#tmY4c7nw4c7reD4Tcy00A&bL_t(&-tCt?OT$nUhM&ZyEwr}j z?#Ha4IOtG8I;haezatK!;vj<mz`7I{yXj(G)S-@w-}nO*C!s})rKyQS1nHh?Lf>b+ z!{t1@=bpm_A%qY@i2lXk<k^d|fEo1!Bp?9^NZ_CMz}r|p@I5dvI*heYz_c?sSGPE4 zwdf=eFV2&x>;cd!AMo|?gtb@z(+qzCM$X2rR`}d4(<<%%o+p#UW~VXY2|9O=xG%5a zOu(9&z!*%^K0NLgv$Leumr3tzV9n(NO(ReN&vSn&Hva4p$AY}9bA6BZ{y}`H*wsQ_ zy+Lzr8zbSj5Uv|e0k7Vmxw=Jaa|M9*QPrPHljAt2wLlB+?HC;y^2cZ{i*tE{bAHjg uJy0mk=szF<2}nQ!{VO1Z5JCvi&wK-E*;2Xy^1s3W0000<MNUMnLSTZBT(JiL literal 0 HcmV?d00001 -- GitLab