humboldtdigital / ProHD

A web application built with TEI Publisher
https://dossierdigital.ohc.cu/
GNU General Public License v3.0
6 stars 7 forks source link

Korrektur von Sprachwechsel und Spracheinstellung #22

Closed windauer closed 1 year ago

windauer commented 1 year ago

@arojascastro will provide more information

tuurma commented 1 year ago

Browser language settings take precedence over the selection made via the pb-lang component: this problem manifests in About and Team pages.

windauer commented 1 year ago

@tuurma sounds exactly like the issue I just recently fixed: https://github.com/eeditiones/tei-publisher-app/pull/185

arojascastro commented 1 year ago

The problem lies in files about the project and team in /data:

We have tested the web application with users, whose language computer is English and Spanish, and they had troubles when accessing those pages: they were browsed by default in German and even when they switched the langauge manually to English or Spanish, the page did not load automatically to the selected languages.

Our expected behaviour is that the pages are accessed according to the language system of each user and that, when they select manually another language, that the page is refreshed automatically.

Please let me know if you need further questions or doubts.

tuurma commented 1 year ago

Also switching the language with the pb-lang has no effect on the content, only the pb-i18n labels

tuurma commented 1 year ago

Should be now fixed.

I've put in a placeholder for criterios_en.xml and criterios.xml needs to be translated to German, for the moment all hold Spanish content.