mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +00:00
Remove () from language names. (#14771)
This commit is contained in:
parent
3092fda58b
commit
357ebc154b
@ -18,7 +18,8 @@ with open("crowdin.yaml", 'r') as config_file:
|
||||
lang_name = res2.json()['data']['name']
|
||||
|
||||
output += '/* ' + lang_name + ' */\n'
|
||||
escaped_name = lang_name.replace(', ', '_').replace(' ', '_').upper()
|
||||
replacements = lang_name.maketrans(' ', '_', ',()')
|
||||
escaped_name = lang_name.translate(replacements).upper()
|
||||
output += '#define LANGUAGE_PROGRESS_' + escaped_name + '_TRANSLATED ' + str(lang['data']['translationProgress']) + '\n'
|
||||
output += '#define LANGUAGE_PROGRESS_' + escaped_name + '_APPROVED ' + str(lang['data']['approvalProgress']) + '\n\n'
|
||||
with open("progress.h", 'w') as output_file:
|
||||
|
Loading…
x
Reference in New Issue
Block a user