From b85628e16cd83a666bb97e57d35ce439546d394e Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Tue, 14 Jan 2025 03:10:15 +0100 Subject: [PATCH] luci-mod-network: i18n fix Follow-up fix to fb4cf432d2232a0ba2ccd3a8ff81a3679c8d054d Resolves sync errors: standard input:682: warning: Empty msgid. It is reserved by GNU gettext: gettext("") returns the header entry with meta information, not the empty string. standard input:733: warning: Empty msgid. It is reserved by GNU gettext: gettext("") returns the header entry with meta information, not the empty string. standard input:761: warning: Empty msgid. It is reserved by GNU gettext: gettext("") returns the header entry with meta information, not the empty string. standard input:818: warning: Empty msgid. It is reserved by GNU gettext: gettext("") returns the header entry with meta information, not the empty string. Signed-off-by: Paul Donald --- .../htdocs/luci-static/resources/tools/network.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js index 31a2bf029e..477fab26e4 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js @@ -679,7 +679,7 @@ return baseclass.extend({ o = this.replaceOption(s, 'devadvanced', form.ListValue, 'xmit_hash_policy', _('Slave selection hash policy')); o.default = ''; - o.value('', _('')); + o.value('', ''); o.value('layer2', _('Layer 2')); o.value('layer2+3', _('Layer 2+3')); o.value('layer3+4', _('Layer 3+4')); @@ -730,7 +730,7 @@ return baseclass.extend({ o = this.replaceOption(s, 'devadvanced', form.ListValue, 'ad_select', _('802.3ad aggregation logic')); o.default = ''; - o.value('', _('')); + o.value('', ''); o.value('stable', _('Stable')); o.value('bandwidth', _('Bandwidth')); o.value('count', _('Count')); @@ -758,7 +758,7 @@ return baseclass.extend({ o = this.replaceOption(s, 'devadvanced', form.ListValue, 'lacp_rate', _('802.3ad LACPDU packet rate')); o.default = ''; - o.value('', _('')); + o.value('', ''); o.value('slow', _('Slow (every 30 seconds)')); o.value('fast', _('Fast (every second)')); o.cfgvalue = function(/* ... */) { @@ -815,7 +815,7 @@ return baseclass.extend({ o = this.replaceOption(s, 'devadvanced', form.ListValue, 'primary_reselect', _('Primary port reselection policy')); o.default = ''; - o.value('', _('')); + o.value('', ''); o.value('always', _('Always')); o.value('better', _('Better')); o.value('failure', _('Failure')); -- 2.30.2