empezar
27th April 2006 15:25 UTC
encoding used for translations?
I've been trying to make a polish translation for my installer but NSIS keeps estimating the polish letters to the latin equivalents, what encoding does NSIS use?
do I need to use a specific encoding for the source code file?
empezar
27th April 2006 16:35 UTC
this is really starting to bug me off, how exactly do I make a translation? do I put the LangStrings into a different file? how should I include this file in the main source code file? what encoding should I use?
I can NOT get this to work :(
kichik
28th April 2006 12:38 UTC
It assumes no encoding and just copies the bytes as is. What you're seeing is probably the result of a bad choice of the default language for non-Unicode applications in the language control panel.
empezar
28th April 2006 16:13 UTC
when I use unicode/utf-8 encoding on the file containing the langstrings, I get errors when trying to compile the installer.
it pretty much says "(??) unknown command line 1", and when i remove line 1, i get the same thing (meaning line 2 was also erroneous)
if I save the language file in ANSI, the special polish characters are removed.. would anyone be so kind to tell me what apps to use when saving these language files so i can actually get my installer to compile?
kichik
28th April 2006 16:17 UTC
Removed how? Where? Maybe it's the editor you're using. Have you tried Notepad?
empezar
29th April 2006 22:46 UTC
Polish requires UNICODE/UTF-8, and that can't be used apparently since I get errors like this when trying to compile:
Invalid command: þÿ
Error in script "D:\home\quake\_fquake-files\fquake\fquake-lang-polish.nsi" on line 1 -- aborting creation process
The installer source is in ANSI, so pasting the polish translation into that file won't do any good since all the UTF-8 characters will be translated into latin equivalents.
I've tried all encodings I can find in Notepad and UltraEdit, nothing works.
This is how line 1 & 2 in fquake-lang-polish.nsi looks like:
# Polish
LangString FINISHPAGE_SHOWREADME_LINK ${LANG_POLISH} "http://www.forum.quakeworld.pl/"
kichik
2nd May 2006 12:14 UTC
Polish doesn't require Unicode, it's not that complicated. Latin 2 (1250) is what Microsoft has listed for it. Save your separate NSH file in that encoding. If that's not your ANSI code page (language for non-Unicode applications selected in the control panel), use an application that can choose the code page when saving.