Skip to content

Commit 5e32a1b

Browse files
committed
test: Demo photos translation bug
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 8066570 commit 5e32a1b

2 files changed

Lines changed: 21 additions & 3 deletions

File tree

translations/translationtool/tests/expected.pot

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,22 +128,32 @@ msgstr ""
128128
msgid "JS String with wrapped {parameter}"
129129
msgstr ""
130130

131+
#. TRANSLATORS JS trailing WITHOUT dot after parameter
132+
#: src/js.js:15
133+
msgid "Failed to rename {currentCollectionFileName} to {newCollectionFileName}"
134+
msgstr ""
135+
136+
#. TRANSLATORS JS trailing WITH dot after parameter
137+
#: src/js.js:19
138+
msgid "Failed to rename {currentCollectionFileName} to {newCollectionFileName}."
139+
msgstr ""
140+
131141
#. TRANSLATORS JS plural with plain text
132-
#: src/js.js:16
142+
#: src/js.js:24
133143
msgid "JS %n Plural"
134144
msgid_plural "JS %n Plurals"
135145
msgstr[0] ""
136146
msgstr[1] ""
137147

138148
#. TRANSLATORS JS plural with parameters
139-
#: src/js.js:18
149+
#: src/js.js:26
140150
msgid "JS %n Plural with %s"
141151
msgid_plural "JS %n Plurals with %s"
142152
msgstr[0] ""
143153
msgstr[1] ""
144154

145155
#. TRANSLATORS JS plural with wrapped parameters
146-
#: src/js.js:20
156+
#: src/js.js:28
147157
msgid "JS %n Plural with wrapped %s"
148158
msgid_plural "JS %n Plurals with wrapped %s"
149159
msgstr[0] ""

translations/translationtool/tests/src/js.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ t('test', 'JS String with inline {parameter}', { parameter: 'Parameter' });
1111
t('test', 'JS String with wrapped {parameter}', {
1212
parameter: 'Parameter',
1313
});
14+
// TRANSLATORS JS trailing WITHOUT dot after parameter
15+
t('test', 'Failed to rename {currentCollectionFileName} to {newCollectionFileName}', {
16+
parameter: 'Parameter',
17+
});
18+
// TRANSLATORS JS trailing WITH dot after parameter
19+
t('test', 'Failed to rename {currentCollectionFileName} to {newCollectionFileName}.', {
20+
parameter: 'Parameter',
21+
});
1422

1523
// TRANSLATORS JS plural with plain text
1624
n('test', 'JS %n Plural', 'JS %n Plurals', 6);

0 commit comments

Comments
 (0)