Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1549 2010-08-05 12:42:00

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

Re: MLP - The Multi-Lingual Publishing Pack

Christoph wrote:

I found out that using smd_short_url together with MLP causes problems.

Maybe you’d better ask in the smd_short_url thread. If there is a solution, Stef will tell you :)

Offline

#1550 2010-08-05 13:18:09

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: MLP - The Multi-Lingual Publishing Pack

Els wrote:

Yes, I did this using smd_query. I had to repeat the code for each language because I used it to build the links to the renditions as well (which is otherwise only possible in individual article mode and I needed it in article list mode). My code is not exactly what you need, but I guess you’ll be able to change it to your needs. I also used variable and if_variable to check if the rendition exists.
Hope it helps you.

Thanks a lot! smd_query is really the swiss army knife for textpattern …

Offline

#1551 2010-08-07 18:28:01

whocarez
Plugin Author
From: Germany/Ukraine
Registered: 2007-10-08
Posts: 305
Website GitHub Twitter

Re: MLP - The Multi-Lingual Publishing Pack

Is it possible to get the language code into the log files?
At the moment I see only index.php instead of ru/index.php or de/index.php

Last edited by whocarez (2010-08-07 18:28:25)

Offline

#1552 2010-09-13 21:29:29

liniocht
Member
Registered: 2009-10-28
Posts: 45
Website

Re: MLP - The Multi-Lingual Publishing Pack

maniqui wrote:

That’s an old “issue” that still persists. URLs without the language markers work too. If you browse some previous pages on this thread (take your time, we are already at page 153 :) ), I’ve reported this “issue” before. I’m not sure if there is something you can do to prevent TXP/MLP to make this non-language-mark URLs to work. Also, should they return a 404? or should they just redirect to the correct URL, including the lang mark?

All of a sudden my no-language-mark URLs from RSS feed started to behave really strange – if current browser language is the same as the language of post – it works as usual. But if the browser language is different from the language of post I get 404 error.

Let’s say I have /ru/odin and /en/one. Before /odin and /one URLs also worked, but now I get 404 from a browser with Russian locale if I try to access /one

Anybody have any ideas? Can it be related to the template switch?

And I get ‘Nice try’ string when I try to access a feed URL from feedburner – google adds a lot of parameters. txp seems unwilling to serve URLs with it.
P.S. I changed ‘Maxumum URL length’ in advanced settings, no more ‘Nice try’.

Last edited by liniocht (2010-09-14 06:34:09)

Offline

#1553 2010-09-14 20:44:54

liniocht
Member
Registered: 2009-10-28
Posts: 45
Website

Re: MLP - The Multi-Lingual Publishing Pack

Sorry. The problem was caused by feedburner.

Two feedburner’s settings confused MLP:
1. Optimize/browser friendly
2. Analyze/Configure stats/Item link clicks

I disabled both and now enjoy both of my feeds :)

Offline

#1554 2010-09-15 07:02:52

liniocht
Member
Registered: 2009-10-28
Posts: 45
Website

Re: MLP - The Multi-Lingual Publishing Pack

It seems to be a MLP bug making RSS feeds unusable with MLP.
URLs in RSS feeds are without language markers when Keep Txp’s normal feed behaviour is ON. When its OFF the feeds are broken.

I take two posts, one in English, the other- in Russian.

http://liniocht.com/drawings/wooden-temples-in-kizhi
http://liniocht.com/drawings/dvor-v-vyborge

If I enter these URls into the address bar of a browser, only one of them loads, the other returns 404 error.
Which one returns error depends on the current language of MLP. As far as I understand MLP has no way of detecting which language the post belong to and searches only in current language.

You can try it yourself, but purge the browser cache first.

To make sure both posts exist you may address them with language markers:
http://liniocht.com/en/drawings/wooden-temples-in-kizhi
http://liniocht.com/ru/drawings/dvor-v-vyborge

and again, purge the browser cache to make sure the bug is replicable

This demo http://mlp-demo.netcarving.com/ demonstrates the same behaviour.

Last edited by liniocht (2010-09-18 20:45:30)

Offline

#1555 2010-09-18 17:09:30

liniocht
Member
Registered: 2009-10-28
Posts: 45
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi, is the thread dead?

Offline

#1556 2010-09-18 17:41:11

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

Re: MLP - The Multi-Lingual Publishing Pack

Hi Liniocht, no the thread isn’t dead, but I can’t answer your question, don’t know how MLP handles (or should handle) this ;) Did you look at your MLP preferences settings, in particular Keep Txp’s normal feed behaviour?
If that doesn’t help, I hope Graeme notices your posts. If you think it’s a bug, you can also file it here.

Offline

#1557 2010-09-18 20:09:08

liniocht
Member
Registered: 2009-10-28
Posts: 45
Website

Re: MLP - The Multi-Lingual Publishing Pack

Can anybody give me links to working MLP-enabled sites? I have to check I’m not the only one having the problem with no-lang-marks URL.

Offline

#1558 2010-09-18 20:50:31

liniocht
Member
Registered: 2009-10-28
Posts: 45
Website

Re: MLP - The Multi-Lingual Publishing Pack

Els wrote:

Hi Liniocht, no the thread isn’t dead, but I can’t answer your question, don’t know how MLP handles (or should handle) this ;) Did you look at your MLP preferences settings, in particular Keep Txp’s normal feed behaviour?
If that doesn’t help, I hope Graeme notices your posts. If you think it’s a bug, you can also file it here.

Els, I’d appreciate if you file the bug described here

I can’t login in to txpforge, I reset my password – still no success.

Offline

#1559 2010-09-21 22:41:34

masa
Member
From: Asturias, Spain
Registered: 2005-11-25
Posts: 1,091

Re: MLP - The Multi-Lingual Publishing Pack

I need to add another language to a site and was wondering whether MLP can be installed on an existing site that already has lots of content?

If so, what, if any, problems might we encounter?

Last edited by masa (2010-09-21 22:42:30)

Offline

#1560 2010-09-22 00:16:37

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

Re: MLP - The Multi-Lingual Publishing Pack

hi masa.

There shouldn’t be any TXP-related problem on adding MLP to an existing site. Of course, you will sweat a little during the process ;).

Of course, there are other issues that you may want to consider and have listed in your check list: URLs will change (you will get the lang chunk for each language, like /en/, /es/, /de/, etc), so website’s positioning/SEO may get hurt during a while, until search engines re-index the website again. Of course, you can prevent/minimize this by doing redirects from old stuff to new stuff, and/or serving a sitemap to search engines with the new URLs, to make them easier to re-index your website properly.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB