Difference between revisions of "Translations"
Jump to navigation
Jump to search
(→UI language) |
(→UI language) |
||
Line 37: | Line 37: | ||
==Fallback logic== | ==Fallback logic== | ||
===UI language=== | ===UI language=== | ||
− | # The UI language must be one of the available translated UI languages | + | # The UI language must be one of the available translated UI languages. |
# The default language is the browser language. | # The default language is the browser language. | ||
# The user may change the UI language to one of the available UI languages. | # The user may change the UI language to one of the available UI languages. |
Revision as of 10:16, 18 March 2019
Wikidocumentaries is multilingual. The user interface language can be changed to any available language. The UI languages are translated in TranslateWiki.net.
It is also possible to view only the article in another language. The article language menu will display the user's available languages and a link to all available languages. See Article.
- If the topic exists in Wikidata, the articles generally exist in different language Wikipedias.
- If the topic exists in Wikidocumentaries, the articles generally exist in Wikidocumentaries.
dispo displays Wikipedia articles Interface and content language can be changed in the main menu.
Contents
Languages used
Interface language
- The user may change the interface language of the site to a supported interface language.
- The interface languages are translated in TranslateWiki.
- The language menu displays the the available languages in the order of the user's language fallback chain. Last item in the list displays all languages. An extra option could link to adding/editing translations.
- The menu is created in UILanguageMenu.vue.
The topic title and description
- The topic title and description are returned from Wikidata
- The language fallback of the title and the description are preferably based on the user's language fallback chain.
Article
- The user may decide to show a single article in a chosen language.
- The language switch menu displays the available articles ordered by the user's language fallback chain
- The menu is created in ArticleLanguageMenu.vue.
- The menu shows 5 best language options for the article and the remaining ones behind a single option.
Search conditions
- The topic title is used to search for images
- Additional properties and aliases may be used also
- The topic title is used to show a nearby place on the map
Translations
- Translations are managed in TranslateWiki. It produces json-files in all included languages
- The json files are put together in wikidocumentaries-ui/src/store/messages.js.
Fallback logic
UI language
- The UI language must be one of the available translated UI languages.
- The default language is the browser language.
- The user may change the UI language to one of the available UI languages.
- English is used as the ultimate fallback option.
Topic title and description, map labels, Wikidata entries?
- UI language
- Topic's original language
- Best option in the user-defined language fallback chain. The fallback chain is initially a hard-coded list of languages. Later on, the user may construct this list.
- English
- Any language ordered by...
Search term for images
- Topic title and aliases
- API service's preferred language
- Topic's original language (how is this reasoned?)
- English
About | Technology | Design | Content modules | Tool pages | Projects |
Status
Wikidocumentaries Slack |
Setting up dev environment |
Components |
Active modules Module ideas |
Visual editor | Central Park Archives |