From: Manuel Nickschas Date: Tue, 1 Jan 2008 20:54:39 +0000 (+0000) Subject: Make Quassel locale-aware. If a translation exists for the system locale, X-Git-Tag: 0.1.0~11 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=148657dc7b24f5071c24feebb173ffa56ef6b749;ds=sidebyside Make Quassel locale-aware. If a translation exists for the system locale, Quassel will now automagically load and use it. Updated the README too. --- diff --git a/i18n/README.Translations b/i18n/README.Translations index 4076cbdf..e4d36dcd 100644 --- a/i18n/README.Translations +++ b/i18n/README.Translations @@ -1,5 +1,3 @@ -NOTE: Translations are not yet used in Quassel, but will be soon! - In order to create or update a translatable file, run the following command in the directory i18n/: @@ -13,7 +11,15 @@ system locale. Examples for valid file names: quassel_de.ts quassel_en_US.ts -You can open these files with the Qt Linguist and add/edit translated strings. +You can open these XML files with the Qt Linguist and add/edit translated strings. The *.ts files can and should be kept in sync with the source code by running lupdate regularly (existing translations won't be removed). + +Qt itself does not use the *.ts files, but a compact binary format (*.qm). In order +to create these files from new or updated *.ts files, run + +lrelease *.ts + +In addition, new languages need to be added to i18n/i18n.qrc, since we are using Qt's +resource system for loading the translations. diff --git a/i18n/quassel_de.qm b/i18n/quassel_de.qm index 648b42c7..dbfafb6a 100644 Binary files a/i18n/quassel_de.qm and b/i18n/quassel_de.qm differ