[gnome-shell] calendar: Fix number formatting in some languages
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] calendar: Fix number formatting in some languages
- Date: Mon, 26 Oct 2015 16:48:53 +0000 (UTC)
commit 3e602b1765a281fdd8c4a81b4727b9d77e770695
Author: Bastien Nocera <hadess hadess net>
Date: Tue Aug 25 12:11:20 2015 +0200
calendar: Fix number formatting in some languages
Some languages require using a conversion modifier to display the day
number in a translated shape. fa_IR is affected for example.
https://bugzilla.gnome.org/show_bug.cgi?id=673235
js/ui/calendar.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/calendar.js b/js/ui/calendar.js
index 056d6e2..c6fccbf 100644
--- a/js/ui/calendar.js
+++ b/js/ui/calendar.js
@@ -725,7 +725,7 @@ const Calendar = new Lang.Class({
// nRows here means 6 weeks + one header + one navbar
let nRows = 8;
while (row < 8) {
- let button = new St.Button({ label: iter.getDate().toString(),
+ let button = new St.Button({ label: iter.toLocaleFormat(C_("date day number format", "%d")),
can_focus: true });
let rtl = button.get_text_direction() == Clutter.TextDirection.RTL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]