Topic on Project:Support desk

User language is not honored

12
2001:780:0:B:AC5B:653:8B79:D6D7 (talkcontribs)

Hello!

I have a running MediaWiki with the global $wgLanguageCode = "de". When a user changes his language, to lets say 'en', the user interface is still in 'de'. How can that be?

The database also has the changed setting 'en' set. The query I use is

SELECT up_user as `User`, convert(up_value using UTF8) as `Language` FROM wiki.user_properties where up_property = 'language';

So I guess its a bug?

This post was hidden by Tropicalkitty (history)
2001:780:0:B:AC5B:653:8B79:D6D7 (talkcontribs)

I'm running MediaWiki 1.24.2

This post was hidden by 88.130.67.74 (history)
88.130.87.34 (talkcontribs)

Hi!

What do you see when you later visit the user preferences again? Does it then still say "Language: German"?

You might try running a TRUNCATE query on the tables l10n_cache and objectcache in your database - this should clear cached texts and force MediaWiki to take the texts from the actual source files.

This post was hidden by 88.130.67.74 (history)
2001:780:0:B:3099:2B9B:69D1:D4F2 (talkcontribs)

Hey!

The preferences page (as well as the database) show the language that should be used but is not (here: 'en').

Clearing the two caches also did not yield to the desired result. The database and the preference page still show 'en' but the interface language is still 'de'.

Any more suggestions?

Ciencia Al Poder (talkcontribs)

The problem may be that localization files for other languages aren't being loaded, so all defaults to english.

Does adding ?uselang=de or &uselang=de to the end of the URL change language to german?

Try setting a debug log to see if it displays some error message when loading localization messages for de

This post was hidden by 88.130.67.74 (history)
2001:780:0:B:91F9:6C20:B8A2:A951 (talkcontribs)

Hey @Ciencia Al Poder

When I add the ?uselang=XX, the language is changed to XX. Removing the ?uselang=XX, I get the 'de' version still …

Ciencia Al Poder (talkcontribs)

Ah, I misunderstood, I though it was displaying everything in English.

I have no idea, then. Maybe looking at the debug log you can see something strange about that. You can even see what SQL queries are being done if you enable them.

2001:780:0:B:A5A0:FB83:A448:3B16 (talkcontribs)

@Ciencia Al Poder Thanks for your help though! Currently I don't have the time to do that since its just a minor issue anyway.

Reply to "User language is not honored"