GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing www.mediawiki.org — Localisation/2012 tutorial - MediaWiki
Internationali[sz]ation/locali[sz]ation (i18n/l10n) tutorial. Please also see a presentation from late 2012.
First, we give a general intro to the i18n problem, explaining where we are. We'll be going over each of the major extensions that i18n has developed, breaking down where functionality lives regarding input, output, and searching. Then we will give the participants an exercise, probably "add a new keymapping to Narayam". General principles and goals
How we do it:
LocalisingNow we'll show you Wikimedia localisation from a tools perspective and from a user perspective, including overviews of the major extensions. Input(open source keymaps for different languages) Extension: Narayam -- Extension:Narayam
Future directions / external ideas:
OutputExtension: Webfonts The css3-based technology allows us to deliver required fonts along with an html page. This is important since for many non-latin languages, we cannot assume that users have installed required fonts, or they know how to get fonts and install.
SearchingExtension:CirrusSearch is often used. (here's the category: Category:Search_extensions) Translation toolsTranslate - for translation If you want to help translate MediaWiki and its extensions, see https://translatewiki.net for more documentation and our TODO lists: http://translatewiki.net/wiki/Issues_and_features BabelSee http://www.mediawiki.org/wiki/Extension:Babel . We initially used this to indicate the languages that the user knows. Now it also tries to include CLDR data from the Unicode Common Locale Data Repository. ExercisesNarayamDeveloping a key mapping for Narayam, per Extension:Narayam#Developing_a_key_mapping Step-by-step instructions on how someone develops and adds a key mapping/scheme:
WebFonts for a specific languageIdea: something involving looking at Narayam, taking the example of a specific language, and walking through Webfonts and/or Translate? Example: look at what Korean fonts are available, show how you would add them to WebFonts and Translate. Less likely exercisesAntoine's exercise idea: i18n messagesBasic API documentation is in the Message class docblock. Our documentation is regenerated daily from trunk at https://doc.wikimedia.org/. The Message class general documentation is available at Message. Though it needs improvement, it is a good start to have an overall overview about the messaging system. More examples with old wfMsg*() functions, e.g. wfMsgWikiHtml()/wfMsgNoTrans(), could be added, along with their expected behavior. That is reference documentation; another idea is to write some documentation at https://www.mediawiki.org/wiki/WfMessage%28%29 that helps the reader understand how to use this class to solve various problems. This is a less likely exercise because it's ill-defined and because it doesn't directly help the student learn how to use important i18n tools. Unit test for an i18n extensionFollow https://www.mediawiki.org/wiki/Manual:Unit_testing and write a unit test for an i18n extension. This is a less likely exercise because it requires that the student additionally learn how to use Selenium and the workshop may not have time for that. Presentation history
| ||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |