PackageManager: German Translation and CreateOptions()

svn path=/trunk/; revision=15332
This commit is contained in:
Maarten Bosma 2005-05-16 10:53:46 +00:00
parent 3d2c746433
commit 0b6d2a809b
9 changed files with 44 additions and 14 deletions

View file

@ -1,3 +0,0 @@
<options>
<source>http://svn.reactos.com/viewcvs/*checkout*/trunk/rosapps/packmgr/tree/</source>
</options>

View file

@ -1,3 +0,0 @@
<options>
<source>http://svn.reactos.com/viewcvs/*checkout*/trunk/rosapps/packmgr/tree/</source>
</options>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

View file

@ -20,4 +20,6 @@ BEGIN
ERR_READY "Zvolili jste si instalaci %d balíčkú. Aby jste je nainstalovali je třeba abyste přečetli a souhlasili s jejich licencemi. \n\nChcete nadále pokračovat ?"
END
123 RCDATA "options.xml"
/* EOF */

View file

@ -20,4 +20,6 @@ BEGIN
ERR_READY "You choosen to install %d package(s). To install them you have to read and agree with each of thier licences. \n\nDo you want still want to ?"
END
123 RCDATA "options.xml"
/* EOF */

View file

@ -20,4 +20,6 @@ BEGIN
ERR_READY "You choosen to install %d package(s). To install them you have to read and agree with each of thier licences.\n\n Do you want still want to ?"
END
123 RCDATA "options.xml"
/* EOF */

View file

@ -34,7 +34,7 @@ void Log (const char *message)
LogCreated = true;
//HTML Header
fputs("<html><head><title>Logfile</title></head><body>", file);
fputs("<html><head><title>Logfile</title></head><body>\n", file);
// date and time
time_t now;
@ -53,15 +53,19 @@ void Log (const char *message)
KERNEL_VERSION_MINOR,
KERNEL_VERSION_PATCH_LEVEL);
fputs("<h2>ReactOS Package Manager - Log File</h2><br>\n", file);
fputs("WARNING: This is still pre-alpha software.<br>\n", file);
// write the head
fputs("<h2>ReactOS Package Manager - Log File</h2>\n", file);
//fputs("WARNING: This is still pre-alpha software.<br>\n", file);
fputs("Date: ", file);
fputs(GTime, file);
fputs("<br>\n", file);
fputs("Version: ", file);
fputs(version, file);
fputs("<br>\n", file);
fputs("OS: ", file);
fputs(versionos, file);
fputs("<br>\n", file);
}
@ -84,11 +88,11 @@ void Log (const char *message)
time_t now;
now = time(NULL);
strftime(GTime,sizeof GTime,"%I:%M:%S %p ",localtime(&now));
strftime(GTime,sizeof GTime,"%I:%M:%S %p",localtime(&now));
fputs("<b>", file);
fputs(GTime, file);
fputs("</b>", file);
fputs("</b> ", file);
fputs(message, file);
fclose(file);

View file

@ -14,6 +14,8 @@
#include "log.h"
#include "expat.h"
#include <fstream>
int PML_XmlDownload (pTree tree, const char* url, void* usrdata,
XML_StartElementHandler start, XML_EndElementHandler end, XML_CharacterDataHandler text) ;
@ -53,13 +55,36 @@ void opt_text (void* usrdata, const char* data, int len)
}
// ! ! ! F I X M E ! ! ! //
/*
int CreateOptions (TREE* tree)
{
// string source;
ofstream file ("options.xml");
// ifstream file ("help.txt", ios_base::in);
Log("* Creating options,xml");
Log("* Creating options.xml from Resources");
HRSRC hres = FindResource(GetModuleHandle(L"package"), MAKEINTRESOURCE(123), RT_RCDATA);
if (!hres)
{
Log("! ERROR: Could not load it !");
return ERR_GENERIC;
}
MessageBox(0,(WCHAR*)LockResource(LoadResource(NULL, hres)), 0, 0); // is empty
//file << (WCHAR*)LockResource(LoadResource(NULL, hres));
return ERR_OK;
}
*/
char* PML_Download (pTree, const char* url, const char* server, const char* filename);
int CreateOptions (TREE* tree)
{
Log("* Load options.xml from the Internet (Temporary Hack)");
CopyFileA( PML_Download(tree, "http://svn.reactos.com/viewcvs/*checkout*/trunk/rosapps/packmgr/gui/options.xml", NULL, "options.xml"), "options.xml", TRUE);
return ERR_OK;
}

View file

@ -11,6 +11,7 @@
/* Language specific */
#include "en.rc"
#include "de.rc"
#include "cz.rc"
#include "es.rc"