[vala/wip/gettext: 10/13] vala: Don't translate "internal error" messages



commit eac358c4440f485efdddbeb2c9d6722b7468f0ab
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Fri Apr 20 20:30:07 2018 +0200

    vala: Don't translate "internal error" messages

 vala/valaarraycreationexpression.vala |    2 +-
 vala/valamemberaccess.vala            |    2 +-
 vala/valapointerindirection.vala      |    2 +-
 vala/valasemanticanalyzer.vala        |    6 +++---
 vala/valasymbolresolver.vala          |    2 +-
 vala/valatypeparameter.vala           |    2 +-
 vala/valaunaryexpression.vala         |    2 +-
 7 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/vala/valaarraycreationexpression.vala b/vala/valaarraycreationexpression.vala
index a76ee28..72272e9 100644
--- a/vala/valaarraycreationexpression.vala
+++ b/vala/valaarraycreationexpression.vala
@@ -235,7 +235,7 @@ public class Vala.ArrayCreationExpression : Expression {
                        if (initlist == null) {
                                error = true;
                                /* this is an internal error because it is already handeld by the parser */
-                               Report.error (source_reference, _("internal error: initializer list 
expected"));
+                               Report.error (source_reference, "internal error: initializer list expected");
                        } else {
                                foreach (Expression size in calc_sizes) {
                                        append_size (size);
diff --git a/vala/valamemberaccess.vala b/vala/valamemberaccess.vala
index b2c6d93..f89dd03 100644
--- a/vala/valamemberaccess.vala
+++ b/vala/valamemberaccess.vala
@@ -566,7 +566,7 @@ public class Vala.MemberAccess : Expression {
                        var block = c.parent_symbol as Block;
                        if (block != null && context.analyzer.find_parent_method_or_property_accessor (block) 
!= context.analyzer.current_method_or_property_accessor) {
                                error = true;
-                               Report.error (source_reference, _("internal error: accessing local constants 
of outer methods is not supported yet"));
+                               Report.error (source_reference, "internal error: accessing local constants of 
outer methods is not supported yet");
                                return false;
                        }
                } else if (member is Method) {
diff --git a/vala/valapointerindirection.vala b/vala/valapointerindirection.vala
index 4ffcb2f..2b0d584 100644
--- a/vala/valapointerindirection.vala
+++ b/vala/valapointerindirection.vala
@@ -85,7 +85,7 @@ public class Vala.PointerIndirection : Expression {
                }
                if (inner.value_type == null) {
                        error = true;
-                       Report.error (source_reference, _("internal error: unknown type of inner 
expression"));
+                       Report.error (source_reference, "internal error: unknown type of inner expression");
                        return false;
                }
                if (inner.value_type is PointerType) {
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index 0f1ac4f..88a9522 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -362,7 +362,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
                } else if (sym is ErrorCode) {
                        type = new ErrorType ((ErrorDomain) sym.parent_symbol, (ErrorCode) sym);
                } else {
-                       Report.error (null, _("internal error: `%s' is not a supported type").printf 
(sym.get_full_name ()));
+                       Report.error (null, "internal error: `%s' is not a supported type".printf 
(sym.get_full_name ()));
                        return new InvalidType ();
                }
 
@@ -852,7 +852,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
                                        param_index = instance_type.data_type.get_type_parameter_index 
(generic_type.type_parameter.name);
                                }
                                if (param_index == -1) {
-                                       Report.error (node_reference.source_reference, _("internal error: 
unknown type parameter %s").printf (generic_type.type_parameter.name));
+                                       Report.error (node_reference.source_reference, "internal error: 
unknown type parameter %s".printf (generic_type.type_parameter.name));
                                        node_reference.error = true;
                                        return new InvalidType ();
                                }
@@ -867,7 +867,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
 
                        int param_index = m.get_type_parameter_index (generic_type.type_parameter.name);
                        if (param_index == -1) {
-                               Report.error (node_reference.source_reference, _("internal error: unknown 
type parameter %s").printf (generic_type.type_parameter.name));
+                               Report.error (node_reference.source_reference, "internal error: unknown type 
parameter %s".printf (generic_type.type_parameter.name));
                                node_reference.error = true;
                                return new InvalidType ();
                        }
diff --git a/vala/valasymbolresolver.vala b/vala/valasymbolresolver.vala
index a84842b..577c73d 100644
--- a/vala/valasymbolresolver.vala
+++ b/vala/valasymbolresolver.vala
@@ -339,7 +339,7 @@ public class Vala.SymbolResolver : CodeVisitor {
                        } else if (sym is ErrorCode) {
                                type = new ErrorType ((ErrorDomain) sym.parent_symbol, (ErrorCode) sym, 
unresolved_type.source_reference);
                        } else {
-                               Report.error (unresolved_type.source_reference, _("internal error: `%s' is 
not a supported type").printf (sym.get_full_name ()));
+                               Report.error (unresolved_type.source_reference, "internal error: `%s' is not 
a supported type".printf (sym.get_full_name ()));
                                return new InvalidType ();
                        }
                } else {
diff --git a/vala/valatypeparameter.vala b/vala/valatypeparameter.vala
index 497ec7e..de0023b 100644
--- a/vala/valatypeparameter.vala
+++ b/vala/valatypeparameter.vala
@@ -51,7 +51,7 @@ public class Vala.TypeParameter : Symbol {
        public bool equals (TypeParameter param2) {
                /* only type parameters with a common scope are comparable */
                if (!owner.is_subscope_of (param2.owner) && !param2.owner.is_subscope_of (owner)) {
-                       Report.error (source_reference, _("internal error: comparing type parameters from 
different scopes"));
+                       Report.error (source_reference, "internal error: comparing type parameters from 
different scopes");
                        return false;
                }
 
diff --git a/vala/valaunaryexpression.vala b/vala/valaunaryexpression.vala
index 068c7d6..bb61dfa 100644
--- a/vala/valaunaryexpression.vala
+++ b/vala/valaunaryexpression.vala
@@ -242,7 +242,7 @@ public class Vala.UnaryExpression : Expression {
                        }
                } else {
                        error = true;
-                       Report.error (source_reference, _("internal error: unsupported unary operator"));
+                       Report.error (source_reference, "internal error: unsupported unary operator");
                        return false;
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]