File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 234
234
"name" : "Northern Sotho" ,
235
235
"name_local" : "Sesotho sa Leboa" ,
236
236
}
237
- # Aranese (an Occitan variant)
237
+ # Aranese (an Occitan variant, CLDR: oc-ES )
238
238
LANG_INFO ["oc-aranes" ] = {
239
239
"bidi" : False ,
240
240
"code" : "oc-aranes" ,
Original file line number Diff line number Diff line change @@ -343,9 +343,12 @@ def update_lang_info(language_code):
343
343
if language_code not in LANG_INFO :
344
344
LANG_INFO [language_code ] = {}
345
345
lang_info = LANG_INFO [language_code ]
346
- lang_info ["name" ] = locale .get_display_name ("en" )
347
- lang_info ["name_local" ] = locale .get_display_name (locale_name )
348
- lang_info ["bidi" ] = order_to_bidi [locale .character_order ]
346
+ if not lang_info .get ("name" ):
347
+ lang_info ["name" ] = locale .get_display_name ("en" )
348
+ if not lang_info .get ("name_local" ):
349
+ lang_info ["name_local" ] = locale .get_display_name (locale_name )
350
+ if not lang_info .get ("bidi" ):
351
+ lang_info ["bidi" ] = order_to_bidi [locale .character_order ]
349
352
except UnknownLocaleError :
350
353
pass
351
354
You can’t perform that action at this time.
0 commit comments