Difference between revisions of "Translations"

From Wikidocumentaries
Jump to navigation Jump to search
(Language fallback chain for topic title and description, map labels, Wikidata entries)
Line 7: Line 7:
  
 
[[File:Wikipedia Other languages.png]]
 
[[File:Wikipedia Other languages.png]]
 +
 +
==Translations==
 +
* Translations are managed in [https://translatewiki.net/wiki/Translating:Wikidocumentaries TranslateWiki]. It produces json-files in all included languages
 +
* The json files are put together in wikidocumentaries-ui/src/store/messages.js.
  
 
==Languages used==
 
==Languages used==
Line 14: Line 18:
 
* The default language is the browser language.
 
* The default language is the browser language.
 
* The user may change the interface language of the site to a supported interface language.
 
* The user may change the interface language of the site to a supported interface language.
** The interface languages are translated in [https://translatewiki.net/wiki/Translating:Wikidocumentaries 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 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 [https://github.com/Wikidocumentaries/wikidocumentaries-ui/blob/master/src/components/menu/UILanguageMenu.vue UILanguageMenu.vue].
 
* The menu is created in [https://github.com/Wikidocumentaries/wikidocumentaries-ui/blob/master/src/components/menu/UILanguageMenu.vue UILanguageMenu.vue].
Line 29: Line 32:
  
 
===Article===
 
===Article===
* The user may decide to show a single article in a chosen language.
+
* The article is primarily displayed in the UI language
* The language switch menu displays the available articles ordered by the user's language fallback chain
 
* The menu is created in [https://github.com/Wikidocumentaries/wikidocumentaries-ui/blob/master/src/components/menu/ArticleLanguageMenu.vue 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 [https://translatewiki.net/wiki/Translating:Wikidocumentaries TranslateWiki]. It produces json-files in all included languages
 
* The json files are put together in wikidocumentaries-ui/src/store/messages.js.
 
 
 
==Fallback logic==
 
 
 
===Article language menu===
 
* The article is displayed in the UI language
 
 
* If the article does not exist in the UI language, a message to select another language is displayed. Alternatively, the article can be displayed in the best available language option.
 
* If the article does not exist in the UI language, a message to select another language is displayed. Alternatively, the article can be displayed in the best available language option.
 
* The language menu displays a list of available article languages in the following order. 5 best options are displayed, and the rest can be reviewed by clicking on the last item on the list.
 
* The language menu displays a list of available article languages in the following order. 5 best options are displayed, and the rest can be reviewed by clicking on the last item on the list.
Line 52: Line 38:
 
*# English
 
*# English
 
*# Any language ordered by...
 
*# Any language ordered by...
 +
* The menu is created in [https://github.com/Wikidocumentaries/wikidocumentaries-ui/blob/master/src/components/menu/ArticleLanguageMenu.vue ArticleLanguageMenu.vue].
  
===Search term for images===
+
===Search conditions===
* Topic title and aliases
+
* The topic title is used to search for images
** API service's preferred language
+
* Additional labels in different languages, properties and aliases may be used also
 +
* The language for the search term is chosen based on
 +
** API service's preferred language(s)
 
** Topic's original language (how is this reasoned?)
 
** Topic's original language (how is this reasoned?)
 
** English
 
** English
  
 
{{design-nav}}
 
{{design-nav}}

Revision as of 10:39, 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.

Wikipedia Other languages.png

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.

Languages used

User Interface 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 interface language of the site to a supported interface language.
  • 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.
  • English is used as the ultimate fallback option.

Language fallback chain for topic title and description, map labels, Wikidata entries

  • The topic title and description, map labels and Wikidata values are returned from Wikidata.
  • The display language is based on the following fallback chain.
  1. UI language
  2. Topic's original language (how?)
  3. 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.
  4. English
  5. Any language ordered by...

Article

  • The article is primarily displayed in the UI language
  • If the article does not exist in the UI language, a message to select another language is displayed. Alternatively, the article can be displayed in the best available language option.
  • The language menu displays a list of available article languages in the following order. 5 best options are displayed, and the rest can be reviewed by clicking on the last item on the list.
    1. 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.
    2. English
    3. Any language ordered by...
  • The menu is created in ArticleLanguageMenu.vue.

Search conditions

  • The topic title is used to search for images
  • Additional labels in different languages, properties and aliases may be used also
  • The language for the search term is chosen based on
    • API service's preferred language(s)
    • Topic's original language (how is this reasoned?)
    • English


Navigation

About Technology Design Content modules Tool pages Projects
Status

Wikidocumentaries blog

Wikidocumentaries demo

Phabricator project

Facebook group

GitHub repository

Translation in TranslateWiki

Wikidocumentaries Slack

Setting up dev environment

Resources

Translations

Languages

Using Wikibase

Federation with Wikidata

APIs

Linking

Media metadata

Properties to content

User registration

Licensing

Page types

Landing page

Search page

Topic page

User page

Organisation page

Project page

Tool page

Tasks

Components

Main toolbar and footer

Search

Faceting

Topic page header

Content module

Dropdown

Modal

Icons

Active modules

Article

Family tree

Gallery

Historical map

Images

Image viewer

Infobox

Map

Module ideas

Audio/Video

Bibliography

Correspondence

Discussion

Graph

Name

Newspaper articles

Testimonials

Timeline

Visualizations

Wikidocumentary

3D

Visual editor

Query tool

QuickStatements

Open Refine

Creating topics

Uploading images

Geolocating tool

Metadata editor

Rectifying maps

Transcription

Annotation tool

Central Park Archives

Convent Quarter

Wikisource