I’m trying to add a new interface language to the latest version of TAO Community Edition.
I deployed TAO to Docker using the instructions here: Installing and managing TAO Community Edition
I used the instructions from Github to add the locale: taohub-articles/forge/Documentation for core components/internationalization.md at master · oat-sa/taohub-articles · GitHub
Here’s what I did:
1. Created the Ukrainian language in TAO and extensions:
php taoTranslate.php -v -f -a=create -l=uk-UK -ll=“Ukrainian” -e=tao,taoBackOffice,taoCe,taoDacSimple,taoDelivery,taoGroups,taoItems,taoLti,taoQtiItem,taoQtiTest,taoQtiTestPreviewer,taoTestTaker,taoTests
2 For each extension I ran create/update/compile:
php taoTranslate.php -v -f -a=create -e=tao -l=uk-UK
…
php taoTranslate.php -v -a=update -e=tao -l=uk-UK
…
php taoTranslate.php -v -a=compile -e=tao -l=uk-UK
3 Launched php taoUpdate.php
4 Added to /tao/locales/uk-UK/lang.rdf:
<?xml version="1.0" encoding="UTF-8"?> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xml:base="http://www.tao.lu/Ontologies/TAO.rdf#" xmlns:tao="http://www.tao.lu/Ontologies/TAO.rdf#" > <rdf:Description rdf:about="http://www.tao.lu/Ontologies/TAO.rdf#Languk-UK"> <rdf:type rdf:resource="http://www.tao.lu/Ontologies/TAO.rdf#Languages"/> <rdfs:label xml:lang="en-US"><!\[CDATA\[Ukrainian\]\]></rdfs:label> <rdf:value><!\[CDATA\[uk-UK\]\]></rdf:value> <tao:LanguageUsages rdf:resource="http://www.tao.lu/Ontologies/TAO.rdf#LanguageUsageGUI"/> <tao:LanguageUsages rdf:resource="http://www.tao.lu/Ontologies/TAO.rdf#LanguageUsageData"/> <tao:LanguageOrientation rdf:resource="http://www.tao.lu/Ontologies/TAO.rdf#OrientationLeftToRight"/> </rdf:Description> </rdf:RDF>
5 Added to Updater.php:
OntologyUpdater::syncModels(); $iterator = new FileIterator(_DIR_ . ‘/../../locales/uk-UK/lang.rdf’); $rdf = ModelManager::getModel()->getRdfInterface(); /* @var \core_kernel_classes_Triple $triple */ foreach ($iterator as $triple) { $rdf->add($triple); }
As a result, the language still doesn’t appear in the interface language selection in the user settings. What am I doing wrong?


