Textpattern Forum

You are not logged in. Register | Login | Help

#691 2008-04-02 07:26:13

azw
Member
Registered: 2007-01-29
Posts: 277

Re: MLP - The Multi-Lingual Publishing Pack

Man, this is getting frustrating.

I have been trying to use the .htaccess file to redirect pages from an old website into a newTxp site using the MLP.

The old site had a subdomain for the English translation of the main site. So in its .htaccess file, I’ve got redirects for every page to its mate in the new site, like this:

redirect 301 /old-section-name http://www.main-domain.com/en/new-section-name

Then in the main domain, which originally held only the Spanish version, I’ve got similar redirects to the new Spanish pages and sections:

  Redirect 301 /old-section-name http://www.main-domain.com/es/new-section-name

The first part of those redirects only lists the section in some cases because the section contains just the one page. In other cases, the first part only lists a page:
/page-name.html.

This works great for the site navigation.

I’m still getting 404 (page not found) errors, especially from Alexa and Googlebot. It appears that they are indexing my pages without putting the language marker in the URL, like:
http://main-domain.com/new-section-name/rendition-name

As a result, I’ve had to add a bunch more redirects for the English and Spanish pages, like this:

  Redirect 301 /new-section-name/new-rendition-name 
http://www.main-domain.com/es/new-section-name

That’s all on one line.
If the section has more than one article, I add the new-article-name to the second part of the redirect.

I’ve never had to have so many redirects.
Am I doing something wrong? Is there a problem in MLP?

Last edited by azw (2008-04-02 08:00:31)

Offline

#692 2008-04-02 09:02:22

azw
Member
Registered: 2007-01-29
Posts: 277

Re: MLP - The Multi-Lingual Publishing Pack

I’ve just learned that if I include the language marker (/es or /en) in the url, the marker is not returned in the $_SERVER[‘REQUEST_URI’] value.

The MLP removes the language markers, doesn’t it. Is there a relationship between this and the search engines not including the language markers in their requests?

Offline

#693 2008-04-04 23:24:43

michaelb
Member
From: London, UK
Registered: 2008-04-02
Posts: 21

Re: MLP - The Multi-Lingual Publishing Pack

Hi,

Does anyone know where I could find the text strings in zem_contact_lang(-mlp) translated into Spanish?

Thanks for any help you have on this…

Last edited by michaelb (2008-04-04 23:25:16)

Offline

#694 2008-04-05 02:57:05

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 2,988
Website

Re: MLP - The Multi-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2nDs24iO3M6MTM6InplbV9jcmwtcmFkaW8iO3M6NToi
UmFkaW8iO3M6MTY6InplbV9jcmwtcmVjZWl2ZXIiO3M6MTI6IkRlc3RpbmF0YXJp
byI7czoxNDoiemVtX2NybC1zZWNyZXQiO3M6NzoiU2VjcmV0byI7czoxMjoiemVt
X2NybC1zZW5kIjtzOjY6IkVudmlhciI7czoxMjoiemVtX2NybC1zcGFtIjtzOjI4
OiJObyBhY2VwdGFtb3MgU1BBTSDCoUdyYWNpYXMhIjtzOjEyOiJ6ZW1fY3JsLXRl
eHQiO3M6NToiVGV4dG8iO3M6MTA6InplbV9jcmwtdG8iO3M6NDoiUGFyYSI7czox
ODoiemVtX2NybC10b19taXNzaW5nIjtzOjU2OiJGYWx0YSBkaXJlY2Npw7NuIGRl
IGUtbWFpbCDigJw8c3Ryb25nPlBhcmE6PC9zdHJvbmc+4oCdLiI7czoxNjoiemVt
X2NybC1jaGVja2JveCI7czo4OiJDaGVja2JveCI7fX0=

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#695 2008-04-05 03:41:06

azw
Member
Registered: 2007-01-29
Posts: 277

Re: MLP - The Multi-Lingual Publishing Pack

I’m sure Maniqui’s Spanish is much better than mine, but I have one in Spanish and another in Asturian. PM me if you’d like to see them.

Offline

#696 2008-04-05 14:24:40

michaelb
Member
From: London, UK
Registered: 2008-04-02
Posts: 21

Re: MLP - The Multi-Lingual Publishing Pack

maniqui & azw, thank you very much. I appreciate your swift help!

azw – I’d be interested to have the Spanish one, but I’m new to the forum and don’t know how to PM you. What’s the easiest way you could send me the translations? If you can do it by email, here’s my address: lifeforceemf (at AOL – the usual dot com).

thanks again to both!

Last edited by michaelb (2008-04-05 14:28:29)

Offline

#697 2008-04-05 16:57:35

azw
Member
Registered: 2007-01-29
Posts: 277

Re: MLP - The Multi-Lingual Publishing Pack

Okay, I’ve emailed a file to you, Michael.

Funny, but now that I look more carefully, I don’t think this system has PMs!

Last edited by azw (2008-04-05 16:58:23)

Offline

#698 2008-04-06 15:52:36

maniqui
Moderator
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 2,988
Website

Re: MLP - The Multi-Lingual Publishing Pack

michaelb,

You can import the weird code I’ve copy pasted into the Content-> MLP -> Plugins


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#699 2008-04-06 16:14:03

azw
Member
Registered: 2007-01-29
Posts: 277

Re: MLP - The Multi-Lingual Publishing Pack

Thanks, Maniqui, for explaining how to do that! I was wondering.

Here’s another Spanish version

YTo1OntzOjU6Im93bmVyIjtzOjIwOiJ6ZW1fY29udGFjdF9sYW5nLW1scCI7czo2
OiJwcmVmaXgiO3M6NzoiemVtX2NybCI7czo0OiJsYW5nIjtzOjU6ImVzLWVzIjtz
OjU6ImV2ZW50IjtzOjY6InB1YmxpYyI7czo3OiJzdHJpbmdzIjthOjIxOntzOjIw
OiJ6ZW1fY3JsLWZvcm1fZXhwaXJlZCI7czo1MjoiRWwgZm9ybXVsYXJpbyBjYWR1
Y8OzLCBzZSBydWVnYSBpbnRlbnRhcmxvIGRlIG51ZXZvLiI7czoxNzoiemVtX2Ny
bC1mb3JtX3VzZWQiO3M6NjQ6IkVsIGZvcm11bGFyaW8geWEgaGEgc2lkbyBwcmVz
ZW50YWRvLCBzZSBydWVnYSByZWxsZW5hciBkZSBudWV2by4iO3M6MjM6InplbV9j
cmwtZ2VuZXJhbF9pbnF1aXJ5IjtzOjE3OiJTb2xpY2l0dWQgZ2VuZXJhbCI7czoy
MToiemVtX2NybC1pbnZhbGlkX2VtYWlsIjtzOjc3OiImIzgyMjA7PHN0cm9uZz4k
dmFyMTwvc3Ryb25nPiYjODIyMTsgIG5vIGVzIHVuYSBkaXJlY2Npw7NuIGRlIGNv
cnJlbyB2w6FsaWRhLiI7czoyMDoiemVtX2NybC1pbnZhbGlkX2hvc3QiO3M6NzM6
IiYjODIyMDs8c3Ryb25nPiR2YXIxPC9zdHJvbmc+JiM4MjIxOyBubyBlcyB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NlaXZlciI7czoxMjoiRGVzdGluYXRhcmlvIjtzOjE0OiJ6ZW1fY3JsLXNl
Y3JldCI7czo3OiJTZWNyZXRvIjtzOjEyOiJ6ZW1fY3JsLXNlbmQiO3M6NjoiRW52
aWFyIjtzOjEyOiJ6ZW1fY3JsLXNwYW0iO3M6Mjk6IsKhTm8gYWNlcHRhbW9zIHNw
YW0sIGdyYWNpYXMhIjtzOjEyOiJ6ZW1fY3JsLXRleHQiO3M6NToiVGV4dG8iO3M6
MTA6InplbV9jcmwtdG8iO3M6MTAzOiJOaW5nw7puIGRpcmVjY2nDs24gZGUgY29y
cmVvIGVsZWN0csOzbmljbyAmIzgyMjA7PHN0cm9uZz5kZSBkZXN0aW5hdGFyaW88
LyBzdHJvbmc+JiM4MjIxOyBlc3BlY2lmaWNhZGEuIjtzOjE4OiJ6ZW1fY3JsLXRv
X21pc3NpbmciO3M6Nzg6IkZhbHRhIGxhIGRpcmVjY2nDs24gZGUgY29ycmVvICYj
ODIyMDs8c3Ryb25nPmRlbCBkZXN0aW5hdGFyaW88L3N0cm9uZz4mIzgyMjE7LiI7
fX0=

Offline

#700 2008-04-06 23:01:43

michaelb
Member
From: London, UK
Registered: 2008-04-02
Posts: 21

Re: MLP - The Multi-Lingual Publishing Pack

Thanks again to both of you for your help. That’s a pretty nifty feature of MLP – to be able to export & import the plugin strings!

Offline

Board footer

Powered by FluxBB