projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a7bd9d
)
automatically switch to build in language if a custom language string is missing
author
pk910
<philipp@zoelle1.de>
Mon, 19 Sep 2011 00:53:15 +0000
(
02:53
+0200)
committer
pk910
<philipp@zoelle1.de>
Mon, 19 Sep 2011 00:53:15 +0000
(
02:53
+0200)
lang.c
patch
|
blob
|
history
diff --git
a/lang.c
b/lang.c
index b145822974e13293c31f89aacb116bb85efb0224..3aaca2f90be0719c1ad520f371826288d9b6e7df 100644
(file)
--- a/
lang.c
+++ b/
lang.c
@@
-154,6
+154,11
@@
char *get_language_string(struct UserNode *user, const char* msg_ident) {
if(!strcmp(entry->ident, msg_ident))
return entry->text;
}
+ if(lang == lang_c) return NULL;
+ for(entry = lang_c->entrys[cindex]; entry; entry = entry->next) {
+ if(!strcmp(entry->ident, msg_ident))
+ return entry->text;
+ }
return NULL;
}