Talk:Analytics/Reportcard/UI

Internationalization
It will help the project greatly in the longer term if the code base if prepared for internationalization from the start. Erik Zachte (talk) 14:43, 13 March 2012 (UTC)

Literals
Suggestions:
 * Bring all literals into a message module, which can (perhaps later) interface with Translatewiki.
 * WMF has an internationalization team. I'm sure PM Siebrand Mazeland will be happy to give some advice on (future) interfacing with Translatewiki.
 * Keep in mind that strings in different languages can widely vary in length, e.g use oversized (or perhaps dynamically sized) edit/message boxes.
 * Use standard language codes for look-up of literals (e.g. 'en' for English, which could be default)

Number formatting
Formatting rules for numbers can differ widely, this concerns decimal and thousands marks, but also digit grouping (e.g. English 10,000,000 is in Hindi 1,00,00,000, in Dutch 10.000.000 in French 1 000 000, in Chinese 100,0000, in Croatian 10.000,000

Suggestions: This way support for more languages can easily be added gradually.
 * Bring all formatting of numbers into one function which receives
 * The number to be presented
 * A language code,
 * A 'short or long' flag. This allows abbreviation of large numbers in a standard and flexible way. E.g. English 1,000,000 => 1M? or 1mm?