|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-10 01:09 UTC] info at swedishboy dot se
[2011-05-10 01:11 UTC] info at swedishboy dot se
[2013-03-01 19:57 UTC] jellofishi at gmail dot com
[2017-01-12 20:10 UTC] heiglandreas@php.net
-Status: Open
+Status: Not a bug
[2017-01-12 20:10 UTC] heiglandreas@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 17:00:02 2025 UTC |
Description: ------------ Abbreviated month always displays month names with three letters. However ... in Swedish we never write July and June with three letters. This is seen as wrong and not the standard way of shortening the month names. The reason is simple. July (juli in swedish) when shortening to three letter becomes 'Jul' which is the swedish word for christmas. I realized how stupid and funny it looks when I programmed a calendar plugin for wordpress and I echoed some dates in July. So both July and June should spell out juli and juni when set_locale is set to Swedish language. One more detail; Month names should are written in lowercase in Swedish when used in sentences. This can of course simply be controlled by the programmer using strtolower() and should be the prefered solution I'd say. Test script: --------------- <?php setlocale(LC_ALL, 'sv_SE'); echo strftime('%d %b %Y', strtotime("2 July 2011")); ?> Expected result: ---------------- 2 Juli 2011 Actual result: -------------- 2 Jul 2011 (Jul = Christmas in swedish)