aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/configreader.vala
diff options
context:
space:
mode:
Diffstat (limited to 'configreader.vala')
-rw-r--r--configreader.vala17
1 files changed, 12 insertions, 5 deletions
diff --git a/configreader.vala b/configreader.vala
index 6348d5e..46f6b1f 100644
--- a/configreader.vala
+++ b/configreader.vala
@@ -106,8 +106,12 @@ class ConfigReader {
} catch (KeyFileError e) {}
if (keys.length > 0) {
- string k = keys.length > 1 ? "keys" : "key";
- append_warning("Unknown %s in config: %s".printf(k, string.joinv(", ", keys)));
+ var keylist = string.joinv(", ", keys);
+ // TRANSLATORS: %s is the list of unknown keys joined with ', '
+ var warning = ngettext("unknown key in config: %s",
+ "unknown keys in config: %s", keys.length).printf(keylist);
+
+ append_warning(warning);
}
}
@@ -161,7 +165,8 @@ class ConfigReader {
var rgba = Gdk.RGBA();
if (!rgba.parse(str)) {
- append_warning("invalid colour '%s' in %s.%s".printf(str, group, key));
+ // TRANSLATORS: First %s is parsed colour, %s.%s is <group>.<key> from the config file
+ append_warning(_("invalid colour '%s' in %s.%s").printf(str, group, key));
rgba.parse(default);
return rgba;
@@ -181,7 +186,8 @@ class ConfigReader {
case "underline":
return UNDERLINE;
default:
- append_warning("invalid cursor shape '%s' in %s.%s".printf(cursor, group, key));
+ // TRANSLATORS: First %s is parsed shape, %s.%s is <group>.<key> from the config file
+ append_warning(_("invalid cursor shape '%s' in %s.%s").printf(cursor, group, key));
return BLOCK;
}
}
@@ -197,7 +203,8 @@ class ConfigReader {
case "system":
return SYSTEM;
default:
- append_warning("invalid cursor blink setting '%s' in %s.%s".printf(blink, group, key));
+ // TRANSLATORS: First %s is parsed blink setting, %s.%s is <group>.<key> from the config file
+ append_warning(_("invalid cursor blink setting '%s' in %s.%s").printf(blink, group, key));
return SYSTEM;
}
}