Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#901 2008-08-29 15:33:23

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

redbot wrote:

Hello Steve, unluckily I bring not so good news.

Never mind let’s look at the problems…

I’ve installed your latest development release and I have two problems:
1) The new localized custom fields labels work, but not with glz_custom fields. Do you think in the future it will be possible to make them work toghether?

Ok. I’ll have to look into that. I can’t answer your question until I’ve seen what’s going on in glz_cf’s code.

2) My css doesn’t work anymore. Consider that (as many do) I use an external style sheet file linked in my page form this way:
<snip>
I noticed also you have added a few more options in the “MLP > preferences” sub-tab one of which seems to deal with this problem (Exclude these sections/areas from URL re-writes?). I’ve tried changing it but still no css.

This one should be easy to fix but will require you to adjust the path to your css file a little. The exclusion list works on sub-directories so you could try creating a css directory in the root of your site and putting your css resources in there and then making sure that your directory is in the exclusions list.

<link rel="stylesheet" href="<txp:site_url />css/style.css" type="text/css" media="screen" />

Should then take care of it.

The new version seems to mess with file downloads.

Yes, I found that a day or so after I posted the above. It is fixed locally and it’s a one-line change if you want to try it.

Look for the following lines in the l10n plugin code…

		$first_chunk = _l10n_process_url();
		while( @ob_end_clean() );

…and comment out the while() statement…

		$first_chunk = _l10n_process_url();
		#while( @ob_end_clean() );

Let me know if that helps.


Steve

Offline

#902 2008-08-29 15:59:45

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

Re: MLP - The Multi-Lingual Publishing Pack

Ok Steve!
I reinstalled the development version, applied your changes and everything is allright now, thanks for the very quick help!!

Offline

#903 2008-08-29 16:15:48

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

redbot

Glad that worked for you.


Steve

Offline

#904 2008-08-29 17:04:34

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

Re: MLP - The Multi-Lingual Publishing Pack

Steve
I know I’m exaggerating with requests, so please answer only if you have a quick solution – don’t waste your time ok?
As I said I have to use glz_custom so, apart from the new “custom field label” feature (which is great) I have another question:
I need to set some custom fields (via glz) to be drop down selects or checkboxes and I would like the various menu items to be localized according to the current admin language.
Do you know if there is a way to hack something somewhere to achieve this?
Thanks again for your infinite patience.

Offline

#905 2008-08-29 18:17:50

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

redbot

Doesn’t look like the plugin uses the normal method of grabbing the custom field names — which would explain why they don’t change on the write tab.

I’d probably have to take a good look at the code to determine what would need changing to fix this. Get in contact if you want to talk about this more.


Steve

Offline

#906 2008-08-30 13:45:53

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

Re: MLP - The Multi-Lingual Publishing Pack

Steve,
I’m doing some experiments then I’ll report my findings (if I have some) to you.
Thanks

Offline

#907 2008-08-30 15:16:58

_john_
New Member
Registered: 2008-08-30
Posts: 3

Re: MLP - The Multi-Lingual Publishing Pack

Steve,
At first, i have to thank you for your great work!
I have a problem which can’t solve. Without MLP I can use that url scheme:

1. http://site.com/ => Home page ($pretext[‘s’]->“default” and $pretext[‘c’]->”“)
2. http://site.com/sec => Section page with articles list ($pretext[‘s’]->“sec” and $pretext[‘c’]->”“)
3. http://site.com/sec/article => Article page ($pretext[‘s’]->“sec” and $pretext[‘c’]->”“)
4. http://site.com/category/cat_name => Articles list with category cat_name ($pretext[‘s’]->“default” and $pretext[‘c’]->“cat_name”)
5. http://site.com/sec/category_name => Articles list in section with category category_name ($pretext[‘s’]->“sec” and $pretext[‘c’]->“cat_name”)

With MLP installed I have (with two langs):

1. http://site.com/ => OK! Home page ($pretext[‘s’]->“default” and $pretext[‘c’]->”“)
2. http://site.com/en => OK! Home page with lang selector ($pretext[‘s’]->“default” and $pretext[‘c’]->”“)
3. http://site.com/en/sec => OK! Section page with articles list and lang selector ($pretext[‘s’]->“sec” and $pretext[‘c’]->”“)
4. http://site.com/en/sec/article => OK! Article page with lang selector ($pretext[‘s’]->“sec” and $pretext[‘c’]->”“)
5. http://site.com/en/category/cat_name => OK! Articles list with category cat_name and lang selector ($pretext[‘s’]->“default” and $pretext[‘c’]->“cat_name”)
6. http://site.com/en/sec/category_name => Doesn’t work! 404 page. ($pretext[‘s’]->”“ and $pretext[‘c’]->”“)

How can I fix last url resolve?
Thanks, anyway…

Offline

#908 2008-09-01 11:16:30

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: MLP - The Multi-Lingual Publishing Pack

So the new development release works with ZEM Event?

Where can I download it?

Offline

#909 2008-09-03 15:42:44

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: MLP - The Multi-Lingual Publishing Pack

The version number of the development snapshot here make me think it is very old. Anyway know where the latest is?

Thanks

Offline

#910 2008-09-03 17:53:41

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

FireFusion wrote:

So the new development release works with ZEM Event?

I think it’s the other way around — Graeme’s new version of ZEM Event works better (again not perfectly) with the MLP Pack.

Anyway know where the latest is?

Here is v0.8.7dev. This is the latest dev snapshot but I’ve put it up on my site too for the time being.

Bugfixes

  • Fixes a problem with SQL query re-writes (should work better with other plugins now)
  • Fixes a problem with two live-filters in the snippet pages
  • Fixes a snippet counting bug
  • Fixes file download problem

Improvements / New Features

  • Improved support for sub-directory installs — but still not perfect. Thanks to Graeme for looking at this area.
  • New tags…
    • l10n_inject_lang — See the plugin’s help for this
    • l10n_rendition_lang — Ditto
    • l10n_permlink — Ditto
  • Localised custom-field names for the admin interface
  • Snippet string lists now sorted
  • Plugin strings now listed without the plugin prefix
  • preg_replace() safety checks
  • Faster snippet replacement
  • Fix run-time pass-by-reference warning

Compatibility

  • Now works with adi_menu.
  • Works with aro_myadmin

Beware / Known Issues

  • l10n.css has moved home. This file now resides in the /textpattern directory, not /textpattern/lib.
  • On subdirectory installs, this has problems with URLs that don’t have a trailing ‘/’.
  • This is the development snapshot — but I think I said that already.

Upgrading to this version.

  1. Backup!
  2. Overwrite all the files in your /textpattern/lib directory with those from the zip
  3. Add the zip’s txp_img images to your /txp_img directory
  4. Install the new plugins (with the exception of zem_contact_reborn_lang-mlp if you don’t use zem_contact reborn) and activate them
  5. Delete the existing /textpattern/lib/l10n.css file and install the one from the zip to /textpattern (not in the /lib subdirectory)

Let me know you have any problems.

Last edited by net-carver (2008-09-03 17:55:41)


Steve

Offline

#911 2008-09-04 06:51:18

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

john wrote:

Steve,

http://site.com/en/sec/category_name => Doesn’t work! 404 page. ($pretext[‘s’]->”“ and $pretext[‘c’]->”“)

How can I fix last url resolve?

john, sorry for the late reply. Questions…

  1. What permlink mode are you using on your site?
  2. What version of the MLP Pack are you running?
  3. Did you install the l10n.php plugin before the others or later?

Thank you.


Steve

Offline

#912 2008-09-04 12:52:38

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

Re: MLP - The Multi-Lingual Publishing Pack

Hello,
I’ve installed the last version and it’s working ok.
One question, item 14 of your “Latest MLP updates” is marked as “done”.
From what I can see this is true for categories (under the “write tab”) but still not for sections (they show always in the default language regardles of the language you are using in admin nterface).
It’s a problem of mine or the feature has not been implemented yet?

Offline

Board footer

Powered by FluxBB