{"id":25336,"date":"2013-09-19T23:43:38","date_gmt":"2013-09-19T23:43:38","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/date-translate\/"},"modified":"2013-09-20T10:59:21","modified_gmt":"2013-09-20T10:59:21","slug":"date-translate","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/date-translate\/","author":12950456,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"1.0.1","tested":"3.6.1","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Date Translate","header_author":"Gezim Basha","header_description":"","assets_banners_color":"","last_updated":"2013-09-20 10:59:21","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":1,"author_block_rating":0,"active_installs":10,"downloads":2473,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[16950,4708,16951,1356,2333],"plugin_category":[40,48],"plugin_contributors":[90371],"plugin_business_model":[],"class_list":["post-25336","plugin","type-plugin","status-publish","hentry","plugin_tags-date-translation","plugin_tags-dates","plugin_tags-local-language","plugin_tags-time","plugin_tags-translation","plugin_category-calendar-and-events","plugin_category-language-tools","plugin_contributors-gezimb","plugin_committers-gezimb"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/date-translate.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Allows the user to insert a hook to WordPress and replace english version of the dates and translate them to their own language.<\/p>\n\n<p>It uses a modular function that takes as input 3 arguments:<\/p>\n\n<ol>\n<li>Days<\/li>\n<li>Months<\/li>\n<li>Months (shorthand)<\/li>\n<\/ol>\n\n<p>It then searches for the English versions and replaces them.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>date_translate.php<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Array-ize the days <code>&lt;?php $days = (Sunday, Monday, ...) ?&gt;<\/code><\/li>\n<li>Repeat procedure for months and shorthand (Jan, Feb, ...)<\/li>\n<li>Finalize by hooking <code>&lt;?php qnt_date_translate($days,$months,$months_shorthand)?&gt;<\/code> - of course, replace array names with your own.<\/li>\n<\/ol>\n\n<p>Examples at plugin GitHub page.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Does the week begin with Sunday?<\/dt>\n<dd><p>Yes. Please arrange the array so your week begins in Sunday and ends in Saturday.<\/p><\/dd>\n<dt>No shorthand for days?<\/dt>\n<dd><p>There is no need, date formats take full day name and use shorthand for months.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fixed issue with date-translate not intercepting get_date()<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Allows translating by inserting the hook on functions.php<\/li>\n<\/ul>","raw_excerpt":"Allows the user to insert a hook to WordPress and replace english version of the dates and translate them to their own language.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/25336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=25336"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gezimb"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=25336"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=25336"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=25336"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=25336"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=25336"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=25336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}