]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Unify some strings in scanner
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 15 Jul 2018 10:02:15 +0000 (12:02 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 11 Mar 2019 12:02:00 +0000 (13:02 +0100)
vala/valageniescanner.vala
vala/valascanner.vala

index a031e166622c293b0b70e6f231089ff1cc68854f..21f36da37530a26a68656f56a1ecba308c87951a 100644 (file)
@@ -136,25 +136,25 @@ public class Vala.Genie.Scanner {
                                        switch (current[0]) {
                                        case 'i':
                                                if (fl_i) {
-                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier 'i' used more than once"));
+                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier '%c' used more than once").printf ('i'));
                                                }
                                                fl_i = true;
                                                break;
                                        case 's':
                                                if (fl_s) {
-                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier 's' used more than once"));
+                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier '%c' used more than once").printf ('s'));
                                                }
                                                fl_s = true;
                                                break;
                                        case 'm':
                                                if (fl_m) {
-                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier 'm' used more than once"));
+                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier '%c' used more than once").printf ('m'));
                                                }
                                                fl_m = true;
                                                break;
                                        case 'x':
                                                if (fl_x) {
-                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier 'x' used more than once"));
+                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier '%c' used more than once").printf ('x'));
                                                }
                                                fl_x = true;
                                                break;
index 711745ab343f6fd976ac68b209378baa7765b448..5f9591b9cb40950c0f64bd1db3af8c15fbbd5317 100644 (file)
@@ -121,25 +121,25 @@ public class Vala.Scanner {
                                        switch (current[0]) {
                                        case 'i':
                                                if (fl_i) {
-                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier 'i' used more than once"));
+                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier '%c' used more than once").printf ('i'));
                                                }
                                                fl_i = true;
                                                break;
                                        case 's':
                                                if (fl_s) {
-                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier 's' used more than once"));
+                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier '%c' used more than once").printf ('s'));
                                                }
                                                fl_s = true;
                                                break;
                                        case 'm':
                                                if (fl_m) {
-                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier 'm' used more than once"));
+                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier '%c' used more than once").printf ('m'));
                                                }
                                                fl_m = true;
                                                break;
                                        case 'x':
                                                if (fl_x) {
-                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier 'x' used more than once"));
+                                                       Report.error (get_source_reference (token_length_in_chars), _("modifier '%c' used more than once").printf ('x'));
                                                }
                                                fl_x = true;
                                                break;