diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-07-14 10:48:51 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-07-14 10:48:51 (GMT) |
commit | ea6c3bdb7ff6d65b883a415cf1b46854d37568f3 (patch) | |
tree | 5fe2d9ca69896e9972c58fe79904a567c6d4061f /plugins | |
parent | 14639bc1b49ded61ce4fe674bf5dbb5a6345d734 (diff) |
Translated some strings depending on initialised condition.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/readdex/ids.c | 2 | ||||
-rw-r--r-- | plugins/readelf/program.c | 2 | ||||
-rw-r--r-- | plugins/readelf/section.c | 3 |
3 files changed, 7 insertions, 0 deletions
diff --git a/plugins/readdex/ids.c b/plugins/readdex/ids.c index f65f5ec..e09036e 100644 --- a/plugins/readdex/ids.c +++ b/plugins/readdex/ids.c @@ -300,9 +300,11 @@ bool annotate_dex_string_ids(const GDexFormat *format, GPreloadInfo *info, GtkSt field.repeat = 1; parts[0].is_static = true; + parts[0].avoid_i18n = false; parts[0].static_text = __("Offset for string item #"); parts[1].is_static = false; + parts[1].avoid_i18n = true; asprintf(&parts[1].dynamic_text, "%u/%u", i, header->string_ids_size - 1); field.ctype = FCT_MULTI; diff --git a/plugins/readelf/program.c b/plugins/readelf/program.c index a71e1d1..107f048 100644 --- a/plugins/readelf/program.c +++ b/plugins/readelf/program.c @@ -273,9 +273,11 @@ static bool annotate_elf_program_header(GElfFormat *format, GPreloadInfo *info, else { parts[0].is_static = true; + parts[0].avoid_i18n = false; parts[0].static_text = __("Segment flags: "); parts[1].is_static = false; + parts[1].avoid_i18n = true; parts[1].dynamic_text = rights; flags_field.ctype = FCT_MULTI; diff --git a/plugins/readelf/section.c b/plugins/readelf/section.c index eee20b5..3a71225 100644 --- a/plugins/readelf/section.c +++ b/plugins/readelf/section.c @@ -308,6 +308,7 @@ static bool annotate_elf_section_header(GElfFormat *format, GPreloadInfo *info, else { nparts[0].is_static = true; + nparts[0].avoid_i18n = false; nparts[0].static_text = __("Segment name: "); nparts[1].is_static = true; @@ -356,9 +357,11 @@ static bool annotate_elf_section_header(GElfFormat *format, GPreloadInfo *info, else { fparts[0].is_static = true; + fparts[0].avoid_i18n = false; fparts[0].static_text = __("Section flags: "); fparts[1].is_static = false; + fparts[1].avoid_i18n = true; fparts[1].dynamic_text = rights; flags_field.ctype = FCT_MULTI; |