mLanguage

mLang FAQ

How to use?

You have only to write post, tagging each language:

eg. [ de ]Deutsch[ /de ] [ en ]English[ /en ]

For titles, you have to write as normal title inside post, the one in the language you have set as default.

Then you have only to scroll till Custom Fields and add:

key: the short tag of the language ( eg. de or en, etc ) value: the title text

How to change default language?

Open the config Menu, you should find it in the Settings Menu. Search for the Language you want to set to default in the List an click on Edit. Now click on the Checkbox labeled ‘Default Language’ and click ‘Update Tag’.

How to add a language support?

Open the config Menu, fill in the Form on the bottom and click ‘Add Tag’.

Language Name = The full name off the Language eg. English

Language Tag = The shorten form ( eg. de or en, etc)

Default Language = Check this if you want to make this Language to your default.

I have included flags for the menu in this languages: de-at, de-de, en, fr, es, ru, it

The de image is curently set to the austrian flag, a german flag is in the directy, you only have to rename the files.

If you want to change the images or include more upload them to /wp-content/plugins/wp-mLang/img/.

They must be named

[TAG].png for the active state. (eg. en.png or de.png)

d[TAG].png for the disabled state. (eg den.png or dde.png)

I got a trouble with titles, how to solve it?

I saw that some templates misuse the the_title function for the anchor title value too. (Babel had this problems and as this addon does nearly the same..)

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 ).

First of all you have to find this line:

title="Permanent Link to <?php the_title(); ?>"

and the replace with this one:

title="Permanent Link to <?php echo strip_tags(get_the_title()); ?>"

“More”problem how to fix ?

More problem is very easy to fix with a simple workaround, you have just to write a post doing this:

[ de ]Before more german[ /de ]
[ en ]Before more english[ /en ]
<!--more-->
[ de ]After more german[ /de ]
[ en ]After more english[ /en ]

Pages: 1 2