Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#997 2008-10-08 03:54:12

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

Re: MLP - The Multi-Lingual Publishing Pack

net-carver wrote:

Did you remember to replace the file txplib_db.php with an original txp one?

Thanks for the reply, Steve. Yes, I renamed the old directory and uploaded a new copy of all the files in the textpattern folder (except for config.php).

I meant to say earlier that the error mostly occurs when I type in a URL that doesn’t exist on the site.

Any other ideas?

Last edited by azw (2008-10-08 04:04:15)

Offline

#998 2008-10-08 11:01:01

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

Re: MLP - The Multi-Lingual Publishing Pack

net-carver wrote:

Are they missing entries on the l10n_owner field?

You are right of course :) the l10n_owner field was empty for those strings. I filled them in phpMyAdmin and now all 147 strings are there in the plugins tab.

Offline

#999 2008-10-08 11:29:47

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: MLP - The Multi-Lingual Publishing Pack

==========
Warning: Table ‘domain_com.l10n_txp_es_es’ doesn’t exist REPLACE INTO l10n_txp_es_es SELECT * FROM textpattern WHERE textpattern.ID=‘29’ LIMIT 1 in /nfs/c01/h03/mnt/34978/domains/cosanglas.com/html/textpattern/lib/txplib_db.php on line 117
========

this warning is at the bottom of my admin pages. Everything seems to be working fine though.

Last edited by kvnmcwebn (2008-10-08 11:30:11)


its a bad hen that wont scratch itself.
photogallery

Offline

#1000 2008-10-08 13:39:07

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

Re: MLP - The Multi-Lingual Publishing Pack

azw

It has to be coming from either the l10n plugin, one of the files it put in the /lib directory or from the txplib_db.php file. AFAIK, that function isn’t called by other plugins and certainly not by straight TXP. The only other option would be a straight call to it from within a <txp:php> block within a page or form.

Els

The big question is now how did those strings end up with blank owner fields? Hmm.

Kevin

Thanks for the notice. Looks like Spanish isn’t properly installed on that site. How did you add es-es to your installation?


Steve

Offline

#1001 2008-10-08 13:48:01

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: MLP - The Multi-Lingual Publishing Pack

Kevin

Thanks for the notice. Looks like Spanish isn’t properly installed on that site. How did you add es-es to your installation?

Hi,
Cant remember-just normal install i thought. I had a few plug-ins active during the installation.
The site has become very buggy, i think I will have do a clean install and build the site again. Unless theres something else i could try.

edited to say im just going to do a clean install. And rebuild the site.
Its the first site ive used it on so i might have done something wrong.

Last edited by kvnmcwebn (2008-10-08 13:53:03)


its a bad hen that wont scratch itself.
photogallery

Offline

#1002 2008-10-08 16:48:44

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

Re: MLP - The Multi-Lingual Publishing Pack

net-carver wrote:

The big question is now how did those strings end up with blank owner fields? Hmm.

Would that be caused by something I did or something you did? ;)
Just in case it provides any clues, I looked at the live site’s table (where I only did the upgrade to 0.8.7 and made no other changes as far as I can remember), and there I find totally different strings with empty owner fields.

(Edit: totally OT, but as of today this plugin thread is the only one with over 1000 posts!)

Last edited by els (2008-10-08 18:08:28)

Offline

#1003 2008-10-08 19:54:56

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

Re: MLP - The Multi-Lingual Publishing Pack

Alright! I found the problem, Steve. There may be others who have made the same mistake so I’ll detail it here for their reference.

I had installed the wan_error_email plug-in, which would have been fine, except that I had edited it to include this line:

 $mailtext .= "\nhu.l10n_get_lang: " . hu.l10n_get_lang();

That line should tell me which language was requested when the error occurred.

Now that this line is gone, the problem disappeared.

Thanks for your advice.

Offline

#1004 2008-10-08 21:09:23

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: MLP - The Multi-Lingual Publishing Pack

Els wrote:

(Edit: totally OT, but as of today this plugin thread is the only one with over 1000 posts!)

Holy crap! This is one thread I will not be reading from start to finish. Likely not many others do either which is probably why it’s so long. :)

Offline

#1005 2008-10-08 21:42:07

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

Re: MLP - The Multi-Lingual Publishing Pack

net-carver wrote:

The big question is now how did those strings end up with blank owner fields? Hmm.

Steve, I found it! I did a fresh install of the MLP Pack (0.8.7dev) in a new Txp install (r2984). I added my l10n_nl-nl_strings.php to the /lib directory before running the install wizard. Exactly 145 strings were found in both the plugins tab and the snippet search tab. No owner fields were empty. Now here’s the strange thing: when I edit a string, save it, and then check the lang table in phpMyAdmin, the owner field has gone blank! Note: this only happens when I edit a string from the snippets search tab, not when I edit it from the plugins tab.
I certainly don’t understand it, but I hope it will give you a clue… If you need more specifications let me know.

Edit: Also this happens: I installed 3 languages on this site, nl-nl, en-gb and pt-pt. So all portuguese strings were missing. When I add a pt-pt translation, not only is the owner field blank but also the event field is ‘public’ instead of ‘admin’. Again, only when edited from the snippets search tab.

BTW: in the l10n_en-gb_strings.php file that is included in the 0.8.7 download, l10n-cleanup_steps occurs twice (line 146 and 160).

Last edited by els (2008-10-08 21:52:48)

Offline

#1006 2008-10-09 00:09:21

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: MLP - The Multi-Lingual Publishing Pack

hi,
probably just me but has anyone had any issues using this plugin with if_section tags?


its a bad hen that wont scratch itself.
photogallery

Offline

#1007 2008-10-09 01:52:24

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

Re: MLP - The Multi-Lingual Publishing Pack

Kevin

I have it working fine with that tag. What issue are you having?

Els

Ok, I’ll look into why the owner field is going blank when edited on the search tab.

azw

Glad you found it!


Steve

Offline

#1008 2008-10-09 08:26:31

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,450
Website GitHub

Re: MLP - The Multi-Lingual Publishing Pack

Els wrote:

(Edit: totally OT, but as of today this plugin thread is the only one with over 1000 posts!)

Destry wrote:

Holy crap! This is one thread I will not be reading from start to finish. Likely not many others do either which is probably why it’s so long. :)

Staying OT for a second, would MLP be a contender to benefit from its own wiki page? Not a replacement for the plugin help, but stuff additional to it, i.e. info surrounding the current issues, Steve’s ToDo list, fix list etc, plus any tips/tricks that people have found and posted here in the thread that help in the installation/running of a multi-lingual site? If all that was consolidated, it could be linked from the plugin help and the 1st post, then this thread can be used to iron out stuff as it is now, with the outcomes transferred by the community into the ‘clean’ (and probably more easily searchable? I don’t know) wiki location.

Just a thought. Perhaps we could discuss the merits (or otherwise) of this in the context of that other thread about the wiki overhaul up there?

Last edited by Bloke (2008-10-09 08:27:58)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB