Tutorial with french language

This commit is contained in:
Enno Rehling 2003-05-05 14:53:15 +00:00
parent af0d89f4f9
commit fe730848d2
5 changed files with 2798 additions and 819 deletions

View File

@ -2085,7 +2085,7 @@ const char * strings[] = {
}; };
const char * localenames[] = { const char * localenames[] = {
"de", "en", "de", "en", "fr",
NULL NULL
}; };
@ -2164,24 +2164,6 @@ init_data(const char * filename)
l = read_xml(filename, NULL); l = read_xml(filename, NULL);
if (l) return l; if (l) return l;
/* old stuff, for removal: */
for (l=0;localenames[l];++l) {
char zText[MAX_PATH];
int i;
for (i=0;strings[i];++i) {
FILE * F;
sprintf(zText, strings[i], resourcepath(), localenames[l]);
F = fopen(zText, "r+");
if (F) {
read_strings(F);
fclose(F);
} else {
sprintf(buf, "fopen(%s): ", zText);
perror(buf);
return 1;
}
}
}
return 0; return 0;
} }

View File

@ -77,7 +77,7 @@
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
Optimization="0" Optimization="0"
ImproveFloatingPointConsistency="TRUE" ImproveFloatingPointConsistency="TRUE"
AdditionalIncludeDirectories="../common/kernel,../common/gamecode,../common/util,../common,.." AdditionalIncludeDirectories="$(CURSES_ROOT)/include;../common/kernel,../common/gamecode,../common/util,../common,.."
PreprocessorDefinitions="_CONSOLE,WIN32" PreprocessorDefinitions="_CONSOLE,WIN32"
BasicRuntimeChecks="0" BasicRuntimeChecks="0"
RuntimeLibrary="4" RuntimeLibrary="4"
@ -101,6 +101,7 @@
OutputFile=".\Debug/mapper.exe" OutputFile=".\Debug/mapper.exe"
LinkIncremental="2" LinkIncremental="2"
SuppressStartupBanner="TRUE" SuppressStartupBanner="TRUE"
AdditionalLibraryDirectories="$(CURSES_ROOT)\lib"
GenerateDebugInformation="TRUE" GenerateDebugInformation="TRUE"
ProgramDatabaseFile=".\Debug/mapper.pdb" ProgramDatabaseFile=".\Debug/mapper.pdb"
SubSystem="1"/> SubSystem="1"/>

File diff suppressed because it is too large Load Diff

1937
src/res/fr/strings.xml Normal file

File diff suppressed because it is too large Load Diff

View File

@ -6,6 +6,7 @@
<comment>English Localization</comment> <comment>English Localization</comment>
<include file="en/messages.xml"></include> <include file="en/messages.xml"></include>
<include file="en/strings.xml"></include> <include file="en/strings.xml"></include>
<include file="fr/strings.xml"></include>
<include file="races.xml"></include> <include file="races.xml"></include>
<include file="resources.xml"></include> <include file="resources.xml"></include>