Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1531 2010-05-23 17:42:49

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

Re: MLP - The Multi-Lingual Publishing Pack

I was about to post a “discovery”, but Els, our Queen of Tags, and Guardian Angel of the MLP, discovered it and posted about it before.

Els wrote:

It’s not in the plugin help, but I think you need l10n_get_rendition_id:

<txp:article_custom id='<txp:l10n_get_rendition_id articleid="123" />' />

Thanks, Els!


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#1532 2010-06-10 14:28:44

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: MLP - The Multi-Lingual Publishing Pack

high

testing the plug-in right now and i must say: awesomeness is in the building!!
works fine for me, even in combination with some other plug-ins. nice!!

only (minor) problem i have: when i upload a single image via the standard function, the captions & alt stuff only appears in the original system language, and not, as expected in both (i now have 2 languages running) languages..
only if i pick the picture from the list, both languages appear. am i doing something wrong, or..?

thanks for sharing this monster!!

Offline

#1533 2010-06-10 15:28:11

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: MLP - The Multi-Lingual Publishing Pack

since this is some kind of special (hardcore) plug-in i was wondering if all my other plug-ins would work properly as well. here you can find a list of plug-ins that are running on my actual project.

working flawless

  • tru_tags
  • upm_image
  • upm_img_popper
  • rah_replace
  • gbp_permanent_links
  • rvm_maintenance

working limited

  • glz_custom_fields (works fine, unless you dont need more than the ‘usual’ txp 10 custom fields, and dont create any new ones. is there a hack available?)
  • fpx_image_import (the category-creation wont work properly, since there are multilangual names per category, which wont be generated automatically unless you mod the plug-in)
    • copy the code to some texteditor (like textmate) and go to row 431.
    • $q = safe_insert(“txp_category”, “name=’$catname’, title=’$cattitle’, type=‘image’, parent=‘root’, l10n_title_de_de=’$catname’, l10n_title_en_gb=’$catname’ “);
    • l10n_title_de_de needs to be in the specific language and the complete command needs to be installed for every language (watch for the ending: de_de)..
    • the above example code already includes 2 different languages (german & english)

Last edited by jens31 (2010-06-11 14:48:05)

Offline

#1534 2010-06-10 15:43:43

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

Re: MLP - The Multi-Lingual Publishing Pack

jens31 wrote:

only (minor) problem i have: when i upload a single image via the standard function, the captions & alt stuff only appears in the original system language, and not, as expected in both (i now have 2 languages running) languages..
only if i pick the picture from the list, both languages appear. am i doing something wrong, or..?

That’s just how it works I’m afraid ;)

Offline

#1535 2010-06-16 07:39:06

LetterHoofd
Member
From: Kortrijk, BE
Registered: 2006-01-20
Posts: 40
Website

Re: MLP - The Multi-Lingual Publishing Pack

One of my customer’s sites needed an extra language, so I installed MLP. After the transition we have one problem I can’t solve. I believe it has something to day with the url-rewrite.

In people’s outlook signatures there’s an image that refers to www.domain.com/banner.gif. After going with MLP, that reference doesn’t work anymore. The same goes with trying to access the file directly within the browser.

Does anyone know how to solve this? Probably the .htaccess-file needs to be changed.

Offline

#1536 2010-06-16 18:03:14

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

Re: MLP - The Multi-Lingual Publishing Pack

Would it be an option to move the image to /images/ or another directory that you can exclude in the MLP preferences?
I don’t know much about .htaccess, but my guess is that the MLP rewrite rules happen after the .htaccess ones. I may be wrong though.

Offline

#1537 2010-06-16 18:11:15

LetterHoofd
Member
From: Kortrijk, BE
Registered: 2006-01-20
Posts: 40
Website

Re: MLP - The Multi-Lingual Publishing Pack

I thought of that option, but 80+ people would have to manually change their outlook signatures…

Offline

#1538 2010-06-16 18:16:19

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

Re: MLP - The Multi-Lingual Publishing Pack

Okay, what happens if you move the image to /images/, and put this in .htaccess?

Redirect permanent /banner.gif http://www.site.com/images/banner.gif

You can put it after the closing </IfModule>.

Edit: sorry, forgot a slash.

Last edited by els (2010-06-16 18:17:40)

Offline

#1539 2010-06-16 22:36:19

slabanosa
Member
From: Silva Carbonaria
Registered: 2004-06-01
Posts: 57

Re: MLP - The Multi-Lingual Publishing Pack

jens31 wrote:


  • glz_custom_fields (works fine, unless you dont need more than the ‘usual’ txp 10 custom fields, and dont create any new ones. is there a hack available?)

I just found that out at my expense, txp started spitting out a myriad of errors after creating a couple of extra fields. I’d be interested in knowing if there’s a way around too

Offline

#1540 2010-07-15 01:27:07

emeaguiar
New Member
Registered: 2010-07-13
Posts: 5
Website

Re: MLP - The Multi-Lingual Publishing Pack

Hey guys, just installer this pack but have a problem, now my css isn’t showing in the pages, I read some pages ago and ttry adding a comma or a space to the exclude list but neither worked, it should show the css.php and it return /en/css.php to all my stylesheets, any other solution?

I also got this error in the MLP tab:

Notice: Undefined variable: article_list_pageby in ~/textpattern/lib/l10n_admin_classes.php  on line 4369

But I don’t this that has anything to do with it.

Last edited by emeaguiar (2010-07-15 02:14:03)

Offline

#1541 2010-07-15 09:11:01

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: MLP - The Multi-Lingual Publishing Pack

emeaguiar wrote:

I also got this error in the MLP tab…

Try changing the “articles per page” option at the bottom of the “article” tab and see if it changes something

… I read some pages ago and ttry adding a comma or a space to the exclude list but neither worked, it should show the css.php and it return /en/css.php to all my stylesheets, any other solution?

Why css.php? you have to exclude the folder in which your css file resides (if any).

Offline

#1542 2010-07-15 14:57:56

emeaguiar
New Member
Registered: 2010-07-13
Posts: 5
Website

Re: MLP - The Multi-Lingual Publishing Pack

Changing the number made the error go away.

About the css.php, I was modifying the styles from inside the admin panel because I use different styles for each section, and using a tag to link the styleeseet, as a result it showed css.php?n=stylesheet but with the plugin it won’t work, now I created a css folder and put inside all the css files and it works, just have to repeat code in every section so I can change the stylesheet.

Anyway, works for me now, thanks!

Offline

#1543 2010-07-15 15:42:21

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: MLP - The Multi-Lingual Publishing Pack

I noticed a bug with this when i first started using it. To get it to work even the first item needs to be comma delimited i.e.

,css,js,downloads


I think, therefore I AM, … … er … I think :-?

Offline

#1544 2010-07-15 16:15:13

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

Re: MLP - The Multi-Lingual Publishing Pack

Timid&friendly wrote:

To get it to work even the first item needs to be comma delimited

This has been suggested before. (I’m not going to look for it ;) ) But it’s not always a problem, for me it works fine without the first comma.

Offline

#1545 2010-07-25 11:53:05

kch42
New Member
From: Lübeck, Germany
Registered: 2010-07-25
Posts: 2

Re: MLP - The Multi-Lingual Publishing Pack

emeaguiar wrote:

… I read some pages ago and ttry adding a comma or a space to the exclude list but neither worked, it should show the css.php and it return /en/css.php to all my stylesheets, any other solution?

I had the same problem. I modified .htaccess to fix that:

Code snippet:

	RewriteRule xx/css.php css.php

Insert this for every language you are using (replace “xx” with the language code) after “RewriteEngine On”.
This should work fine.

Offline

Board footer

Powered by FluxBB