Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#685 2008-03-17 02:49:05

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

Re: MLP - The Multi-Lingual Publishing Pack

maniqui wrote:

If the lang list is on a form that is called by the page template, you can use txp:if_status to output a different lang switcher when there is a error page.

That’s an interesting idea, Maniqui. Do you have an example of what the code would like like?

By the way, I’m wondering if my initial idea is going to be overly complicated On my error page, the page shows an explanation of the problem. If you were to click on a link for a different language, I don’t think it would automatically know what the error description was. Of course, we could use PHP to send this information to the next page.

Vaya, Julian, escribe en inglés mucho mejor que puedo escribir in castellano. ¡Su habilidad me causó muy buena impresión!

¿Qué significa “maniqui”? ¿Puppet?

Last edited by azw (2008-03-17 02:49:36)

Offline

#686 2008-03-17 12:42:27

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

Re: MLP - The Multi-Lingual Publishing Pack

I was thinking in something like this in the txp form that outputs your lang list bar:

<txp:if_status status="404">
<ul>
<li><a href="<txp:page_url />">English</a></li>
<li><a href="<txp:page_url />">Español</a>
</ul>
<txp:else />
<txp:l10n_lang_list current_class="active" language_class="short" link_current=1 />
</txp:if_status>

I haven’t tested it, so I don’t know what will be the exactly output of <txp:page_url />.
Also, I don’t know if txp:if_status support multiple status values.
Of course, that won’t be a problem if you don’t need/want to use the same txp form for your lang list navigation.

A “maniquí” es more like a showroom dummy. :)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#687 2008-03-17 12:44:35

rainer
New Member
Registered: 2008-03-15
Posts: 8

Re: MLP - The Multi-Lingual Publishing Pack

thanks azw,

I solved it with the help od f your post, using mod_rewrite, pointing the http://domainname.tld/es to http://domainname.tld./es/Startseite – but it’s rather a quick and dirty workaround than a fullblown solution. I am still wondering why it happens in the first place. Shouldn’t it be default behavior to point to the respective startpage in every language? but for now, I’m good.

Offline

#688 2008-03-17 19:08:18

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

Re: MLP - The Multi-Lingual Publishing Pack

Thanks, Maniqui, I’ll play with that.

Rainer, I’m sorry: I misunderstood your needs. I think the main problem is that you want your principal page to not something different from what Textpattern and your web server think is your “home page”. In almost any website, if a visitor goes to a URL which is just the raw domain name ( like www.yourDomainName.com ) they usually go to index.html or home.html or similar equivalents, like index.htm, index.php, etc. Settings on the web server determine what will be considered the home page.

In contrast, you’ve given your principal page a different name. I’m pretty sure that MLP and Textpattern make assumptions about what will be your home page, but you’d be having the same trouble with almost any web server. In other words, what you want to do is not normal.

Your solution halfway fixes the problem but I don’t think it’s a good solution. I’m not sure what the consequences would be for your Google rankings, but that could be negative. In addition, it’s confusing to visitors, and it’s unnecessary work for the server. I recommend against it.

The content you display on your Startseite page can be on the index page (I think this is index.php in Txp, but it’s what appears if you go to your URL). What you probably want to do is to have a static home page. You could create another page that displays the info that would have been shown on the home page.

Here are a couple of links that talk about static pages. (I think I’ve seen other good ones, too.)
http://thresholdstate.com/articles/3667/managing-static-pages
http://textbook.textpattern.net/wiki/index.php?title=Making_an_Article_Static_and_Top-Positioned

Txp really should allow us to choose which page will show that information. It’s not as easy as it could be.

Hope that helps!

Offline

#689 2008-03-30 12:10:19

beatfreak
New Member
Registered: 2006-03-02
Posts: 8

Re: MLP - The Multi-Lingual Publishing Pack

I’ve found a small problem with the <txp:l10n_lang_list /> tag.
Ampersands are not converted to &amp; in url’s so there is a problem with the validation of the page.

You can see the problem live here: http://www.plotstrips.be/magazine/?e=issueindex&issue=2

Last edited by beatfreak (2008-03-30 12:11:02)

Offline

#690 2008-04-01 00:39:39

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

Re: MLP - The Multi-Lingual Publishing Pack

I’ve noticed that Txp (or the server?) occasionally has trouble with accessing sections in which there is only one static page. If someone tries to go the a URL that looks like:

www.domain.com/section/

instead of:

www.domain.com/section/page-address

sometimes (not always) they’ll get a 404, page not found error. Other times, the page appears just fine.

Note that the language marker (/es for Spanish or /en for English) do no appear in these URLs. Adding them usually fixes the problem. But some visitors don’t use them, particularly search engines.

I’m considering whether to rename these static pages:

index

instead of the current addresses which are derived from their titles. Will have have any problems if I do this?

The same page in each languages would all have the same name. Is that a problem?

Last edited by azw (2008-04-02 07:36:21)

Offline

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

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

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: 279

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
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hi michaelb,

fine-tune it to your needings:

YTo1OntzOjU6Im93bmVyIjtzOjIwOiJ6ZW1fY29udGFjdF9sYW5nLW1scCI7czo2
OiJwcmVmaXgiO3M6NzoiemVtX2NybCI7czo0OiJsYW5nIjtzOjU6ImVzLWVzIjtz
OjU6ImV2ZW50IjtzOjY6InB1YmxpYyI7czo3OiJzdHJpbmdzIjthOjI3OntzOjE1
OiJ6ZW1fY3JsLWNvbnRhY3QiO3M6ODoiQ29udGFjdG8iO3M6MTM6InplbV9jcmwt
ZW1haWwiO3M6NToiRW1haWwiO3M6MjE6InplbV9jcmwtZW1haWxfc3ViamVjdCI7
czoxNjoiJHZhcjEgPiBDb25zdWx0YSI7czoyMDoiemVtX2NybC1lbWFpbF90aGFu
a3MiO3M6MzY6IkdyYWNpYXMuIFN1IG1lbnNhamUgaGEgc2lkbyBlbnZpYWRvLiI7
czoyMToiemVtX2NybC1maWVsZF9taXNzaW5nIjtzOjU5OiJFbCBjYW1wbyAmIzgy
MjA7PHN0cm9uZz4kdmFyMTwvc3Ryb25nPiYjODIyMTsgZXMgcmVxdWVyaWRvLiI7
czoyMDoiemVtX2NybC1mb3JtX2V4cGlyZWQiO3M6NjA6IkVsIGZvcm11bGFyaW8g
aGEgZXhwaXJhZG8uIFBvciBmYXZvciwgaW50w6ludGVsbyBudWV2YW1lbnRlLiI7
czoxNzoiemVtX2NybC1mb3JtX3VzZWQiO3M6NzQ6IkVsIGZvcm11bGFyaW8geWEg
aGEgc2lkbyBlbnZpYWRvLiBQb3IgZmF2b3IsIGNvbXBsZXRlIHVuIG51ZXZvIGZv
cm11bGFyaW8uIjtzOjIzOiJ6ZW1fY3JsLWdlbmVyYWxfaW5xdWlyeSI7czoxNjoi
Q29uc3VsdGEgZ2VuZXJhbCI7czoyMToiemVtX2NybC1pbnZhbGlkX2VtYW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bV9jcmwtbmFtZSI7czo2OiJOb21icmUiO3M6MTQ6InplbV9jcmwt
b3B0aW9uIjtzOjc6Ik9wY2nDs24iO3M6MTM6InplbV9jcmwtcmFkaW8iO3M6NToi
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: 279

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

Board footer

Powered by FluxBB