tematres / TemaTres-Vocabulary-Server

Web application for management formal representations of knowledge, like controlled vocabularies, taxonomies, thesauri and glossaries
https://vocabularyserver.com
120 stars 52 forks source link

Language codes when using TinyMCE #38

Closed horus68 closed 2 years ago

horus68 commented 5 years ago

Using Tematres 3 with language pt-PT, error from tinymce shows when editing a term note:

Failed to load plugin url: http://localhost/indexa11/common/tinymce/langs/pt-PT.js

Folder has the proper language file but its using the name after code with underscore: pt_PT.js When renaming to pt-PT.js the error goes away but for the translation to be used had to change the first line of the file for tinymce.addI18n('pt-PT'

Strange: There is also another folder with language files at: common/tiny_mce4/langs

Tematres sholud also update the tinyMCE from source http://www.tinymce.com/ Translators can improve their language files here https://www.transifex.com/projects/p/tinymce/

tematres commented 5 years ago

hi, i cant find pt_PT in https://www.tiny.cloud/get-tiny/language-packages/, we can adopt pt_BR?

horus68 commented 5 years ago

No! Its strange because the file is fully translated (and also used in many other systems like Joomla!) I sent a request to dev

tematres commented 5 years ago

in the last commit the pt_BR and pt_PT was renamed to pt-BR and pt-PT.