mirror of
https://git.openwrt.org/project/luci.git
synced 2025-11-02 04:22:43 +08:00
luci-app: fix translation strings
The current handling method introduces extraneous spaces into the translations. For instance, 'System Log', which is correctly translated to Japanese as 'システムログ' (without extra spaces), is being displayed as 'システム ログ' under the current approach. Other CJK/Southeast Asian languages are experiencing similar issues, including Chinese, Thai, and Lao. Therefore, these elements should be translated together as a single unit, rather than separately. Signed-off-by: Andy Chiang <AndyChiang_git@outlook.com>
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
'require tools.views as views';
|
'require tools.views as views';
|
||||||
|
|
||||||
return views.LogreadBox("acme", "acme");
|
return views.LogreadBox("acme", _('ACME Log'));
|
||||||
@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
'require tools.views as views';
|
'require tools.views as views';
|
||||||
|
|
||||||
return views.LogreadBox("adblock-", "adblock");
|
return views.LogreadBox("adblock-", _('Adblock Log'));
|
||||||
@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
'require tools.views as views';
|
'require tools.views as views';
|
||||||
|
|
||||||
return views.LogreadBox(" banIP/", "banIP firewall logs");
|
return views.LogreadBox(" banIP/", _('banIP firewall Log'));
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
'require tools.views as views';
|
'require tools.views as views';
|
||||||
|
|
||||||
return views.LogreadBox("banIP-", "banIP");
|
return views.LogreadBox("banIP-", _('banIP Log'));
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
'require tools.views as views';
|
'require tools.views as views';
|
||||||
|
|
||||||
return views.LogreadBox("clamav", "clamav");
|
return views.LogreadBox("clamav", _('ClamAV Log'));
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
'require tools.views as views';
|
'require tools.views as views';
|
||||||
|
|
||||||
return views.LogreadBox("nextdns", "nextdns");
|
return views.LogreadBox("nextdns", _('NextDNS Log'));
|
||||||
|
|||||||
@ -25,7 +25,7 @@ var CBILogreadBox = function(logtag, name) {
|
|||||||
logTextFilter: '',
|
logTextFilter: '',
|
||||||
invertLogTextSearch: false,
|
invertLogTextSearch: false,
|
||||||
logTagFilter: logtag ? logtag : '',
|
logTagFilter: logtag ? logtag : '',
|
||||||
logName: name ? name : _('System'),
|
logName: name ? name : _('System Log'),
|
||||||
fetchMaxRows: 1000,
|
fetchMaxRows: 1000,
|
||||||
|
|
||||||
facilities: [
|
facilities: [
|
||||||
@ -233,7 +233,7 @@ var CBILogreadBox = function(logtag, name) {
|
|||||||
filterMaxRows.addEventListener('change', handleLogFilterChange);
|
filterMaxRows.addEventListener('change', handleLogFilterChange);
|
||||||
|
|
||||||
return E([], [
|
return E([], [
|
||||||
E('h2', {}, [ `${this.logName} ${_('Log')}` ]),
|
E('h2', {}, [ this.logName ]),
|
||||||
E('div', { 'id': 'content_syslog' }, [
|
E('div', { 'id': 'content_syslog' }, [
|
||||||
E('div', { class: 'cbi-section-descr' }, this.logTagFilter ? _('The syslog output, pre-filtered for messages related to: ' + this.logTagFilter) : '') ,
|
E('div', { class: 'cbi-section-descr' }, this.logTagFilter ? _('The syslog output, pre-filtered for messages related to: ' + this.logTagFilter) : '') ,
|
||||||
E('div', { 'style': 'margin-bottom:10px' }, [
|
E('div', { 'style': 'margin-bottom:10px' }, [
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
'require tools.views as views';
|
'require tools.views as views';
|
||||||
|
|
||||||
return views.LogreadBox(null, _('System'));
|
return views.LogreadBox(null, _('System Log'));
|
||||||
Reference in New Issue
Block a user