CNA Samples

Localization Sample

Ported from Microsoft's XNA 4.0 Localization Sample for Windows and Xbox 360.

Source for this sample on GitHub ↗

Japanese localized text and the Japanese flag in the game. Play ▸

Opens in a new tab. The sample selects your browser's preferred language at startup.

About this sample

Three translated strings and a matching flag show how an XNA game selects content for the current culture. If the full region is unavailable, the sample tries the language and then the default flag. The font includes characters from all supplied translations.

Controls

ActionControl
Choose languageChange your browser's preferred language, then reopen the sample
ExitEscape or gamepad Back