Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Delta Between Two Patch Sets: docs/content/locales.md

Issue 29628724: Issue 5521 - Restructure CMS documentation to make it easier to use and extend (Closed) Base URL: https://hg.adblockplus.org/cms
Left Patch Set: Created Dec. 4, 2017, 9:59 a.m.
Right Patch Set: Add initial API docs Created Dec. 13, 2017, 11:08 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
(no file at all)
1 # Localization files #
3 The language-specific data is stored in the `locales` directory. Each language
4 (identified by its locale code) is given a subdirectory here. The `.json` files
5 contain localizable strings using the following format:
7 {
8 "stringid": {
9 "message": "Translated string",
10 "description": "Optional string description"
11 },
12 ...
13 }
15 Any other files are considered localizable files and will be available on the
16 server unchanged. This is useful for images for example: a language-dependent
17 image can be placed into the `locales/en` directory and a German version
18 of the same image into the `locales/de` directory. E.g. the file
19 `locales/en/foo.png` will be available on the server under the URL `/en/foo.png` .

Powered by Google App Engine
This is Rietveld