Skip to content
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

Locale Error #117

Closed
defrilitus opened this issue Nov 10, 2018 · 14 comments
Closed

Locale Error #117

defrilitus opened this issue Nov 10, 2018 · 14 comments
Assignees
Labels

Comments

@defrilitus
Copy link

This is indeed an excellent plug-in, but it contains a locale error.
In Apple Mail, when I choose the “English” date format in RWH (version 6.0), it comes out as “November 5, 2018 at 3:20:27 PM EST”. However, this is not English, but American (en-US).
All other major countries that employ English as a major language (e.g., UK, Ireland, Canada, Australia, New Zealand, South Africa) use the en-GB standard, thus “5 November 2018 15:20:27 -0500" or “5 Nov 2018 15:20:27 -0500".
Do you think that you can include the en-GB format in addition to the en-US one?
Thanks in advance!

PS:
In Thunderbird (RWH 1.5), where the extension is supposed to use the system settings, the date still uses the American format, even though my system locale is English - UK.

@jeevatkm
Copy link
Owner

@defrilitus Thanks for reporting an issue.

RWH Mac plugin should work properly on Locale as its uses Mac OS settings unlike a RWH thunderbird plugin.

Screenshots for your references.
screen shot 2018-11-18 at 1 13 13 am
screen shot 2018-11-18 at 1 13 28 am

I will analysis it, if you could provide any further input on Mac plugin would be helpful.

@defrilitus
Copy link
Author

@jeevatkm What you write above directly contradicts what is written on https://myjeeva.com/replywithheader, under Multilingual/Localization, where you state, with reference to the Apple plug-in, that "Header attribution in chosen language regardless of system locale/language. For e.g. system language is in Japanese & header attribution in English".
Also, why would you have a choice of locale within the plug-in if it used system settings? In any case, I can guarantee that RWH does not respect my system settings either for date or for time.

@jeevatkm
Copy link
Owner

@defrilitus Yes, this is "system language is in Japanese & header attribution in English" possible with RWH plugin.

why would you have a choice of locale within the plug-in if it used system settings?

Honestly I forgot the reason, date and time handling was implemented many years ago I believe its 2013 or 2014.

I will analyze the date and time issue, Thanks.

@defrilitus
Copy link
Author

Any chance that I'll be able to use RWH with my preferred locale (en-GB) in the near future? The plug-in is not of real use to me until that happens. Thanks in advance!

@jeevatkm
Copy link
Owner

jeevatkm commented Dec 6, 2018

@defrilitus Thanks for the ping. I have a plans to work on. However I'm unable to provide timeline. I'm occupied with my day work and other priorities.

@defrilitus
Copy link
Author

@jeevatkm Thanks for the update.

@jeevatkm jeevatkm self-assigned this Feb 10, 2019
@jeevatkm jeevatkm added the bug label Feb 10, 2019
@jeevatkm jeevatkm added this to the RWH v6.1 Milestone milestone Feb 10, 2019
@jeevatkm
Copy link
Owner

@defrilitus I have prepared v6.1-beta for Apple Mail, please try out and let me know. RWH should work as documented. Also added en-GB locale.

https://docs.myjeeva.com/rwh/ReplyWithHeader-v6.1-beta.zip

@defrilitus
Copy link
Author

I've checked out the beta. "English" and "English (United States)" appear to be the same. With regard to "English (United Kingdom)", RWH gives me, for example, "Friday, 25 January 2019, 16:28". Outlook for Mac, on the other hand, gives me "Fri 25 Jan 2019 at 16:28". MacOS Mail gives me something very similar when using forward: "Fri 25 Jan 2019 at 16:28:25". If you could convert to either of the latter two, that would be great! Thanks for continuing your work on this add-on!

@jeevatkm
Copy link
Owner

@defrilitus I appreciate your efforts for trying out the beta version.

I have left existing localization as-is for backward compatibility and added en-US and en-GB. The choice is left to users to choose.

Personally, I have only access to outlook.com and Office 2016/Office 365 at work on Windows. In that date format is -

// en-US
Sunday, February 10, 2019, 7:44 PM

So the date header format is -
EEEE, MMMM d, yyyy, h:mm a

With your issue report, I got an opportunity to address the date formatting issue which was unnoticed for a long.

Also, I have revised the RWH preferences on the date-

screen shot 2019-02-10 at 10 08 00 pm

macOS mail behaviour is an inconsistency with the outlook windows version, RWH plugin tries to close the gap as much as possible. I think it's good enough to leave as-is after this fix.

@jeevatkm
Copy link
Owner

I'm closing this one 😄 Will be released as part of RWH v6.1.

@defrilitus
Copy link
Author

Actually, I disagree with you. You state above that "Mac plugin should work properly on Locale as its uses Mac OS settings", but it doesn't. Absolutely not. Not quite sure why you state this, as it's obviously not the case.
You also say that there is an inconsistency between Outlook for Mac and Outlook for Windows. Again, this isn't correct. I run Outlook Pro Plus 2016 on a Windows 10 VM and it takes user date-formatting from the registry (accessed via Control Panel/Region). Outlook for MacOS does the same from System Preferences (user-accessible from System Preferences/Language and Region/Advanced/Dates). Neither Outlook for Windows nor Outlook for Mac oblige one to use a specific date format. By the way, the same is true of Apple Mail.
I'm a bit disappointed that RWH doesn't take into account user preferences, unlike its original raison d'être, which was to use macOS's locale settings.
However, if people find your plug-in to be useful, I am quite happy for both you and them.
Personally, I prefer the QuoteFix plug-in for Apple Mail, which—while it doesn't use user's locale preferences—at least gives users a free choice as to how the date is formatted.
In any case, thank you for taking the time to look at the issue. There's no right or wrong; it's purely subjective ;-)

@jeevatkm
Copy link
Owner

@defrilitus I think there is an understanding gap between us. I will try my best to describe it.

First when you have reported the issue. I responded to my knowledge of memory. Then it turns to be partially incorrect after looking at the source code. As I mentioned above I took an opportunity to address the date format. In the past, I have received various issues/request (#104, #91, #88) around the date formatting. Till now RWH did not stick to any particular format/style. However, with v6.1 release onwards RWH going to stick to one which is windows/outlook.com office format.

I would like to mention; I did not say which is right or wrong. Also, I'm not claiming which is right or wrong.


I have described the behavior I saw (personally have access) with outlook.com and office 2016/365. For example, this is from outlook.com

screen shot 2019-02-11 at 10 50 27 pm


For example, the inconsistency within Apple Mail Reply vs Forward is -

Reply
screen shot 2019-02-11 at 11 07 03 pm

Forward
screen shot 2019-02-11 at 11 07 28 pm


From my understanding, both Apple Mail and Office Outlook does not provide an option choose header date format. Or I'm not up-tp-date with facts.

@defrilitus
Copy link
Author

defrilitus commented Feb 12, 2019

To be honest, I wish that you would read my posts more carefully.
I did not write that Outlook for Windows gives an option to choose the date-header format. I wrote that Outlook takes the date-header format from the Registry. Users can access these options via the Control Panel. Thus, Outlook will use the system language to set the header language and the Region long date/short time to format the date header.
A similar thing happens in macOS: change the system language and/or date/time format in System Preferences, and Apple Mail or Outlook for Mac will change the language/date/time format of their headers accordingly.
Please try these options out. They will give you a better understanding as to how most mail clients apply default reply-header formats.

@jeevatkm
Copy link
Owner

@defrilitus Thanks, surely I have read your message then only I have responded to it with the background, previous issues references, screenshots.

Yes, I have also tried your suggestion yesterday for Apple Mail, it did not honor the system settings for me (Please note: while testing this RWH plugin was uninstalled on macbook pro) I don't know why. You could see that differences (Reply vs Forward) on the provided screenshot on previous message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants