Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
intl: transifex update, create docs resource
  • Loading branch information
perexg committed Apr 13, 2016
1 parent 1cc14cd commit d366ce1
Show file tree
Hide file tree
Showing 53 changed files with 30,193 additions and 23,464 deletions.
6 changes: 6 additions & 0 deletions .tx/config
Expand Up @@ -7,6 +7,12 @@ source_file = intl/tvheadend.pot
source_lang = en
type = PO

[tvheadend.docs]
file_filter = intl/docs/tvheadend.doc.<lang>.po
source_file = intl/docs/tvheadend.doc.pot
source_lang = en
type = PO

[tvheadend.js]
file_filter = intl/js/tvheadend.js.<lang>.po
source_file = intl/js/tvheadend.js.pot
Expand Down
29 changes: 15 additions & 14 deletions Makefile
Expand Up @@ -160,7 +160,7 @@ BUNDLE_FLAGS = ${BUNDLE_FLAGS-yes}
#

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

#
Expand Down Expand Up @@ -541,21 +541,22 @@ ALL-$(CONFIG_DVBSCAN) += check_dvb_scan

MD-TO-C = PYTHONIOENCODING=utf-8 $(PYTHON) support/doc/md_to_c.py

SRCS-yes += src/docs.c
I18N-C += src/docs_inc.c
I18N-DOCS = $(wildcard docs/markdown/*.md)
I18N-DOCS += $(wildcard docs/class/*.md)
I18N-DOCS += $(wildcard docs/property/*.md)
I18N-DOCS += $(wildcard docs/wizard/*.md)
MD-ROOT = $(patsubst docs/markdown/%.md,%,$(wildcard docs/markdown/*.md))
MD-CLASS = $(patsubst docs/class/%.md,%,$(wildcard docs/class/*.md))
MD-PROP = $(patsubst docs/property/%.md,%,$(wildcard docs/property/*.md))
MD-WIZARD = $(patsubst docs/wizard/%.md,%,$(wildcard docs/wizard/*.md))
SRCS-yes += src/docs.c
I18N-C-DOCS = src/docs_inc.c
I18N-DOCS = $(wildcard docs/markdown/*.md)
I18N-DOCS += $(wildcard docs/class/*.md)
I18N-DOCS += $(wildcard docs/property/*.md)
I18N-DOCS += $(wildcard docs/wizard/*.md)
MD-ROOT = $(patsubst docs/markdown/%.md,%,$(wildcard docs/markdown/*.md))
MD-CLASS = $(patsubst docs/class/%.md,%,$(wildcard docs/class/*.md))
MD-PROP = $(patsubst docs/property/%.md,%,$(wildcard docs/property/*.md))
MD-WIZARD = $(patsubst docs/wizard/%.md,%,$(wildcard docs/wizard/*.md))

#
# Internationalization
#
PO-FILES = $(foreach f,$(LANGUAGES),intl/tvheadend.$(f).po)
PO-FILES += $(foreach f,$(LANGUAGES),intl/docs/tvheadend.doc.$(f).po)
SRCS += src/tvh_locale.c

POC_PY=PYTHONIOENCODING=utf-8 $(PYTHON) support/poc.py
Expand Down Expand Up @@ -714,9 +715,9 @@ intl:
@$(XGETTEXT2) -o intl/tvheadend.pot.new $(I18N-C)
@sed -e 's/^"Language: /"Language: en/' < intl/tvheadend.pot.new > intl/tvheadend.pot
$(MAKE) -f Makefile.webui LANGUAGES="$(LANGUAGES)" WEBUI=std intl
@printf "Building docs/tvheadend.pot\n"
@$(XGETTEXT2) -o intl/docs/tvheadend.pot.new $(I18N-DOCS)
@sed -e 's/^"Language: /"Language: en/' < intl/docs/tvheadend.pot.new > intl/docs/tvheadend.pot
@printf "Building docs/tvheadend.doc.pot\n"
@$(XGETTEXT2) -o intl/docs/tvheadend.doc.pot.new $(I18N-C-DOCS)
@sed -e 's/^"Language: /"Language: en/' < intl/docs/tvheadend.doc.pot.new > intl/docs/tvheadend.doc.pot
$(MAKE)


Expand Down
6 changes: 4 additions & 2 deletions Makefile.webui
Expand Up @@ -81,9 +81,11 @@ CSS_ACCESS += $(EXTJSPATH)/resources/css/xtheme-access.css
# extjs extensions
#

MARKED = $(ROOTPATH)/app/marked.js

JAVASCRIPT += $(ROOTPATH)/app/i18n.js
JAVASCRIPT += $(ROOTPATH)/app/extensions.js
JAVASCRIPT += $(ROOTPATH)/app/marked.js
JAVASCRIPT += $(MARKED)
JAVASCRIPT += $(ROOTPATH)/livegrid/livegrid-all.js
JAVASCRIPT += $(ROOTPATH)/lovcombo/lovcombo-all.js
JAVASCRIPT += $(ROOTPATH)/multiselect/multiselect.js
Expand Down Expand Up @@ -277,7 +279,7 @@ compile-debug: $(WEBDIR)/extjs-debug.c $(WEBDIR)/extjs-tv-debug.c
.PHONY: intl
intl:
@printf "Building intl/js/tvheadend.js.pot\n"
@$(XGETTEXT2) -o intl/js/tvheadend.js.pot.new $(JAVASCRIPT_SRC)
@$(XGETTEXT2) -o intl/js/tvheadend.js.pot.new $(filter-out $(WEBDIR)/$(MARKED),$(JAVASCRIPT_SRC))
@sed -e 's/^"Language: /"Language: en/' < intl/js/tvheadend.js.pot.new > intl/js/tvheadend.js.pot

intl/js/tvheadend.js.pot:
Expand Down

1 comment on commit d366ce1

@Trujulu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update transifex translations another time? Thanks.

Please sign in to comment.