Commit 5ff4ebf7 authored by david.verdin's avatar david.verdin
Browse files

Change: online help is now internationalized. Use [%helploc%] tags anywhere in...

Change: online help is now internationalized. Use [%helploc%] tags anywhere in the code to create strings that will be located in web_help.po catalogue.


git-svn-id: https://subversion.renater.fr/sympa/trunk@4691 05aa8bb8-cd2b-0410-b1d7-8918dfa770ce
parent dba5aaf5
LINGUAS = af ar br bg cs de en_US el es et eu fi fr hu it ja nb_NO nl oc pl pt pt_BR ro ru sv tr vi zh_CN
LINGUAS = af ar br bg cs de el en_US es et eu fi fr hu it ja nb_NO nl oc pl pt pt_BR ro ru sv tr vi zh_CN
SYMPA_LOCALES = af_ZA ar_SY br_FR bg_BG cs_CZ de_DE el_GR en_US es_ES et_EE eu_ES fi_FI fr_FR hu_HU it_IT ja_JP nb_NO nl_NL oc_FR pl_PL pt_BR pt_PT ro_RO ru_RU sv_SE tr_TR vi_VN zh_CN
MOFILES = $(addsuffix .mo, $(LINGUAS))
MOBASICFILES = $(addsuffix .mo, $(LINGUAS))
MOHELPFILES = $(addprefix web_help_, $(MOBASICFILES))
MOFILES = $(MOBASICFILES) $(MOHELPFILES)
DEPENDON = $(shell cd .. ; ls src/*.p? wwsympa/wwsympa.fcgi wwsympa/*.p? web_tt2/*.tt2 mail_tt2/*.tt2 src/etc/mhonarc-ressources.tt2 src/etc/scenari/*)
......@@ -21,7 +23,7 @@ XGETTEXT = po/xgettext.pl
all: $(MOFILES) checklocales
potfile: sympa.pot
potfile: sympa.pot web_help.pot
checklocales:
@echo "Checking available locales ..."
......@@ -33,7 +35,7 @@ pot:
echo "Updating sympa.pot template file..."
cd .. ;\
$(XGETTEXT) -u -o po/sympa.pot src/*.p? soap/*.p? soap/*.fcgi wwsympa/wwsympa.fcgi wwsympa/*.p? web_tt2/*.tt2 mail_tt2/*.tt2 src/etc/mhonarc-ressources.tt2 src/etc/scenari/* src/etc/global_task_models/* src/etc/list_task_models/* src/etc/create_list_templates/*/*; \
$(XGETTEXT) -u -o po/web_help.pot web_tt2/help*.tt2
$(XGETTEXT) -t helploc -u -o po/web_help.pot web_tt2/help*.tt2;
install: $(MOFILES)
@( \
......@@ -45,6 +47,10 @@ install: $(MOFILES)
cat="$$lang.mo"; \
echo "Installing mo file...$$dest"; \
cp -f $$cat $$dest && chmod 644 $$dest || exit 1; \
dest="$$targetdir/$$lang/LC_MESSAGES/web_help.mo"; \
cat="web_help_$$lang.mo"; \
echo "Installing mo file...$$dest"; \
cp -f $$cat $$dest && chmod 644 $$dest || exit 1; \
done \
)
......@@ -53,7 +59,13 @@ update-po: potfile
for lang in $$languages; do \
echo "Updating $$lang.po"; \
$(MSGMERGE) -o "$$lang.po" "$$lang.po" sympa.pot; \
echo "Updating web_help_$$lang.po"; \
touch "web_help_$$lang.po"; \
$(MSGMERGE) -o "web_help_$$lang.po" "web_help_$$lang.po" web_help.pot; \
done
msgen en_US.po -o en_US.po
msgen web_help_en_US.po -o web_help_en_US.po
## Prepare a tar.gz with a structure adapted to Pootle
## ie made of subdirectories (ll/sympa.po...templates/sympa.pot
......@@ -63,13 +75,19 @@ export:
rm -rf /tmp/sympa-po; \
fi
mkdir /tmp/sympa-po; \
mkdir /tmp/sympa-po/sympa; \
mkdir /tmp/sympa-po/web_help; \
languages='$(LINGUAS)'; \
for lang in $$languages; do \
mkdir /tmp/sympa-po/$$lang; \
cp $$lang.po /tmp/sympa-po/$$lang/sympa.po; \
mkdir /tmp/sympa-po/sympa/$$lang; \
cp $$lang.po /tmp/sympa-po/sympa/$$lang/sympa.po; \
mkdir /tmp/sympa-po/web_help/$$lang; \
cp web_help_$$lang.po /tmp/sympa-po/web_help/$$lang/web_help.po; \
done
mkdir /tmp/sympa-po/templates; \
cp sympa.pot /tmp/sympa-po/templates/sympa.pot; \
mkdir /tmp/sympa-po/sympa/templates; \
mkdir /tmp/sympa-po/web_help/templates; \
cp sympa.pot /tmp/sympa-po/sympa/templates/sympa.pot; \
cp web_help.pot /tmp/sympa-po/web_help/templates/web_help.pot; \
(cd /tmp/sympa-po; tar -zcvf /tmp/sympa-po.tar.gz *)
## Check translations, coming from Rosetta for instance
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment