From 519947b61ed69388a65827321ab32d6afb620efa Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Tue, 7 Jan 2025 13:51:24 +1300 Subject: [PATCH] DOC Remove references to sprintf in PHP i18n docs Note there are still references to it in the javascript i18n docs - that functionality is entirely separate. --- en/10_Contributing/03_Translations.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/en/10_Contributing/03_Translations.md b/en/10_Contributing/03_Translations.md index e96bb8c7c..80343b5f0 100644 --- a/en/10_Contributing/03_Translations.md +++ b/en/10_Contributing/03_Translations.md @@ -35,12 +35,10 @@ If a core or supported module is not listed on Transifex, usually that means it If you find a core or supported module which has strings that can be (or should be able to be) translated, please [raise an issue on GitHub](./issues_and_bugs) for that module. -### How do I translate substituted strings? (Such as `%s` or `{my-variable}`) +### How do I translate substituted strings? (Such as `{my-variable}`) -You don't have to - if the english string reads 'Hello %s', your german translation would be 'Hallo %s'. Strings -prefixed by a percentage-sign are automatically replaced by Silverstripe CMS with dynamic content. See - for details. The newer `{my-variable}` format works the same way, but makes its intent clearer, -and allows reordering of placeholders in your translation. +You don't have to - if the english string reads 'Hello {my-variable}', your german translation would be 'Hallo {my-variable}'. Strings +included in `{}` are automatically replaced by Silverstripe CMS with dynamic content. ### Do I need to convert special characters (such as HTML entities)?