Closed illya1004 closed 5 months ago
For add new language you need
In comic-translate\modules\utils\pipeline.utils.py
add your language to language_codes on 24 line
in comic-translate\app\localizations
create <language_code>.json file
in comic-translate\app\localizations\progress_mappings.py
add your language
in comic-translate\app\state_manager.py
add your language code on line 15 (locale_code)
do same in 175, 196 line
in comic.py
add you language to supported_target_languages on 12 line
add language code on 47 line (font_mappings)
add this code on 95 line
dpg.add_menu_item(label='LANGUAGE', callback=lambda: state_manager.lang_change_process('LANG_CODE'), tag = '<LAND_CODE>_lang_select')
Maybe I forgot something, but it seems everything
@illya1004 This is right. If you manage to add Ukrainian, You can fork this repo and issue a pull request and i'd be happy to merge it.
How i can add Ukranian to program?
I added the Ukrainian language to arrays wherever I saw that it was possible, but as a result I get an error
Last progress at An Error occurred: 'Ukrainian'.