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

报错信息粤语化 #14

Open
nobodxbodon opened this issue May 4, 2021 · 6 comments
Open

报错信息粤语化 #14

nobodxbodon opened this issue May 4, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@nobodxbodon
Copy link
Contributor

nobodxbodon commented May 4, 2021

看到报错信息主要仍是原本的英文:濑嘢: NameError("name 'A1' is not defined")!

不知是否打算改为粤语风格?以下项目有类似功能供参考:

@StepfenShawn StepfenShawn added the enhancement New feature or request label May 5, 2021
@StepfenShawn
Copy link
Owner

好,这就准备更新

@Benbinbin
Copy link

好鬼劲,俾个 like 俾作者

@nobodxbodon
Copy link
Contributor Author

@StepfenShawn 不知 这个 pr 是否适用于此?我可以试着提交一个类似的(比如就处理一个 NameError,为演示之用),然后你将信息、标识符等改为粤语?

@StepfenShawn
Copy link
Owner

@nobodxbodon 可以👍👍,欢迎提交PR

StepfenShawn added a commit that referenced this issue Jul 21, 2021
#14 演示定制报错信息: 变量未定义
@nobodxbodon
Copy link
Contributor Author

下一批三个报错信息,是像之前那样我先提pr你再改为粤语吗?

例程 原英文报错 中文
畀我睇下 |1/0| 点样先? ZeroDivisionError:division by zero 请勿除以零
死递归 RecursionError:maximum recursion depth exceeded 递归过深。请确认: 1、的确需要递归 2、递归的收敛正确
不识本地变量 UnboundLocalError:local variable 'A' referenced before assignment 请先对本地变量‘A’赋值再引用

@donaldxdonald
Copy link

应该系 67 啦: NameError("name 'A1' is not defined")!

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

No branches or pull requests

5 participants
@nobodxbodon @donaldxdonald @Benbinbin @StepfenShawn and others