From 3e602b1765a281fdd8c4a81b4727b9d77e770695 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Tue, 25 Aug 2015 12:11:20 +0200 Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 056d6e2ca..c6fccbf1c 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;