summaryrefslogtreecommitdiff
path: root/plugins/readelf
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 /plugins/readelf
parent14639bc1b49ded61ce4fe674bf5dbb5a6345d734 (diff)
Translated some strings depending on initialised condition.
Diffstat (limited to 'plugins/readelf')
-rw-r--r--plugins/readelf/program.c2
-rw-r--r--plugins/readelf/section.c3
2 files changed, 5 insertions, 0 deletions
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;