{"id":2232,"date":"2007-03-16T23:27:30","date_gmt":"2007-03-16T23:27:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/babel\/"},"modified":"2008-08-20T14:47:10","modified_gmt":"2008-08-20T14:47:10","slug":"babel","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/babel\/","author":100005,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.65","stable_tag":"0.65","tested":"","requires":"1.5","requires_php":"","requires_plugins":"","header_name":"Babel","header_author":"gh3","header_description":"","assets_banners_color":"","last_updated":"2008-08-20 14:47:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/p.osting.it\/my-works\/babel\/","header_author_uri":"http:\/\/p.osting.it","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3568,"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":["0.63","0.64","0.65","0.70"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[10597,1385,5199,10598,1386],"plugin_category":[48],"plugin_contributors":[98007],"plugin_business_model":[],"class_list":["post-2232","plugin","type-plugin","status-closed","hentry","plugin_tags-babel","plugin_tags-language","plugin_tags-multi","plugin_tags-multi-language","plugin_tags-multilanguage","plugin_category-language-tools","plugin_contributors-gh3","plugin_committers-gh3"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/babel.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Babel is an interesting plugin that allows you to write your blog content in multilanguage in an easy way, using simple tags in your post.\nIf you are interested in more info about this plugin point your browser to this page: http:\/\/p.osting.it\/my-works\/babel\/<\/p>\n\n<!--section=installation-->\n<ol>\n<li><p>Upload all the files in <code>\/wp-content\/plugins\/babel\/<\/code> directory\nIf you want different languages, or flags you have to create two gif per each language called in this way:<\/p>\n\n<p>lang_tag.gif \nlang_tag_d.gif<\/p><\/li>\n<\/ol>\n\n<p>lang_tag is the tag that you can setup in babel.php file (for more info about add\/modify languages read Faqs)<\/p>\n\n<ol>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>&lt;?php babelize(); ?&gt;<\/code> in your templates<\/li>\n<li>You can start writing blog contents in multiple language using tags like:\n[en]post in english[\/en]\n[it]post in italian[\/it]<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How to use?<\/dt>\n<dd><p>You have only to write post, tagging each language:<\/p>\n\n<p>eg. <code>[it]Italiano[\/it] [en]English[\/en]<\/code><\/p>\n\n<p>For titles, you have to write as normal title inside post, the one in the language you have set as default in babel.php file.<\/p>\n\n<p>Then you have only to scroll till Custom Fields and add:<\/p>\n\n<p>key: the short tag of the language ( eg. it or en, etc )\nvalue: the title text<\/p>\n\n<p>I have to write tags with spaces to let you see how to, but you haven\u2019t to leave any spaces inside tags, or the system won\u2019t work at all.<\/p><\/dd>\n<dt>How to change default language?<\/dt>\n<dd><p>You have to open babel.php file and set all the default value in arrayLang variable to 0, execpt for the one you want to set as default visible.<\/p><\/dd>\n<dt>How to add a language support?<\/dt>\n<dd><p>You can do following these steps:\nOpen babel.php\nLook at arrayLang var\nPoint your mouse between after this line: \n    1 =&gt; array ( \u2018lang\u2019 =&gt; \u2018it\u2019,\u2018default\u2019 =&gt; \u20180\u2032,\u2018title\u2019 =&gt; \u2018Italiano\u2019)<\/p>\n\n<pre><code>Add a comma and press enter\n\nAdd a new lang increasing the first number to 2, and setting all the info like: \n<\/code><\/pre>\n\n<p>2 =&gt; array ( \u2018lang\u2019 =&gt; \u2018fr\u2019,\u2018default\u2019 =&gt; \u20180\u2032,\u2018title\u2019 =&gt; \u2018French\u2019)`<\/p>\n\n<p>The last thing you have do to, is to put inside the babel directory two images called in the same way as \u2018lang\u2019 attribue in the array.<\/p>\n\n<p>Eg.\nIf \u2018lang\u2019=&gt;\u2019fr\u2019 we will have to name the two gifs like: fr.gif ( the active flag one ) and dfr.gif ( for the disabled one )<\/p><\/dd>\n<dt>How to localize menu?<\/dt>\n<dd><p>Menu localization is actually on alpha stage, so it could not work perfectly.<\/p>\n\n<p>Its usage is very simple, look at this example:\n    <\/p><\/dd>\n<dt>I got a trouble with titles, how to solve it?<\/dt>\n<dd><p>I saw that some templates misuse the the_title function for the anchor title value too, and this generate some troubles with Babel.<\/p>\n\n<p>The solution to this problem is very easy, you have to edit a couple of your template files ( in particular single.php, index.php and page.php ).<\/p>\n\n<p>First of all you have to find this line:<\/p>\n\n<pre><code>title=\"Permanent Link to &lt;?php the_title(); ?&gt;\"\n<\/code><\/pre>\n\n<p>and the replace with this one:<\/p>\n\n<pre><code>title=\"Permanent Link to &lt;?php echo strip_tags(get_the_title()); ?&gt;\"\n<\/code><\/pre><\/dd>\n<dt><!--more--> problem how to fix ?<\/dt>\n<dd><p>More problem is very easy to fix with a simple workaround, you have just to write a post doing this:<\/p>\n\n<pre><code>[it]Before more italian[\/it]\n[en]Before more english[\/en]\n&lt;!--more--&gt;\n[it]After more italian[\/it]\n[en]After more english[\/en]\n<\/code><\/pre><\/dd>\n\n<\/dl>","raw_excerpt":"Babel allows you to write your blog contents in multilanguage.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/2232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=2232"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/gh3"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=2232"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=2232"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=2232"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=2232"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=2232"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=2232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}