# Short KISS instructions: # # - To add new languages: Add *.po target to LOCALES Make variable below # - Update and merge .po-files: make update-po # - Only update the template .pot-file only: make update-pot # - Run update-potfiles.sh when any new sourcefiles with translatable strings # have been introduced, and then continue with 'make update-po' or # 'make update-pot' respectively. # LOCALES = ar.po \ be.po \ bg.po \ ca.po \ cmn.po \ cs.po \ da.po \ de.po \ el.po \ en_GB.po \ es_AR.po \ es_MX.po \ es.po \ et.po \ eu.po \ fa_IR.po \ fi.po \ fr.po \ gl.po \ hu.po \ id_ID.po \ it.po \ ja.po \ ko.po \ ky.po \ lt.po \ lv.po \ ml_IN.po \ ms.po \ nl.po \ pl.po \ pt_BR.po \ pt_PT.po \ ro.po \ ru.po \ si.po \ sk.po \ sr.po \ sr_RS.po \ sv.po \ ta.po \ tr.po \ uk.po \ zh_CN.po \ zh_TW.po include ../extra.mk include ../buildsys.mk POTTEMPLATE=$(PACKAGE_NAME).pot update-pot: @echo Updating $(POTTEMPLATE) ... xgettext --default-domain=$(PACKAGE_NAME) --language=C \ --keyword=_ --keyword=N_ --from-code="utf-8" \ --msgid-bugs-address="https://redmine.audacious-media-player.org/" \ --directory=.. --files-from=POTFILES.in -o $(POTTEMPLATE) update-po: update-pot @echo Updating .po -files ... @for lang in $(LOCALES); do echo -n "$$lang : "; msgmerge --update "$$lang" $(POTTEMPLATE); done