diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-13 15:55:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-13 15:55:13 +0200 |
commit | 850c1bf7cc438b935f6e283c801b34b91bf629c6 (patch) | |
tree | 0789b822fb01ebf061d957cbbeaf9e7ae5cd76ba /support/doc/development | |
parent | 749c7247ae9042a74d132afda0c7eefab66a0428 (diff) | |
download | PeerTube-850c1bf7cc438b935f6e283c801b34b91bf629c6.tar.gz PeerTube-850c1bf7cc438b935f6e283c801b34b91bf629c6.tar.zst PeerTube-850c1bf7cc438b935f6e283c801b34b91bf629c6.zip |
Move iso639 strings in its own translation file
Diffstat (limited to 'support/doc/development')
-rw-r--r-- | support/doc/development/localization.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/support/doc/development/localization.md b/support/doc/development/localization.md index 3cf797516..97e9e2c51 100644 --- a/support/doc/development/localization.md +++ b/support/doc/development/localization.md | |||
@@ -8,7 +8,7 @@ Will generate XLIFF files for Angular and escape inner elements in `source` tag | |||
8 | 8 | ||
9 | This script will create `player_en_US.xml` XLIFF file using custom strings (VideoJS plugins) and strings from `videojs_en_US.json` file. | 9 | This script will create `player_en_US.xml` XLIFF file using custom strings (VideoJS plugins) and strings from `videojs_en_US.json` file. |
10 | 10 | ||
11 | It will also create `server_en_US.xml` XLIFF file using custom strings (defined inside the script, we did not find a way to extract them from TypeScript server files). | 11 | It will also create `server_en_US.xml` and `iso639_en_US.xml` XLIFF file using server strings and custom strings (defined inside the script, we did not find a way to extract them from TypeScript server files). |
12 | 12 | ||
13 | ``` | 13 | ``` |
14 | $ npm run i18n:generate | 14 | $ npm run i18n:generate |
@@ -25,7 +25,8 @@ $ zanata-cli push | |||
25 | ## Pull translation | 25 | ## Pull translation |
26 | 26 | ||
27 | Pull XLIFF files from Zanata, and unescape them (so we retrieve inner elements in `source` tag, used by Angular). | 27 | Pull XLIFF files from Zanata, and unescape them (so we retrieve inner elements in `source` tag, used by Angular). |
28 | A hook converts `player` and `server` translation files to JSON (needed by Video.JS, and our application to have efficient runtime translation). | 28 | A hook converts `player` and `server`, `iso639` translation files to JSON (needed by Video.JS, and our application to have efficient runtime translation). |
29 | Then, `iso639` files will be merged in `server` files (so we have only one JSON file to serve server translations). | ||
29 | 30 | ||
30 | ``` | 31 | ``` |
31 | $ zanata-cli pull | 32 | $ zanata-cli pull |