diff options
author | Anton Kikin <a.kikin@tano-systems.com> | 2021-07-02 04:37:38 +0300 |
---|---|---|
committer | Anton Kikin <a.kikin@tano-systems.com> | 2021-07-02 04:45:23 +0300 |
commit | fb52e86b54f25e8fb2f46c857af20dd3b4ddb022 (patch) | |
tree | d9a710c552099af968cb6e8b301ab522f0aa4487 /applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw | |
parent | 48a78f01a84795263187cfbc71cf573c8c4596ee (diff) |
luci-app-nlbwmon: Add translation context for Download/Upload terms
Added a translation context for the terms 'Download' and 'Upload'
used in this application. The reason is that these terms are
translated differently in Russian depending on the context.
If the terms are used in the sense of an action (download file
or upload file) then the translations should be as follows:
- Download = скачать
- Upload = загрузить
But if they are used in the context of a traffic counter (like
in this application) the correct translations are:
- Download = скачано
- Upload = загружено
A translation context has been added to all affected PO files
to avoid breaking existing translations. The Russian translation
in PO file is fixed to comply with the used context.
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
Diffstat (limited to 'applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw')
-rw-r--r-- | applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js index a13c86b29b..4e2e759db6 100644 --- a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js +++ b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js @@ -583,11 +583,11 @@ return view.extend({ dom.content(tooltip, [ E('div', { 'class': 'head' }, [ E('div', { 'class': 'pie' }, [ - E('label', _('Download')), + E('label', _('Download', 'Traffic counter')), E('canvas', { 'id': 'bubble-pie1', 'width': 100, 'height': 100 }) ]), E('div', { 'class': 'pie' }, [ - E('label', _('Upload')), + E('label', _('Upload', 'Traffic counter')), E('canvas', { 'id': 'bubble-pie2', 'width': 100, 'height': 100 }) ]), E('div', { 'class': 'kpi' }, [ |