mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +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>."
|
||||
msgstr ""
|
||||
|
||||
#. js-lingui-explicit-id
|
||||
#: src/pages/status.jsx:567
|
||||
#: src/pages/status.jsx:1100
|
||||
msgctxt "noun"
|
||||
msgid "Post"
|
||||
msgid "post.title"
|
||||
msgstr "Post"
|
||||
|
||||
#: src/pages/status.jsx:791
|
||||
|
|
|
@ -565,8 +565,8 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) {
|
|||
heroDisplayName && heroContentText
|
||||
? `${heroDisplayName}: "${heroContentText}"`
|
||||
: t({
|
||||
id: 'post.title',
|
||||
message: 'Post',
|
||||
context: 'noun',
|
||||
}),
|
||||
'/: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
|
||||
type="button"
|
||||
class="ancestors-indicator light small"
|
||||
|
|
Loading…
Reference in a new issue