Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1189 2009-02-05 21:37:47

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

Re: MLP - The Multi-Lingual Publishing Pack

Been searching this thread to find an answer but with 119 pages and the limited search function… :-P
Anyway, I was just wondering if it’s possible to rename the languages that appear in l10n_lang_list (like, putting FR instead of French) or even to use images instead. Also, is there a list of all CSS selectors for MLP?

Thanks,
B.

Last edited by ploinkr (2009-02-05 21:57:38)

Offline

#1190 2009-02-05 22:37:23

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

Re: MLP - The Multi-Lingual Publishing Pack

ploinkr wrote:

like, putting FR instead of French

You could do that with <txp:l10n_lang_list display="short" /> which will output ‘fr’, and use CSS to transform it to uppercase.

or even to use images instead.

I assume that can be done with an image replacement technique.

Also, is there a list of all CSS selectors for MLP?

Not that I know of.

Offline

#1191 2009-02-05 22:50:14

ploinkr
Member
From: Montreal
Registered: 2007-12-06
Posts: 83

Re: MLP - The Multi-Lingual Publishing Pack

Thanks Els, will try that :-)

Offline

#1192 2009-02-07 19:45:04

Carlosjoao
New Member
From: Portugal
Registered: 2009-01-15
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

Hi,

I’m using <txp:l10n_lang_list/> to change my language.
However now my client want a pretty picture on the link place.
I was doing that with snippets and CSS, but that only works for the background. And now I need to use a image for the text also.

There’s any way to use a image instead of the regular link MLP generates?

Thank you

Offline

#1193 2009-02-08 00:19:54

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

Re: MLP - The Multi-Lingual Publishing Pack

You could try a plugin like ied_replacer.

Offline

#1194 2009-02-08 21:50:53

Carlosjoao
New Member
From: Portugal
Registered: 2009-01-15
Posts: 7

Re: MLP - The Multi-Lingual Publishing Pack

Thanks Els,

you give me a push in the right direction, however ied_replacer was created to substitute text in articles. So I tried to reinvent the wheel.

I’m very sorry, this seems kind of off topic, but since its closey related to MLP I’ve posted here

This what I did so far

Create a new plugin with the following code

function kaj_rep ($atts){
	extract(lAtts(array(
		'replace'  => '1','with' =>'2', 'where' => '123'
		),$atts));
return str_replace($replace, $with, $where);
	}

and inside my form this:

<txp:kaj_rep replace="Português"
            with='<img src="/styles/pt24.png" />'    where='<txp:l10n_lang_list/>' />

So I had the results I wanted a nice round wheel :) except that I dont know how to pass arrays into the parameter

Now comes the problems, I got a error 500 if:

I use a <txp:l10n_lang_list/> tag with a <txp:kaj_rep /> on the same page
The same happens if I use two <txp:l10n_lang_list/>tags on the same page

Changing my 'where' parameter to something else diferent from <txp:l10n_lang_list/> and the page works again.

So far I’ve managed to get this working form:

<txp:variable name="substituir" value='<txp:l10n_lang_list surpress_current="y"/>' />

<txp:l10n_if_lang lang="en">
       <txp:kaj_rep replace="Português"
               with='<img src="/styles/pt24.png" />'    where='<txp:variable name="substituir" />' />
   <txp:else />
       <txp:kaj_rep replace="English"
               with='<img src="/styles/gb24.png" />'    where='<txp:variable name="substituir" />' />
</txp:l10n_if_lang>

Any comments on this double <txp:l10n_lang_list/> error?
Or on my plugin code for that matter, any help about passing arrays has a parameter?

I’m pretty sure there a solution already made somewhere that I missed !!!

Please If you are going to reply to me, keep it simple. This work was very hard to me to come by and I still don’t fully understand parts of it.

Offline

#1195 2009-02-12 11:57:49

maded
New Member
Registered: 2009-02-12
Posts: 2

Re: MLP - The Multi-Lingual Publishing Pack

….
Add the per-language article tables…

1. Add the Italiano [l10n_txp_it_it] table : Failed
2. Add the English [l10n_txp_en_us] table : Failed

Insert MLP tags into pages : Done
….

I can create them manually?
Where I can find the structure base for the tables?

tnks

Last edited by maded (2009-02-12 12:01:40)

Offline

#1196 2009-02-12 17:59:29

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

Re: MLP - The Multi-Lingual Publishing Pack

Carlosjoao

Any comments on this double <txp:l10n_lang_list/> error?
Or on my plugin code for that matter, any help about passing arrays has a parameter?

I don’t know about your plugin code, sorry, but have you tried changing the single quotes in your tags to double quotes?

maded

That’s strange. I wonder if it has to do with database permissions? Have you tried running the uninstall wizard and then install again? If that doesn’t work, here is the table structure. My phpMyAdmin interface is in Dutch, but I suppose you can figure it out.

Offline

#1197 2009-02-13 11:17:55

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: MLP - The Multi-Lingual Publishing Pack

Hello, I have tried to go through this thread carefully to make sure that I don’t repeat something that has already been asked. It’s about SEO. I note the post or two that Julián has made and wanted to use that as a starting point.

Recently I was given the task of revamping a French site, making it bilingual French/English. I had never done a bilingual site before, but I had read up on MLP and so I thought it should be possible. The existing French site was a mess (not semantic, no doctype declared, lots of other things) and didn’t even come up within the first four or five pages of a search. I assumed that it was because the site was such a mess under the hood; I felt confident that I could make it come up first. Not usually a problem. Well, it doesn’t come up first. It comes up somewhere around the bottom of the first page or top of the second page. The site has been live for over a month. I’m tearing my hair out trying to figure out what the problem is. (The site validates.) If I go to google.fr, I see that google is citing the French description from the metatags, e.g., “il est l’auteur de plusieurs livres sur le psychanalyse”; if I go to google.com, I see that the English description comes up, e.g., “he has written several books blah blah”. And that is indeed what I wanted to happen, but I also wanted the site to be toward the top, easy for people to find.

One of the first things I wondered about from the outset was SEO, but not necessarily for the reasons outlined by Julián. I wondered how it would work with the metadata (keywords, description). But once I installed MLP and kind of figured out how to implement it, I thought the solution would be easy. Make the metadata a form and just make French and English versions of the keywords and description, etc. Do other people do it this way? Is it a mistake to do it this way? Could this practice be hurting the site’s ranking somehow?

So I came to look through this thread, and I saw Julián’s posts on the subject. Duplicate URLs hadn’t occurred to me, but what he says makes sense. I wonder if anyone else has encountered problems with SEO for this reason. Or for any reason.

Sorry this is so long and hope I’ve been clear. Everything else is working as it should. TxP version 4.0.7 / l10n version 0.9.11

Offline

#1198 2009-02-13 16:47:02

maded
New Member
Registered: 2009-02-12
Posts: 2

Re: MLP - The Multi-Lingual Publishing Pack

Els

That’s strange. I wonder if it has to do with database permissions?

Yes root permissions

Have you tried running the uninstall wizard and then install again?

10 times

If that doesn’t work, “here” is the table structure. My phpMyAdmin interface is in Dutch, but I suppose you can figure it out.

tnk :)

note:
i’m use WAMP local solutions.
I have test with and without virtualdomain but nothing work.
any idea.

Grazie .. thanks

Last edited by maded (2009-02-13 16:49:13)

Offline

#1199 2009-02-17 08:20:44

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

Re: MLP - The Multi-Lingual Publishing Pack

How can be rss-feeds organized with MLP site – can user subscribe for a feed of just one language, instead getting all renditions? I haven’t tried yet, so may be silly question. Going to need them for the next site…

Offline

#1200 2009-02-18 19:45:50

Kjeld
Member
From: Tokyo, Japan
Registered: 2005-02-05
Posts: 446
Website

Re: MLP - The Multi-Lingual Publishing Pack

MLP creates separate a feed for each language, but you could create a special page where you list all feeds, so people can sign up for all languages if they want to.


Old Photos of Japan – Japan in the 1850s~1960s (100% txp)
MeijiShowa – Stock photos of Japan in the 1850s~1960s (100% txp)
JapaneseStreets.com – Japanese street fashion (mostly txp)

Offline

Board footer

Powered by FluxBB