[Plugin: Blog-in-Blog] blog in blog and WPML, translation string issues
-
Hi there !
I was trying to make a template so that the list of posts would look the same as the default twenty ten posts. The template works fine for french version, but I’m creating a multilingual website using WPML.
I tried to add stuff to localize the template, for example, for the meta entry :The template code :
<div class="entry-meta"> <span class="meta-prep meta-prep-author"> %publication% </span> <span class="entry-date">%post_date%</span> <span class="meta-sep">par</span> <span class="author vcard">%post_author%</span> </div><!-- .entry-meta -->
I created the %publication% and added this in the blog-in-blog.php file like this :
$template = str_replace("%publication%", __('Posted on','blog-in-blog'), $template);
I added the string in the .pot file, translated it in my french .po file :
#: blog-in-blog.php:372 msgid "Posted on" msgstr "Publié le"
It works like a charme for the French and displays me “Publié le 10 novembre 2010”. Nice. But when I go to the english version of the page on which I used blog-in-blog plugin, it now also displays me the frenche “Publié le” instead of “Posted on”.
So my question : how can I “force” the plugin to display the correct translation in the correct language, using WPML as a plugin to change language ?
(if it can help, I tried to use 2 types of url for the language change with WPML : http://mysite/article/en/ and http://mysite/article?lang=en) but it does not change anything)
- The topic ‘[Plugin: Blog-in-Blog] blog in blog and WPML, translation string issues’ is closed to new replies.