1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 16:27:13 +03:00

Translations: Correct example of a non-translated {WORD}

The code needs to perform the replacement *after* translation phrase
look up.
This commit is contained in:
Athanasius 2021-06-07 12:39:18 +01:00
parent da790826e9
commit 5c8b5b9914

View File

@ -13,7 +13,7 @@ If you add any new strings that appear in the application UI, e.g. new configura
If you need to specify something in the text that shouldn't be translated then use the form:
_('Some text with a {WORD} not translated'.format(WORD='word'))
_('Some text with a {WORD} not translated').format(WORD='word')
This way 'word' will always be used literally.
Next you will need to edit `L10n/en.template` to add the phrase: