<div dir="ltr"><div><div><div><div><div>Well I solved it and now it's dependent on the locale (which by default is not set on Jolla) so:<br></div><br>1. I am more then happy to submit my patches to Jolla, though you guys claim 'closed source' every file I edited had a BSD license at the top.<br></div><br>2. To actually make this work properly jolla one or all of the following environment variables need to be present LC_TIME, LC_ALL, LANG, by default LANG is present but for people like me who want language A but locale B for dates etc. so some way to set LC_* or at least LC_ALL would be cool. <br>I tried adding to my .bashrc but that had no effect for launching from the launcher, from CLI it helpend of course.<br></div><div>I assume I need to add it somewhere in dconf but I'm not knowledgeable enough about dconf for the moment...<br></div><div><br>3. The only issue I saw that may need a special exception is february where adding an extra week before may look nicer, but this is an aesthetics issue and as far as I can tell from the widget in gnome they don't mind having 2 weeks of the next month showing...<br></div><div><br></div>I tested it with locales: en_GB (monday), nl_NL (monday), he_IL (sunday), ar_KW (saturday).<br><br></div>Should I publish the patches here or is that considered unacceptable behavior on this list?<br></div><div>I will probably try to put everything up neatly on my github later... (ie full files..)<br><br></div><div>Regards,<br>Eli<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-13 19:13 GMT+02:00 E.S. Rosenberg <span dir="ltr"><<a href="mailto:es.rosenberg+sailfishos.org@gmail.com" target="_blank">es.rosenberg+sailfishos.org@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">2014-11-13 14:25 GMT+02:00 Pekka Vuorela <span dir="ltr"><<a href="mailto:pekka.vuorela@jolla.com" target="_blank">pekka.vuorela@jolla.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">to, 2014-11-13 kello 02:25 +0200, E.S. Rosenberg kirjoitti:<br>
<span>> Hi all,<br>
><br>
> I'm trying to add support for locale (or at least firstDayOfWeek) to<br>
> jolla-calendar, in the MonthPage.qml file I successfully made the day<br>
> labels depend on the locale, but to actually shift all the dates over<br>
> seems to be more of an issue.<br>
><br>
><br>
> As far as I can tell this should involve the AgendaModel (found in<br>
> nemomobile/nemo-qml-plugin-calendar), but I may be wrong.<br>
><br>
><br>
> Either way I have 2 questions:<br>
><br>
> 1. Am I on the right track?<br>
<br>
</span>AgendaModel returns events between start and end dates. It does not care<br>
about localization details or where a week starts from.<br>
<span><br>
> 2. Assuming I pull this off successfully what is the process for<br>
> submitting the patch? A pull request on git? sending a patch to this<br>
> list?<br>
<br>
</span>For changes in nemo-qml-plugin-calendar, a pull request in github.<br>
Jolla-calendar itself is not open so we don't take patches. However,<br>
there are some patches around people have been applying themselves.<br></blockquote></span><div>Well it would be cool of Jolla released the source of jolla-calendar so we can fix these things, it seems the calendar is anyhow not getting that much attention... <br></div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Support for sunday as first day of week should go to<br>
DatePicker&...Dialog. To be done at some point.<br></blockquote></span><div>Is this defined in compiled code or in QML... I'll happily fix it and donate the code :)<br></div><div>At the moment I for the life of me can't figure out where it is getting the actual start and end dates of the displayed calendar days... <br></div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Not much votes yet on these, though:<br>
<a href="https://together.jolla.com/question/26507/ability-to-set-firstdayofweek-in-jolla-calendar/" target="_blank">https://together.jolla.com/question/26507/ability-to-set-firstdayofweek-in-jolla-calendar/</a> </blockquote></span><div>I can't vote on my own questions... :D <br>If jolla intends to come to Israel at some point this needs to be fixed though...<br></div><div>Thanks,<br>Eli<br></div><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="https://together.jolla.com/question/35138/can-i-change-the-first-day-of-week-in-calendar/" target="_blank">https://together.jolla.com/question/35138/can-i-change-the-first-day-of-week-in-calendar/</a><br>
<br>
<br>
_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a><br>
</blockquote></span></div><br></div></div>
</blockquote></div><br></div>