Jump to content

Univerzální výběr jazyka

From mediawiki.org
This page is a translated version of the page Universal Language Selector and the translation is 16% complete.

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.

Tato funkce byla na některých wiki částečně zajištěna rozšířeními o Narayam a WebFonts . ULS nahrádza tieto rozšírenia a bude dostupná vo všetkých projektoch Wikimedia pre všetkých používateľov (prístupní a anonymní). Viac detailov o projekte neskôr.

The functionality provided is listed below:

  • Panel nastavení jazyka. Hlavní vstupní bod ke konfiguraci jazykových nástrojů. Lze se k němu dostat přes mezijazykový seznam na levém panelu nebo v uživatelském panelu nástrojů pro wiki, která nepodporují mezijazykové odkazy.
    • Úpravy jazyka uživatelského rozhraní (UI). Uživatelé mohou změnit jazyk, ve kterém se uživatelské rozhraní zobrazuje bez ohledu na jazyk obsahu. V tuto chvíli je nastavení uživatelského rozhraní dostupné pouze pro přihlášené uživatele.
    • 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.
Hindští mluvčí bez hindské klávesnice si nastaví metodu zadávání, takže mohou i tak psát ve svém rodném jazyce.
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