aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--support/doc/translation.md17
1 files changed, 16 insertions, 1 deletions
diff --git a/support/doc/translation.md b/support/doc/translation.md
index 5267c3899..58b52f5f8 100644
--- a/support/doc/translation.md
+++ b/support/doc/translation.md
@@ -26,10 +26,25 @@ There are 4 files:
26 26
27## Tips 27## Tips
28 28
29### Special tags
30
29You must not translate special tags like `<x id="INTERPOLATION" ... />`. 31You must not translate special tags like `<x id="INTERPOLATION" ... />`.
30 32
31For example: 33For example:
32```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> views``` 34```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> views```
33 35
34should be in french 36should be in french
35```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> vues``` \ No newline at end of file 37```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> vues```
38
39
40### Singular/plural
41
42For singular/plural translations, you must translate values inside `{` and `}`.
43
44For example:
45
46```{VAR_PLURAL, plural, =0 {No videos} =1 {1 video} other {<x id="INTERPOLATION" equiv-text="{{ playlist.videosLength }}"/> videos} }```
47
48should be in french
49
50```{VAR_PLURAL, plural, =0 {Aucune vidéos} =1 {1 vidéo} other {<x id="INTERPOLATION" equiv-text="{{ playlist.videosLength }}"/> vidéos} }```