Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
313 stars 38 forks source link

questions on reference format in resource file for Chinese #272

Open idealkindom opened 3 months ago

idealkindom commented 3 months ago

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 commented 3 months ago

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 commented 3 months ago

So, maybe I got something wrong in message resource files. If it's easy to correct, pls be kind to correct. Otherwise I will check the original resource files to change them back as what they were.

在 2024-02-09 17:22:32,"Ned Ganchovski" @.***> 写道:

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.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Proektsoftbg commented 3 months ago

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 commented 3 months ago

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.