Skip to content

Commit

Permalink
luci-mod-network: Rework address helptext for DHCP
Browse files Browse the repository at this point in the history
Ease translators lives.

This introduces the function customi18n for positional string variables.

Word and grammatical ordering of some languages breaks guarantees for
positional string arguments.

Signed-off-by: Paul Donald <newtwen@gmail.com>
  • Loading branch information
systemcrash committed Dec 7, 2023
1 parent 175a943 commit e05ee93
Show file tree
Hide file tree
Showing 37 changed files with 198 additions and 166 deletions.
6 changes: 3 additions & 3 deletions modules/luci-base/po/ar/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
Expand Down Expand Up @@ -8997,7 +8997,7 @@ msgid "Sync with browser"
msgstr "تزامن مع المتصفح"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
6 changes: 3 additions & 3 deletions modules/luci-base/po/bg/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
Expand Down Expand Up @@ -8856,7 +8856,7 @@ msgid "Sync with browser"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
6 changes: 3 additions & 3 deletions modules/luci-base/po/bn_BD/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
Expand Down Expand Up @@ -8791,7 +8791,7 @@ msgid "Sync with browser"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
6 changes: 3 additions & 3 deletions modules/luci-base/po/ca/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
Expand Down Expand Up @@ -8921,7 +8921,7 @@ msgid "Sync with browser"
msgstr "Sincronitza amb el navegador"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
10 changes: 5 additions & 5 deletions modules/luci-base/po/cs/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,11 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""
"<code>/example.com/#</code> vrací NULL adresu (<code>0.0.0.0</code> a "
"<code>::</code>) pro example.com a její subdomény."
"{example_null} vrací {null_addr} adresu ({null_ipv4} a "
"{null_ipv6}) pro {example_com} a její subdomény."

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
msgctxt "nft relational \">\" operator expression"
Expand Down Expand Up @@ -9028,7 +9028,7 @@ msgid "Sync with browser"
msgstr "Synchronizovat s prohlížečem"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
12 changes: 6 additions & 6 deletions modules/luci-base/po/da/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -330,11 +330,11 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""
"<code>/example.com/#</code> returnerer NULL-adresser (<code>0.0.0.0</code> "
"og <code>::</code>) for example.com og dets underdomæner."
"%s returnerer %s-adresser (%s "
"og %s) for %s og dets underdomæner."

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
msgctxt "nft relational \">\" operator expression"
Expand Down Expand Up @@ -9282,8 +9282,8 @@ msgid "Sync with browser"
msgstr "Synkroniser med browser"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgstr "Syntaks: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr "Syntaks: {code_syntax}."

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
msgid "Syntax: <code>_service._proto.example.com.</code>"
Expand Down
12 changes: 6 additions & 6 deletions modules/luci-base/po/de/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,11 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""
"<code>/example.com/#</code> liefert NULL Adressen (<code>0.0.0.0</code> und "
"<code>::</code>) für example.com und seine Subdomains."
"{example_null} liefert {null_addr} Adressen ({null_ipv4} und "
"{null_ipv6}) für {example_com} und seine Subdomains."

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
msgctxt "nft relational \">\" operator expression"
Expand Down Expand Up @@ -9365,8 +9365,8 @@ msgid "Sync with browser"
msgstr "Mit Browser synchronisieren"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgstr "Syntax: <code>/fqdn[/fqdn…]/[IP-adr]</code>."
msgid "Syntax: {code_syntax}."
msgstr "Syntax: {code_syntax}."

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
msgid "Syntax: <code>_service._proto.example.com.</code>"
Expand Down
6 changes: 3 additions & 3 deletions modules/luci-base/po/el/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
Expand Down Expand Up @@ -8906,7 +8906,7 @@ msgid "Sync with browser"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
6 changes: 3 additions & 3 deletions modules/luci-base/po/en/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,8 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
Expand Down Expand Up @@ -8795,7 +8795,7 @@ msgid "Sync with browser"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
12 changes: 6 additions & 6 deletions modules/luci-base/po/es/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -337,11 +337,11 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""
"<code>/example.com/#</code> devuelve direcciones NULL (<code>0.0.0.0</code> "
"y <code>::</code>) para example.com y sus subdominios."
"{example_null} devuelve direcciones {null_addr} ({null_ipv4} "
"y {null_ipv6}) para {example_com} y sus subdominios."

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
msgctxt "nft relational \">\" operator expression"
Expand Down Expand Up @@ -9452,8 +9452,8 @@ msgid "Sync with browser"
msgstr "Sincronizar con el navegador"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgstr "Sintaxis: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr "Sintaxis: {code_syntax}."

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
#, fuzzy
Expand Down
6 changes: 3 additions & 3 deletions modules/luci-base/po/fi/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
Expand Down Expand Up @@ -9047,7 +9047,7 @@ msgid "Sync with browser"
msgstr "Synkronoi selaimen kanssa"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
12 changes: 6 additions & 6 deletions modules/luci-base/po/fr/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""
"<code>/example.com/#</code> renvoie des adresses NULL (<code>0.0.0.0</code> "
"et <code> : :</code>) pour example.com et ses sous-domaines."
"{example_null} renvoie des adresses {null_addr} ({null_ipv4} "
"et {null_ipv6}) pour {example_com} et ses sous-domaines."

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
msgctxt "nft relational \">\" operator expression"
Expand Down Expand Up @@ -9346,8 +9346,8 @@ msgid "Sync with browser"
msgstr "Synchroniser avec le navigateur"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgstr "Syntaxe : <code>/fqdn[/fqdn...]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr "Syntaxe : {code_syntax}."

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
msgid "Syntax: <code>_service._proto.example.com.</code>"
Expand Down
6 changes: 3 additions & 3 deletions modules/luci-base/po/he/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -322,8 +322,8 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
Expand Down Expand Up @@ -8817,7 +8817,7 @@ msgid "Sync with browser"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
6 changes: 3 additions & 3 deletions modules/luci-base/po/hi/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,8 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
Expand Down Expand Up @@ -8789,7 +8789,7 @@ msgid "Sync with browser"
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
6 changes: 3 additions & 3 deletions modules/luci-base/po/hu/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,8 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
Expand Down Expand Up @@ -9030,7 +9030,7 @@ msgid "Sync with browser"
msgstr "Szinkronizálás a böngészővel"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
Expand Down
12 changes: 6 additions & 6 deletions modules/luci-base/po/it/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ msgstr ""

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""
"<code>/example.com/#</code> restituisce indirizzi NULL (<code>0.0.0.0</code> "
"e <code>::</code>) per example.com e i suoi sottodomini."
"{example_null} restituisce indirizzi {null_addr} ({null_ipv4} "
"e {null_ipv6}) per {example_com} e i suoi sottodomini."

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
msgctxt "nft relational \">\" operator expression"
Expand Down Expand Up @@ -9342,8 +9342,8 @@ msgid "Sync with browser"
msgstr "Sincronizza con il browser"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgstr "Sintassi: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr "Sintassi: {code_syntax}."

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
msgid "Syntax: <code>_service._proto.example.com.</code>"
Expand Down
14 changes: 8 additions & 6 deletions modules/luci-base/po/ja/base.po
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,14 @@ msgstr ""
"example.com/</code> は NXDOMAIN を返します。"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:316
msgctxt "hint: <code>/example.com/#</code> returns NULL addresses "
"(<code>0.0.0.0</code>, <code>::</code>) for example.com and its subdomains."
msgid ""
"<code>/example.com/#</code> returns NULL addresses (<code>0.0.0.0</code> and "
"<code>::</code>) for example.com and its subdomains."
"{example_null} returns {null_addr} addresses ({null_ipv4},"
"{null_ipv6}) for {example_com} and its subdomains."
msgstr ""
"<code>/example.com/#</code>example.com とそのサブドメインに対して NULL ア"
"ドレス (<code>0.0.0.0</code> 及び <code>::</code>) を返します。"
"{example_null}{example_com} とそのサブドメインに対して {null_addr} ア"
"ドレス ({null_ipv4} 及び {null_ipv6}) を返します。"

#: modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js:87
msgctxt "nft relational \">\" operator expression"
Expand Down Expand Up @@ -9086,8 +9088,8 @@ msgid "Sync with browser"
msgstr "ブラウザと同期"

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:314
msgid "Syntax: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgstr "文法: <code>/fqdn[/fqdn…]/[ipaddr]</code>."
msgid "Syntax: {code_syntax}."
msgstr "文法: {code_syntax}."

#: modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js:667
msgid "Syntax: <code>_service._proto.example.com.</code>"
Expand Down
Loading

0 comments on commit e05ee93

Please sign in to comment.