Difference between revisions of "Help:Translation"

From CompetenceBase
Line 35: Line 35:
 
  Competences https://tinyurl.com/2fpww358  
 
  Competences https://tinyurl.com/2fpww358  
  
Before you run the query, you need to set the owner to limit the items to the ones you want to translate.
+
Before you run the query, you need to '''set the owner''' to limit the items to the ones you want to translate.
  
 
* first look up the owner Q-number  
 
* first look up the owner Q-number  

Revision as of 06:04, 27 June 2024

Introduction

Competencebase is a multilingual database and can be translated in almost any existing language. There are different levels of translation.

  • Translation of menu's and instructions are hard coded. Part of these are foreseen by the system, some other need to be implemented by the software developper.
  • Translation of properties can be done in the header of the property.
  • Translation of items are done in the header of the item. If you don't see your language, change the page language to your language. Edit and safe the header to add your language. Once the items are translated, they will appear in the page language in all other items.
  • Translation of text fields needs to be done by adding a text and marking the correct language.
  • Translation of wiki pages (on to of a page) needs to be done by creating a new wiki page with a unique name in the [inner wiki page] property and adding a qualifier [Language] with the language of the text.

When introducing a new language or checking the translations of the headers, queries can be used to fascilitate the translation.

Translating properties

To check the translations of the properties, you can run the following Query

https://tinyurl.com/2qhbl7oe

First set the language you want to check in the top left right. (The base language is always English)

Run the query by clicking the white-blue triangle.

You see now the list of properties and the available translation in your selected language.

If you need to change or add something, click on the link of the line you want to change.

The property page will open now and you can edit the header. Close the page after editing.

If you want to update the query to check your results, run the query again.

Translating Items

To translate items, you can use this query

Competences https://tinyurl.com/2fpww358 

Before you run the query, you need to set the owner to limit the items to the ones you want to translate.

  • first look up the owner Q-number
  • change the Qnumber at the end of line 6 ( ?item wdt:P48 wd:Q434. )

Set the language you want to check in the top left right. (The base language is always English)

Run the query by clicking the white-blue triangle.

You see now the list of properties and the available translation in your selected language.

If you need to change or add something, click on the link of the line you want to change.

The property page will open now and you can edit the header. Close the page after editing.

If you want to update the query to check your results, run the query again. (Don't refresh the page, because then you will need to set the owner again)

Wikidata