Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1516 2010-05-12 16:24:55

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

Re: MLP - The Multi-Lingual Publishing Pack

Regarding the images, you can probably solve this by CSS. If you definitely would like to use an img tag instead of a CSS background-image, you may have to modify the plugin, or maybe you can do some manual coding trickery using the l10n tags combined with mmmm smd_each?

Regarding the lang attribute, you may try to “recreate” URLs using a combination of built-in txp tags (txp:section, txp:permlink, txp:article_url_title) and/or txp:l10n tags, and hopefully what will meet your needs.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#1517 2010-05-12 19:16:24

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

Re: MLP - The Multi-Lingual Publishing Pack

maniqui wrote:

…combined with mmmm smd_each?

rah_replace?

Offline

#1518 2010-05-18 06:59:07

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

Re: MLP - The Multi-Lingual Publishing Pack

Hi!
How can I prevent MLP from translating the word “category” in URL?

I get categories with URLs like this /ru/%d0%9a%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d1%8f/brush-ink/ where “%d0%9a%d0%b0%d1%82%d0%b5%d0%b3%d0%be%d1%80%d0%b8%d1%8f” is translation of the word “category”. I don’t like it I would prefer to keep it “category” for all languages.

Thanks

Offline

#1519 2010-05-18 07:17:41

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

Re: MLP - The Multi-Lingual Publishing Pack

Hi liniocht, the simplest way to do that is go to MLP > snippets and search for the category string, and change the Russian translation to ‘category’. I’m not sure if this string is used elsewhere though… you might not want it in other places.

Offline

#1520 2010-05-18 07:47:13

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

Re: MLP - The Multi-Lingual Publishing Pack

Hi Els, thanks for quick reply.
I thought of that but it seemed to me not a good practice, cause translation takes place anyway. I thought there might be a way to configure it somehow.

Offline

#1521 2010-05-18 07:52:10

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

Re: MLP - The Multi-Lingual Publishing Pack

Btw. MLP doesn’t translate the word in English.
snippet:category
English:Category
Russian:Категория

in English I have /en/category/brush-ink/ not /en/Category/brush-ink/ – it’s not translated

Offline

#1522 2010-05-18 16:44:25

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

Re: MLP - The Multi-Lingual Publishing Pack

Maybe I misunderstood what you want, but try changing Категория to Category (or category), and then view a Russian category page. Isn’t that what you meant?

Offline

#1523 2010-05-18 19:20:35

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

Re: MLP - The Multi-Lingual Publishing Pack

Els, I’ve set all translations to ‘category’ and it works. But I meant that in terms of efficiency it could be better to disable translations of parts of URL when it’s not needed. But I can live with it – it’s a minor inconvenience. I also meant that for English language the translation of the word ‘category’ is not always done.

Last edited by liniocht (2010-05-18 19:25:30)

Offline

#1524 2010-05-18 19:26:48

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

Re: MLP - The Multi-Lingual Publishing Pack

Ah I see. But that’s your preference (and rightly so in the case of Russian language), others might see it differently. The snippet ‘category’ is translated, when used in the URL it just changes to all lowercase. Try changing the English value for ‘category’ to whatever (‘Blah’?) ;)

Offline

#1525 2010-05-19 09:56:32

Si
Member
From: Kiev
Registered: 2008-08-31
Posts: 45
Website

Re: MLP - The Multi-Lingual Publishing Pack

I don’t know if it’s directly related to MLP, but I notice that my default language version (Ukrainian) is quite high in Google search results, while the secondary language (Russian) is buried very very deep in s*it. And it kills me, because I just can’t understand why!

Do you guys have any ideas if MLP can be the reason?

Offline

#1526 2010-05-19 16:24:51

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

Re: MLP - The Multi-Lingual Publishing Pack

Els thanks for all the fish your answers. :) I’ve got one more question.
As I look in the list of pages index by googlebot on my site I see
/drawings/sparrow-on-plum-tree
and
/drawings/en/sparrow-on-plum-tree

It seems /drawings/sparrow-on-plum-tree without language markers is found only in rss and atom feeds. I prohibit indexing /en/rss/ and /en/atom/ so urls without language markers should not be in the search results. But they are. It’s really bad for SEO.
Do you have an idea where it can come from?

Offline

#1527 2010-05-19 17:00:46

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

Re: MLP - The Multi-Lingual Publishing Pack

@liniocht:

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?

IMHO, the possible best current “solution” to this issue is to include a <link href="http://mysite.com/[*en*]/section/title" rel="canonical" /> on every page, and that one should always include the lang mark, even when serving the page at an URL without the lang mark.
That way, you are telling crawlers where is the canonical page for that no-lang-mark URL.
So, the “it’s bad for SEO”, is a more relative thing. I think recetly Google stated a few times that now they are smart enough to detect duplicated contents, and that webmasters shouldn’t be that worried about it as before. The rel="canonical" is a way to help Google robots with this task.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#1528 2010-05-19 18:25:19

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

Re: MLP - The Multi-Lingual Publishing Pack

Julián, thank you.
There’s one thing I still don’t understand – in order to index non-language-mark URL bot has to find a link to it, it’s not enough that this kind of URL works, there must be a link to it. But I blocked rss by robots.txt and double checked it. So where are the links to this non-canonical URLs if not in rss feeds?

Offline

#1529 2010-05-19 18:50:21

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

Re: MLP - The Multi-Lingual Publishing Pack

I couldn’t tell you. Maybe it was indexed by Google before you blocked the rss?

If that’s probable, then it make take some time until Google removes the non-lang-mark result from its SERPs. To “help” Google to remove it, you could try submitting a sitemap.xml, and/or taking a look at the different tools on Google Webmaster Tools.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#1530 2010-05-19 19:17:25

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

Re: MLP - The Multi-Lingual Publishing Pack

Thanks a lot, Julián,
I created a form

<txp:if_individual_article>
<link rel="canonical" href='<txp:site_url /><txp:l10n_rendition_lang /><txp:section link="0" />/<txp:article_url_title />' />
</txp:if_individual_article>

and output it in the header of the default page It adds <link rel=“canonical” href=“http://site_url/lang/section/title_url />

may be it’ll be of any use to somebody

Last edited by liniocht (2010-05-19 19:31:37)

Offline

Board footer

Powered by FluxBB