[vala/wip/gettext: 356/358] vala: Unify some strings in girparser
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/gettext: 356/358] vala: Unify some strings in girparser
- Date: Mon, 4 Feb 2019 09:57:22 +0000 (UTC)
commit db4a68e589173a7111bea31e9912519ecbf87259
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Apr 22 09:32:54 2018 +0200
vala: Unify some strings in girparser
vala/valagirparser.vala | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index e6dbe9ce2..46fed01e5 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1927,7 +1927,7 @@ public class Vala.GirParser : CodeVisitor {
parse_c_include ();
} else {
// error
- Report.error (get_current_src (), _("unknown child element `%s' in
`repository'").printf (reader.name));
+ Report.error (get_current_src (), _("unknown child element `%s' in
`%s'").printf (reader.name, "repository"));
skip_element ();
}
}
@@ -2193,7 +2193,7 @@ public class Vala.GirParser : CodeVisitor {
parse_constant ();
} else {
// error
- Report.error (get_current_src (), _("unknown child element `%s' in
`namespace'").printf (reader.name));
+ Report.error (get_current_src (), _("unknown child element `%s' in
`%s'").printf (reader.name, "namespace"));
skip_element ();
}
@@ -2805,7 +2805,7 @@ public class Vala.GirParser : CodeVisitor {
parse_union ();
} else {
// error
- Report.error (get_current_src (), _("unknown child element `%s' in
`record'").printf (reader.name));
+ Report.error (get_current_src (), _("unknown child element `%s' in
`%s'").printf (reader.name, "record"));
skip_element ();
}
@@ -2888,7 +2888,7 @@ public class Vala.GirParser : CodeVisitor {
parse_signal ();
} else {
// error
- Report.error (get_current_src (), _("unknown child element `%s' in
`class'").printf (reader.name));
+ Report.error (get_current_src (), _("unknown child element `%s' in
`%s'").printf (reader.name, "class"));
skip_element ();
}
@@ -2946,7 +2946,7 @@ public class Vala.GirParser : CodeVisitor {
parse_signal ();
} else {
// error
- Report.error (get_current_src (), _("unknown child element `%s' in
`interface'").printf (reader.name));
+ Report.error (get_current_src (), _("unknown child element `%s' in
`%s'").printf (reader.name, "interface"));
skip_element ();
}
@@ -3427,7 +3427,7 @@ public class Vala.GirParser : CodeVisitor {
parse_union ();
} else {
// error
- Report.error (get_current_src (), _("unknown child element `%s' in
`class'").printf (reader.name));
+ Report.error (get_current_src (), _("unknown child element `%s' in
`%s'").printf (reader.name, "class"));
skip_element ();
}
@@ -3470,7 +3470,7 @@ public class Vala.GirParser : CodeVisitor {
parse_field ();
} else {
// error
- Report.error (get_current_src (), _("unknown child element `%s' in
`transparent union'").printf (reader.name));
+ Report.error (get_current_src (), _("unknown child element `%s' in
`%s'").printf (reader.name, "transparent union"));
skip_element ();
}
@@ -3515,7 +3515,7 @@ public class Vala.GirParser : CodeVisitor {
parse_record ();
} else {
// error
- Report.error (get_current_src (), _("unknown child element `%s' in
`union'").printf (reader.name));
+ Report.error (get_current_src (), _("unknown child element `%s' in
`%s'").printf (reader.name, "union"));
skip_element ();
}
@@ -3780,7 +3780,7 @@ public class Vala.GirParser : CodeVisitor {
if (return_type is ArrayType && node.return_array_length_idx >= 0) {
if (node.return_array_length_idx >= parameters.size) {
- Report.error (return_type.source_reference, _("invalid array length index"));
+ Report.error (return_type.source_reference, _("invalid array_length index"));
} else {
parameters[node.return_array_length_idx].keep = false;
node.array_length_parameters.add (node.return_array_length_idx);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]