summaryrefslogtreecommitdiff
path: root/luapatch.cpp
diff options
context:
space:
mode:
authorpixel <pixel>2004-12-19 16:19:00 +0000
committerpixel <pixel>2004-12-19 16:19:00 +0000
commitf30523f7852aeed7d31a1f947e36a6284efdb23b (patch)
treebee0d3ea56773b6088ea62e1826010d3836aa7ac /luapatch.cpp
parent37ff64147f717b01098c22afbb58f17a0e9cb293 (diff)
Updating luapatch's languages.
Diffstat (limited to 'luapatch.cpp')
-rw-r--r--luapatch.cpp9
1 files changed, 7 insertions, 2 deletions
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);
+ }
+ }
}
}