Update Portal Languages

88
0
10-22-2021 07:57 AM
CarstenHogertz
New Contributor II

Hello everyone,

I'm new to the Python API and I'd like to update available Portal languages.

I can get all available languages via

 

lang=refenv.admin.system.languages
lang
{'languages': {'esri_ar': False,
  'esri_bs': True,
  'esri_ca': True,
  'esri_cs': True,
...
  'esri_zh': True}}

 

 But I cannot get the Portal to update it's language, eventhough it's document that it should be able:

https://developers.arcgis.com/python/api-reference/arcgis.gis.admin.html#arcgis.gis.admin.System.lan...

For example the following statement does not change anything:

 

lang_new= lang.update({'languages': {'esri_ar': True}})

 

Can anyone help me getting this done?

Thanks a lot!

0 Kudos
0 Replies