Archive: String problem in Simplified Chinese


String problem in Simplified Chinese
Not sure if this is the way it should be, but...

My installer sets the Name to an English string for this localized language. When the string shows up in the header area (in MUI), there are quotes around the name - but only in Simplified Chinese. The name showing up in the text on the checkbox on the license page doesn't have these quotes, though, so I'm not sure what's going on. Any help or telling me that's as designed would be great.

Thanks!


It's possible the Chinese translation includes those quotes because that's how it's done in Chinese.


I checked the MUI language files for Simplified Chinese and didn't notice any extra quotes around the $(^Name) variable and my translation is just the English for this string.


Works fine for me with Simplified Chinese. Make sure you don't have two sets of quotes where you define the name. Maybe something like:

!define NAME `"name with spaces"`
LangString Name ${LANG_ENGLISH} ${NAME}
LangString Name ${LANG_SIMPCHINESE} '${NAME}'

I checked for the double-quote and didn't find anything obvious (to me). What I have are header files with each languages strings (saved as the appropriate plain text encoding).

Simplified Chinese header:


LangString localizedProductName ${LANG_SIMPCHINESE} "Our Product"
....


Installer:

...
Name "$(localizedProductName)"
...

So, I'm not sure why this is happening...

Create a minimal script reproducing the problem and attach it.


I have been able to reproduce. Here are my results, they are similar to my actual installer. Attached are the two script files. The SimpChinese header is in GB2312 encoding.


I can't see any quotes when running that. But I don't have a Chinese font, so it might be a special quote in the Chinese quote. Can you attach a screenshot?


Here's a screenshot of the issue.


Those are indeed special quotes and not the standard 0x22 quotes. They are located in the MUI language file. If you open the translation with a hex editor, you can see \xa1\xb0 before $(^NameDA) and \xa1\xb1 after it. The values differ by one, which suggests the meaning is similar. That fits with those being quotes, one turning left and the other right.


So, is there problem with the quotes that I am using? Or is this a problem with the MUI quotes?


There's no problem with your script. The quotes are located in the MUI language file.


The problem is in the MUI language file. The quotes are in there (see screenshot).

Goldy, I suggest contacting the translator and/or verifier to correct this. If you are in a bind and need this immediately, I can send you a fixed copy.

Kichik, I checked the traditional chinese file, and it doesn't have this problem.


kichik,

Thanks for all the help. I e-mailed the translator and the revisor about the issue. Hopefully it will be resolved shortly.

dienjd,

It's not urgent, but thanks for the offer.