Mention string templates should not be used as they cannot be localised
- Dominant language
- No language data
- Stars
- 88
- Forks
- 30
- Avg merge
- 3h 28m
- Merged PRs (30d)
- 1
Description
### Discussed in https://github.com/elementary/docs/discussions/146
Originally posted by **aral** November 5, 2021
Reference: https://github.com/elementary/docs/blob/master/writing-apps/code-style.md#string-formatting
It would be good to provide a reason for why string templates are discouraged, given their ergonomic advantages over remembering every `%` code on the planet.
I haven’t been able to find any information on how translations work/don’t work with string templates but I’m assuming they are complicated at the very least. Is this the reason why they’re discouraged?
I’ve now confirmed that string templates are not picked up/included in `.po` files.
We should mention this reason in the docs.
Contributor guide
Assessment
This issue has not been assessed yet.