[gnome-clocks/wip/vala] Localize am/pm
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/wip/vala] Localize am/pm
- Date: Mon, 18 Feb 2013 08:47:42 +0000 (UTC)
commit 76fe1a0ca1dcfb0e9579bc0615e40446c5c355de
Author: Paolo Borelli <pborelli gnome org>
Date: Mon Feb 18 09:47:08 2013 +0100
Localize am/pm
src/widgets.vala | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/src/widgets.vala b/src/widgets.vala
index dd7224e..dee476b 100644
--- a/src/widgets.vala
+++ b/src/widgets.vala
@@ -498,10 +498,13 @@ public class AmPmToggleButton : Gtk.Button {
public AmPmToggleButton () {
stack = new Gd.Stack ();
+ stack.duration = 0;
- // TODO: get translated AM/PM strings from the system
- am_label = new Gtk.Label ("AM");
- pm_label = new Gtk.Label ("PM");
+ var str = (new GLib.DateTime.utc (1, 1, 1, 0, 0, 0)).format ("%p");
+ am_label = new Gtk.Label (str);
+
+ str = (new GLib.DateTime.utc (1, 1, 1, 12, 0, 0)).format ("%p");
+ pm_label = new Gtk.Label (str);
stack.add (am_label);
stack.add (pm_label);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]