diff options
author | Bruno Haible <bruno@clisp.org> | 2003-10-07 10:04:07 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:11:02 +0200 |
commit | 6fb806a059189a473f440a4aae562f3ea7261783 (patch) | |
tree | 5bcfe2a9e57d516cf2f35a776dc6f7df880357fd /gettext-tools | |
parent | e58058e8387ca35225c66e2d19a3f585ee3a3968 (diff) | |
download | external_gettext-6fb806a059189a473f440a4aae562f3ea7261783.zip external_gettext-6fb806a059189a473f440a4aae562f3ea7261783.tar.gz external_gettext-6fb806a059189a473f440a4aae562f3ea7261783.tar.bz2 |
Implement --extract-all for Glade.
Diffstat (limited to 'gettext-tools')
-rw-r--r-- | gettext-tools/src/ChangeLog | 4 | ||||
-rw-r--r-- | gettext-tools/src/x-glade.c | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 8812f65..eb692db 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,7 @@ +2003-09-22 Bruno Haible <bruno@clisp.org> + + * x-glade.c (start_element_handler): Implement extract_all behaviour. + 2003-10-04 Bruno Haible <bruno@clisp.org> * x-glade.c (do_extract_glade): Initialize stack_depth. diff --git a/gettext-tools/src/x-glade.c b/gettext-tools/src/x-glade.c index f192558..72e4e5d 100644 --- a/gettext-tools/src/x-glade.c +++ b/gettext-tools/src/x-glade.c @@ -230,9 +230,11 @@ start_element_handler (void *userData, const char *name, stack[stack_depth - 1].extract_string = false; p = &stack[stack_depth]; + p->extract_string = extract_all; /* In Glade 1, a few specific elements are translatable. */ - p->extract_string = - (find_entry (&keywords, name, strlen (name), &hash_result) == 0); + if (!p->extract_string) + p->extract_string = + (find_entry (&keywords, name, strlen (name), &hash_result) == 0); /* In Glade 2, all <property> and <atkproperty> elements are translatable that have the attribute translatable="yes". */ if (!p->extract_string |