Fragment of a discussion from Support
Jump to navigation Jump to search

Hi. Thanks, but it's not a typo: with placeholders like "{0}" in the original text, the single quotes need to be escaped with another single quote (not sure it's absolutely needed in each case, but it avoids trouble with single quotes preventing the placeholders to be expanded with their value). I'm not merging the pull request, and it wouldn't be enough as the .pot file is generated from the Java source code.

NicoV (talk)06:24, 16 July 2020

I've added an explanation on each message (in the Message documentation qqq)

NicoV (talk)06:44, 16 July 2020

Understood (partially). Is there also a reason why the last word is detecte instead of detected?

Dutchy45 (talk)11:37, 16 July 2020

I think that the page names are truncated compared to the actual text (the text doesn't stop at "detected" but goes on with "in page {0}").

Trying to explain again with other words :

  • Constructs like {0} are replaced by values by the software
  • Single quotes can prevent this replacement (they're escaping the text)
  • Doubling single quotes can prevent single quotes to interact with {0}
NicoV (talk)12:13, 16 July 2020

Ah, yes. I saw it in the code.

Dutchy45 (talk)12:28, 16 July 2020