{"id":5784,"date":"2009-06-05T16:55:26","date_gmt":"2009-06-05T16:55:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/yd-setup-locale\/"},"modified":"2009-06-05T22:13:18","modified_gmt":"2009-06-05T22:13:18","slug":"yd-setup-locale","status":"publish","type":"plugin","link":"https:\/\/azb.wordpress.org\/plugins\/yd-setup-locale\/","author":396245,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1.0","stable_tag":"trunk","tested":"2.7.1","requires":"2.0.0","requires_php":"","requires_plugins":"","header_name":"YD Setup Locale","header_author":"Yann Dubois","header_description":"","assets_banners_color":"","last_updated":"2009-06-05 22:13:18","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.yann.com\/","header_plugin_uri":"http:\/\/www.yann.com\/wp-plugins\/yd-setup-locale","header_author_uri":"http:\/\/www.yann.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2837,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[104,3525,8582,1984,99],"plugin_category":[48],"plugin_contributors":[80265],"plugin_business_model":[],"class_list":["post-5784","plugin","type-plugin","status-publish","hentry","plugin_tags-i18n","plugin_tags-international","plugin_tags-internationalization","plugin_tags-l10n","plugin_tags-multilingual","plugin_category-language-tools","plugin_contributors-ydubois","plugin_committers-ydubois"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/yd-setup-locale.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>This very simple Wordpress plugin automatically sets up the WP language environment based on the first part of the url of any page.<\/p>\n\n<p>It will automatically setup the right XML header lang attribute + the internal Wordpress $locale variable that is used to load the right language files for i18n and l10n (.po, .mo).<\/p>\n\n<h4>Usage:<\/h4>\n\n<p>Your blog URL structure should always begin with an official two-letter langage code, for example:<\/p>\n\n<ul>\n<li>\/en\/... for english<\/li>\n<li>\/es\/... for Spanish<\/li>\n<li>\/ja\/... for Japanese<\/li>\n<li>\/fr\/... for French<\/li>\n<li>etc.<\/li>\n<\/ul>\n\n<p>Please use only lower-case codes.<\/p>\n\n<p>Pages that don\u2019t comply to this URL scheme will still get your blog\u2019s default locale setting, as configured in your wp-config.php file.<\/p>\n\n<p>Sometimes you need to rename or copy some of your po\/mo files, for example French language PO files are usually named like this: <code>fr_FR.po<\/code>; \njust copy it to <code>fr.po<\/code> to make it work with a two-letter code.<\/p>\n\n<h4>Example<\/h4>\n\n<p>This plugin is used for extended multi-language support on the <a href=\"http:\/\/post2peer.com\/about\" title=\"Post2Peer posts and sites directory\">Post2Peer.com open posts directory<\/a>.<\/p>\n\n<h4>Fran\u00e7ais<\/h4>\n\n<p>Ce plugin permet tr\u00e8s simplement de faire fonctionner un blog multilingue ou bilingue, fran\u00e7ais\/anglais par exemple.<\/p>\n\n<h4>Active support<\/h4>\n\n<p>Drop me a line on my <a href=\"http:\/\/www.yann.com\/wp-plugins\/yd-setup-locale\" title=\"Yann Dubois' Setup Locale for Wordpress\">YD Setup Locale plugin support site<\/a> to report bugs, ask for specific feature or improvement, or just tell me how you're using the plugin.<\/p>\n\n<h3>Revisions<\/h3>\n\n<p>0.1.0 Initial beta release<\/p>\n\n<h3>Did you like it?<\/h3>\n\n<p>Drop me a line on http:\/\/www.yann.com\/wp-plugins\/yd-setup-locale<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip yd-setup-locale.zip<\/li>\n<li>Upload the <code>yd-setup-local<\/code> directory and all its contents into your <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Where should I ask questions?<\/dt>\n<dd><p>http:\/\/www.yann.com\/wp-plugins\/yd-setup-locale<\/p>\n\n<p>Use comments.<\/p>\n\n<p>I will answer only on that page so that all users can benefit from the answer. \nSo please come back to see the answer or subscribe to that page's post comments.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Automatically sets up the WP language environment based on first part of url. Will setup XML lang attribute + $locale variable.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/5784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=5784"}],"author":[{"embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ydubois"}],"wp:attachment":[{"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=5784"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=5784"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=5784"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=5784"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=5784"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/azb.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=5784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}