Project

General

Profile

Actions

Improvements #13381

closed
MV RM

Improvements #13380: Extend list of tutorials

Create a tutorial for localization

Improvements #13381: Create a tutorial for localization

Added by Matthias Van Ceulebroeck over 1 year ago. Updated about 2 months ago.

Status:
Closed
Priority:
Low
Target version:
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 a WTemplate, 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.

RM Updated by Romain Mardulyn over 1 year ago Actions #1

  • Assignee set to Romain Mardulyn
  • Status changed from New to InProgress

RM Updated by Romain Mardulyn over 1 year ago Actions #2

  • Status changed from InProgress to Review
  • Assignee deleted (Romain Mardulyn)

MV Updated by Matthias Van Ceulebroeck about 1 year ago Actions #3

  • Target version changed from 4.12.0 to 4.12.3

MV Updated by Matthias Van Ceulebroeck 7 months ago Actions #4

  • Assignee set to Matthias Van Ceulebroeck

RM Updated by Romain Mardulyn 7 months ago Actions #5

  • Target version changed from 4.12.3 to 4.12.4

RM Updated by Romain Mardulyn 7 months ago Actions #6

  • Target version changed from 4.12.4 to 4.13.0

RM Updated by Romain Mardulyn 5 months ago Actions #7

  • Target version changed from 4.13.0 to 4.14.0

RM Updated by Romain Mardulyn 3 months ago Actions #8

  • Priority changed from Normal to Low

RM Updated by Romain Mardulyn 3 months ago Actions #9

  • Assignee deleted (Matthias Van Ceulebroeck)

ED Updated by emil de keyser 2 months ago Actions #10

  • Assignee set to emil de keyser

ED Updated by emil de keyser 2 months ago Actions #11

  • Status changed from Review to Resolved
  • Assignee changed from emil de keyser to Romain Mardulyn

RM Updated by Romain Mardulyn 2 months ago Actions #12

  • Status changed from Resolved to Implemented @Emweb

RM Updated by Romain Mardulyn about 2 months ago Actions #13

  • Status changed from Implemented @Emweb to Closed
Actions

Also available in: PDF Atom