Select to view content in your preferred language

Localization Pro Add-in

1737
4
Jump to solution
11-25-2020 12:24 AM
kirken
by
Occasional Contributor

Hi! I am developing ArcGIS Pro add-in and translating it to different languages. I have followed these concepts: ProConcept Localization and this GitHub example but would like to know if there is any chance of localizing add-in without installing language pack? 

Thanks!

0 Kudos
1 Solution

Accepted Solutions
kirken
by
Occasional Contributor

Ok, agree. But in my country, Estonia, people are often used to English UI-s (I'm not sure if there even is an Estonian ArcGIS pro but I know that many people don't like Windows in Estonian) which is why I would like that ArcGIS Pro UI itself was in English and Add-in language optional. 
Anyway, one solution is to make translations as resources and then check the CultureInfo:
System.Globalization.CultureInfo ci = System.Globalization.CultureInfo.InstalledUICulture;

and change the language accordingly:

if (ci.Name == "et-EE")
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("et");

View solution in original post

4 Replies
PetrDiviš
Occasional Contributor

Hi Kirken, have you found where to get these language packs? Esri guards all the freaking information where to download anything. The site is a huge maze:(

Thanks!

0 Kudos
by Anonymous User
Not applicable

Hi, as mentioned in this help document, the Pro language packs can be obtained from My Esri or your distributor.

0 Kudos
by Anonymous User
Not applicable

Hi, you've found the best resources for localizing your Pro add-in.  As discussed in the ProConcept document, it is recommended that you use language packs to provide a consistent experience for your users.

kirken
by
Occasional Contributor

Ok, agree. But in my country, Estonia, people are often used to English UI-s (I'm not sure if there even is an Estonian ArcGIS pro but I know that many people don't like Windows in Estonian) which is why I would like that ArcGIS Pro UI itself was in English and Add-in language optional. 
Anyway, one solution is to make translations as resources and then check the CultureInfo:
System.Globalization.CultureInfo ci = System.Globalization.CultureInfo.InstalledUICulture;

and change the language accordingly:

if (ci.Name == "et-EE")
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("et");