Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1249 2009-04-20 15:46:25

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: MLP - The Multi-Lingual Publishing Pack

hmmm should i start my own thread with questions about this plugin? we’re at 125 pages haha!

anyways i’m just trying to make sure that it’s the right thing for my project. if i have created a form called “header” which spits out my navigation in english, how does MLP make it so that this header can be translated into french? i have installed the french language and tested it out – mysite.com/fr is working. thanks

Offline

#1250 2009-04-20 15:52:57

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi mrtunes,

You can start using MLP snippets, which are short chunks of texts that can be easily translated.
To create a MLP snippet, you simple put in your page/form template something like this, for example:

##phone##

Then, you go to “Content -> MLP -> Snippets” and from there, you can translate the snippet.
Try it and come back if you need more help.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#1251 2009-04-20 19:23:05

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: MLP - The Multi-Lingual Publishing Pack

thank you maniqui that worked very easily :)

now i’m wondering which tag i use to put the language in the navigation bar. i’m looking at the conditional tag – if i’m on the english page it needs to say francais, if i’m on that page it needs to say english.

Offline

#1252 2009-04-20 20:42:01

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

<txp:l10n_lang_list surpress_current="1" />

It’s all in the plugin help :)

Offline

#1253 2009-04-21 04:49:10

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: MLP - The Multi-Lingual Publishing Pack

In the /plugins/sources folder, there are the 3 php files. Which directory should those be uploaded to? I’ve already copied and pasted the 3 text files from the /plugin folder and installed them as plugins.

Offline

#1254 2009-04-21 04:52:10

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: MLP - The Multi-Lingual Publishing Pack

dreamer wrote:

In the /plugins/sources folder, there are the 3 php files. Which directory should those be uploaded to? I’ve already copied and pasted the 3 text files from the /plugin folder and installed them as plugins.

i dont think those files matter – maybe they’re for people who want to build on the plugin but for using it.

thanks Els, i was having a hard time making sense of that section in the help file. this plugin has been rather impressive to me so far.

Offline

#1255 2009-04-21 06:25:15

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: MLP - The Multi-Lingual Publishing Pack

dreamer wrote:

In the /plugins/sources folder, there are the 3 php files.

mrtunes wrote

i dont think those files matter – maybe they’re for people who want to build on the plugin but for using it.

That is right.

Offline

#1256 2009-04-21 08:08:16

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: MLP - The Multi-Lingual Publishing Pack

Does commenting work ok with MLP-installations? For example, are recent comments separated to langs they belong when showing them on the frontpage?

Last edited by ultramega (2009-04-21 08:08:38)

Offline

#1257 2009-04-21 15:51:06

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: MLP - The Multi-Lingual Publishing Pack

Els wrote:

<txp:l10n_lang_list surpress_current="1" />
It’s all in the plugin help :)

why when i’m toggling languages, it sometimes goes to /en/ter/fr ? which is a dead link?

Offline

#1258 2009-04-21 19:21:59

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: MLP - The Multi-Lingual Publishing Pack

I’m getting the following error. Anybody familiar with this? It started occuring after I tried to translate an article;

Fatal error: Cannot redeclare zem_contact_gtxt() (previously declared in /nfs/c02/h04/mnt/41882/domains/txpkingsley.sachistudio.com/html/textpattern/lib/txplib_misc.php(570) : eval()’d code:2) in /nfs/c02/h04/mnt/41882/domains/txpkingsley.sachistudio.com/html/textpattern/lib/txplib_misc.php(570) : eval()’d code on line 76

Offline

#1259 2009-04-21 19:33:54

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: MLP - The Multi-Lingual Publishing Pack

Have you installed both zem_contact_lang plugins? (the one “standalone” and the one that comes bundled with MLP).

If so, try removing the “standalone” one.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#1260 2009-04-22 00:08:48

mrtunes
Member
From: Toronto, On
Registered: 2007-03-12
Posts: 575
Website

Re: MLP - The Multi-Lingual Publishing Pack

sorry i have another question. i have read the help file.

i cant really understand how you deal with the translation of an entire section. if i have a section called “help”, i have the choice of making a snippet in the navigation bar called ##help## and i can have that translated for each version of the site. but once i want help to link to a <txp:section>, it could be cumbersome. i’m a little lost now but i’m sure the solution to this is easy.

Offline

Board footer

Powered by FluxBB