LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-29-2013, 02:25 PM   #1
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Date format in Thunderbird/Icedove in KDE


It is bit clumsy that to change the Thunderbird date format the locale has to be set correctly.

http://forums.mozillazine.org/viewto...f=39&t=2066255

It would have been better if Thunderbird would have obeyed the KDE regional settings. But it doesn't.

It the solution as pointed to above, there is the problem to create a separate script to set the locale right. This is not necessary.

In KDE (and probably any DE where a menu item can be edited) simply change the menu command to:
Code:
LANG=en_DK.UTF8 icedove %u
(Change Icedove to Thunderbird for non-Debian).

This command uses the property of the shell that the PARM=value is passed to the environment of the called program.

jlinkels
 
Old 07-29-2013, 03:39 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by jlinkels View Post
It is bit clumsy that to change the Thunderbird date format the locale has to be set correctly.

http://forums.mozillazine.org/viewto...f=39&t=2066255

It would have been better if Thunderbird would have obeyed the KDE regional settings. But it doesn't.
well, I don't know how KDE handles regional settings. In Windows, T-Bird complies to the system-wide settings; under Gnome or MATE, T-Bird still honors the system locale, which has to be set appropriately. So what's your point?

Quote:
Originally Posted by jlinkels View Post
It the solution as pointed to above, there is the problem to create a separate script to set the locale right. This is not necessary.
Of course it's not. If you want the date in ISO-8601 format, select a locale that follows this standard, and T-Bird will comply to that like almost any other application will.

[X] Doc CPU
 
Old 07-29-2013, 04:04 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Original Poster
Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by Doc CPU View Post
well, I don't know how KDE handles regional settings. In Windows, T-Bird complies to the system-wide settings; under Gnome or MATE, T-Bird still honors the system locale, which has to be set appropriately. So what's your point?
In Windows, if you set the date format in Control panel to yyyyMMdd, all applications I know display the date like yyyyMMdd. Now I must admit, this is all applications I know, which is not many. I am using Windows only when I am getting paid for doing so. And T'bird is not among the applications I tested. Is there a separate locale setting in Windows except for Regional Settings?

Anyway, if KDE offers to set the regional settings format to yyyyMMdd and some applications obey that and others only thru a locale, it is confusing at best. If the recommended way to set a date format is through a locale, KDE had better omitted this setting at all.

Quote:
Originally Posted by Doc CPU View Post
Of course it's not. If you want the date in ISO-8601 format, select a locale that follows this standard, and T-Bird will comply to that like almost any other application will.
[X] Doc CPU
Yes T'bird obeys, and more things happen. I have been running applications which insisted of showing the months and days in Danish text. Yes, I know, the locale was en_DK. I don't recall which one that was, but it precluded setting a system-wide locale. And yes, I know it was the application's fault, but that didn't exactly solve the problem.

jlinkels

Last edited by jlinkels; 07-29-2013 at 04:06 PM.
 
Old 07-31-2013, 03:31 AM   #4
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by jlinkels View Post
In Windows, if you set the date format in Control panel to yyyyMMdd, all applications I know display the date like yyyyMMdd. Now I must admit, this is all applications I know, which is not many. I am using Windows only when I am getting paid for doing so.
I can assure you, there are very few that don't, and have the date format hard-coded instead.

Quote:
Originally Posted by jlinkels View Post
Is there a separate locale setting in Windows except for Regional Settings?
No, there isn't.

Quote:
Originally Posted by jlinkels View Post
Anyway, if KDE offers to set the regional settings format to yyyyMMdd and some applications obey that and others only thru a locale, it is confusing at best. If the recommended way to set a date format is through a locale, KDE had better omitted this setting at all.
You hit the nail on the head. Actually, configuring these things through locales has been the normal way in Unix/Linux for many years. I have to agree, though, that the Windows approach is more comfortable and easier to handle, and you can set each regional detail separately without being connected with others, and especially KDE has always tried to imitate Windows to some extent. That's how it seems, anyway.

I guess that applications specifically designed for KDE (most of them having names starting with 'K') do take KDE's regional settings into account, and other, non-KDE-aware applications just rely on the default system locale as they always have.

Quote:
Originally Posted by jlinkels View Post
Yes T'bird obeys, and more things happen. I have been running applications which insisted of showing the months and days in Danish text. Yes, I know, the locale was en_DK.
Oops. That's strange, because it's exactly as you stressed: en_DK means English language with Danish regional features.
To get a grip on things: What's the output of the 'locale' command on your system? - It should print a list of about a dozen individual settings, but en_DK should appear nowhere else but in the LC_TIME line.

[X] Doc CPU
 
Old 07-31-2013, 06:25 AM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Original Poster
Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Quote:
Originally Posted by Doc CPU View Post
Oops. That's strange, because it's exactly as you stressed: en_DK means English language with Danish regional features.
To get a grip on things: What's the output of the 'locale' command on your system? - It should print a list of about a dozen individual settings, but en_DK should appear nowhere else but in the LC_TIME line.
Honestly, I don't recall. It is not on the machine I am working on now. I use various machines here and there, at home, in the office, the main laptop, the new laptop and the spare laptop. It happened on one of those machines, and in a calendar or project management type application.

Since you just answered one of my other questions (about accented characters in LibreOffice) you'll understand why I really don't want to mess around with system wide locales. Life is difficult enough as it is

jlinkels
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to change Thunderbird's date format in Date column LXer Syndicated Linux News 0 07-18-2012 02:11 AM
[SOLVED] How to change the format of date in thunderbird in rhel 5.8 ashwin_cse Red Hat 3 03-28-2012 08:05 AM
Thunderbird date-format problem jadukor Slackware 5 05-07-2008 02:03 PM
Thunderbird Date Format dotancohen Linux - Software 9 10-15-2005 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration