{"id":8899,"date":"2010-04-26T13:04:47","date_gmt":"2010-04-26T13:04:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/multi-language-framework\/"},"modified":"2014-11-14T17:20:42","modified_gmt":"2014-11-14T17:20:42","slug":"multi-language-framework","status":"closed","type":"plugin","link":"https:\/\/es-mx.wordpress.org\/plugins\/multi-language-framework\/","author":6022503,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.1","stable_tag":"trunk","tested":"3.0.5","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Multi Language Framework","header_author":"BIREME, LeoGermani","header_description":"","assets_banners_color":"","last_updated":"2014-11-14 17:20:42","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/reddes.bvsalud.org\/projects\/multi-language-framework\/","header_plugin_uri":"http:\/\/reddes.bvsalud.org\/projects\/multi-language-framework\/","header_author_uri":"","rating":3.8,"author_block_rating":0,"active_installs":10,"downloads":9696,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":"1","2":0,"3":0,"4":"1","5":"2"},"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":[225,1386,2333],"plugin_category":[48],"plugin_contributors":[90530,88763],"plugin_business_model":[],"class_list":["post-8899","plugin","type-plugin","status-closed","hentry","plugin_tags-cms","plugin_tags-multilanguage","plugin_tags-translation","plugin_category-language-tools","plugin_contributors-bireme","plugin_contributors-hacklab","plugin_committers-bireme","plugin_committers-catiakitahara","plugin_committers-leogermani"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/multi-language-framework.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Handles creation of multilingual content.<\/p>\n\n<p>This plugin is a work in progress and an effort to be an alternative for handling with multiple languages in a single WordPress translation.<\/p>\n\n<p>Here is a description of how it works:<\/p>\n\n<ol>\n<li>Current solutions and why I dont like them:<\/li>\n<\/ol>\n\n<p>Q-Translate -&gt; saves the content of the post int the same post_content field of the database, separating the languages with html comments.. When the theme outputs the content of a post, it gets filtered and displays only one language. Appart from that, this is an excelent plugin. But I junt cant sleep well at night knowing my database is like this...<\/p>\n\n<p>WPML -&gt; creates a lot of extra tables in a complex database structure and is associated with a translating service. In the top of that, the plugin does a lot more than juts adding the multi language support and claims itself as a cms solution for wordpress... I like plugin that do only one thing very well done.<\/p>\n\n<ol>\n<li>How do I think that can be done?<\/li>\n<\/ol>\n\n<p>2.1 translating posts<\/p>\n\n<p>First, I think it can be done without adding any extra table or doing anything out of the database structure.<\/p>\n\n<p>The approach Im using is to treat translations as post types. So, for instance, if I would translate my posts to spanish, there would be the native \"post\" post type and the plugin would add the \"post_translation_es\" post type.<\/p>\n\n<p>In the edit posts screen, there would be an extra column called 'translations' that would show for each post if it already have the spanish translation. If it has, there is a button 'edit', if it dont, 'add'. If you go to the edit screen of the spanish posts, you would see the same thing, the other way round.<\/p>\n\n<p>This part is already coded and working fine.<\/p>\n\n<p>2.2 translating everything else (appart from taxonomies)<\/p>\n\n<p>I think its nice to be able to translate everything on the site (The site title, te text of a text widget, etc). So what Im trying to do is to add a filter in get_option() and update\/add_option() to allways check which language are we visiting right now (int the front end or the admin, does not matter) and allways look for a corresponding option in the current language.<\/p>\n\n<p>For instance.. if you do a get_option('option_name') and are visiting the spanish site, it will try to find an option called 'option_name_es'. If there is not, it will get the default. Same thing when saving.<\/p>\n\n<h3>Known Issues<\/h3>\n\n<p>Will not work with Post types with a name bigger than 15 chars<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the package<\/li>\n<li>Upload to the plugins folder<\/li>\n<li>Activate it<\/li>\n<\/ol>\n\n<!--section=faq-->\n<ol>\n<li>I have placed some widgets in the sidebar but they wont show up!<\/li>\n<\/ol>\n\n<p>All the options you set in the admin are language-independent. So you can have a different set of wigets for each language of your site. If you want a widget to allways appear you have to edit the widgets settings for all the languages.<\/p>","raw_excerpt":"Handles creation of multilingual content.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/8899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=8899"}],"author":[{"embeddable":true,"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/bireme"}],"wp:attachment":[{"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=8899"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=8899"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=8899"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=8899"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=8899"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es-mx.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=8899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}