From 460b057813737fc75b9ff653f9a82171d1cce074 Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 24 Oct 2002 21:02:32 +0000 Subject: [PATCH] English is no longer always created git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1462 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/lang.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/lang.cpp b/Source/lang.cpp index 0a4ca466..e1189268 100644 --- a/Source/lang.cpp +++ b/Source/lang.cpp @@ -261,9 +261,11 @@ int CEXEBuild::WriteStringTables() { SCRIPT_MSG("Generating language tables... "); // If we have no tables (user didn't set any string and didn't load any NLF) create the default one - LANGID lang = 1033; - StringTable *table = GetTable(lang); - if (!table) return PS_ERROR; + if (!string_tables.size()) { + LANGID lang = 1033; + StringTable *table = GetTable(lang); + if (!table) return PS_ERROR; + } // Fill tables with defaults (if needed) and with instruction strings int st_num = string_tables.size();