[vala/wip/gettext: 12/13] vala: Unifiy some strings in girparser
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/gettext: 12/13] vala: Unifiy some strings in girparser
- Date: Sun, 22 Apr 2018 15:56:27 +0000 (UTC)
commit fa45542b6b199548d1d2983c899d7130ac4979e0
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Apr 22 09:32:54 2018 +0200
vala: Unifiy some strings in girparser
vala/valagirparser.vala | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/vala/valagirparser.vala b/vala/valagirparser.vala
index 70963af..73cab02 100644
--- a/vala/valagirparser.vala
+++ b/vala/valagirparser.vala
@@ -1923,7 +1923,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 ();
}
}
@@ -2189,7 +2189,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 ();
}
@@ -2790,7 +2790,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 ();
}
@@ -2873,7 +2873,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 ();
}
@@ -2931,7 +2931,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 ();
}
@@ -3393,7 +3393,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 ();
}
@@ -3434,7 +3434,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 ();
}
@@ -3479,7 +3479,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 ();
}
@@ -3729,7 +3729,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]