Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[archived] gbp_l10n - Multilingual Publishing
A plugin for Multilingual Publishing was requested here I’m happy to oblige.
Two plugins are required:- gbp_l10n version 0.5
- gbp_admin_library version 0.1
Make sure you read the simple plugin help… ask if you have any trouble getting it to work. Also please let me know what your thoughts, ideas, improvements etc…
The plugin is not perfect yet, but I believe it is a good start although it’s probably not ready to be used on a live site.
Finally, I’m looking for someone willing to help me develop this plugin further. Send me a private message if interested. :)
Thanks!
Last edited by els (2009-04-24 23:00:51)
Offline
Re: [archived] gbp_l10n - Multilingual Publishing
I forgot to mention. In order to get the plugin to work you need to have the permanent link mode set to messy, this is temporary.
Offline
#3 2006-06-26 05:05:50
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [archived] gbp_l10n - Multilingual Publishing
Hello Graeme,
thanks for this work. I am taking a look at it now.
— Steve
Offline
#4 2006-06-27 10:41:11
- heikki74
- Member
- From: Finland
- Registered: 2004-08-17
- Posts: 100
Re: [archived] gbp_l10n - Multilingual Publishing
This looks very promising. I get some warnings (Txp 4.0.3 r1238):
Warning: Call-time pass-by-reference has been deprecated – argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in (somepath)/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 39
Same error for lines: 41, 45, 46, 49, 161, 180.
Last edited by heikki74 (2006-06-27 10:42:38)
Offline
Re: [archived] gbp_l10n - Multilingual Publishing
heikki74 wrote:
Warning: Call-time pass-by-reference has been deprecated – argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in (somepath)/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 39
Interesting, what version of PHP are you using?
Offline
#6 2006-06-27 11:19:26
- heikki74
- Member
- From: Finland
- Registered: 2004-08-17
- Posts: 100
Re: [archived] gbp_l10n - Multilingual Publishing
diagnostics says: “PHP version: 5.1.4”.
I’ll try soon with a fresh install. I’ll check if that changes anything.
Offline
#7 2006-06-27 11:47:55
- heikki74
- Member
- From: Finland
- Registered: 2004-08-17
- Posts: 100
Re: [archived] gbp_l10n - Multilingual Publishing
Same thing with fresh Texpattern install (the latest release).
Textpattern version: 4.0.3 (r1362)
Last Update: 2006-06-27 11:35:03/2005-12-26 16:08:55
Document root: (some path)
$path_to_site: (some path)
Textpattern path: (some path)/textpattern
Permanent link mode: messy
upload_tmp_dir: /usr/local/www/php/tmp
Temp folder: (some path)/textpattern/tmp
Site URL: (some url)
PHP version: 5.1.4
Server Local Time: 2006-06-27 11:38:21
MySQL: 4.1.18-log
Locale: en_GB.UTF-8
Server: Apache
PHP Server API: cgi-fcgi
rfc2616_headers:
Server OS: FreeBSD 5.4-STABLE
active_plugins: gbp_l10n-0.5, gbp_admin_library-0.1
Pre-flight check:
------------------------
clean_url_data_failed: <br />
------------------------
.htaccess file contents:
------------------------
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
</IfModule>
#php_value register_globals 0
------------------------
Offline
Re: [archived] gbp_l10n - Multilingual Publishing
Yeah, I was getting that same error.
[edit]
I’m also on php 5.1.4.
Last edited by akokskis (2006-06-27 13:50:42)
Offline
Re: [archived] gbp_l10n - Multilingual Publishing
Okay thanks guys.
I’m on PHP 4.4.x so I will try upgrading and hunt down the problem tonight.
Offline
#10 2006-06-29 08:03:59
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: [archived] gbp_l10n - Multilingual Publishing
Hi Graeme,
further to our discussion on this, looks like the $thisarticle changes due in the next release might impact your plugin (and mine too!) I intend to check it out soon.
If I understand this correctly, the intention is not to parse body/excerpt except when the body and excerpt are actually used, so using special localisation tags in the body to switch article title (needed, even in localised article lists) will no longer work.
— Steve
Offline
Re: [archived] gbp_l10n - Multilingual Publishing
net-carver wrote:
further to our discussion on this, looks like the $thisarticle changes due in the next release might impact your plugin (and mine too!) I intend to check it out soon.
Good spot, I think it’s okay tho. I’m overriding $thisarticle
when <txp:gbp_localize>
is called during the parse()
stage so all should be good. I did a quick test and it seems fine.
As for the PHP 5 problems, I’m having trouble getting it installed sucussfully. I will give it another go this weekend.
Offline
#12 2006-06-29 12:22:47
- heikki74
- Member
- From: Finland
- Registered: 2004-08-17
- Posts: 100
Re: [archived] gbp_l10n - Multilingual Publishing
Does it help if you get publisher privileges to a textpattern test site which is running with php5?
I could do that today or tomorrow.
Offline