Skip to content

auto_translate have some problems #9

Description

@vmjcv

in LocalizationAutoTranslate._on_translate_pressed(). the _from_code = _from_code.to_lower()
but in LoclizationData.translation_by_locale(key, locale). the translation.locale is not to_lower().

so if the local is zh_CN.
translation.locale = zh_CN
locale = zh_cn

translation.locale!=locale

maybe you need change it like this

func translation_by_locale(key, locale):
	for translation in key.translations:
		if translation.locale.to_lower() == locale:
			return translation 
	return null

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions