<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Change default Language in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/539245#M8317</link>
    <description>&lt;P&gt;FYI if anyone needed&lt;/P&gt;&lt;P&gt;it's still the same for&amp;nbsp;&lt;/P&gt;&lt;P&gt;$SPLUNK_HOME$/lib/python3.7/site-packages/splunk/appserver/mrsparkle/lib/util.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# line 1578
def make_i18n_url(path, translate=True):

...

# line 1589
    locale = "%s-%s" % (locale[0], locale[1]) if locale[1] else locale[0]

# I just commented the line above and add below to 
# only overwrite certain locale but enable other URL specified locale.
# Dirrectly writing locale = "{NEW_LOCALE}" will let URL locale not working anymore.

#   locale = "{NEW_LOCALE}" if (locale == '{NEW_LOCALE}') else locale&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but mine is line 1589 (rather than line&lt;SPAN&gt;1768)&lt;/SPAN&gt;, on Mac instance Splunk v8.1.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2021 11:42:20 GMT</pubDate>
    <dc:creator>androchentw</dc:creator>
    <dc:date>2021-02-10T11:42:20Z</dc:date>
    <item>
      <title>Change default Language</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/255830#M8313</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have a question about the possibility to change the default langauge. &lt;BR /&gt;
OS : Windows Server 2008R2&lt;BR /&gt;
OS language : FRENCH&lt;/P&gt;

&lt;P&gt;Is it possible to change the SPLUNK default language :&lt;BR /&gt;
From French  to English or Japanese ?&lt;/P&gt;

&lt;P&gt;I saw the solution for Linux server. Have you got a procedure for Microsoft environment ?&lt;BR /&gt;
Best reagrds,&lt;BR /&gt;
Laurent&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 01:37:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/255830#M8313</guid>
      <dc:creator>neboutl</dc:creator>
      <dc:date>2016-10-17T01:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Change default Language</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/255831#M8314</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Configure user language and locale&lt;/STRONG&gt;&lt;BR /&gt;
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.&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;The user's locale also affects how dates, times, numbers, etc., are formatted, as different countries have different standards for formatting these entities.&lt;/P&gt;

&lt;P&gt;Splunk provides built-in support for these locales:&lt;/P&gt;

&lt;P&gt;de_DE&lt;BR /&gt;
en_GB&lt;BR /&gt;&lt;BR /&gt;
en_US&lt;BR /&gt;
fr_FR&lt;BR /&gt;
it_IT&lt;BR /&gt;&lt;BR /&gt;
ja_JP &lt;BR /&gt;
ko_KR&lt;BR /&gt;&lt;BR /&gt;
zh_CN&lt;BR /&gt;
zh_TW&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Override the browser locale&lt;/STRONG&gt;&lt;BR /&gt;
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 &lt;A href="http://host:port/locale/" target="_blank"&gt;http://host:port/locale/&lt;/A&gt;.... &lt;BR /&gt;
For example, when you access Splunk to log in, the url may appear as &lt;A href="http://hostname:8000/en-US/account/login" target="_blank"&gt;http://hostname:8000/en-US/account/login&lt;/A&gt; for US English. &lt;BR /&gt;
To use British English settings, you can change the locale string to &lt;A href="http://hostname:8000/en-GB/account/login" target="_blank"&gt;http://hostname:8000/en-GB/account/login&lt;/A&gt;. This session then presents and accepts timestamps in British English format for its duration.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Userlanguageandlocale" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.0/Admin/Userlanguageandlocale&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:26:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/255831#M8314</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T11:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change default Language</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/255832#M8315</link>
      <description>&lt;P&gt;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  &lt;A href="http://host:port/locale/"&gt;http://host:port/locale/&lt;/A&gt;..&lt;/P&gt;

&lt;P&gt;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)&lt;BR /&gt;
&lt;STRONG&gt;locale = "%s-%s" % (locale[0], locale[1]) if locale[1] else locale[0]&lt;/STRONG&gt;&lt;BR /&gt;
with&lt;BR /&gt;
&lt;STRONG&gt;locale="en-GB"&lt;/STRONG&gt;&lt;BR /&gt;
Save and restart splunk&lt;/P&gt;

&lt;P&gt;Splunk provides built-in support for these locales:&lt;BR /&gt;
de-DE&lt;BR /&gt;
en-GB &lt;BR /&gt;
en-US&lt;BR /&gt;
fr-FR&lt;BR /&gt;
it-IT &lt;BR /&gt;
ja-JP &lt;BR /&gt;
ko-KR &lt;BR /&gt;
zh-CN&lt;BR /&gt;
zh-TW&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jul 2018 21:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/255832#M8315</guid>
      <dc:creator>vedantyadav</dc:creator>
      <dc:date>2018-07-06T21:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change default Language</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/255833#M8316</link>
      <description>&lt;P&gt;Update for Splunk 8:&lt;BR /&gt;
With the introduction of Python 3, the workaround of hardcoding your locale has changed.&lt;BR /&gt;
You need to access the following file:&lt;BR /&gt;
$SPLUNK_HOME/lib/python3.7/site-packages/splunk/appserver/mrsparkle/lib/util.py&lt;BR /&gt;
On line 1768 you need to replace&lt;BR /&gt;
&lt;STRONG&gt;locale = "%s-%s" % (locale[0], locale&lt;A href="https://ideas.splunk.com/ideas/EID-I-11"&gt;1&lt;/A&gt;) if locale&lt;A href="https://ideas.splunk.com/ideas/EID-I-11"&gt;1&lt;/A&gt; else locale[0]&lt;/STRONG&gt;&lt;BR /&gt;
with&lt;BR /&gt;
&lt;STRONG&gt;locale="en-US"&lt;/STRONG&gt;&lt;BR /&gt;
or whatever locale you need.&lt;/P&gt;

&lt;P&gt;Still, a config file / line for this is long overdue.&lt;BR /&gt;
If you also need this feature please consider voting for this idea / change request:&lt;BR /&gt;
&lt;A href="https://ideas.splunk.com/ideas/EID-I-11"&gt; Per user UI language and date/time settings &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 13:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/255833#M8316</guid>
      <dc:creator>BorisGrochalski</dc:creator>
      <dc:date>2020-04-08T13:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Change default Language</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/539245#M8317</link>
      <description>&lt;P&gt;FYI if anyone needed&lt;/P&gt;&lt;P&gt;it's still the same for&amp;nbsp;&lt;/P&gt;&lt;P&gt;$SPLUNK_HOME$/lib/python3.7/site-packages/splunk/appserver/mrsparkle/lib/util.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# line 1578
def make_i18n_url(path, translate=True):

...

# line 1589
    locale = "%s-%s" % (locale[0], locale[1]) if locale[1] else locale[0]

# I just commented the line above and add below to 
# only overwrite certain locale but enable other URL specified locale.
# Dirrectly writing locale = "{NEW_LOCALE}" will let URL locale not working anymore.

#   locale = "{NEW_LOCALE}" if (locale == '{NEW_LOCALE}') else locale&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but mine is line 1589 (rather than line&lt;SPAN&gt;1768)&lt;/SPAN&gt;, on Mac instance Splunk v8.1.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 11:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Change-default-Language/m-p/539245#M8317</guid>
      <dc:creator>androchentw</dc:creator>
      <dc:date>2021-02-10T11:42:20Z</dc:date>
    </item>
  </channel>
</rss>

