Skip to content
This repository was archived by the owner on Jun 10, 2019. It is now read-only.

6. Locale

Chris Dijkshoorn edited this page Sep 30, 2015 · 9 revisions

The interface of Accurator can show text in different languages, depending on the locale specified by the user and the available translations. New languages can be added to the label definition file cpack/accurator/rdf/accurator_ui.ttl. Adding translations can be done by adding literals with language tags. This is the RDF with the interface labels for the intro page, including Dutch labels:

aui:intro a auis:UI ;
	dcterms:title "Accurator intro UI"@en ;
	aui:txtSlogan "Accurate Art Annotations"@en ;
	aui:txtSubSlogan "Help us add information to artworks"@en ;
	aui:btnRegister "Register"@en ;
	aui:btnLogin "or Log in"@en ;
	aui:lnkAbout "About Accurator"@en ;
	aui:txtSlogan "Accurate Kunst Beschrijvingen"@nl ;
	aui:txtSubSlogan "Help ons met het toevoegen van informatie aan kunstwerken"@nl ;
	aui:btnRegister "Registreer"@nl ;
	aui:btnLogin "of Log in"@nl ;
	aui:lnkAbout "Informatie over Accurator"@nl .

If a completely new locale is added, it should be included as an option in the flag selection menu and locale switching mechanism (cpack/accurator/web/html/accurator_utilities.js).

Clone this wiki locally