[vala/wip/gettext: 11/12] vala: Unify some strings in scanner
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/gettext: 11/12] vala: Unify some strings in scanner
- Date: Fri, 21 Sep 2018 07:19:59 +0000 (UTC)
commit 4f8f64c2fc1b77216a73133324fed5482b632e91
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Jul 15 12:02:15 2018 +0200
vala: Unify some strings in scanner
vala/valageniescanner.vala | 8 ++++----
vala/valascanner.vala | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/vala/valageniescanner.vala b/vala/valageniescanner.vala
index a031e1666..21f36da37 100644
--- a/vala/valageniescanner.vala
+++ b/vala/valageniescanner.vala
@@ -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;
diff --git a/vala/valascanner.vala b/vala/valascanner.vala
index 711745ab3..5f9591b9c 100644
--- a/vala/valascanner.vala
+++ b/vala/valascanner.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]