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

questions on reference format in resource file for Chinese #272

Open
idealkindom opened this issue Feb 8, 2024 · 4 comments
Open

questions on reference format in resource file for Chinese #272

idealkindom opened this issue Feb 8, 2024 · 4 comments

Comments

@idealkindom
Copy link
Contributor

During the translation, I found many reference token in mesaage resource file.However the formats of them are inconsistent, i.e., some are like {0}, some are quatoed in '' like '{1}', while others are like "{1}".So, which is right is what I can not figure out.

@Proektsoftbg
Copy link
Owner

Hi!

{0}, {1}, etc. are placeholders for additional text that should be inserted into the string. Leave them unchanged. They are quoted or not, depending on the context. For example:
Cannot evaluate "{0}" as {1}. will eventually become something like:
Cannot evaluate "2 + * 3" as mathematical expression. or
Cannot evaluate "ssin(x)" as function.
Sometimes single quotes are used if there is a single character inside, but this is actually not so important.

I do not know how quotes are handled in Chinese. If you have something similar, replace them accordingly of just delete them without affecting the placeholders.

@idealkindom
Copy link
Contributor Author

idealkindom commented Feb 9, 2024 via email

@Proektsoftbg
Copy link
Owner

Hi!

If placeholders are damaged, this will fail in runtime, not in compile time. So it will be difficult to catch.
Since you best know what you did, can you please go over the strings again and if you wiped some placeholders, can you please recover them. I have no one here currently available for this task.

@idealkindom
Copy link
Contributor Author

Hi!

If placeholders are damaged, this will fail in runtime, not in compile time. So it will be difficult to catch. Since you best know what you did, can you please go over the strings again and if you wiped some placeholders, can you please recover them. I have no one here currently available for this task.

Ok, I will check and correct them back before pulling a request again.

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