summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-06-30 14:20:29 +0200
committerBob Van Landuyt <bob@vanlanduyt.co>2018-06-30 14:20:29 +0200
commit26c8f13708f1eb6ed1d207ec656c85ac70632a66 (patch)
treece13949ce62937b3bee20e4307f1bc2895109ca2
parent63c64ab3236a5ddf45a2ca56683d07e4140ea90e (diff)
downloadgitlab-ce-26c8f13708f1eb6ed1d207ec656c85ac70632a66.tar.gz
[DOC] Add note for variable usage in singular
Avoiding a count variable allows more natural translation in some languages.
-rw-r--r--doc/development/i18n/externalization.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/development/i18n/externalization.md b/doc/development/i18n/externalization.md
index 4ba9958e2c6..f7d703b8f0b 100644
--- a/doc/development/i18n/externalization.md
+++ b/doc/development/i18n/externalization.md
@@ -174,6 +174,8 @@ For example use `%{created_at}` in Ruby but `%{createdAt}` in JavaScript.
# => When size == 2: 'There are 2 mice.'
```
+ Avoid using `%d` or count variables in sigular strings. This allows more natural translation in some languages.
+
- In JavaScript:
```js