vonloxley / Shariff-Mediawiki

A mediawiki-extension for Shariff, protecting users privacy.
4 stars 4 forks source link

make Shariff aware of wiki language #7

Closed krabina closed 4 years ago

krabina commented 4 years ago

sets data-lang to $wgLanguageCode. in reference to https://github.com/vonloxley/Shariff-Mediawiki/issues/6

krabina commented 4 years ago

btw. I only chaged line 39. the rest seems to be some encoding changes. github warned about westeuropean encoding of the file and changed it to utf-8

krabina commented 4 years ago

beware, this only works for supported Shariff-languages. For others, it will fall back to English. This happens e. g. if your wiki is in "de-formal". It will then display English, becaus Shariff only knows "de", not "de-formal".

krabina commented 4 years ago

closed, because https://github.com/vonloxley/Shariff-Mediawiki/pull/10 handles it better