]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - support/doc/translation.md
Updated openapi.html ExternalDocs url
[github/Chocobozzz/PeerTube.git] / support / doc / translation.md
index ebbc26c1a576c81b5ac929c6ae0177080133de7b..58b52f5f80316d4c6e6c3c452e0835177f1871d6 100644 (file)
@@ -8,9 +8,9 @@ If you don't see your locale in the platform, please [create an issue](https://g
 
 ## How to
 
- * Create an account: https://trad.framasoft.org/zanata/
- * Join a language team: https://trad.framasoft.org/zanata/languages
- * Go to the PeerTube page https://trad.framasoft.org/zanata/iteration/view/peertube/develop/languages/fr
+ * Create an account: https://trad.framasoft.org/account/register
+ * Join a language team: https://trad.framasoft.org/languages
+ * Go to the PeerTube page https://trad.framasoft.org/iteration/view/peertube/develop
  * Choose the locale and begin to translate PeerTube!
  
 
@@ -26,10 +26,25 @@ There are 4 files:
 
 ## Tips
 
+### Special tags
+
 You must not translate special tags like `<x id="INTERPOLATION" ... />`.
 
 For example: 
 ```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> views```
 
 should be in french 
-```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> vues```
\ No newline at end of file
+```<x id="INTERPOLATION" equiv-text="{{ video.publishedAt | myFromNow }}"/> - <x id="INTERPOLATION_1" equiv-text="{{ video.views | myNumberFormatter }}"/> vues```
+
+
+### Singular/plural
+
+For singular/plural translations, you must translate values inside `{` and `}`.
+
+For example:
+
+```{VAR_PLURAL, plural, =0 {No videos} =1 {1 video} other {<x id="INTERPOLATION" equiv-text="{{ playlist.videosLength }}"/> videos} }```
+
+should be in french 
+
+```{VAR_PLURAL, plural, =0 {Aucune vidéos} =1 {1 vidéo} other {<x id="INTERPOLATION" equiv-text="{{ playlist.videosLength }}"/> vidéos} }```