diff --git a/documentation/i18n.md b/documentation/i18n.md new file mode 100644 index 00000000..457803fa --- /dev/null +++ b/documentation/i18n.md @@ -0,0 +1,30 @@ +# I18N-System +The TeaSpeak web and native client are supporting a farly rich amount of different languages. +This is possible due to the integrated translation system. +The goal of this paper is to give a brief overview of the functionality. + +## 1. Structure of the system +TeaSpeaks translation system is a map based system. +This means that in general every visible text will be looked up +and if there is a mapped value it will uses this instead of the original text. +For example, if we have tree phrases and the following mapping: + Mapping: + `Hello, World` => `See you soon` + `Foo` => `Bar` + Messages + `Hello, World` becomes: `See you soon` + `Hello world` has no mapping so: `Hello world` + `Foo` becomes => `Bar` + `Foo Bar` has no mapping so: `Foo Bar` + +The files which contain these mappings are ending with `.translation` (Structure described in [1.1]()). +This means that for each language or dialect you want to adjust, you require a new translation file. +To actually use a translation file you'll need to register the file in a so called "translation repository". +A translation repository could provide multiple translation files or even multiple versions of the same file. +The structure of a "translation repository" is described in [1.2](). + +The web an the native client will query all registered translation repositories for their translation files. +If the client then selects one of the queried translations, the given mapping of the file will be used to map all visible texts. + +### 1.1 The `.translation` file +The `.translation` file contain in `json` format the all mapping information. diff --git a/shared/.gitignore b/shared/.gitignore index 0c90c86e..db1a5efe 100644 --- a/shared/.gitignore +++ b/shared/.gitignore @@ -8,4 +8,16 @@ css/static/**/*.css.map js/**/*.js js/**/*.js.map +loader/**/*.css +loader/**/*.css.map + +loader/**/*.js +loader/**/*.js.map + +popup/**/*.css +popup/**/*.css.map + +popup/**/*.js +popup/**/*.js.map + generated/* \ No newline at end of file diff --git a/shared/i18n/de_google_translate.translation b/shared/i18n/de_google_translate.translation index 04e1e6ad..c2c04585 100644 --- a/shared/i18n/de_google_translate.translation +++ b/shared/i18n/de_google_translate.translation @@ -9826,7 +9826,7 @@ } }, { - "translated": "ICH WÜRDE", + "translated": "ID", "flags": [ "google-translate" ],