Skip to content

fix Chinese translation error for parameterType #2836

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

Merged
merged 1 commit into from
Mar 2, 2023

Conversation

puppylpg
Copy link
Contributor

@puppylpg puppylpg commented Mar 2, 2023

The original English doc for parameterType is:

This attribute is optional because MyBatis can calculate the TypeHandler to use out of the actual parameter passed to the statement.

I think the original meaning is that the "actual parameter passed to the statement" makes "MyBatis calculates the TypeHandler to use" happen.

However, the Chinese translated version:

MyBatis 可以通过类型处理器(TypeHandler)推断出具体传入语句的参数

is a inversion of cause and effect, which means that "MyBatis can infer the actual parameter passed to the statement" BY MEANS OF "its TypeHandler".

This is confusing and misleading.

The correct translation I believe should be:

MyBatis 可以根据语句中实际传入的参数计算出应该使用的类型处理器(TypeHandler)

Copy link
Contributor

@awxiaoxian2020 awxiaoxian2020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hazendaz hazendaz self-assigned this Mar 2, 2023
@hazendaz hazendaz merged commit 51baa56 into mybatis:master Mar 2, 2023
@kazuki43zoo kazuki43zoo added the documentation Indicates a changing on documentation(reference or javadoc) label May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Indicates a changing on documentation(reference or javadoc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants