X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=doc%2Fmd%2FTranslations.md;h=c7d3385532451c031661f202e33f2f6aa2fdf61f;hb=68c6afc56f3758154cfb96cba6fd48a6b5535590;hp=54a3665529c0216a92acbb88e0f7abbbe7d5f593;hpb=d449f79a0d7ca808b891baf73b9e25ce7f7e48fe;p=github%2Fshaarli%2FShaarli.git diff --git a/doc/md/Translations.md b/doc/md/Translations.md index 54a36655..c7d33855 100644 --- a/doc/md/Translations.md +++ b/doc/md/Translations.md @@ -76,6 +76,18 @@ Then click on the "Update" button, and you can start to translate every availabl Save when you're done, then you can submit a pull request containing the new `shaarli.po`. +### Theme translations + +Theme translation extensions are loaded automatically if they're present. + +As a theme developer, all you have to do is to add the `.po` and `.mo` compiled file like this: + + tpl//language//LC_MESSAGES/.po + tpl//language//LC_MESSAGES/.mo + +Where `` is the ISO 3166-1 alpha-2 language code. +Read the following section "Extend Shaarli's translation" to learn how to generate those files. + ### Extend Shaarli's translation If you're writing a custom theme, or a non official plugin, you might want to use the translation system,