Bug 277003 - [Digital] 'Compact date' doesn't respect localized date divider
Summary: [Digital] 'Compact date' doesn't respect localized date divider
Status: RESOLVED FIXED
Alias: None
Product: i18n
Classification: Translations
Component: de (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-03 12:36 UTC by markuss
Modified: 2014-02-20 08:24 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.8.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description markuss 2011-07-03 12:36:40 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Just updated to KPW 4.7rc1 and noticed that Digital Clock no defaults to show the date in a compacted format.
Problem is: At least here in Germany we don't divide day and month via a forward-slash but we add a dot after day any month.
So currently it says "3/07" while it should say "3.07.".

All my options in System Settings are set to Germany.

Reproducible: Always

Steps to Reproduce:
Set 'Compact Date' in applet settings

Actual Results:  
Unlocalized date

Expected Results:  
Localized date

Version 4.6.90
Comment 1 Stephan Diestelhorst 2011-08-01 16:55:44 UTC
Same here, using Kubuntu's 4.7.0 builds.

Changing from "compact date" to "short date" seems to display in proper setting. The actual bug would then be that the date format chooser itself is not localised in the settings screen.
Comment 2 Jon Nelson 2011-08-04 16:07:45 UTC
4.7.0 on openSUSE has a related problem - in the US the month is before the day, but I see '4/08' (which is weird) not '8/4' or '08/04' -- some consistency and better locale use here would be nice. This is using the 'compact' date display.

EASY TO REPRODUCE.
Comment 3 Orion Poplawski 2011-10-14 20:39:15 UTC
Same here with Fedora 16 and 4.7.2
Comment 4 missive 2011-10-15 14:29:36 UTC
It seems there is a system-wide configuration panel that allows for very fine control in setting up "Long date format" and "Short date format" but there is no corresponding line for the "Compact date format".
Comment 5 Daniel Faust 2011-12-02 18:46:43 UTC
It's not a systemsettings bug.

kde-workspace/plasma/generic/applets/digital-clock/clock.cpp:470

if (m_dateStyle == 1) {         //compact date
dateString = i18nc("@label Compact date: "
	"%1 day in the month, %2 month number",
	"%1/%2", day, month);
}

So in the end the displayed format depends on the translation and is not configurable by the user.
Comment 6 Aaron J. Seigo 2011-12-02 21:06:52 UTC
yes, and this is the same for other "non-configurable" formats such as iso...
Comment 7 Kevin Kofler 2011-12-03 02:15:15 UTC
Well, then:
1. there's a bug in the German translation if it doesn't translate "%1/%2" to "%1.%2." in this context ('/'-separated dates are definitely NOT customary in German; if you think Plasma doesn't need to be changed, then we should reassign this to the German l10n team rather than closing it) and
2. I have to wonder whether there really isn't a way to reuse the locale settings here rather than requiring this to be "translated" separately.
Comment 8 markuss 2011-12-03 03:05:43 UTC
SVN commit 1267071 by markuss:

BUG:277003

 M  +2 -1      plasma_applet_dig_clock.po  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1267071
Comment 9 markuss 2011-12-03 03:09:57 UTC
SVN commit 1267073 by markuss:

BUG:277003

 M  +2 -1      plasma_applet_dig_clock.po  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1267073
Comment 10 markuss 2011-12-03 03:18:09 UTC
OK, I reassigned the bug to i18n-de and fixed it myself.
If http://techbase.kde.org/Schedules/KDE4/4.7_Release_Schedule#Thursday.2C_December_1.2C_2011:_KDE_4.7.4_tagging isn't wrong, it's too late for 4.7.4, though. I fixed it in the stable branch anyway but most users will pick the fix up only when they upgrade to 4.8.

Thanks Daniel for revealing that it's a translation issue.
Comment 11 Boris Kheyfets 2014-02-20 08:24:15 UTC
I'd rather have a compact date configured separatly of short date. E.g. I'd like to see 20-Mon in compact date, and 20-Feb-2014 in short date.