Confirmed users, Bureaucrats and Sysops emeriti
2,976
edits
(Making some edits to the intros, preparing for page rename) |
|||
| Line 1: | Line 1: | ||
{{DRAFT}} | |||
== Introduction == | == Introduction == | ||
L20n is a localization format and an API that is aiming at remodeling the way developers internationalize their code and how localization is being done. This document runs down the items of the toolbox that l20n offers to localizers and programmers. Simple examples that build on each other make up the first part, and the second part will show how those tools are put to use to implement some patterns that are hard in current l10n infrastructures. | |||
The examples will be composed by the localized files, and an example API pseudo code that shows how much of the l20n logic the programmer sees. | |||
You can see the [http://people.mozilla.org/~axel/l20n/grammar.html annotated grammar] of the localized files for reference (warning, WIP). | |||
== | == Toolbox == | ||
Starting off with the simplest "just strings" example, let's build our toolbox one by one. | |||
=== Simple example === | === Simple example === | ||
| Line 237: | Line 239: | ||
== | == Use cases == | ||
Now that our toolbox is complete, let's use them to attack some real life examples. This section goes by linguistic use cases rather than the concrete technical tools used to attack them. | |||
=== Plurals and Genders === | === Plurals and Genders === | ||