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

acknowledge wiki language for Shariff #10

Merged
merged 2 commits into from
Jun 14, 2020
Merged

Conversation

krabina
Copy link
Contributor

@krabina krabina commented Jun 5, 2020

not perfect, but acknowledges at least different de language versions (de-formal, de-AT, de-CH) in mediawiki to be mapped to "de" in Shariff.

Solves the problem better than #7

in reference to #6

@krabina krabina changed the title acknowledge de-formal, de_AT and de_CH as "de" acknowledge wiki language for Shariff Jun 5, 2020
@krabina
Copy link
Contributor Author

krabina commented Jun 5, 2020

this PR tries to set the language of Shariff to the language of the MediaWiki installation. If the wiki is in a language that Shariff does not know, it will ignore the setting and fallback to English.

This is not perfect, because even better it would refer to the user language, not the Wiki installation language. But I did not manage to accomplish that...

@vonloxley
Copy link
Owner

Thanks for the PR! I would prefer the if to test for substr($wgLanguageCode, 0, 3) === 'de-' otherwise it is fine. Would you change that, please?

make German language problem more generic
@vonloxley vonloxley merged commit 1d8b036 into vonloxley:master Jun 14, 2020
@krabina krabina deleted the patch-4 branch June 15, 2020 07:02
@vonloxley
Copy link
Owner

Closes #6

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

Successfully merging this pull request may close these issues.

2 participants