Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1585 2010-10-25 18:08:28

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

Re: MLP - The Multi-Lingual Publishing Pack

I found this how-to on creating sitemaps with txp without any plugins. It worked out for me but as I said above it’s in Russian. Here is google translation, it seems readable. Try it

Offline

#1586 2010-10-25 18:38:40

macTigers
Member
From: Bernkastel-Kues
Registered: 2008-08-13
Posts: 10

Re: MLP - The Multi-Lingual Publishing Pack

@liniocht

Thanks a lot for your short but sharp, clear and very helpful comment. It really helped and solved the issue. I love the Textpattern community :-)

(It’s been on the previous page)

Last edited by macTigers (2010-10-25 18:40:48)

Offline

#1587 2010-10-25 18:40:21

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

Re: MLP - The Multi-Lingual Publishing Pack

element wrote:
I’m using rah_sitemap but no luck. Google Webmaster Tools let’s me know that 0 pages are indexed that are in the sitemap (I’ve added custom url’s). I’m wonder why domain.com get’s indexed but not domain.com/en/ and the pages below.

Do the URLs in your sitemap have the language markers? Do they contain /en for English and corresponding codes for other languages? If not, your sitemap won’t do you any good.
If you are done with the sitemap, take your time until google indexes it. I started with 2 indexed urls out of 21 submitted. It took almost two weeks to index most of them, now I have 19 of 21. The speed of indexing depends on a lot of factors – the volume of your texts, links to your site, your update frequency – the more frequent the better, and a lot of others. Btw you can add your language-specific urls as sites in google tools and geo-target them.
I have mydomain.com and mydomain.com/ru geo-targetted to different countries.

Last edited by liniocht (2010-10-25 18:44:27)

Offline

#1588 2010-10-27 08:41:09

element
Member
Registered: 2009-11-18
Posts: 99

Re: MLP - The Multi-Lingual Publishing Pack

Thanks for the replies and advice all. Changed to jmd_sitemap_mlp. Will see how it goes. 0 indexed for now, so I’ll play the waiting game and hope it will change.

Offline

#1589 2010-11-05 11:22:48

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

Re: MLP - The Multi-Lingual Publishing Pack

Ive searching, but nothings found:
Ive a website for german and english. The problem is the section-url-name. If i making the normal mlp-installation, then the english-sites have german-words in the url, thats not very intuitive.

I figured out, thats possible to make one english section (now there two sections: german: arbeiten, english: works) and the article for english sites going to english sections.
In the backend, Content – MLP – Articles now there the table with “article” is in red (not in green) with the warning: “section mismatch”.

For the mainnavigation I’ve figured out with l10n_if_lang, if german, then german-section, if english, english-section, thats works good.

Would be that making some unknowns problems?

Edit: I use Textpattern 4.2.0

Edit: Problems:
ouch, yes. Ive a problem with l10n_lang_list.
if the english section active, then I can’t switch to the german section “arbeiten”, it’s switch to the (wrong) german section “works”.

Last edited by lythande (2010-11-05 12:08:05)

Offline

#1590 2010-11-05 12:37:22

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

Re: MLP - The Multi-Lingual Publishing Pack

lythande wrote:

“section mismatch”.

Would be that making some unknowns problems?

I think you can safely ignore this warning; I’ve been using cross-section renditions on a site and apart from the warning I haven’t seen any problems with it.

ouch, yes. Ive a problem with l10n_lang_list.
if the english section active, then I can’t switch to the german section “arbeiten”, it’s switch to the (wrong) german section “works”.

Do you mean when on a section page? If you don’t have too many sections, you might consider hardcoded links to the other languages’ section pages.
If there is a problem on individual article pages as well, then maybe this post can help you.

Offline

#1591 2010-11-05 15:19:01

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

Re: MLP - The Multi-Lingual Publishing Pack

Els schrieb:

Els wrote:

I think you can safely ignore this warning; I’ve been using cross-section renditions on a site and apart from the warning I haven’t seen any problems with it.

much thanks! :-)

Lythande wrote:
ouch, yes. Ive a problem with l10n_lang_list.
if the english section active, then I can’t switch to the german section “arbeiten”, it’s switch to the (wrong) german section “works”.

Els wrote:
Do you mean when on a section page? If you don’t have too many sections, you might consider hardcoded links to the other languages’ section pages.
If there is a problem on individual article pages as well, then maybe this post can help you.

I mean both, for sections and for individual article pages. I have look to your link. Ive now install plugin smd_query, but not sure, I need the plugin rah_replace? And where I can place the code? (directly to the space, where being normally the code l10n_lang_list?)

Offline

#1592 2010-11-05 15:25:33

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

Re: MLP - The Multi-Lingual Publishing Pack

lythande wrote:

I need the plugin rah_replace?

Ah yes, I forgot rah_replace ;) It’s only to change for example ‘en-gb’ to ‘en_gb’, to get the correct table names.

And where I can place the code? (directly to the space, where being normally the code l10n_lang_list?)

Yes.

You will probably need to change the code a little bit to fit your own needs (languages, URL scheme).

Offline

#1593 2010-11-05 16:29:51

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

Re: MLP - The Multi-Lingual Publishing Pack

Now its work, much thanks! :-)

Offline

#1594 2010-11-05 19:23:03

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

Re: MLP - The Multi-Lingual Publishing Pack

mmh, its very strange. now it’s not working and get an error:
after coding not only for if_individual_article, coding for if_section with hardcoding (and then back, as I see thats not good work)
I think not, that Ive have changing anythings in the first code for if_individual_article and the table exist in the mySQL. but get still the error for if_section (but all for this are deleted).

Tag error:  <txp:smd_query column="l10n_group" table='l10n_txp_<txp:rah_replace from="-" to="_">
   <txp:l10n_get_lang type="long" /></txp:rah_replace>' where='ID=<txp:article_id />'> 
   ->  Textpattern Warning: Table 'dbnumber.txp1l10n_txp_en_gb' doesn't exist
   select l10n_group from `txp1l10n_txp_en_gb` as `l10n_txp_en_gb` where ID=58 
   textpattern/lib/txplib_db.php:246 getRows()  on line 113

Edit: Ive see: in my mySQL is only the table “txp1l10n_txp_en_gb” but not with the “dbnumber.”, which is only the whole database-name, but not in the table-name.

Here my code:

  <txp:smd_query column="l10n_group" table='l10n_txp_<txp:rah_replace from="-" to="_">
   <txp:l10n_get_lang type="long" /></txp:rah_replace>' where='ID=<txp:article_id />'>
   <txp:variable name="group" value="{l10n_group}" />
  </txp:smd_query>

last Edit: mmh, Ive making a complet new code, now works again very good.

Last edited by lythande (2010-11-05 19:49:10)

Offline

#1595 2010-11-05 19:47:14

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

Re: MLP - The Multi-Lingual Publishing Pack

databasename.tablename is to be expected there.

But what I see in the error message is a 1 where there should be an underscore: txp1l10n_en_gb should be txp_l10n_en_gb. Maybe there is a typo in your code somewhere?

Offline

#1596 2010-11-05 20:32:59

lythande
Member
Registered: 2009-09-08
Posts: 202
Website

Re: MLP - The Multi-Lingual Publishing Pack

Ive using a table-prefix “txp1” without spaces to table-names.

Its very strange, but as I get new form with again new code from your link and again switch to my needed code, Ive no problems again.
Maybe as I making separately <txp:if_section>-hardcoding for the sections before the lines for if_individual_article, textpattern becomes confused.

Now Ive making a little bit another code, at first if_individual_article, then inside if_individual_article after <txp:else /> the hardcode for each section (is only 5 sections) with l10n_if_lang and if_section. now works clearly and textpattern dont confused. puuh. :-)

Last edited by lythande (2010-11-05 20:34:42)

Offline

Board footer

Powered by FluxBB