Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2019-08-14 12:46:09 +0300
committerMaƂgorzata Ksionek <mksionek@gitlab.com>2019-09-10 14:22:21 +0300
commit8472fa0807ad04f076df42b4ea4f8a145685dc80 (patch)
tree042740d7936e58338dfc074aee957b0025aa7153 /spec/fixtures/valid.po
parenteb2afea2abaa61978fae312a5a9b71293ab0e84a (diff)
Build correct variables for testing translations
This makes sure we build the correct variables for testing translations. When translating, we could be specifying the variables in different forms for each id: - In the singular we could be using a `%{hash}` interpolation - In the plural we could be using a `%d` interpolation This changes the tests to accommodate for that: We now use the variables used in the relevant translation id as the source for the variables we mix in in specs.
Diffstat (limited to 'spec/fixtures/valid.po')
-rw-r--r--spec/fixtures/valid.po5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/fixtures/valid.po b/spec/fixtures/valid.po
index 155b6cbb95d..28826f05595 100644
--- a/spec/fixtures/valid.po
+++ b/spec/fixtures/valid.po
@@ -1128,3 +1128,8 @@ msgid "parent"
msgid_plural "parents"
msgstr[0] "padre"
msgstr[1] "padres"
+
+msgid "CycleAnalytics|%{stageName}"
+msgid_plural "CycleAnalytics|%d stages selected"
+msgstr[0] "%{stageName}"
+msgstr[1] "%d stages selected"