I used the trick to use <span> to change the languages in the menu items.
Example:
<span class=”en”>Activities</span><span class=”de”>Aktivit?ten</span><span class=”fy”>Aktiviteiten</span><span class=”nl”>Activiteiten</span>
When I click on the flags the titles changes perfectly.
The problem occurs when I click on the link in the menu.
The menu then shows the tags from all the languages.
In this case: ActivitiesAktivit?tenAktiviteitenActiviteiten
Is this solvable?
Hopefully you still read this reaction.
]]>How can I use mlanguage for widgets?
When I write [en][/en] or the same with de, then it shows that in the website.
How can I have image titles and descriptions in my 3 languages in a gallery?
I am using Ghost theme by Renkli Beyaz for https://www.francoisebertolini.com
]]>Hello,
It seems I can’t use “caption” tags while activated the catalan language (“ca”). It looks like that when mLanguage finds an open/close “caption” tag it infere it starts or ends catalan language. I tried many different kind of nesting and there were very weird results in all cases. The only explanation is that mLanguage reads the firse couple of letters of “CAption” and goes crazy…
After intalling the plugin I getting this line in my header:
Warning: Missing argument 2 for mlang_title() in /home/xxxxx/public_html/wp-content/plugins/mlanguage/mlanguage.php on line 243
The plugin works, but with that text line over the header, and the blog looks horrible.
What can be???
]]>Hi:
I’am new with this plugin, and having a problem.
When installed the plugin my site showing this warning line beafore header:
Warning: Missing argument 2 for mlang_title() in /home/mysite/myserver/wp-content/plugins/mlanguage/mlanguage.php on line 243
What can be? Anyone knows???
Thank’s in advance
]]>Hi,
I have a blog for which only a few posts are translated in several languages. I want to display the mlang-menu only on posts with contents in several languages, and only with the relevant languages.
It somehow works if I put this in the post itself (html view):
<script type="text/javascript" src="https://localhost/wordpress/wp-content/plugins/mlanguage/mlanguage.js?ver=3.0.5"></script>
<a class="mlang-menu-link" href="/" data-lang="en">
<img class="mlang-menu-image" style="outline: medium none;" src="https://localhost/wordpress/wp-content/plugins/mlanguage/img/den.png" alt="English" />
</a>
<a class="mlang-menu-link mlang-active" href="/" data-lang="fr">
<img class="mlang-menu-image" style="outline: medium none;" src="https://localhost/wordpress/wp-content/plugins/mlanguage/img/fr.png" alt="fran?ais" />
</a>
HOWEVER, when you first go to the web site, if you click very rapidly to the language button, it goes to the root page of the website (here, to: https://localhost/).
Maybe it is because the mlanguage.js is not loaded yet.
If you wait or have already loaded mlanguage.js, then it works (until you clear the cache).
Any hint on how to solve this?
Thanks!
PS: a bonus would be to have a short code instead of the above html code.
I use xlanguage before, but seem xlangguage not longer support by developer. Then I found mlanguage is more easy of use. If you like to setup a multilingual blog and write your post smoothly then I suggest you use this plug in.
Useful feature:
Use it on custom theme like this
<span class=”zh”>语言</span>
<span class=”en”>Language</span>
Switch between language:
Find it at your Widget
I suggest the developer explain the ‘custom use’ and ‘add language switch button’ in the document
]]>Hi there!
I’m running WordPress 3.3 and the theme ‘Bubbles Squared’. I’ve also installed the mLanguage plugin, which is working quite well, except for the fact, that I can’t get the titles to change along with the text itself. I’ve done what you write in th FAQ for the plugin, like changing
title=”Permanent Link to <?php the_title(); ?>”
–>
title=”Permanent Link to <?php echo strip_tags(get_the_title()); ?>”
in pages like page.php, index.php and single.php .
It didn’t work – and then I tried adding this to each and every site:
key: the short tag of the language ( eg. de or en, etc )
value: the title text
but then my site got completely lost. Sometimes it makes links in the navigationbar disappear, sometimes it show the title twice like ‘Home”>Home’ indstead of ‘Home’ if the language is set to english.
If I put my mouse over the link, the tect says ‘<span class=”‘ so i figure somethings wrong with the the_title() or whatever. I tried so many different combination, but I just can’t get it to work, so I really hope you can help me – I want it to work – it’s such a nice plugin!
Btw – the site is https://www.metteheisz.dk.
Thx
Teeky
]]>Hi,
I’m using the plugin and it’s almost all OK, the only problem is that i made a custom Template for a static page in the menù (like a contact page), the content of this page is wrote directly in the html/php of the .php file, without the use of the classic WP Pages editor.
How i can make the plugin work also in this page? I tried to insert the tags [en] [/en] in the html structure but the plugin doesn’t see them and WP print them.
Is there a codes I should insert in the template structure to enable the plugin?
thank you
Hi,
when I enable mLangage and edit posts or pages, then the “Visual” <-> “HTML” switch is broken. “Visual” does show “HTML”, too.
There is no difference. Always “HTML” is used.
Cheers
Chris
Hi, I’d like to make a small modify in your plugin but no success. I’d like to be able to set the displayed language also from url (with $_GET ), but I can’t find the right place for this in your code.
I admit that I’m a lame, I simply can’t find where you get the cookie’s value ??
Any help would be appreciated.
(WP 3.1 ML 1.5.6)
]]>Tried this plugin with wp e-commerce plugin but can’t get the content in single product view to get translated. Only content on main products-page get translated.
The language tags is displayed on single view.
Any ideas or hints?
/Daniel
]]>Autor,
I tried your wordpress plugin mlanguage, and I would like to report a bug:
I installed your plug in and modified the theme page single.php, index.php and page.php with this code:
before:
title="Permanent Link to <?php the_title(); ?>"
after:
`title=”Permanent Link to <?php echo strip_tags(get_the_title()); ?>”
`
then,I write the title of page in default language, and i white on the key :
key: en
value: the title of page
but when I change language whit the widget , the “personal menù widget” changes ALL the title with the English title!
Could you please fix it?
for eg. you can see my site:
https://www.bibyportal.net/yukiko-kawa/chi-sono-2/
default language : Italian
second language : English