GNOME Bugzilla – Bug 673235
Calendar numbers can't be shown in local shape
Last modified: 2015-10-26 16:49:12 UTC
while Bug 673106 [1] is fixed, it is now possible to have an %d identifier for numbers in calendar table. [1] https://bugzilla.gnome.org/show_bug.cgi?id=673106
I think that the code to change is in js/ui/calendar.js: // nRows here means 6 weeks + one header + one navbar let nRows = 8; while (row < 8) { let button = new St.Button({ label: iter.getDate().toString(), can_focus: true }); We probably just need to replace the "toString" with something that's translatable, correct?
(In reply to comment #1) > let button = new St.Button({ label: iter.getDate().toString(), > can_focus: true }); > > We probably just need to replace the "toString" with something that's > translatable, correct? Yes, this sounds right. Something like iter.toLocaleFormat(_("%d")) should do the job.
Created attachment 309948 [details] [review] 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.
Review of attachment 309948 [details] [review]: LG.
Attachment 309948 [details] pushed as 3e602b1 - calendar: Fix number formatting in some languages