From: Tomáš Chvátal Date: Wed, 28 Oct 2009 16:27:07 +0000 (+0100) Subject: Rename i18n -> po, use LINGUAS env variable X-Git-Tag: 0.6-beta1~198 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=2573fe44 Rename i18n -> po, use LINGUAS env variable Update translation generating code from -DLINGUAS="something" to use env variable. EXAMPLE: export LINGUAS="cs de fr" cmake .. This will build only czech german and frech translations. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index a983dc42..0a811c36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,6 @@ endif(STATIC OR WIN32) option(EMBED_DATA "Embed all data files in the binary (rather than installing them separately)" ${EMBED_DEFAULT}) set(QT "" CACHE STRING "Path to a Qt installation to use instead of the system Qt (e.g. for static builds)") -set(LINGUAS "" CACHE STRING "Comma-separated list of locales specifying languages that should be compiled") # Some settings imply others if(STATIC) @@ -323,5 +322,5 @@ set(CLIENT_DEPS ) add_subdirectory(data) add_subdirectory(icons) add_subdirectory(pics) -add_subdirectory(i18n) +add_subdirectory(po) add_subdirectory(src) diff --git a/i18n/CMakeLists.txt b/po/CMakeLists.txt similarity index 94% rename from i18n/CMakeLists.txt rename to po/CMakeLists.txt index f3d3ac2c..d0efe9b2 100644 --- a/i18n/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -6,6 +6,9 @@ if(QT_LCONVERT_EXECUTABLE) generate_qm(QM quassel) set(qm_files ${QM}) + # get environment variable for translations + set(LINGUAS "$ENV{LINGUAS}") + string(REGEX REPLACE "[ \t]+" \; output "${LINGUAS}") # Find more languages file(GLOB avail_pofiles quassel_*.po qt_*.po) foreach(PO_FILE ${avail_pofiles}) diff --git a/i18n/README.Translations b/po/README.Translations similarity index 100% rename from i18n/README.Translations rename to po/README.Translations diff --git a/i18n/quassel.po b/po/quassel.po similarity index 100% rename from i18n/quassel.po rename to po/quassel.po diff --git a/i18n/quassel_cs.po b/po/quassel_cs.po similarity index 100% rename from i18n/quassel_cs.po rename to po/quassel_cs.po diff --git a/i18n/quassel_da.po b/po/quassel_da.po similarity index 100% rename from i18n/quassel_da.po rename to po/quassel_da.po diff --git a/i18n/quassel_de.po b/po/quassel_de.po similarity index 100% rename from i18n/quassel_de.po rename to po/quassel_de.po diff --git a/i18n/quassel_fi.po b/po/quassel_fi.po similarity index 100% rename from i18n/quassel_fi.po rename to po/quassel_fi.po diff --git a/i18n/quassel_fr.po b/po/quassel_fr.po similarity index 100% rename from i18n/quassel_fr.po rename to po/quassel_fr.po diff --git a/i18n/quassel_hu.po b/po/quassel_hu.po similarity index 100% rename from i18n/quassel_hu.po rename to po/quassel_hu.po diff --git a/i18n/quassel_it.po b/po/quassel_it.po similarity index 100% rename from i18n/quassel_it.po rename to po/quassel_it.po diff --git a/i18n/quassel_nb_NO.po b/po/quassel_nb_NO.po similarity index 100% rename from i18n/quassel_nb_NO.po rename to po/quassel_nb_NO.po diff --git a/i18n/quassel_ru.po b/po/quassel_ru.po similarity index 100% rename from i18n/quassel_ru.po rename to po/quassel_ru.po diff --git a/i18n/quassel_sl.po b/po/quassel_sl.po similarity index 100% rename from i18n/quassel_sl.po rename to po/quassel_sl.po diff --git a/i18n/quassel_tr_TR.po b/po/quassel_tr_TR.po similarity index 100% rename from i18n/quassel_tr_TR.po rename to po/quassel_tr_TR.po diff --git a/i18n/update.sh b/po/update.sh similarity index 100% rename from i18n/update.sh rename to po/update.sh