Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法导入tmx文件 #37

Open
Panaxnotoginseng opened this issue Nov 7, 2024 · 2 comments
Open

无法导入tmx文件 #37

Panaxnotoginseng opened this issue Nov 7, 2024 · 2 comments

Comments

@Panaxnotoginseng
Copy link

我导入双语txm文件后出现如下报错:
Traceback (most recent call last):
File "wordless\wl_file_area.py", line 1019, in run
File "wordless\wl_utils\wl_conversion.py", line 59, in to_iso_639_3
Exception: Failed to convert ISO 639-1 code "es_es" to ISO 639-3 code!

版本是3.5,Windows系统,请问这是我的文件有问题吗?

@BLKSerene
Copy link
Owner

BLKSerene commented Nov 7, 2024

感谢反馈 bug 已记录 西班牙语带地区代码的 例如 es_ES 没有正确处理 下个版本会修复
现在暂时可以用记事本等文本工具打开TMX文件 搜索应该有这一行:

<tuv xml:lang="es-ES">

把里面的 es-ES 改成 es 即可:

<tuv xml:lang="es">

@Panaxnotoginseng
Copy link
Author

谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants