{"id":15712,"date":"2011-11-22T10:37:49","date_gmt":"2011-11-22T10:37:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/flexo-language\/"},"modified":"2011-11-22T14:31:51","modified_gmt":"2011-11-22T14:31:51","slug":"flexo-language","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/flexo-language\/","author":7952248,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0001","stable_tag":"1.0001","tested":"3.0.5","requires":"3.0.5","requires_php":"","requires_plugins":"","header_name":"flexo-language","header_author":"Grigor Grigorov, Mariela Stefanova, Flexo Studio Team","header_description":"","assets_banners_color":"","last_updated":"2011-11-22 14:31:51","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.flexostudio.com\/wordpress-plugins-flexo-utils.html","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1551,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0001"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[1385,2333],"plugin_category":[48],"plugin_contributors":[86016],"plugin_business_model":[],"class_list":["post-15712","plugin","type-plugin","status-publish","hentry","plugin_tags-language","plugin_tags-translation","plugin_category-language-tools","plugin_contributors-flexostudio","plugin_committers-flexostudio"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/flexo-language.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>It allow the user to translate static texts as the example:\necho _l('cat');<\/p>\n\n<p>see http:\/\/www.flexostudio.com\/<\/p>\n\n<h3>How to use<\/h3>\n\n<p>need to make php file that is located inside the theme, it must be said lang_ (languages ??which will translate as lang_en.php)\n and contains the following code:<\/p>\n\n<p>&lt;?php $<strong>FL_DICT<\/strong> = array(<\/p>\n\n<pre><code>   'cat' =&gt; 'Katze',\n   'dog' =&gt; 'Hund',\n.............\n<\/code><\/pre>\n\n<p>);?&gt;\nwhere 'cat' =&gt; 'Katze' 'regulations is a word and its translation.<\/p>\n\n<p>in function.php to add the code:\n&lt;?php if(class_exists('flexoLanguage')){<\/p>\n\n<pre><code>$f  =   dirname(__FILE__);\n\nif(!flexoLanguage::is_set_language())\n    flexoLanguage::set_language('en');\/\/selected language\n\nflexoLanguage::add_dictionary($f);\n\nfunction _l($key){\n    return flexoLanguage::_($key);\n}\n<\/code><\/pre>\n\n<p>}\nelse{\n    function _l($key){return $key;}\n}?&gt;<\/p>\n\n<p>and everywhere in the code where you write words you want to have a translation in another language and place:\n_l('cat');<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download.<\/li>\n<li>Unzip.<\/li>\n<li>Upload to the plugins directory.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Have a nice work.<\/li>\n<\/ol>","raw_excerpt":"Add another language functionality, that is file based without compressions see: http:\/\/www.flexostudio.com\/","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/15712","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=15712"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/flexostudio"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=15712"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=15712"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=15712"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=15712"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=15712"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=15712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}