-
Notifications
You must be signed in to change notification settings - Fork 802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix first-day-of-week detexion in dense calendar (Upcoming Transactions) #1907
Conversation
Would be better to use gnucash/libgnucash/engine/gnc-date.cpp Line 194 in cab6173
|
…ions) GnuCash depends on GTK3, and not GTK2. Thus: $ gettext -d gtk20 calendar:week_start:0; echo calendar:week_start:0 $ LC_LANG=pl_PL.UTF-8 gettext -d gtk20 calendar:week_start:0; echo calendar:week_start:0 $ gettext -d gtk30 calendar:week_start:0; echo calendar:week_start:1 $ LC_LANG=pl_PL.UTF-8 gettext -d gtk30 calendar:week_start:0; echo calendar:week_start:1 because the "gtk20" catalog, provided by GTK2, doesn't exist. This is the only place gtk20/gtk30 is used, so replace it with gnc_start_of_week(). Fixes: https://bugs.gnucash.org/show_bug.cgi?id=797623 Fixes: https://bugs.gnucash.org/show_bug.cgi?id=752395
Indeed; applied. |
I agree that this was an over site from gtk2 to 3 but curious on how have you tested this, what OS's. |
As evident from the top-level post, I just ran it and looked at the calendar. bookworm. |
3-week bump |
It's a simple fix which looks inadequate... Do you think it's feasible to support start of week on any of the weekdays? |
@christopherlam I did look at this a while back that did allow any start day but required some more testing and refinement. |
It should be a localization setting. ICU has getFirstDayOfWeek. I found hints that |
ftr gnucash already uses getFirstDayOfWeek() for this |
I have added #PR1935 which was what I was working on last year. |
Closing in favor of #1935. |
GnuCash depends on GTK3, and not GTK2. Thus:
because the "gtk20" catalog, provided by GTK2, doesn't exist.
Before:
After:
This corresponds to https://bugs.gnucash.org/show_bug.cgi?id=797623 and https://bugs.gnucash.org/show_bug.cgi?id=752395