From: Chocobozzz Date: Mon, 13 May 2019 15:45:00 +0000 (+0200) Subject: Add singular/plural tip for translation X-Git-Tag: v1.3.0-rc.1~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=26aef7c3fe5d81b7fcb84c4828a9d91ce7be7318;p=oweals%2Fpeertube.git Add singular/plural tip for translation --- 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: ## Tips +### Special tags + You must not translate special tags like ``. For example: ``` - views``` should be in french -``` - vues``` \ No newline at end of file +``` - 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 { videos} }``` + +should be in french + +```{VAR_PLURAL, plural, =0 {Aucune vidéos} =1 {1 vidéo} other { vidéos} }```