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

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

Issue 29977571: Issue 7201 - Add links to CMS documentation (Closed) Base URL: https://hg.adblockplus.org/cms/
Left Patch Set: Created Jan. 10, 2019, 12:01 a.m.
Right Patch Set: Address comments on PS1 Created Jan. 14, 2019, 3:33 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « docs/content/includes.md ('k') | docs/content/pages.md » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 # Localization files # 1 # Localization files #
2 2
3 The language-specific data is stored in the `locales` directory. Each language 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 4 (identified by its locale code) is given a subdirectory here. The `.json` files
5 contain localizable strings using the following format: 5 contain localizable strings using the following format:
6 6
7 { 7 {
8 "stringid": { 8 "stringid": {
9 "message": "Translated string", 9 "message": "Translated string",
10 "description": "Optional string description" 10 "description": "Optional string description"
11 }, 11 },
12 ... 12 ...
13 } 13 }
14 14
15 Any other files are considered localizable files and will be available on the 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 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 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 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` . 19 `locales/en/foo.png` will be available on the server under the URL `/en/foo.png` .
20 20
21 -----
21 Prev: [Custom Jinja2 filters (`filters`)](filters.md) | Up: [Home](../../README. md) | Next: [Page layout templates (`templates`)](templates.md) 22 Prev: [Custom Jinja2 filters (`filters`)](filters.md) | Up: [Home](../../README. md) | Next: [Page layout templates (`templates`)](templates.md)
LEFTRIGHT

Powered by Google App Engine
This is Rietveld