summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-07-14 10:48:51 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-07-14 10:48:51 (GMT)
commitea6c3bdb7ff6d65b883a415cf1b46854d37568f3 (patch)
tree5fe2d9ca69896e9972c58fe79904a567c6d4061f
parent14639bc1b49ded61ce4fe674bf5dbb5a6345d734 (diff)
Translated some strings depending on initialised condition.
-rw-r--r--ChangeLog7
-rw-r--r--plugins/readdex/ids.c2
-rw-r--r--plugins/readelf/program.c2
-rw-r--r--plugins/readelf/section.c3
4 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0fd0682..fea6791 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
17-07-14 Cyrille Bagard <nocbos@gmail.com>
+ * plugins/readdex/ids.c:
+ * plugins/readelf/program.c:
+ * plugins/readelf/section.c:
+ Translate some strings depending on initialised condition.
+
+17-07-14 Cyrille Bagard <nocbos@gmail.com>
+
* src/common/array.c:
Fix some atomic accesses and a few memory leaks in flat arrays.
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;