Submissions/MediaWiki i18n getting data-driven and world-reusable

From Wikimania 2013 • Hong Kong
Jump to navigation Jump to search

This is an accepted submission for Wikimania 2013.

Submission no.
5017
Subject no.
T1


Title of the submission

MediaWiki i18n getting data-driven and world-reusable

Type of submission

presentation

Author of the submission

Santhosh Thottingal and Niklas Laxström

Country of origin

India and Finland

Affiliation

Wikimedia Foundation

E-mail address

sthottingal@wikimedia.org and nlaxstrom@wikimedia.org

Username
Personal homepage or blog
Abstract

MediaWiki internationalization (i18n) is improving every year. In this presentation we will introduce the recent new features and changes to MediaWiki i18n. We will also explain the motivations for new directions in the development including data-driven approach and reusable libraries. The presentation covers both PHP and JavaScript side of our i18n code.

Detailed proposal

MediaWiki internationalization (i18n) is improving every year. Lately we have taken a new approach and started preferring the data-driven approach. Great example of this is the decision to change plural implementation from custom code to use data from the Unicode Commons Locale Data Repository (CLDR). Migrating to CLDR data has not been without problems. Attention has been paid to performance as well trying to solve the mismatch between existing plural code and CLDR. The CLDR extensions now provides more useful data like language names, country names and currency names and more is coming, like number formatting and time expressions. There are issues how the CLDR gathers it's data, but the benefits in maintainability of our code offsets that. Maintaining multiple i18n frameworks, one in PHP, one in JS, one as jquery.i18n is lot of duplicated effort which CLDR helps to reduce.

The flexibility of plural rules has been increased by allowing explicit forms for plain numbers. This is of great help to languages, that only rarely need more forms, as it allows us to reduce the number of the forms needed to supply for the common case. Even English language can benefit from it.

The JavaScript i18n utilities have gained a lot of features, like support for gammar, plural and gender, getting nearer to feature parity with PHP side. Yet many features are still missing. The first target for improvements has been the messaging functions and data delivery with resource loader modules.

We will also explain the relation of MediaWiki JavaScript i18n and the standalone jquery.i18n library, which is developed in GitHub. The features are similar, but integrating it into MediaWiki is problematic due to resource loader. It has some features not in MediaWiki, like dynamic interface language changing without reloadig the open page. There might also be interesting things to tell about new i18n features in ECMAScript standard.

Track

Technology and Infrastructure

Length of presentation/talk
25 Minutes
Language of presentation/talk

English

Will you attend Wikimania if your submission is not accepted?

Yes

Slides or further information (optional)
Presentation at Wikimania 2013 https://wikimania2013.wikimedia.org/wiki/Submissions/MediaWiki_i18n_getting_data-driven_and_world-reusable
Special requests


Interested attendees

If you are interested in attending this session, please sign with your username below. This will help reviewers to decide which sessions are of high interest. Sign with four tildes. (~~~~).

  1. Danny B.
  2. Siebrand (talk) 10:59, 18 February 2013 (UTC)[reply]
  3. Pginer (talk) 12:39, 11 March 2013 (UTC)[reply]
  4. Kavya Manohar (talk) 07:12, 24 March 2013 (UTC)[reply]
  5. Slashme (talk) 17:57, 7 April 2013 (UTC)[reply]
  6. អមីរ ឯ. អហរោណិ 06:52, 12 April 2013 (UTC)[reply]
  7. Arky (talk) 04:20, 2 May 2013 (UTC)[reply]
  8. Runa Bhattacharjee (talk) 05:22, 6 May 2013 (UTC)[reply]
  9. Psubhashish (talk) 03:50, 7 August 2013 (UTC)[reply]