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:
Andy Chiang
2025-10-22 16:49:29 +07:00
committed by Paul Donald
parent 598b7cac5a
commit 0563adb234
8 changed files with 9 additions and 9 deletions
@@ -1,4 +1,4 @@
'use strict';
'require tools.views as views';
return views.LogreadBox("acme", "acme");
return views.LogreadBox("acme", _('ACME Log'));
@@ -1,4 +1,4 @@
'use strict';
'require tools.views as views';
return views.LogreadBox("adblock-", "adblock");
return views.LogreadBox("adblock-", _('Adblock Log'));
@@ -1,4 +1,4 @@
'use strict';
'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';
'require tools.views as views';
return views.LogreadBox("banIP-", "banIP");
return views.LogreadBox("banIP-", _('banIP Log'));
@@ -1,4 +1,4 @@
'use strict';
'require tools.views as views';
return views.LogreadBox("clamav", "clamav");
return views.LogreadBox("clamav", _('ClamAV Log'));
@@ -1,4 +1,4 @@
'use strict';
'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: '',
invertLogTextSearch: false,
logTagFilter: logtag ? logtag : '',
logName: name ? name : _('System'),
logName: name ? name : _('System Log'),
fetchMaxRows: 1000,
facilities: [
@@ -233,7 +233,7 @@ var CBILogreadBox = function(logtag, name) {
filterMaxRows.addEventListener('change', handleLogFilterChange);
return E([], [
E('h2', {}, [ `${this.logName} ${_('Log')}` ]),
E('h2', {}, [ this.logName ]),
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', { 'style': 'margin-bottom:10px' }, [
@@ -1,4 +1,4 @@
'use strict';
'require tools.views as views';
return views.LogreadBox(null, _('System'));
return views.LogreadBox(null, _('System Log'));