Actions
Improvements #13381
openImprovements #13380: Extend list of tutorials
Create a tutorial for localization
Start date:
01/07/2025
Due date:
% Done:
0%
Estimated time:
Description
Recently a support email was asking about the correct way to implement localization.
While they were very close to most items being correct, there seemed to be a fundamental misunderstanding in how Wt does the substitution, and subsequent refreshing of the strings when the locale changes (i.e. language selection).
We should create a short tutorial walking through:
- how an application uses its resource bundles
- advantages and disadvantages of approaches, like using a
WContainerWidget
, and adding content to it in code, or specifying aWTemplate
, should be made clear here. - how `WTemplate uses its functions
- how
WString
localization functions (and how it doesn't) (i.e. having a localized string, and changing/appending content will result in a literal, which is no longer localized)
This tutorial will come with some inline code, and the code as a whole should be made public as well, so it can be experimented with.
No data to display
Actions