Help

Difference between revisions of "Add a new language"

m (→‎Create a new language by hand: no module namespace for now)
(Marked this version for translation)
Line 2: Line 2:
 
<translate>
 
<translate>
  
 +
<!--T:1-->
 
You can record any language, dialect or language variety using Lingua Libre. Lingua Libre uses item to store information on language in a way equivalent to what Wikidata does. All existing languages are listed [[Special:WhatLinksHere/Q4|here]].
 
You can record any language, dialect or language variety using Lingua Libre. Lingua Libre uses item to store information on language in a way equivalent to what Wikidata does. All existing languages are listed [[Special:WhatLinksHere/Q4|here]].
  
 +
<!--T:2-->
 
If your language/dialect does not exist yet, you can create it by yourself. To do so, we have two options:
 
If your language/dialect does not exist yet, you can create it by yourself. To do so, we have two options:
 
* ask to an administrator (this is the '''recommended way'''). You can find a list of the administrators [<tvar|admin>https://lingualibre.fr/wiki/Special:ListUsers?username=&group=sysop&wpsubmit=&wpFormIdentifier=mw-listusers-form&limit=50</> here].
 
* ask to an administrator (this is the '''recommended way'''). You can find a list of the administrators [<tvar|admin>https://lingualibre.fr/wiki/Special:ListUsers?username=&group=sysop&wpsubmit=&wpFormIdentifier=mw-listusers-form&limit=50</> here].
 
* create a new item by hand
 
* create a new item by hand
  
== Tool for administrators ==
+
== Tool for administrators == <!--T:3-->
  
 +
<!--T:4-->
 
<small>''This section applies only for administrators''</small>
 
<small>''This section applies only for administrators''</small>
  
 +
<!--T:5-->
 
The gadget ''LinguaImporter'' can be used by administrators in order to import a language directly from Wikidata. To do so, follow the following steps.
 
The gadget ''LinguaImporter'' can be used by administrators in order to import a language directly from Wikidata. To do so, follow the following steps.
  
 +
<!--T:6-->
 
* Enable the LinguaImporter gadget in your [[Special:Preferences#mw-prefsection-gadgets|preferences]] by checking the ''LinguaImporter'' box and click on “Save”;</translate>
 
* Enable the LinguaImporter gadget in your [[Special:Preferences#mw-prefsection-gadgets|preferences]] by checking the ''LinguaImporter'' box and click on “Save”;</translate>
[[File:Gadget tab in preferences.png|center|500px|<translate>The gadget tab of your preferences.</translate>]]
+
[[File:Gadget tab in preferences.png|center|500px|<translate><!--T:7--> The gadget tab of your preferences.</translate>]]
  
 
<translate>
 
<translate>
 +
<!--T:8-->
 
* Go to the tool menu on the top right corner and click on “Import a language”;</translate>
 
* Go to the tool menu on the top right corner and click on “Import a language”;</translate>
[[File:ImportLanguageEn.png|center|500px|<translate>The tool menu.</translate>]]
+
[[File:ImportLanguageEn.png|center|500px|<translate><!--T:9--> The tool menu.</translate>]]
  
 
<translate>
 
<translate>
 +
<!--T:10-->
 
* The popup below appears.</translate>
 
* The popup below appears.</translate>
[[File:LinguaImporter.png|center|500px|<translate>LinguaImporter popup used to import the Picard language.</translate>]]
+
[[File:LinguaImporter.png|center|500px|<translate><!--T:11--> LinguaImporter popup used to import the Picard language.</translate>]]
<translate>:Enter the Wikidata identifier of the language. For example, to import here the Picard language, you have to enter [<tvar|Q34024>https://www.wikidata.org/wiki/Q34024</> Q34024]. Instead of the identifier, you may also type the name in English of the language (if you want to import the French language, “français” will not find the language while “French” will do. Click on the element corresponding to the language you are interested in. '''Be careful to click on the right language in order not to import elements that are not languages.''' Validate by clicking on the “Import” button.
+
<translate><!--T:12-->
 +
:Enter the Wikidata identifier of the language. For example, to import here the Picard language, you have to enter [<tvar|Q34024>https://www.wikidata.org/wiki/Q34024</> Q34024]. Instead of the identifier, you may also type the name in English of the language (if you want to import the French language, “français” will not find the language while “French” will do. Click on the element corresponding to the language you are interested in. '''Be careful to click on the right language in order not to import elements that are not languages.''' Validate by clicking on the “Import” button.
  
 +
<!--T:13-->
 
* A small popup appears on the top right indicating that the import is successful. It indicates the item identifier that corresponds to the language.</translate>
 
* A small popup appears on the top right indicating that the import is successful. It indicates the item identifier that corresponds to the language.</translate>
[[File:Language imported.png|center|500px|<translate>The language has been successfully imported on Lingua Libre.</translate>]]
+
[[File:Language imported.png|center|500px|<translate><!--T:14--> The language has been successfully imported on Lingua Libre.</translate>]]
  
 
<translate>
 
<translate>
 +
<!--T:15-->
 
This new language is now available to anyone who wants to record word lists.
 
This new language is now available to anyone who wants to record word lists.
  
== Create a new language by hand ==
+
== Create a new language by hand == <!--T:16-->
  
 +
<!--T:17-->
 
'''It is recommended to create a new language by asking to an administrator.''' So that, all labels filled on Wikidata, that contain the language name in several languages, will be imported. If you create a language by hand, you will have to translate the name of the language by yourself.
 
'''It is recommended to create a new language by asking to an administrator.''' So that, all labels filled on Wikidata, that contain the language name in several languages, will be imported. If you create a language by hand, you will have to translate the name of the language by yourself.
  
 +
<!--T:18-->
 
If you still want to create a new language by yourself, follow these steps:
 
If you still want to create a new language by yourself, follow these steps:
  
 +
<!--T:19-->
 
* Click on [[Special:NewItem|this link]] in order to create a new item. You arrive on the page below.</translate>
 
* Click on [[Special:NewItem|this link]] in order to create a new item. You arrive on the page below.</translate>
[[File:Create_a_new_item.png|center|500px|<translate>The main page to create a new item.</translate>]]
+
[[File:Create_a_new_item.png|center|500px|<translate><!--T:20--> The main page to create a new item.</translate>]]
  
 
<translate>
 
<translate>
 +
<!--T:21-->
 
* In the label field, type the language name in the language that is selected in the Language list;
 
* In the label field, type the language name in the language that is selected in the Language list;
 
: In the description field, type a short description that allow to understand which language is it;
 
: In the description field, type a short description that allow to understand which language is it;
 
: In the alias field, you can optionally enter other language names that are used for this language
 
: In the alias field, you can optionally enter other language names that are used for this language
 
:Finally click on the “Create” button.</translate>
 
:Finally click on the “Create” button.</translate>
[[File:Creation of the Franco-Provencal item.png|center|500px|<translate>Creation of the Franco-Provençal item. Label, description and alias are filled.</translate>]]
+
[[File:Creation of the Franco-Provencal item.png|center|500px|<translate><!--T:22--> Creation of the Franco-Provençal item. Label, description and alias are filled.</translate>]]
 
<translate>
 
<translate>
 +
<!--T:23-->
 
* You are redirected to the page of the new element you just created
 
* You are redirected to the page of the new element you just created
 
[[File:Franco-Provencal_item_without_statement.png|center|500px|The Franco-Provençal item that has been created. Statements have to be added.]]
 
[[File:Franco-Provencal_item_without_statement.png|center|500px|The Franco-Provençal item that has been created. Statements have to be added.]]
  
 +
<!--T:24-->
 
* Now, you have to create the following statements by clicking on “add statement”:
 
* Now, you have to create the following statements by clicking on “add statement”:
 
:* [[Property:P2|instance of <small>(P2)</small>]] with the value [[Q4|language <small>(Q4)</small>]];
 
:* [[Property:P2|instance of <small>(P2)</small>]] with the value [[Q4|language <small>(Q4)</small>]];
Line 57: Line 73:
 
:* optionally, you can add other statements such as [[Property:P17|Wikimedia language code <small>(P17)</small>]], ... You can also add language name in other languages (Arabic, Chinese, French, Russian, Spanish, ...).
 
:* optionally, you can add other statements such as [[Property:P17|Wikimedia language code <small>(P17)</small>]], ... You can also add language name in other languages (Arabic, Chinese, French, Russian, Spanish, ...).
 
: To save the statement, you have to click on “save”.</translate>
 
: To save the statement, you have to click on “save”.</translate>
[[File:Franco-Provencal_item_with_statements.png|center|500px|<translate>Several statements have been added to the Franco-Provençal item.</translate>]]
+
[[File:Franco-Provencal_item_with_statements.png|center|500px|<translate><!--T:25--> Several statements have been added to the Franco-Provençal item.</translate>]]
  
<translate>This new language is now available to anyone who wants to record word lists.  
+
<translate><!--T:26-->
 +
This new language is now available to anyone who wants to record word lists.  
 
</translate>
 
</translate>

Revision as of 20:40, 6 November 2018

Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Esperanto • ‎Türkçe • ‎brezhoneg • ‎español • ‎français • ‎interlingua • ‎norsk bokmål • ‎occitan • ‎polski • ‎português do Brasil • ‎română • ‎sicilianu • ‎svenska • ‎македонски • ‎Արեւմտահայերէն • ‎עברית • ‎বাংলা • ‎ไทย • ‎日本語 • ‎ꯃꯤꯇꯩ ꯂꯣꯟ

You can record any language, dialect or language variety using Lingua Libre. Lingua Libre uses item to store information on language in a way equivalent to what Wikidata does. All existing languages are listed here.

If your language/dialect does not exist yet, you can create it by yourself. To do so, we have two options:

  • ask to an administrator (this is the recommended way). You can find a list of the administrators here.
  • create a new item by hand

Tool for administrators

This section applies only for administrators

The gadget LinguaImporter can be used by administrators in order to import a language directly from Wikidata. To do so, follow the following steps.

  • Enable the LinguaImporter gadget in your preferences by checking the LinguaImporter box and click on “Save”;
  • Go to the tool menu on the top right corner and click on “Import a language”;
  • The popup below appears.
Enter the Wikidata identifier of the language. For example, to import here the Picard language, you have to enter Q34024. Instead of the identifier, you may also type the name in English of the language (if you want to import the French language, “français” will not find the language while “French” will do. Click on the element corresponding to the language you are interested in. Be careful to click on the right language in order not to import elements that are not languages. Validate by clicking on the “Import” button.
  • A small popup appears on the top right indicating that the import is successful. It indicates the item identifier that corresponds to the language.

This new language is now available to anyone who wants to record word lists.

Create a new language by hand

It is recommended to create a new language by asking to an administrator. So that, all labels filled on Wikidata, that contain the language name in several languages, will be imported. If you create a language by hand, you will have to translate the name of the language by yourself.

If you still want to create a new language by yourself, follow these steps:

  • Click on this link in order to create a new item. You arrive on the page below.
The main page to create a new item.
  • In the label field, type the language name in the language that is selected in the Language list;
In the description field, type a short description that allow to understand which language is it;
In the alias field, you can optionally enter other language names that are used for this language
Finally click on the “Create” button.
  • You are redirected to the page of the new element you just created
  • Now, you have to create the following statements by clicking on “add statement”:
To save the statement, you have to click on “save”.

This new language is now available to anyone who wants to record word lists.