From 26aef7c3fe5d81b7fcb84c4828a9d91ce7be7318 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 13 May 2019 17:45:00 +0200 Subject: Add singular/plural tip for translation --- support/doc/translation.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'support') 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} }``` -- cgit v1.2.3