aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc/md
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-02-26 22:53:00 +0100
committerArthurHoaro <arthur@hoa.ro>2018-03-26 19:20:25 +0200
commit68c6afc56f3758154cfb96cba6fd48a6b5535590 (patch)
treebabc499a94679e8897f70d3024d7b2c359f387e4 /doc/md
parentddd3c19f4336495bbc8927fd552db0c4d9fe6662 (diff)
downloadShaarli-68c6afc56f3758154cfb96cba6fd48a6b5535590.tar.gz
Shaarli-68c6afc56f3758154cfb96cba6fd48a6b5535590.tar.zst
Shaarli-68c6afc56f3758154cfb96cba6fd48a6b5535590.zip
Load theme translations files automatically
Fixes #1077 Take a look at the docs update to see how it works
Diffstat (limited to 'doc/md')
-rw-r--r--doc/md/Translations.md12
1 files changed, 12 insertions, 0 deletions
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
76 76
77Save when you're done, then you can submit a pull request containing the new `shaarli.po`. 77Save when you're done, then you can submit a pull request containing the new `shaarli.po`.
78 78
79### Theme translations
80
81Theme translation extensions are loaded automatically if they're present.
82
83As a theme developer, all you have to do is to add the `.po` and `.mo` compiled file like this:
84
85 tpl/<theme name>/language/<lang>/LC_MESSAGES/<theme name>.po
86 tpl/<theme name>/language/<lang>/LC_MESSAGES/<theme name>.mo
87
88Where `<lang>` is the ISO 3166-1 alpha-2 language code.
89Read the following section "Extend Shaarli's translation" to learn how to generate those files.
90
79### Extend Shaarli's translation 91### Extend Shaarli's translation
80 92
81If you're writing a custom theme, or a non official plugin, you might want to use the translation system, 93If you're writing a custom theme, or a non official plugin, you might want to use the translation system,