Jump to content

Universal Language Selector: Difference between revisions

From mediawiki.org
Content deleted Content added
Added content
Tags: Mobile edit Mobile web edit
Limitations in functionality: Clarify that requiring login isn't a limitation of the extension
 
(38 intermediate revisions by 13 users not shown)
Line 1: Line 1:
google-site-verification: googlefb6914f9e2b11c2c.html
<languages />
<languages />
{{TNT|Wikimedia engineering project information
{{Wikimedia engineering project information
| name = Universal Language Selector
| name = <translate><!--T:59--> Universal Language Selector</translate>
| description = <translate><!--T:1--> Universal Language Selector</translate>
| description = <translate><!--T:1--> Universal Language Selector</translate>
| start = 2012-03-01
| start = 2012-03-01
| end =
| end =
| group = {{ll|Wikimedia Language engineering|Internationalization and Localization}}
| group = {{ll|Wikimedia Language engineering|2=<translate><!--T:60--> Internationalisation and Localisation</translate>}}
| EPM = [[User:Alolitas| Alolita Sharma]] (Director of Engineering), [[User:Siebrand| Siebrand Mazeland]] (Product Manager)
| EPM = [[User:Alolitas|Alolita Sharma]] <translate><!--T:61--> (Director of Engineering)</translate>, [[User:Siebrand|Siebrand Mazeland]] <translate><!--T:62--> (Product Manager)</translate>
| team = <translate><!--T:2--> Development team</translate> - [[User:Amire80|Amir Aharoni]], [[User:Nikerabbit|Niklas Laxstrom]], [[User:Pginer|Pau Giner]], [[User: Santhosh.thottingal| Santhosh Thottingal ]] & [[User:Runab|Runa Bhattacharjee]]
| team = <translate><!--T:2--> Development team</translate> [[User:Amire80|Amir Aharoni]], [[User:Nikerabbit|Niklas Laxstrom]], [[User:Pginer|Pau Giner]], [[User: Santhosh.thottingal|Santhosh Thottingal ]] & [[User:Runab|Runa Bhattacharjee]]
| previous =
| previous =
| next =
| next =
Line 17: Line 16:
<translate>
<translate>
<!--T:3-->
<!--T:3-->
The [[Extension:UniversalLanguageSelector|Universal Language Selector extension]] (ULS) provides a flexible way to configure and deliver language settings like interface language, fonts, and input methods (keyboard mappings). This will allow users to type text in different languages not directly supported by their keyboard, read content in a script for which fonts are not available locally, or customize the language in which menus are displayed.
The [[<tvar name=1>Special:MyLanguage/Extension:UniversalLanguageSelector</tvar>|Universal Language Selector extension]] (ULS) provides a flexible way to configure and deliver language settings like interface language, fonts, and input methods (keyboard mappings). This allows users to type text in different languages not directly supported by their keyboard, read content in a script for which fonts are not available locally, or customise the language in which menus are displayed.
</translate>


<translate><!--T:4--> This functionality was partially provided by <tvar name=1>{{ll|Extension:Narayam|nsp=0}}</tvar> and <tvar name=2>{{ll|Extension:WebFonts|nsp=0}}</tvar> extensions [[<tvar name=link>Special:MyLanguage/Universal Language Selector/Deployment/Planning#List of wikis (84)</tvar>|on some wikis]].</translate>
<!--T:4-->
This functionality was partially provided by [[Extension:Narayam|Narayam]] and [[Extension:WebFonts|WebFonts]] Extensions [[<tvar|link>Universal Language Selector/Deployment/Planning#List of affected wikis .2884.29</>|on some wikis]]. The ULS replaces those extensions and will be available in all Wikimedia projects for all users (logged-in and anonymous). More project specific details later.
<translate><!--T:55--> The ULS replaces those extensions and will be available in all Wikimedia projects for all users (logged-in and anonymous). More project specific details later.</translate>


<translate>
<!--T:5-->
<!--T:5-->
The functionality provided is listed below:</translate>
The functionality provided is listed below:
</translate>


*<translate><!--T:25--> '''Language settings panel.''' Main entry point to configure language tools. It can be accessed from the inter-language list on the sidebar, or at the personal toolbar for wikis lacking inter-language links.</translate>
*<translate><!--T:25--> '''Language settings panel.''' Main entry point to configure language tools. It can be accessed from the interlanguage list on the sidebar, or at the personal toolbar for wikis lacking interlanguage links.</translate>
**<translate><!--T:26--> '''User interface language adjustments.''' User can change the language in which the UI is provided regardless of the content language. At the moment, UI customization is only provided for logged-in users.</translate>
**<translate><!--T:26--> '''User interface (UI) language adjustments.''' Users can change the language in which the UI is provided regardless of the content language. At the moment, UI customisation is provided only for logged-in users.</translate>
**<translate><!--T:27--> '''Font selection.''' Web fonts are provided for non-latin scripts so that users can display content in those languages without installing local fonts. Users can select alternative fonts or decide to use their local fonts if they are available.</translate>
**<translate><!--T:27--> '''Font selection.''' Web fonts are provided for non-latin scripts so that users can display content in those languages without installing local fonts. Users can select alternative fonts or decide to use their local fonts if they are available.</translate>
**<translate><!--T:28--> '''Input method configuration.''' Users lacking a keyboard for a particular script can still write in that script by using input mappings. Hindi users with a QWERTY keyboard can write “प” by typing “pa” when Hindi input method is enabled.</translate>
**<translate><!--T:28--> '''Input method configuration.''' Users lacking a keyboard for a particular script can still write in that script by using input mappings. Hindi users with a QWERTY keyboard can write “प” by typing “pa” when Hindi input method is enabled.</translate>
*<translate><!--T:29--> '''Input method contextual menu.''' Options for switching between languages and keyboard mappings are provided next to each active input element. Users can easily combine English, International Phonetic Alphabet and Russian when writing about [[:en:Moscow|Moscow]] on English Wikipedia: “Moscow (/ˈmɒskaʊ/ or /ˈmɒskoʊ/; Russian: Москва, tr. Moskva; IPA: [mɐˈskva]) is the capital city and the most populous federal subject of Russia.”</translate><noinclude>
*<translate><!--T:29--> '''Input method contextual menu.''' Options for switching between languages and keyboard mappings are provided next to each active input element. Users can easily combine English, International Phonetic Alphabet and Russian when writing about [[:en:Moscow|Moscow]] on English Wikipedia: “Moscow (/ˈmɒskaʊ/ or /ˈmɒskoʊ/; Russian: Москва, tr. Moskva; IPA: [mɐˈskva]) is the capital city and the most populous federal subject of Russia.”</translate><noinclude>
[[File:<translate><!--T:30--> ULS-Display-Settings.png</translate>|thumb|{{dir|{{pagelang}}|left|right}}|400px|<translate><!--T:31--> Language settings allow a registered user accessing English Wikipedia to change the UI to their native language.</translate>]]
[[File:ULS-Display-Settings.png|thumb|{{dir|{{pagelang}}|left|right}}|400px|<translate><!--T:31--> Language settings allow registered users accessing English Wikipedia to change the UI to their native language.</translate>]]


[[File:<translate><!--T:32--> ULS-Font-Settings-new.png</translate>|thumb|{{dir|{{pagelang}}|left|right}}|400px|<translate><!--T:33--> A Bengali user is able to read content from the Bengali Wikipedia despite the lack of fonts in his computer. Web fonts are provided automatically for non-latin scripts for which an open source font is available. The user can decide to use their system fonts on a per language basis.</translate>]]
[[File:ULS-Font-Settings-new.png|thumb|{{dir|{{pagelang}}|left|right}}|400px|<translate><!--T:33--> Bengali users are able to read content from the Bengali Wikipedia despite the lack of fonts on their devices. Web fonts are provided automatically for non-latin scripts for which an open source font is available. Users can decide to use their system fonts on a per-language basis.</translate>]]


[[File:<translate><!--T:34--> ULS-Input-Settings.png</translate>|thumb|{{dir|{{pagelang}}|left|right}}|400px|<translate><!--T:35--> A Hindi speaker without a Hindi keyboard configures input methods so that they can type in their language.</translate>]]
[[File:ULS-Input-Settings.png|thumb|{{dir|{{pagelang}}|left|right}}|400px|<translate><!--T:35--> Hindi speakers without a Hindi keyboard can configure input methods so that they can type in their language.</translate>]]


[[File:<translate><!--T:36--> ULS-Input-Search.png</translate>|thumb|220px|{{dir|{{pagelang}}|left|right}}|<translate><!--T:37--> When searching a user can switch between English and Hindi.</translate>]]
[[File:ULS-Input-Search.png|thumb|220px|{{dir|{{pagelang}}|left|right}}|<translate><!--T:37--> When searching, users can switch between English and Hindi.</translate>]]
<translate>


<translate>
== How to access ULS == <!--T:12-->
== How to access ULS == <!--T:12-->


Line 53: Line 55:


<!--T:15-->
<!--T:15-->
*'''Wiki projects without interlanguage links''' will integrate language settings in the personal toolbar next to their user name. This includes the following wikis:
*'''Wiki projects without interlanguage links''' will integrate language settings in the personal toolbar next to their username. This includes the following wikis:
**Wikidata
**Wikidata
**Wikimedia Commons
**Wikimedia Commons
** Wikispecies
**Wikispecies
**MediaWiki.org
**MediaWiki.org
**Meta-Wiki
**Meta-Wiki
**Wikimedia Incubator</translate>
**Wikimedia Incubator
**Governance
**Outreach
**and others
</translate>

[[File:ULS-top-right.png|thumb|{{dir|{{pagelang}}|left|right}}|400px|<translate><!--T:39--> On wikis without interlanguage links, the language settings are provided at the personal toolbar.</translate>]]


[[File:<translate><!--T:38--> ULS-top-right.png</translate>|thumb|{{dir|{{pagelang}}|left|right}}|400px|<translate><!--T:39--> On wikis without inter-language links, the language settings are provided at the personal toolbar.</translate>]]
<translate>
<translate>
=== Limitations in functionality === <!--T:17-->
=== Limitations in functionality === <!--T:17-->


<!--T:18-->
<!--T:18-->
The selection of user interface language will be only available for logged-in users ([[Universal Language Selector/FAQ#Why can anonymous users not use Universal Language Selector to change their interface language|why?]]).
Wikimedia projects will be leaving <tvar name="2"><code>$wgULSAnonCanChangeLanguage</code></tvar> disabled, so the selection of user interface language will be only available for logged-in users ({{<tvar name=1>ll|Universal Language Selector/FAQ#Why can anonymous users not use Universal Language Selector to change their interface language</tvar>|why?}}).
</translate>
</translate>
[[File:<translate><!--T:40--> ULS-Display-Setting-Annonymous.png</translate>|thumb|{{dir|{{pagelang}}|left|right}}|400px|<translate><!--T:41--> Anonymous users cannot change UI language yet. They can do so by logging in.</translate>]]
[[File:ULS-Display-Setting-Annonymous.png|thumb|{{dir|{{pagelang}}|left|right}}|400px|<translate><!--T:41--> Anonymous users cannot change UI language yet. They can do so by logging in.</translate>]]
<translate>
<translate>
<!--T:20-->
<!--T:20-->
For English Wikipedia, the input method contextual menu will be disabled by default. Regardless of the initial state of input methods, users can always enable or disable them for any wiki.
For English Wikipedia, the input method contextual menu will be disabled by default. Regardless of the initial state of input methods, users can always enable or disable them for any wiki.


== Webfonts == <!--T:42-->
== Web fonts == <!--T:42-->


<!--T:54-->
<!--T:54-->
You can enable webfonts by opening the ULS interface (by clicking on the gear icon) and then Fonts -> Download fonts when needed. See [[Universal Language Selector/WebFonts]] for more information.
You can enable web fonts by opening the ULS interface. Click on the gear icon, then select "Display", then select "Fonts", then enable "Download fonts when needed". See [[<tvar name="1">Universal Language Selector/WebFonts</tvar>|Universal Language Selector/WebFonts]] for more information.


== More information == <!--T:21-->
== More information == <!--T:21-->
</translate>
</translate>


[[File:Marathi Wikipedia ULS.webm|thumb|{{dir|{{pagelang}}|right|left}}|300px|<translate><!--T:53--> One can use [[:MW:Universal Language Selector|ULS]] "अक्षरांतरण" ([[w:Transliteration|Transliteration]]) or "मराठी लिपी" ([[w:InScript_keyboard|Inscript]]) typing options to search or edit [[:mr:|Marathi Wikipedia]] articles as shown in this video clip example; One can click on the '''cc'' to change the subtitle languages to Marathi, English, Sanskrit, Kokani, Ahirani languages.In similar way other languages can be selected.</translate>]]
[[File:Devanagari ULS input.webm|thumb|{{dir|{{pagelang}}|right|left}}|300px|<translate><!--T:53--> One can use ULS "<tvar name=1>लिप्यंतरण</tvar>" ([[w:Transliteration|Transliteration]]) or "<tvar name=2>इनस्क्रिप्ट</tvar>" ([[w:InScript keyboard|Inscript]]) typing options to search or edit [[w:Devanagari|Devanagari]]-script articles as shown in this video clip example.</translate> <translate><!--T:58--> CC instructions are available for British English.</translate>]]

<translate><!--T:22--> Answers to some common queries about the Universal Language Selector can be found in the [[<tvar name=1>Special:MyLanguage/Universal Language Selector/FAQ</tvar>|FAQ page]].</translate>
<translate><!--T:56--> [[<tvar name=talk>Talk:Universal Language Selector</tvar>|You can leave feedback at the talk page]].</translate>


<translate>
<translate>
<!--T:22-->
Answers to some common queries about the Universal Language Selector can be found in the [[<tvar|uls-faq>Special:MyLanguage/Universal Language Selector/FAQ</>|FAQ page]].
[[<tvar|talk>Talk:Universal Language Selector</>|You can leave feedback at the talk page]].

<!--T:23-->
<!--T:23-->
You can also see [[<tvar|uls-ui-design>Special:MyLanguage/Universal Language Selector/Design</>|Interaction Design]] and [[<tvar|uls-tech-design>Special:MyLanguage/Universal Language Selector/Technical Design</>|Technical Design]] of this project.
You can also see [[<tvar name=1>Special:MyLanguage/Universal Language Selector/Design</tvar>|Interaction Design]] and [[<tvar name=2>Special:MyLanguage/Universal Language Selector/Technical Design</tvar>|Technical Design]] of this project.


<!--T:24-->
<!--T:24-->
Most development is part of the general libraries for the [[<tvar|milkshake>Special:MyLanguage/Milkshake</>|Milkshake]] project (see for GitHub repository information and so on).
Most development is part of the general libraries for the [[<tvar name=milkshake>Special:MyLanguage/Milkshake</tvar>|Milkshake]] project (see for GitHub repository information and so on).

<!--T:52-->
See also [[<tvar|development-plan>Special:MyLanguage/Universal Language Selector/Upcoming development plan</>|Upcoming development plan]].


==See also== <!--T:57-->
</translate>
</translate>
[[:en:Help:Multilingual_support|Help:Multilingual support]]


[[Category:User experience{{#translation:}}|Universal Language Selector]]
[[Category:User experience{{#translation:}}|Universal Language Selector]]

Latest revision as of 21:40, 11 October 2024

The Universal Language Selector extension (ULS) provides a flexible way to configure and deliver language settings like interface language, fonts, and input methods (keyboard mappings). This allows users to type text in different languages not directly supported by their keyboard, read content in a script for which fonts are not available locally, or customise the language in which menus are displayed.

This functionality was partially provided by Narayam and WebFonts extensions on some wikis. The ULS replaces those extensions and will be available in all Wikimedia projects for all users (logged-in and anonymous). More project specific details later.

The functionality provided is listed below:

  • Language settings panel. Main entry point to configure language tools. It can be accessed from the interlanguage list on the sidebar, or at the personal toolbar for wikis lacking interlanguage links.
    • User interface (UI) language adjustments. Users can change the language in which the UI is provided regardless of the content language. At the moment, UI customisation is provided only for logged-in users.
    • Font selection. Web fonts are provided for non-latin scripts so that users can display content in those languages without installing local fonts. Users can select alternative fonts or decide to use their local fonts if they are available.
    • Input method configuration. Users lacking a keyboard for a particular script can still write in that script by using input mappings. Hindi users with a QWERTY keyboard can write “प” by typing “pa” when Hindi input method is enabled.
  • Input method contextual menu. Options for switching between languages and keyboard mappings are provided next to each active input element. Users can easily combine English, International Phonetic Alphabet and Russian when writing about Moscow on English Wikipedia: “Moscow (/ˈmɒskaʊ/ or /ˈmɒskoʊ/; Russian: Москва, tr. Moskva; IPA: [mɐˈskva]) is the capital city and the most populous federal subject of Russia.”
Language settings allow registered users accessing English Wikipedia to change the UI to their native language.
Bengali users are able to read content from the Bengali Wikipedia despite the lack of fonts on their devices. Web fonts are provided automatically for non-latin scripts for which an open source font is available. Users can decide to use their system fonts on a per-language basis.
Hindi speakers without a Hindi keyboard can configure input methods so that they can type in their language.
When searching, users can switch between English and Hindi.

How to access ULS

  • Wiki projects with multiple language versions will integrate language settings in the existing language related area used for interlanguage links. This includes all language versions of:
    • Wikipedia
    • Wikibooks
    • Wikiversity
    • Wiktionary
    • Wikiquote
    • Wikivoyage
    • Wikinews
    • Wikisource
  • Wiki projects without interlanguage links will integrate language settings in the personal toolbar next to their username. This includes the following wikis:
    • Wikidata
    • Wikimedia Commons
    • Wikispecies
    • MediaWiki.org
    • Meta-Wiki
    • Wikimedia Incubator
    • Governance
    • Outreach
    • and others
On wikis without interlanguage links, the language settings are provided at the personal toolbar.

Limitations in functionality

Wikimedia projects will be leaving $wgULSAnonCanChangeLanguage disabled, so the selection of user interface language will be only available for logged-in users (why? ).

Anonymous users cannot change UI language yet. They can do so by logging in.

For English Wikipedia, the input method contextual menu will be disabled by default. Regardless of the initial state of input methods, users can always enable or disable them for any wiki.

Web fonts

You can enable web fonts by opening the ULS interface. Click on the gear icon, then select "Display", then select "Fonts", then enable "Download fonts when needed". See Universal Language Selector/WebFonts for more information.

More information

One can use ULS "लिप्यंतरण" (Transliteration) or "इनस्क्रिप्ट" (Inscript) typing options to search or edit Devanagari-script articles as shown in this video clip example. CC instructions are available for British English.

Answers to some common queries about the Universal Language Selector can be found in the FAQ page. You can leave feedback at the talk page.

You can also see Interaction Design and Technical Design of this project.

Most development is part of the general libraries for the Milkshake project (see for GitHub repository information and so on).

See also

Help:Multilingual support