aboutsummaryrefslogtreecommitdiff
path: root/po/module.mk
diff options
context:
space:
mode:
authorThierry Crozat2010-08-23 19:45:14 +0000
committerThierry Crozat2010-08-23 19:45:14 +0000
commitbc821136fdf2c82c1877c8ae0e607bcbe784dab1 (patch)
tree848141a4994e5bd13e8a7a9a304777e251927468 /po/module.mk
parent45a87ffe3fb76ae4e75d97271c0567809bd088d0 (diff)
downloadscummvm-rg350-bc821136fdf2c82c1877c8ae0e607bcbe784dab1.tar.gz
scummvm-rg350-bc821136fdf2c82c1877c8ae0e607bcbe784dab1.tar.bz2
scummvm-rg350-bc821136fdf2c82c1877c8ae0e607bcbe784dab1.zip
i18n: Add support for context in translations.
This change means there can now be different translations for the same english string depending on the context. It is based on gettext msgctxt feature. There is a new macro _c(msg, ctxt) that should be used instead of _(msg) in the source code when we want to add a context to the message. For the moment I have added contexts to only one message ("None") so that I could test the changes. Context could be added also to get shorter translations when GUI is in 1x mode. I have also added back the fuzzy option to msmerge since it is useful when adding contexts to populate the translations for the new contexts. svn-id: r52308
Diffstat (limited to 'po/module.mk')
-rw-r--r--po/module.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/po/module.mk b/po/module.mk
index 3690052d54..ad7e5fd47b 100644
--- a/po/module.mk
+++ b/po/module.mk
@@ -2,7 +2,7 @@ POTFILE := $(srcdir)/po/scummvm.pot
POFILES := $(wildcard $(srcdir)/po/*.po)
updatepot:
- xgettext -f $(srcdir)/po/POTFILES -D $(srcdir) -d scummvm --c++ -k_ -k_s -o $(POTFILE) \
+ xgettext -f $(srcdir)/po/POTFILES -D $(srcdir) -d scummvm --c++ -k_ -k_s -k_c:1,2c -o $(POTFILE) \
"--copyright-holder=ScummVM Team" --package-name=ScummVM \
--package-version=$(VERSION) --msgid-bugs-address=scummvm-devel@lists.sf.net -o $(POTFILE)_
@@ -25,7 +25,7 @@ updatepot:
fi;
%.po: $(POTFILE)
- msgmerge -N $@ $(POTFILE) -o $@.new
+ msgmerge $@ $(POTFILE) -o $@.new
if cmp $@ $@.new >/dev/null 2>&1; then \
rm -f $@.new; \
else \