- NSIS Discussion
- String problem in Simplified Chinese
Archive: String problem in Simplified Chinese
goldy1064
27th September 2006 23:54 UTC
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!
kichik
29th September 2006 12:17 UTC
It's possible the Chinese translation includes those quotes because that's how it's done in Chinese.
goldy1064
3rd October 2006 20:18 UTC
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.
kichik
6th October 2006 16:39 UTC
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}'
goldy1064
6th October 2006 16:53 UTC
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...
kichik
6th October 2006 16:56 UTC
Create a minimal script reproducing the problem and attach it.
goldy1064
6th October 2006 17:35 UTC
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.
kichik
6th October 2006 17:40 UTC
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?
goldy1064
6th October 2006 17:46 UTC
Here's a screenshot of the issue.
kichik
6th October 2006 17:59 UTC
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.
goldy1064
6th October 2006 18:08 UTC
So, is there problem with the quotes that I am using? Or is this a problem with the MUI quotes?
kichik
6th October 2006 18:14 UTC
There's no problem with your script. The quotes are located in the MUI language file.
dienjd
6th October 2006 18:16 UTC
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.
goldy1064
6th October 2006 18:42 UTC
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.