From 5c8b5b99148114740a9910c8e403a9627db302d0 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Mon, 7 Jun 2021 12:39:18 +0100 Subject: [PATCH] Translations: Correct example of a non-translated {WORD} The code needs to perform the replacement *after* translation phrase look up. --- docs/Translations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Translations.md b/docs/Translations.md index 89e3f850..ce26c588 100644 --- a/docs/Translations.md +++ b/docs/Translations.md @@ -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: