[gnome-boxes] i-props-provider: Avoid markup in translatable strings
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] i-props-provider: Avoid markup in translatable strings
- Date: Tue, 1 Sep 2015 12:31:00 +0000 (UTC)
commit fbce1df0054bd6022e9d912d088fb175759da275
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Tue Sep 1 13:26:47 2015 +0100
i-props-provider: Avoid markup in translatable strings
This reduces pango markup translators are exposed to.
https://bugzilla.gnome.org/show_bug.cgi?id=754044
src/i-properties-provider.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/i-properties-provider.vala b/src/i-properties-provider.vala
index 4e0e453..539b4d0 100644
--- a/src/i-properties-provider.vala
+++ b/src/i-properties-provider.vala
@@ -98,7 +98,7 @@ private class Boxes.SizeProperty : Boxes.Property {
return;
// Translators: This is memory or disk size. E.g. "1 GB (recommended)".
- var size = _("<small>%s (recommended)</small>").printf (format_size (value, format_flags));
+ var size = "<small>" + _("%s (recommended)").printf (format_size (value, format_flags)) +
"</small>";
scale.add_mark (value, Gtk.PositionType.BOTTOM, size);
}
}
@@ -128,7 +128,7 @@ private class Boxes.SizeProperty : Boxes.Property {
scale.add_mark (min, Gtk.PositionType.BOTTOM, size_str);
// Translators: This is memory or disk size. E.g. "1 GB (maximum)".
- size_str = _("<small>%s (maximum)</small>").printf (format_size (max, format_flags));
+ size_str = "<small>" + _("%s (maximum)").printf (format_size (max, format_flags)) + "</small>";
scale.add_mark (max, Gtk.PositionType.BOTTOM, size_str);
scale.set_show_fill_level (true);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]