Archive: NSIS support for multiple language types support


NSIS support for multiple language types support
We have a requirement to support 15 languages.
The strings have been localized , as below , but when we run the .nsi script some
language strings are being corrupted ,others are ok.

Is there a way to compile the script with all languages supported - East Asian & Latin
in one installer ??


;Language string opened with notepad

LangString uninstall_success_message ${LANG_ENGLISH} "$(^Name) was successfully removed from your computer."
LangString uninstall_success_message ${LANG_ARABIC} "تم إزالة $(^Name) بنجاØ_ من الكمبيوتر لديك."
LangString uninstall_success_message ${LANG_DANISH} "$(^Name) blev fjernet fra din computer."
LangString uninstall_success_message ${LANG_DUTCH} "$(^Name) is van uw computer verwijderd."
LangString uninstall_success_message ${LANG_FRENCH} "$(^Name) a été supprimé de votre ordinateur."
LangString uninstall_success_message ${LANG_GERMAN} "$(^Name) wurde vom Computer entfernt."
LangString uninstall_success_message ${LANG_ITALIAN} "$(^Name) è stato rimosso dal computer."
LangString uninstall_success_message ${LANG_JAPANESE} "$(^Name)はコンピュータからæ_£å¸¸ã«å‰Šé™¤ã•ã‚Œã¾ã—た。"
LangString uninstall_success_message ${LANG_KOREAN} "컴퓨터에서 $(^Name)이(ê°€) ì_œê±°ë˜ì—ˆìŠµë‹ˆë‹¤."
LangString uninstall_success_message ${LANG_PORTUGUESE} "$(^Name) foi removido do seu computador com êxito."
LangString uninstall_success_message ${LANG_RUSSIAN} "Приложение $(^Name) успешно удалено с компьютера."
LangString uninstall_success_message ${LANG_SIMPCHINESE} "$(^Name) 已从计算机ä¸_成功åˆ_除."
LangString uninstall_success_message ${LANG_SPANISH} "Se quitó correctamente $(^Name) de su equipo."
LangString uninstall_success_message ${LANG_SWEDISH} "$(^Name) har tagits bort från din dator."
LangString uninstall_success_message ${LANG_TRADCHINESE} "已成功移除電腦上的 $(^Name)."


;Language string when opened with NSIS Edit
LangString uninstall_success_message ${LANG_ENGLISH} "$(^Name) was successfully removed from your computer."
LangString uninstall_success_message ${LANG_ARABIC} "تم إزالة $(^Name) بÙâ€_جاØÂ_ Ù…Ùâ€_ الكمبÙÅ_وتر لدÙÅ_Ùƒ."
LangString uninstall_success_message ${LANG_DANISH} "$(^Name) blev fjernet fra din computer."
LangString uninstall_success_message ${LANG_DUTCH} "$(^Name) is van uw computer verwijderd."
LangString uninstall_success_message ${LANG_FRENCH} "$(^Name) a été supprimé de votre ordinateur."
LangString uninstall_success_message ${LANG_GERMAN} "$(^Name) wurde vom Computer entfernt."
LangString uninstall_success_message ${LANG_ITALIAN} "$(^Name) è stato rimosso dal computer."
LangString uninstall_success_message ${LANG_JAPANESE} "$(^Name)はコンピュータからæÂ_£å¸¸ã«å‰Å_除されま㠁—た。"
LangString uninstall_success_message ${LANG_KOREAN} "ì»´Ã_ҬÃ_„°ì—ì„œ $(^Name)이(ê°€) ì œê±°ë˜ì—ˆìÅ_µë‹ˆë‹¤."
LangString uninstall_success_message ${LANG_PORTUGUESE} "$(^Name) foi removido do seu computador com êxito."
LangString uninstall_success_message ${LANG_RUSSIAN} "Приложение $(^Name) успешно удалено с компьютера."
LangString uninstall_success_message ${LANG_SIMPCHINESE} "$(^Name) 已从计算机ä¸Â_成åÅ_Ÿåˆ 除."
LangString uninstall_success_message ${LANG_SPANISH} "Se quitó correctamente $(^Name) de su equipo."
LangString uninstall_success_message ${LANG_SWEDISH} "$(^Name) har tagits bort från din dator."
LangString uninstall_success_message ${LANG_TRADCHINESE} "已成åÅ_Ÿç§»é™¤é›»è…¦ä¸Å_çš„ $(^Name)."


Corrupted how?


The first list is the files uncorrupted, the second list is the files after nsis corupts them. The korean is a good example of the corruption.


Define corruption.


kichik,
I am new to NSIS and a friend to Downward FG.

The first string when in Korean when opened in Notepad looks like this 컴퓨터에서

When opened in NSIS Edit it looks like this ì»´ß“¨ß„°ì—ì„œ .

When the script is compiled it corrupts the strings as above.

Is there a way to compile the script so that is supports all of the languages and does not corrupt the strings ?


I am new to this , so if you could help it would be much appreciated.


Jay


I still have no idea what you mean by corruption. What exactly happens? Do you open the installer and see garbage on the screen? Did you open the installer with the two languages on the same computer? Have you changed the language for non-Unicode programs before you did that?