[vala/wip/gettext: 10/12] vala: Unify some strings in girparser



commit 48e7c6ae2aadb375b3098cbef3ed679a610bac45
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 5911bd769..150a44cfa 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 ();
                        }
 
@@ -2801,7 +2801,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 ();
                        }
 
@@ -2884,7 +2884,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 ();
                        }
 
@@ -2942,7 +2942,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 ();
                        }
 
@@ -3404,7 +3404,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 ();
                        }
 
@@ -3445,7 +3445,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 ();
                                }
 
@@ -3490,7 +3490,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 ();
                        }
 
@@ -3753,7 +3753,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]