Mail/News: Date Time in English format in changed quote start

RESOLVED FIXED in mozilla1.2alpha

Status

MailNews Core
Internationalization
--
trivial
RESOLVED FIXED
16 years ago
9 years ago

People

(Reporter: Ansgar Schrage, Assigned: nhottanscp)

Tracking

({intl})

Trunk
mozilla1.2alpha
x86
Windows NT

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
From Bugzilla Helper German:

proposed Product: Browser+Localizations
proposed Component: German-Austria/de-AT

User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.0rc1) Gecko/20020417
BuildID:    2002041711

When you change your prefs.js to change the beginning of a quote in a reply
eMail in the following way:

user_pref("mailnews.reply_header_ondate", "Am %s");
user_pref("mailnews.reply_header_separator", ", ");
user_pref("mailnews.reply_header_authorwrote", "%s schrieb");
user_pref("mailnews.reply_header_colon", ":");
user_pref("mailnews.reply_header_type", 2);

the displayed time and date are in English format.

Reproducible: Always

Actual Results:  
Am 4/28/02 5:29 PM, Ansgar Schrage schrieb:
> 

Expected Results:  
Am 28.04.02 17:29, Ansgar Schrage schrieb:
>

Comment 1

16 years ago
What time format does your OS use by default? I once heard we would default to
OS settings for such things.

Not sure though, over to MailNews.
Assignee: kairo → rchen
Component: German-Austria/de-AT → Localization
Product: Browser Localizations → MailNews
QA Contact: Sebastian → ji
Version: unspecified → other
(Reporter)

Comment 2

16 years ago
My OS is set to use the German time format by default.

Comment 3

16 years ago
Confirmed with the latest branch build.
Status: UNCONFIRMED → NEW
Component: Localization → Internationalization
Ever confirmed: true
Keywords: intl

Comment 4

16 years ago
To be exact, the format of "4/28/02 5:29 PM" is the American format.  And I also
experience this problem.  I'm using RC2 no Win2000.  My locale in Windows is set
to English (UK), as such my date and time should come out like "28/04/02 17:29",
but I also see the American string as reported.

In testing, I changed my locale back to English (US), and I then specifically
tweaked the date/time format within the Regional Settings Control Panel. 
Mozilla picked up these changes properly.  Of course, this made other programs
unusable for me, so I had to revert back.

So, IMHO, the problem is that the locale settings are only being read if the
locale is set to English (US), otherwise the settings are ignored, and a default
of US is being applied.

Comment 5

15 years ago
I've had exactly the same experience as Dave Roberts above (except that I'm
using a different build). However, I managed to fix it with this line in my user.js:

  user_pref("mailnews.reply_header_locale", "en-GB");

Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1a) Gecko/2002061104

Comment 6

15 years ago
->nhotta.
Assignee: rchen → nhotta
(Assignee)

Comment 7

15 years ago
Created attachment 91731 [details] [diff] [review]
Changed a deafult value of "mailnews.reply_header_locale" from "en-US" to empty.
(Assignee)

Updated

15 years ago
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.2alpha
(Reporter)

Comment 8

15 years ago
I checked it on my PC by adding the line
'user_pref("mailnews.reply_header_locale", "");' manually to my prefs.js. Now it
looks like this:

Am 18.07.2002 12:59, Ansgar Schrage schrieb:

And that is what I have expected :-)
Good job!
(Assignee)

Comment 9

15 years ago
Ray, could you review the patch?

Comment 10

15 years ago
*** Bug 160346 has been marked as a duplicate of this bug. ***

Comment 11

15 years ago
Comment on attachment 91731 [details] [diff] [review]
Changed a deafult value of "mailnews.reply_header_locale" from "en-US" to empty.

r=rchen
Attachment #91731 - Flags: review+

Comment 12

15 years ago
Comment on attachment 91731 [details] [diff] [review]
Changed a deafult value of "mailnews.reply_header_locale" from "en-US" to empty.

sr=bienvenu
Attachment #91731 - Flags: superreview+
(Assignee)

Comment 13

15 years ago
checked in to the trunk
Status: ASSIGNED → RESOLVED
Last Resolved: 15 years ago
Resolution: --- → FIXED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.