Archive

Change default Language

New Member

Hello,
I have a question about the possibility to change the default langauge.
OS : Windows Server 2008R2
OS language : FRENCH

Is it possible to change the SPLUNK default language :
From French to English or Japanese ?

I saw the solution for Linux server. Have you got a procedure for Microsoft environment ?
Best reagrds,
Laurent

Tags (1)
0 Karma

Update for Splunk 8:
With the introduction of Python 3, the workaround of hardcoding your locale has changed.
You need to access the following file:
$SPLUNK_HOME/lib/python3.7/site-packages/splunk/appserver/mrsparkle/lib/util.py
On line 1768 you need to replace
locale = "%s-%s" % (locale[0], locale1) if locale1 else locale[0]
with
locale="en-US"
or whatever locale you need.

Still, a config file / line for this is long overdue.
If you also need this feature please consider voting for this idea / change request:
Per user UI language and date/time settings

0 Karma

New Member

The splunk automatically detects user's browser's default language and uses it. You can use use a temporary solution of changing the web url as http://host:port/locale/..

However there is also another method of editing Splunk/Python-2.7/Lib/site-packages/splunk/appserver/mrsparkle/lib/i18n.py file on line 333 replacing (changing line 449 didn't help me)
locale = "%s-%s" % (locale[0], locale[1]) if locale[1] else locale[0]
with
locale="en-GB"
Save and restart splunk

Splunk provides built-in support for these locales:
de-DE
en-GB
en-US
fr-FR
it-IT
ja-JP
ko-KR
zh-CN
zh-TW

0 Karma

Super Champion

Configure user language and locale
When a user logs in, Splunk automatically uses the language that the user's browser is set to. To switch languages, change the browser's locale setting. Locale configurations are browser-specific.

Splunk detects locale strings. A locale string contains two components: a language specifier and a localization specifier. This is usually presented as two lowercase letters and two uppercase letters linked by an underscore. For example, "en_US" means US English and "en_GB" means British English.

The user's locale also affects how dates, times, numbers, etc., are formatted, as different countries have different standards for formatting these entities.

Splunk provides built-in support for these locales:

de_DE
en_GB

en_US
fr_FR
it_IT

ja_JP
ko_KR

zh_CN
zh_TW

Override the browser locale
The locale that Splunk uses for a given session can be changed by modifying the url that you use to access Splunk. Splunk urls follow the form http://host:port/locale/....
For example, when you access Splunk to log in, the url may appear as http://hostname:8000/en-US/account/login for US English.
To use British English settings, you can change the locale string to http://hostname:8000/en-GB/account/login. This session then presents and accepts timestamps in British English format for its duration.

https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Userlanguageandlocale

0 Karma