CINXE.COM
#22225 (WordPress does not localize ordinal suffixes in dates) – WordPress Trac
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("http://core.trac.wordpress.org/ticket/22225","20130119121807","https://web.archive.org/","web","/_static/", "1358597887"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <title> #22225 (WordPress does not localize ordinal suffixes in dates) – WordPress Trac </title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <!--[if IE]><script type="text/javascript"> if (/^#__msie303:/.test(window.location.hash)) window.location.replace(window.location.hash.replace(/^#__msie303:/, '#')); </script><![endif]--> <link rel="search" href="/web/20130119121807/http://core.trac.wordpress.org/search"/> <link rel="prev" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22224" title="Ticket #22224"/> <link rel="last" href="/ticket/23239" title="Ticket #23239"/> <link rel="help" href="/wiki/TracGuide"/> <link rel="alternate" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22225?format=csv" type="text/csv" class="csv" title="Comma-delimited Text"/><link rel="alternate" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22225?format=tab" type="text/tab-separated-values" class="tab" title="Tab-delimited Text"/><link rel="alternate" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22225?format=rss" type="application/rss+xml" class="rss" title="RSS Feed"/> <link rel="next" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22226" title="Ticket #22226"/> <link rel="start" href="/wiki"/> <link rel="stylesheet" href="/web/20130119121807cs_/http://core.trac.wordpress.org/chrome/common/css/trac.css" type="text/css"/><link rel="stylesheet" href="/web/20130119121807cs_/http://core.trac.wordpress.org/chrome/common/css/ticket.css" type="text/css"/> <link rel="first" href="/ticket/1" title="Ticket #1"/> <link rel="shortcut icon" href="/web/20130119121807im_/http://core.trac.wordpress.org/chrome/common/trac.ico" type="image/x-icon"/> <link rel="icon" href="/web/20130119121807im_/http://core.trac.wordpress.org/chrome/common/trac.ico" type="image/x-icon"/> <link type="application/opensearchdescription+xml" rel="search" href="/web/20130119121807/http://core.trac.wordpress.org/search/opensearch" title="Search WordPress Trac"/> <script type="text/javascript"> var auto_preview_timeout=2.0; var form_token="560b2a41bf861ac6f929b059"; </script> <script type="text/javascript" src="/web/20130119121807js_/http://core.trac.wordpress.org/chrome/common/js/jquery.js"></script><script type="text/javascript" src="/web/20130119121807js_/http://core.trac.wordpress.org/chrome/common/js/babel.js"></script><script type="text/javascript" src="/web/20130119121807js_/http://core.trac.wordpress.org/chrome/common/js/trac.js"></script><script type="text/javascript" src="/web/20130119121807js_/http://core.trac.wordpress.org/chrome/common/js/search.js"></script><script type="text/javascript" src="/web/20130119121807js_/http://core.trac.wordpress.org/chrome/common/js/folding.js"></script><script type="text/javascript" src="/web/20130119121807js_/http://core.trac.wordpress.org/chrome/common/js/wikitoolbar.js"></script><script type="text/javascript" src="/web/20130119121807js_/http://core.trac.wordpress.org/chrome/common/js/resizer.js"></script><script type="text/javascript" src="/web/20130119121807js_/http://core.trac.wordpress.org/chrome/common/js/auto_preview.js"></script> <!--[if lt IE 7]> <script type="text/javascript" src="/chrome/common/js/ie_pre7_hacks.js"></script> <![endif]--> <script type="text/javascript"> jQuery(document).ready(function($) { $("div.description").find("h1,h2,h3,h4,h5,h6").addAnchor(_("Link to this section")); $(".foldable").enableFolding(false, true); var args = {realm: "ticket", id: 22225, escape_newlines: 0} $("#comment").autoPreview("/wiki_render", args, function(textarea, text, rendered) { $("#ticketchange div.comment").html(rendered); if (rendered) $("#ticketchange").show(); else if ($("#ticketchange ul.changes").length == 0) $("#ticketchange").hide(); }); $("#trac-comment-editor textarea").autoPreview("/wiki_render", args, function(textarea, text, rendered) { var comment = $("#trac-comment-editor").next("div.comment"); comment.html(rendered); if (rendered) comment.show(); else comment.hide(); }); $("#modify").parent().toggleClass("collapsed"); $(".trac-topnav a").click(function() { $("#modify").parent().removeClass("collapsed"); }); /* only enable control elements for the currently selected action */ var actions = $("#action input[name='action']"); function updateActionFields() { actions.each(function () { $(this).siblings().find("*[id]").enable($(this).checked()); $(this).siblings().filter("*[id]").enable($(this).checked()); }); } actions.click(updateActionFields); updateActionFields(); }); </script> <meta name="viewport" content="width=device-width"/> <link rel="stylesheet" type="text/css" href="//web.archive.org/web/20130119121807cs_/http://wordpress.org/style/trac/wp-trac.css?2"/> <script src="//web.archive.org/web/20130119121807js_/http://openatd.svn.wordpress.org/atd-jquery/scripts/jquery.atd.textarea.js"></script> <script src="//web.archive.org/web/20130119121807js_/http://openatd.svn.wordpress.org/atd-jquery/scripts/csshttprequest.js"></script> <link rel="stylesheet" type="text/css" href="//web.archive.org/web/20130119121807cs_/http://openatd.svn.wordpress.org/atd-jquery/css/atd.css" media="screen"/> </head> <body class="core"> <div id="siteheader"> </div> <div id="banner"> <div id="header"> <a id="logo" href="https://web.archive.org/web/20130119121807/http://wordpress.org/"><img src="/web/20130119121807im_/http://core.trac.wordpress.org/chrome/site/trac-logo.png" alt="WordPress.org" height="80" width="345"/></a> </div> <form id="search" action="/web/20130119121807/http://core.trac.wordpress.org/search" method="get"> <div> <label for="proj-search">Search:</label> <input type="text" id="proj-search" name="q" size="18" value=""/> <input type="submit" value="Search"/> </div> </form> <div id="metanav" class="nav"> <ul> <li class="first"><a href="/web/20130119121807/http://core.trac.wordpress.org/login">Login</a></li><li><a href="/web/20130119121807/http://core.trac.wordpress.org/prefs">Preferences</a></li><li><a href="/web/20130119121807/http://core.trac.wordpress.org/wiki/TracGuide">Help/Guide</a></li><li class="last"><a href="/web/20130119121807/http://core.trac.wordpress.org/about">About Trac</a></li> </ul> </div> </div> <div id="mainnav" class="nav"> <ul> <li class="first"><a href="/web/20130119121807/http://core.trac.wordpress.org/wiki">Wiki</a></li><li><a href="/web/20130119121807/http://core.trac.wordpress.org/timeline">Timeline</a></li><li><a href="/web/20130119121807/http://core.trac.wordpress.org/roadmap">Roadmap</a></li><li><a href="/web/20130119121807/http://core.trac.wordpress.org/browser">Browse Source</a></li><li class="active"><a href="/web/20130119121807/http://core.trac.wordpress.org/report">View Tickets</a></li><li><a href="/web/20130119121807/http://core.trac.wordpress.org/search">Search</a></li><li class="last"><a href="/web/20130119121807/http://core.trac.wordpress.org/ticketgraph">Ticket Graph</a></li> </ul> </div> <div id="main"> <div id="ctxtnav" class="nav"> <h2>Context Navigation</h2> <ul> <li class="first"><span>← <a class="prev" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22224" title="Ticket #22224">Previous Ticket</a></span></li><li class="last"><span><a class="next" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22226" title="Ticket #22226">Next Ticket</a> →</span></li> </ul> <hr/> </div> <div id="content" class="ticket"> <h1 id="trac-ticket-title"> <a href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22225">Ticket #22225</a> <span class="status">(new enhancement)</span> </h1> <div id="ticket"> <div class="date"> <p>Opened <a class="timeline" href="/web/20130119121807/http://core.trac.wordpress.org/timeline?from=2012-10-19T08%3A39%3A08Z&precision=second" title="2012-10-19T08:39:08Z in Timeline">3 months</a> ago</p> <p>Last modified <a class="timeline" href="/web/20130119121807/http://core.trac.wordpress.org/timeline?from=2012-12-26T01%3A48%3A11Z&precision=second" title="2012-12-26T01:48:11Z in Timeline">3 weeks</a> ago</p> </div> <h2 class="summary searchable">WordPress does not localize ordinal suffixes in dates</h2> <table class="properties"> <tr> <th id="h_reporter">Reported by:</th> <td headers="h_reporter" class="searchable"> <a href="https://web.archive.org/web/20130119121807/http://profiles.wordpress.org/mihaimihai"> <img class="avatar" src="//web.archive.org/web/20130119121807im_/http://wordpress.org/grav-redirect.php?user=mihaimihai" height="24" width="24"/> </a> <a href="/web/20130119121807/http://core.trac.wordpress.org/query?status=!closed&reporter=mihaimihai">mihaimihai</a> </td> <th id="h_owner">Owned by:</th> <td headers="h_owner"> </td> </tr> <tr> <th id="h_priority"> Priority: </th> <td headers="h_priority"> <a href="/web/20130119121807/http://core.trac.wordpress.org/query?status=!closed&priority=normal">normal</a> </td> <th id="h_milestone"> Milestone: </th> <td headers="h_milestone"> <a class="milestone" href="/web/20130119121807/http://core.trac.wordpress.org/milestone/Awaiting%20Review">Awaiting Review</a> </td> </tr><tr> <th id="h_component"> Component: </th> <td headers="h_component"> <a href="/web/20130119121807/http://core.trac.wordpress.org/query?status=!closed&component=I18N">I18N</a> </td> <th id="h_version"> Version: </th> <td headers="h_version"> <a href="/web/20130119121807/http://core.trac.wordpress.org/query?status=!closed&version=3.4.2">3.4.2</a> </td> </tr><tr> <th id="h_severity"> Severity: </th> <td headers="h_severity"> <a href="/web/20130119121807/http://core.trac.wordpress.org/query?status=!closed&severity=normal">normal</a> </td> <th id="h_keywords"> Keywords: </th> <td headers="h_keywords" class="searchable"> <a href="/web/20130119121807/http://core.trac.wordpress.org/query?status=!closed&keywords=~dev-feedback">dev-feedback</a> </td> </tr><tr> <th id="h_cc"> Cc: </th> <td headers="h_cc" class="searchable"> </td> <th> </th> <td> </td> </tr> </table> <div class="description"> <h3 id="comment:description"> Description </h3> <div class="searchable"> <p> In wp-includes/functions.php function date_i18n(), elements like month, month abbreviation, weekday etc.. are localized but not the ordinal suffixes (e.g. st, nd, rt, th) </p> <p> effect: when using the ordinal suffixes for dates </p> <p> e.g. </p> <pre class="wiki"><?php the_time('F jS, Y'); ?> </pre><p> on translated/localized page page, the month name is translated (F) but the ordinal suffix no. </p> <p> Not browser/OS/environment dependent. </p> </div> </div> </div> <div> <h2 class="foldable">Change History</h2> <div id="changelog"> <div class="change" id="trac-change-1"> <div class="change"> <h3 class="change" id="comment:1"> <span class="threading"> <span id="comment:1" class="cnum"> <a href="#comment:1">comment:1</a> </span> </span> <span class="avatar"> <a href="https://web.archive.org/web/20130119121807/http://profiles.wordpress.org/SergeyBiryukov"> <img src="//web.archive.org/web/20130119121807im_/http://wordpress.org/grav-redirect.php?user=SergeyBiryukov" height="24" width="24"/> SergeyBiryukov</a> — <a class="timeline" href="/web/20130119121807/http://core.trac.wordpress.org/timeline?from=2012-10-19T22%3A41%3A49Z&precision=second" title="2012-10-19T22:41:49Z in Timeline">3 months</a> ago </span> </h3> </div> <div class="comment searchable"> <p> Related: <a class="new ticket" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/11226" title="enhancement: Month name declension case (new)">#11226</a> </p> </div> </div> <div class="change" id="trac-change-2"> <div class="change"> <h3 class="change" id="comment:2"> <span class="threading"> <span id="comment:2" class="cnum"> <a href="#comment:2">comment:2</a> </span> </span> <span class="avatar"> <a href="https://web.archive.org/web/20130119121807/http://profiles.wordpress.org/jrf"> <img src="//web.archive.org/web/20130119121807im_/http://wordpress.org/grav-redirect.php?user=jrf" height="24" width="24"/> jrf</a> — <a class="timeline" href="/web/20130119121807/http://core.trac.wordpress.org/timeline?from=2012-12-26T01%3A48%3A11Z&precision=second" title="2012-12-26T01:48:11Z in Timeline">3 weeks</a> ago </span> </h3> </div> <div class="comment searchable"> <p> +1 </p> </div> </div> </div> </div> <div id="help"><strong>Note:</strong> See <a href="/web/20130119121807/http://core.trac.wordpress.org/wiki/TracTickets">TracTickets</a> for help on using tickets.</div> </div> <div id="altlinks"> <h3>Download in other formats:</h3> <ul> <li class="first"> <a rel="nofollow" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22225?format=csv" class="csv">Comma-delimited Text</a> </li><li> <a rel="nofollow" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22225?format=tab" class="tab">Tab-delimited Text</a> </li><li class="last"> <a rel="nofollow" href="/web/20130119121807/http://core.trac.wordpress.org/ticket/22225?format=rss" class="rss">RSS Feed</a> </li> </ul> </div> </div> <div id="footer" lang="en" xml:lang="en"><hr/> <a id="tracpowered" href="https://web.archive.org/web/20130119121807/http://trac.edgewall.org/"><img src="/web/20130119121807im_/http://core.trac.wordpress.org/chrome/common/trac_logo_mini.png" height="30" width="107" alt="Trac Powered"/></a> <p class="left">Powered by <a href="/web/20130119121807/http://core.trac.wordpress.org/about"><strong>Trac 0.12.4</strong></a><br/> By <a href="https://web.archive.org/web/20130119121807/http://www.edgewall.org/">Edgewall Software</a>.</p> <p class="right">A <a href="https://web.archive.org/web/20130119121807/http://wordpress.org/">WordPress</a> Project</p> </div> <div id="sitefooter"> </div> <script src="//web.archive.org/web/20130119121807js_/http://wordpress.org/js/trac/wp-trac.js?1"></script> <script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? "https://web.archive.org/web/20130119121807/https://ssl." : "https://web.archive.org/web/20130119121807/http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); </script> <script type="text/javascript"> try { var pageTracker = _gat._getTracker("UA-52447-27"); pageTracker._trackPageview(); } catch(err) {}</script> </body> </html><!-- FILE ARCHIVED ON 12:18:07 Jan 19, 2013 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 07:40:38 Nov 26, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.463 exclusion.robots: 0.025 exclusion.robots.policy: 0.015 esindex: 0.009 cdx.remote: 105.383 LoadShardBlock: 346.448 (3) PetaboxLoader3.datanode: 213.909 (4) PetaboxLoader3.resolve: 239.692 (3) load_resource: 182.734 -->