mozilla/bedrock — Issue #6: Support shorthand notation for short L10n strings in templates
Author: fwenzel
Created: 2011-10-11 22:40:37+00:00
State: open

The global site UI (header, footer, download buttons) will be served by gettext. We need to decide what to do about short L10n strings inside page templates. Gettext gives us the power of all its tools, but would divide this part of the page from the longer L10n content in L10n blocks.

mozilla.com currently uses a double underscore function for non-gettext strings, that are then looked up in a manifest file. It might be worth considering this for our purposes too. We could drop these strings into the same file as the l10n blocks (as an ``{% l10n_manifest %}`` block or something), but would need to write a home-grown toolchain to handle new/deprecated/changed strings.

gettext, in turn, has a mature toolchain, but suffers from the content split problem. Unless we drop the .po file content directly into a block inside the localizable template, as mentioned above. But then it can't directly be edited with .po tools anymore, just a text editor.

What to do? Discuss!