Removed SetLanguage (back to $LANGUAGE)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@777 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
16f90719f1
commit
806f0afb91
5 changed files with 11 additions and 15 deletions
|
@ -248,11 +248,13 @@ static void NSISCALL CheckTreeItem(HWND hWnd, TV_ITEM *pItem, int checked) {
|
|||
|
||||
static int lang_num;
|
||||
|
||||
void NSISCALL set_language(LANGID lang)
|
||||
static void NSISCALL set_language(LANGID lang)
|
||||
{
|
||||
int i;
|
||||
LANGID lang_mask=~(LANGID)0;
|
||||
|
||||
if (!lang) lang=myatoi(state_language);
|
||||
|
||||
lang_again:
|
||||
for (i = 0; i < lang_num; i++) {
|
||||
if (!((lang ^ common_strings_tables[i].lang_id) & lang_mask)) {
|
||||
|
@ -377,6 +379,7 @@ int NSISCALL ui_doinstall(void)
|
|||
g_hwnd=m_bgwnd;
|
||||
// Select language
|
||||
if (ExecuteCodeSegment(g_inst_entry,g_inst_cmnheader->code_onInit,NULL)) return 1;
|
||||
set_language(0);
|
||||
g_hwnd=NULL;
|
||||
ShowWindow(m_bgwnd, SW_SHOW);
|
||||
#endif//NSIS_SUPPORT_CODECALLBACKS
|
||||
|
@ -390,6 +393,7 @@ int NSISCALL ui_doinstall(void)
|
|||
{
|
||||
#ifdef NSIS_SUPPORT_CODECALLBACKS
|
||||
if (ExecuteCodeSegment(g_inst_entry,g_inst_cmnheader->code_onInit,NULL)) return 1;
|
||||
set_language(0);
|
||||
#endif//NSIS_SUPPORT_CODECALLBACKS
|
||||
if (install_thread(NULL))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue