mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-12-18 09:51:57 +03:00
Explicit ID to force separate keys
`context` will make Lingui aware of different contexts and generate different IDs but it's not shown on Crowdin's side. Crowdin seems only care about msgid and ignores msgctxt, so it won't generate another unique ID for different contexts
This commit is contained in:
parent
c6fee139b5
commit
30486ed389
2 changed files with 4 additions and 4 deletions
4
src/locales/en.po
generated
4
src/locales/en.po
generated
|
@ -3549,10 +3549,10 @@ msgstr ""
|
||||||
msgid "NOTE: Push notifications only work for <0>one account</0>."
|
msgid "NOTE: Push notifications only work for <0>one account</0>."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. js-lingui-explicit-id
|
||||||
#: src/pages/status.jsx:567
|
#: src/pages/status.jsx:567
|
||||||
#: src/pages/status.jsx:1100
|
#: src/pages/status.jsx:1100
|
||||||
msgctxt "noun"
|
msgid "post.title"
|
||||||
msgid "Post"
|
|
||||||
msgstr "Post"
|
msgstr "Post"
|
||||||
|
|
||||||
#: src/pages/status.jsx:791
|
#: src/pages/status.jsx:791
|
||||||
|
|
|
@ -565,8 +565,8 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
|
||||||
heroDisplayName && heroContentText
|
heroDisplayName && heroContentText
|
||||||
? `${heroDisplayName}: "${heroContentText}"`
|
? `${heroDisplayName}: "${heroContentText}"`
|
||||||
: t({
|
: t({
|
||||||
|
id: 'post.title',
|
||||||
message: 'Post',
|
message: 'Post',
|
||||||
context: 'noun',
|
|
||||||
}),
|
}),
|
||||||
'/:instance?/s/:id',
|
'/:instance?/s/:id',
|
||||||
);
|
);
|
||||||
|
@ -1097,7 +1097,7 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<Trans context="noun">Post</Trans>{' '}
|
<Trans id="post.title">Post</Trans>{' '}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="ancestors-indicator light small"
|
class="ancestors-indicator light small"
|
||||||
|
|
Loading…
Reference in a new issue