]>
Commit | Line | Data |
---|---|---|
29c9e8f1 NL |
1 | Translate wallabag |
2 | ================== | |
3 | ||
3495f78d NL |
4 | wallabag web application |
5 | ------------------------ | |
6 | ||
71d03b85 | 7 | Translation files |
3495f78d | 8 | ~~~~~~~~~~~~~~~~~ |
29c9e8f1 | 9 | |
c665b863 NL |
10 | .. note:: |
11 | ||
3495f78d NL |
12 | As wallabag is mainly developed by a French team, please consider that french |
13 | translation is the most updated one and please copy it to create your own translation. | |
c665b863 | 14 | |
89bafa95 | 15 | You can find translation files here: https://github.com/wallabag/wallabag/tree/master/src/Wallabag/CoreBundle/Resources/translations. |
29c9e8f1 | 16 | |
1221f531 | 17 | You have to create ``messages.CODE.yml`` and ``validators.CODE.yml``, where CODE |
3495f78d | 18 | is the ISO 639-1 code of your language (`see wikipedia <https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes>`__). |
29c9e8f1 | 19 | |
04c07378 NL |
20 | Other files to translate: |
21 | ||
89bafa95 MM |
22 | - https://github.com/wallabag/wallabag/tree/master/app/Resources/CraueConfigBundle/translations. |
23 | - https://github.com/wallabag/wallabag/tree/master/app/Resources/FOSUserBundle/translations. | |
29c9e8f1 | 24 | |
3495f78d | 25 | You have to create ``THE_TRANSLATION_FILE.CODE.yml`` files. |
29c9e8f1 NL |
26 | |
27 | Configuration file | |
3495f78d | 28 | ~~~~~~~~~~~~~~~~~~ |
29c9e8f1 NL |
29 | |
30 | You have to edit `app/config/config.yml | |
89bafa95 | 31 | <https://github.com/wallabag/wallabag/blob/master/app/config/config.yml>`__ to display |
3495f78d | 32 | your language on Configuration page of wallabag (to allow users to switch to this new translation). |
29c9e8f1 | 33 | |
3495f78d NL |
34 | Under the ``wallabag_core.languages`` section, you have to add a new line with |
35 | your translation. For example: | |
29c9e8f1 NL |
36 | |
37 | :: | |
38 | ||
39 | wallabag_core: | |
40 | ... | |
41 | languages: | |
42 | en: 'English' | |
43 | fr: 'Français' | |
44 | ||
45 | ||
3495f78d NL |
46 | For the first column (``en``, ``fr``, etc.), you have to add the ISO 639-1 code |
47 | of your language (see above). | |
29c9e8f1 NL |
48 | |
49 | For the second column, it's the name of your language. Just that. | |
3495f78d NL |
50 | |
51 | wallabag documentation | |
52 | ---------------------- | |
53 | ||
54 | .. note:: | |
55 | ||
56 | Contrary to the web application, the main language for documentation is english. | |
57 | ||
89bafa95 | 58 | Documentation files are stored here: https://github.com/wallabag/wallabag/tree/master/docs |
3495f78d NL |
59 | |
60 | You need to respect the ``en`` folder structure when you create your own translation. |