Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
i18n: only rename widgets when language really changed
  • Loading branch information
Sebastien Bourdeauducq committed Jun 17, 2011
1 parent aec293f commit 8467005
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/i18n.c
Expand Up @@ -64,12 +64,14 @@ void mtk_set_language(struct mtk_i18n_entry *table)
int i;
SCOPE *s;

current_table = table;
if(current_table != table) {
current_table = table;

for(i=1;i<64;i++) {
s = appman->get_rootscope(i);
if(s != NULL)
s->scope->enumerate(s, ec, (void *)i);
for(i=1;i<64;i++) {
s = appman->get_rootscope(i);
if(s != NULL)
s->scope->enumerate(s, ec, (void *)i);
}
}
}

Expand Down

0 comments on commit 8467005

Please sign in to comment.