summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luapatch-languages.h10
-rw-r--r--luapatch.cpp9
2 files changed, 17 insertions, 2 deletions
diff --git a/luapatch-languages.h b/luapatch-languages.h
index 0a0f87b..0d9d5a5 100644
--- a/luapatch-languages.h
+++ b/luapatch-languages.h
@@ -22,6 +22,7 @@ struct texts_t {
};
struct texts_t t_english[] = {
+ {-1, IDD_ABOUT, "About..."},
{IDC_ABOUTTEXT, IDD_ABOUT,
"LuaPatch version 0.4.0\n"
"Hand made special MFC version\n\n"
@@ -57,6 +58,7 @@ struct texts_t t_english[] = {
};
struct texts_t t_french[] = {
+ {-1, IDD_ABOUT, "A propos de..."},
{IDC_ABOUTTEXT, IDD_ABOUT,
"LuaPatch version 0.4.0\n"
"Version artisanale spéciale MFC\n\n"
@@ -117,6 +119,7 @@ struct texts_t t_german[] = {
};
struct texts_t t_spanish[] = {
+ {-1, IDD_ABOUT, "Acerca de..."},
{IDC_ABOUTTEXT, IDD_ABOUT,
"LuaPatch versión 0.4.0\n"
"Versión especial MFC hecha a mano\n\n"
@@ -124,9 +127,12 @@ struct texts_t t_spanish[] = {
"Copyrignt © 2003-2005 Nicolas \"Pixel\" Noble / NOBIS\n\n"
"http://www.nobis-crew.org/luapatch/\n"
"http://www.nobis-crew.org/"},
+ {IDOK, IDD_ABOUT, "Aceptar"},
+ {IDOK, IDD_FILESELECT, "Aceptar"},
{IDCANCEL, IDD_FILESELECT, "Salir"},
{IDC_ABOUT, IDD_FILESELECT, "Acerca de"},
{IDC_ST_SOURCETYPE, IDD_FILESELECT, "Tipo de fuente:"},
+ {IDC_ST_SOURCE, IDD_FILESELECT, "Fuente:"},
{IDC_ST_DEST, IDD_FILESELECT, "Archivo de destino:"},
{IDC_ST_PATCH, IDD_FILESELECT, "Parche:"},
@@ -149,6 +155,7 @@ struct texts_t t_spanish[] = {
};
struct texts_t t_portuguese[] = {
+ {-1, IDD_ABOUT, "Sobre..."},
{IDC_ABOUTTEXT, IDD_ABOUT,
"LuaPatch versão 0.4.0\n"
"Feito em uma versão especial da MFC\n\n"
@@ -156,9 +163,12 @@ struct texts_t t_portuguese[] = {
"Copyrignt © 2003-2005 Nicolas \"Pixel\" Noble / NOBIS\n\n"
"http://www.nobis-crew.org/luapatch/\n"
"http://www.nobis-crew.org/"},
+ {IDOK, IDD_ABOUT, "Aceitar"},
+ {IDOK, IDD_FILESELECT, "Aceitar"},
{IDCANCEL, IDD_FILESELECT, "Sair"},
{IDC_ABOUT, IDD_FILESELECT, "Sobre"},
{IDC_ST_SOURCETYPE, IDD_FILESELECT, "Tipo do arquivo:"},
+ {IDC_ST_SOURCE, IDD_FILESELECT, "Fonte:"},
{IDC_ST_DEST, IDD_FILESELECT, "Arquivo de destino:"},
{IDC_ST_PATCH, IDD_FILESELECT, "Arquivo de Patch:"},
diff --git a/luapatch.cpp b/luapatch.cpp
index 369b55a..07e129d 100644
--- a/luapatch.cpp
+++ b/luapatch.cpp
@@ -99,8 +99,13 @@ void translate(int ownerid, HWND hW) {
return;
for (txt = t->trad; txt->str; txt++) {
- if (txt->owner == ownerid)
- SetDlgItemText(hW, txt->id, txt->str);
+ if (txt->owner == ownerid) {
+ if (txt->id == -1) {
+ SetWindowText(hW, txt->str);
+ } else {
+ SetDlgItemText(hW, txt->id, txt->str);
+ }
+ }
}
}