Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation does not propose all data-languages due to typo #898

Open
twistoliver opened this issue Jul 14, 2016 · 0 comments
Open

Translation does not propose all data-languages due to typo #898

twistoliver opened this issue Jul 14, 2016 · 0 comments

Comments

@twistoliver
Copy link

The "translate" feature in UI does not propose all data-languages proposed in user-settings data-languages.
The displayed lists differ due to the use of 2 different functions:

  • tao_helpers_I18n::getAvailableLangsByUsage for translation
  • tao_models_classes_LanguageService::singleton()->getAvailableLanguagesByUsage for user settings

The first function returns bad values due to the presence in database of two different properties:

  • tao.rdf#LanguageUsages (defined in tao.rdf)
  • tao.rdf#languageUsages (used in helpers\translation\class.RDFUtils.php: $doc->createElementNS($base, 'tao:languageUsages'); and in XML tag used in lang.rdf files)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant