Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
intl: add comments extraction for gettext (///)
  • Loading branch information
perexg committed Jun 22, 2015
1 parent 244edbb commit 774ca99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -98,7 +98,7 @@ BUNDLE_FLAGS = ${BUNDLE_FLAGS-yes}
#

MKBUNDLE = $(PYTHON) $(ROOTDIR)/support/mkbundle
XGETTEXT2 ?= $(XGETTEXT) --language=C -k_ -kN_ -s
XGETTEXT2 ?= $(XGETTEXT) --language=C --add-comments=/ -k_ -kN_ -s
MSGMERGE ?= msgmerge

#
Expand Down
2 changes: 1 addition & 1 deletion Makefile.webui
Expand Up @@ -34,7 +34,7 @@ CSS_PY = PYTHONIOENCODING=utf-8 $(PYTHON) support/css.py
RUN_JS = PYTHONIOENCODING=utf-8 $(PYTHON) vendor/rjsmin-1.0.10/rjsmin.py
RUN_CSS = PYTHONIOENCODING=utf-8 $(PYTHON) vendor/rcssmin-1.0.5/rcssmin.py
GZIPCMD += -n
XGETTEXT2 ?= $(XGETTEXT) --language=JavaScript --from-code=utf-8 -k_ -kN_ -s
XGETTEXT2 ?= $(XGETTEXT) --language=JavaScript --from-code=utf-8 --add-comments=/ -k_ -kN_ -s
MSGMERGE ?= msgmerge
POJS_PY = PYTHONIOENCODING=utf-8 $(PYTHON) support/pojs.py

Expand Down
4 changes: 3 additions & 1 deletion src/webui/static/app/tvheadend.js
Expand Up @@ -99,8 +99,10 @@ tvheadend.PagingToolbarConf = function(conf, title, auto, count)
conf.width = 50;
conf.pageSize = 50;
conf.displayInfo = true;
/// {0} start, {1} end, {2} total, {3} title
conf.displayMsg = _('{3} {0} - {1} of {2}').replace('{3}', title);
conf.emptyMsg = String.format(_('No {0} to display'), title.toLowerCase());
/// {0} title (lowercase), {1} title
conf.emptyMsg = String.format(_('No {0} to display'), title.toLowerCase(), title);
conf.items = [];
if (auto || count)
conf.items.push('-');
Expand Down

0 comments on commit 774ca99

Please sign in to comment.