Issue with unitime.locale — User-Specific Language Setting Not Working

12 views
Skip to first unread message

Burak Koşar

unread,
Oct 5, 2025, 3:48:08 PM10/5/25
to UniTime Discussion Group

Hi Thomas,

We’re currently deploying UniTime and have translated the system into Turkish.
While configuring localization, we noticed an issue with the unitime.locale setting.

When we change the language under Configuration → unitime.locale, it correctly updates globally for all users (e.g., en, cs, tr, etc.).
However, we’d like each user to be able to select their own language in User Settings.

We tried adding unitime.locale as a user setting, but it doesn’t seem to take effect — the global configuration still overrides it.

Here are the details:

Reference: unitime.locale
Description: Language
Default Value: en
Allowed Values: en, en_UK, cs, pl, ar, tr

Is there any way to make this setting user-specific instead of global?
Any guidance would be greatly appreciated.

Best regards,
Burak Koşar

Tomáš Müller

unread,
Oct 6, 2025, 3:08:00 AM10/6/25
to unitime...@googlegroups.com
Hi Burak,

There are two options.

1) It is possible to switch the locale on any page by just adding locale as a page parameter. For example, https://demo.unitime.org/UniTime/login.action?locale=cs will open the Online Demo in Czech. The setting applies only to the current HTTP session (e.g., logging out will switch it back).

2) As an administrator, go to Administration > Defaults > User Settings and create unitime.locale parameter there. 
Screenshot 2025-10-06 at 8.56.52.png
With this parameter, users can access Preferences > Settings and change their own locale. The drawback of this method is that only timetable manager users have access to the settings.

When multiple methods are used, the locale parameter takes priority, followed by the user settings, and then the application configuration.

The current locale for a request is set in the LocaleFilter. I have also experimented with using the current browser's settings (via the Accept-Language header parameter), but that option is currently disabled.

Regards,

Tomas Muller



--
You received this message because you are subscribed to the Google Groups "UniTime Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unitime-discu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/unitime-discuss/aa2fbd3c-5a3c-4ef8-8a19-31832934ad6en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages