mirror of
https://github.com/reactos/reactos.git
synced 2025-08-11 14:15:35 +00:00
PackageManager: German Translation and CreateOptions()
svn path=/trunk/; revision=15332
This commit is contained in:
parent
3d2c746433
commit
0b6d2a809b
9 changed files with 44 additions and 14 deletions
|
@ -1,3 +0,0 @@
|
||||||
<options>
|
|
||||||
<source>http://svn.reactos.com/viewcvs/*checkout*/trunk/rosapps/packmgr/tree/</source>
|
|
||||||
</options>
|
|
|
@ -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 |
|
@ -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 ?"
|
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
|
END
|
||||||
|
|
||||||
|
123 RCDATA "options.xml"
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -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 ?"
|
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
|
END
|
||||||
|
|
||||||
|
123 RCDATA "options.xml"
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -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 ?"
|
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
|
END
|
||||||
|
|
||||||
|
123 RCDATA "options.xml"
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -34,7 +34,7 @@ void Log (const char *message)
|
||||||
LogCreated = true;
|
LogCreated = true;
|
||||||
|
|
||||||
//HTML Header
|
//HTML Header
|
||||||
fputs("<html><head><title>Logfile</title></head><body>", file);
|
fputs("<html><head><title>Logfile</title></head><body>\n", file);
|
||||||
|
|
||||||
// date and time
|
// date and time
|
||||||
time_t now;
|
time_t now;
|
||||||
|
@ -53,15 +53,19 @@ void Log (const char *message)
|
||||||
KERNEL_VERSION_MINOR,
|
KERNEL_VERSION_MINOR,
|
||||||
KERNEL_VERSION_PATCH_LEVEL);
|
KERNEL_VERSION_PATCH_LEVEL);
|
||||||
|
|
||||||
fputs("<h2>ReactOS Package Manager - Log File</h2><br>\n", file);
|
// write the head
|
||||||
fputs("WARNING: This is still pre-alpha software.<br>\n", file);
|
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("Date: ", file);
|
||||||
fputs(GTime, file);
|
fputs(GTime, file);
|
||||||
fputs("<br>\n", file);
|
fputs("<br>\n", file);
|
||||||
|
|
||||||
|
fputs("Version: ", file);
|
||||||
fputs(version, file);
|
fputs(version, file);
|
||||||
fputs("<br>\n", file);
|
fputs("<br>\n", file);
|
||||||
|
|
||||||
|
fputs("OS: ", file);
|
||||||
fputs(versionos, file);
|
fputs(versionos, file);
|
||||||
fputs("<br>\n", file);
|
fputs("<br>\n", file);
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,8 @@
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
#include "expat.h"
|
#include "expat.h"
|
||||||
|
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
|
|
||||||
int PML_XmlDownload (pTree tree, const char* url, void* usrdata,
|
int PML_XmlDownload (pTree tree, const char* url, void* usrdata,
|
||||||
XML_StartElementHandler start, XML_EndElementHandler end, XML_CharacterDataHandler text) ;
|
XML_StartElementHandler start, XML_EndElementHandler end, XML_CharacterDataHandler text) ;
|
||||||
|
@ -53,12 +55,35 @@ void opt_text (void* usrdata, const char* data, int len)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// ! ! ! F I X M E ! ! ! //
|
||||||
|
/*
|
||||||
int CreateOptions (TREE* tree)
|
int CreateOptions (TREE* tree)
|
||||||
{
|
{
|
||||||
// string source;
|
ofstream file ("options.xml");
|
||||||
|
|
||||||
// ifstream file ("help.txt", ios_base::in);
|
Log("* Creating options.xml from Resources");
|
||||||
Log("* Creating options,xml");
|
|
||||||
|
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;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
/* Language specific */
|
/* Language specific */
|
||||||
|
|
||||||
#include "en.rc"
|
#include "en.rc"
|
||||||
|
#include "de.rc"
|
||||||
#include "cz.rc"
|
#include "cz.rc"
|
||||||
#include "es.rc"
|
#include "es.rc"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue