{"id":13285,"date":"2011-05-20T12:38:40","date_gmt":"2011-05-20T12:38:40","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/multilingual-text\/"},"modified":"2011-09-21T08:38:50","modified_gmt":"2011-09-21T08:38:50","slug":"multilingual-text","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/multilingual-text\/","author":14571540,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.4","stable_tag":"1.4","tested":"3.2.1","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Multilingual Text","header_author":"ALeX Kazik","header_description":"","assets_banners_color":"","last_updated":"2011-09-21 08:38:50","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=MNZS8NX6QR8PG","header_plugin_uri":"http:\/\/wordpress.org\/extend\/plugins\/multilingual-text\/","header_author_uri":"http:\/\/alex.kazik.de\/","rating":0,"author_block_rating":0,"active_installs":40,"downloads":9667,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"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.0","1.1","1.2","1.3","1.4"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1566884","resolution":"2","location":"plugin"},"screenshot-1.jpeg":{"filename":"screenshot-1.jpeg","revision":"1566884","resolution":"1","location":"plugin"}},"screenshots":{"1":"How a blog looks like","2":"How you write a text"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[6370,1385,1386,99],"plugin_category":[48],"plugin_contributors":[85740],"plugin_business_model":[],"class_list":["post-13285","plugin","type-plugin","status-publish","hentry","plugin_tags-bilingual","plugin_tags-language","plugin_tags-multilanguage","plugin_tags-multilingual","plugin_category-language-tools","plugin_contributors-alexkazik","plugin_committers-seebeen"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/multilingual-text.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/multilingual-text\/trunk\/screenshot-1.jpeg?rev=1566884","caption":"How a blog looks like"},{"src":"https:\/\/ps.w.org\/multilingual-text\/trunk\/screenshot-2.png?rev=1566884","caption":"How you write a text"}],"raw_content":"<!--section=description-->\n<p>Just tag parts of your text to be in different languages, and a flag will appear next to the text and allows users to switch between them.<\/p>\n\n<p>No other elements of the blog will be translated.<\/p>\n\n<p>Use <code>[:gb]<\/code> to specify that the following text part is english, or use any other two char language code.\nTo use one text block in multiple languages use e.g. <code>[:gb,de]<\/code>, which is handy for parts like images.\nWrite <code>[:*]<\/code> to use the block in all (within the text already known) languages.\nYou can without any problem mix many of those tags. e.g. <code>[:gb]english-intro[:de]german-intro[:*]common image[...]<\/code>.<\/p>\n\n<p>Optionally also the title of a text can be multilingual, but requires theme modification.<\/p>\n\n<p>The flags can be placed:<\/p>\n\n<ul>\n<li>next to the text. This is the default and do work out of the box.<\/li>\n<li>next to the title. This requires a template change.<\/li>\n<li>an other place. If you would like to place e.g. the flags in a widget (which is included).<\/li>\n<\/ul>\n\n<h3>Thanks<\/h3>\n\n<p>Thanks to:<\/p>\n\n<ul>\n<li>zorun for the flags<\/li>\n<li>Tamas, Anton for beta testing<\/li>\n<\/ul>\n\n<h3>Contributing<\/h3>\n\n<p>You may overwork the readme and also the other texts... that would be great.<\/p>\n\n<p>If you have ideas\/bugs please contact me.<\/p>\n\n<h3>Code<\/h3>\n\n<p>The package also contains an version for PHP5.3+. The file is functional identical to the other one (which only requires PHP 5.2) but makes usage of a nice new feature and is easier to read\/write.<\/p>\n\n<p>When Wordpress requires PHP5.3+ (sometime in the future) that file will be used.<\/p>\n\n<h3>Flags<\/h3>\n\n<p>The flags are from http:\/\/www.free-country-flags.com\/ and under CC-BY-SA License (http:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/).<\/p>\n\n<!--section=installation-->\n<p>Requirements:<\/p>\n\n<ul>\n<li>WordPress 2.7+<\/li>\n<li>PHP 5.2+<\/li>\n<\/ul>\n\n<p>Installation:<\/p>\n\n<ol>\n<li>Use the 'Plugins\/Add New', or extract the archive into the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>See the configuration in the 'Settings\/General' menu<\/li>\n<\/ol>\n\n<p>Flags (optional):<\/p>\n\n<ul>\n<li>Use the flags in '\/wp-content\/plugins\/multilingual-text\/flags\/' or create a new directory, place your flags there, and specify it in the config (it's not recommended to place your flags in the plugin's directory because those will be overwritten on update)<\/li>\n<\/ul>\n\n<p>Theme Modifications (optional):<\/p>\n\n<ul>\n<li>Flags on title: place a <code>&lt;?php Multilingual_Text::Flags(); ?&gt;<\/code> in front of the title, or where you like to have the flags<\/li>\n<li>Multilingual title: replace the <code>&lt;?php the_title(); ?&gt;<\/code> with <code>&lt;?php Multilingual_Text::Title(); ?&gt;<\/code>, this can't be done automatically because some titles (like the <code>&lt;title&gt;<\/code> or other <code>&lt;meta&gt;<\/code> elements) do not support switching<\/li>\n<\/ul>\n\n<p>Widget (optional):<\/p>\n\n<ul>\n<li>You can place a widget to switch between the languages, in this case you can disable the flags on text\/title. You have to enter the name of all languages which will be showed.<\/li>\n<\/ul>\n\n<p>Custom usage:<\/p>\n\n<ul>\n<li>I you want to use the Multilingual-Text Engine for your own text, you can do so.<\/li>\n<li><code>Multilingual_Text::Parse(string $text [, bool $with_flags = true [, bool $with_text = true ]] )<\/code> will parse the text (ml-style) and returns the generated code.<\/li>\n<li>With the two options <code>$with_flags<\/code> and <code>$with_text<\/code> you can control wether flags and\/or text will be returned.<\/li>\n<li>The generated code will only be returned, so you have to <code>echo<\/code> it - or process it anyway.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt>What language will be displayed?<\/dt>\n<dd><p>The first matching will be picked:<\/p>\n\n<ul>\n<li>If the user was (within the last year) on the site, a cookie has been set and the preferred language of that user is shown<\/li>\n<li>The preferred languages supplied by the browser will be used<\/li>\n<li>The default language you specified<\/li>\n<\/ul><\/dd>\n<dt>In which language are the Feeds<\/dt>\n<dd><p>In the system default language.<\/p><\/dd>\n<dt>What about bots?<\/dt>\n<dd><p>Bots (everything with a \"bot\" in the user agent) will see a different page:<\/p>\n\n<ul>\n<li>Cookies and preferred browser languages will not take place<\/li>\n<li>On a post page all texts are visible<\/li>\n<li>On other pages (like home, archive, ...) only the system default language will be used<\/li>\n<\/ul>\n\n<p>Maybe this is not perfect, please mail me if you know a better way.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.4<\/h4>\n\n<ul>\n<li>Added custom usage<\/li>\n<li>Small fixes<\/li>\n<\/ul>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Fixed an bug where the language selection was dropped<\/li>\n<li>Added \"[:*]\" to write for all languages<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Added a \"Settings\" Link to the plugin page<\/li>\n<li>Added many flags<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Added support for PHP 5.2<\/li>\n<li>Fixed a few flaws<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"With this plugin you can have a text in multiple languages. Easy to use, no requirements.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13285","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=13285"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/seebeen"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13285"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13285"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13285"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13285"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13285"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}