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
This commit is contained in:
kichik 2002-10-24 21:02:32 +00:00
parent 4c33582e77
commit 460b057813

View file

@ -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();