|
#1
|
|||
|
|||
|
Bilingual PixelPost
[Edit (11/06): The mods described below, which apply to the templates and the language files, as well as mods that will allow dbase entry switches, are apparently being put into the core files of v1.6. If you apply the mods below, which do not involve dbase tinkering, you will not need to move them forward to v1.6. Also, since my dbase mods may not be the same as those put in place by the core developers, I will not publish them here, but am happy to share them privately with anyone who cannot wait for 1.6 and who is prepared to adjust once 1.6 comes out.]
I have hacked PP to allow a user to switch between French and English in a manner that switches the language files and the templates, but still not the dbase entries (which is way beyond my cut and paste skills). For anyone interested, here is my hack. Note that I put everything in the index.php (I know Connie, I shouldn't) because I couldn't get anything to work as includes. Step 1: (After backing up index.php) I put this near the top of the index.php after the requires. It collects and sets the language preference and prepares the variables: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Step 6 (ongoing): I am searching out all remaining single language items in the index code and in addons that I use and transferring them to the language files. Step 7 (future): convince someone with some spare time (and more MySQL and PHP skills than I) to create a PixelFish addon, one that creates two mirror dbase tables, one with entries for second language versions of the categories, and one with entries for second language versions of the Title and Notes fields, associatied by image number and called depending on language preference. :-) My dev site, where there is also a working version of GeoS' restricted browse addon, is at http://photoblog.sophiepasquet.com. I don't promise that there are no kinks yet to iron out, but feedback is welcome. Rob Last edited by RobbieMc; 12-01-2006 at 01:35 AM. Reason: In response to moderator feedback, added notice about v1.6 compatibility |
|
#2
|
|||
|
|||
|
I have now also hacked the admin files to create bilingual database entries that are also switchable. I made the changes directly to the index files, but maybe when I upgrade to 1.5RC1, I will take the time to try and develop it as an addon.
http://photoblog.sophiepasquet.com Last edited by RobbieMc; 04-04-2006 at 11:34 PM. |
|
#3
|
|||
|
|||
|
Robbie,
I aprreciate your work very much and it would be a great progress to have that as an admin addon it will be a lot less hassle with upgrades ;=) looking forward to have that addon, Connie |
|
#4
|
|||
|
|||
|
Connie, I have tried to convert the above into an addon, in anticipation of 1.5, but most of the elements above seem to need to be run at the beginning of the script, and it seems addons are run at the end. I can get three of the four parts into an include, but even there the template switch code won't work as an include.
Thanks for any suggestions. |
|
#5
|
||||
|
||||
|
Félicitations ! | Well done !
The addon will be great…
__________________
Traducteur de Pixelpost en français. Si vous utilisez les templates par défaut, téléchargez leur version française dans l'espace templates. photofloue.net : un blog en français sur les photoblogs et la photo photoblog work in progress | portfolio |
|
#6
|
|||
|
|||
|
As I said in an earlier post, I modified the admin index to allow for bilingual dbase entries. Here is what my admin panel now looks like for images:
![]() I know I could set up an addon that allowed access to the second language entries through a separate panel, but my question is whether it is possible to integrate these changes the way I have above (that is, in the image control panel) via an addon? Thanks for any help. Rob |
|
#7
|
||||
|
||||
|
cool...
btw, check it for intrusions by bots, overwriting $_COOKIE
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#8
|
||||
|
||||
|
Please sign in/up as a developer to www.Pixelpost.org/v1 and upload the modified files as modification to Pixelpost. it will be available at
http://www.pixelpost.org/v1/index.ph...loads&page=mod there
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#9
|
||||
|
||||
|
Quote:
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#10
|
|||
|
|||
|
Any news about that?
Hi all!
I'm new to Pixelpost (tested it yesterday - very smart - cool) but a multi-lingual addon would make it perfect. Any news about that? I ran a forum search and it seems as if there are quite a lot of people looking for (or even thinking about) a solution. But finally nobody went through with it I think wow_ka must have found a good approach here: http://forum.pixelpost.org/showthread.php?t=1964 because the language switch on his homepage (http://www.phoetic.de/) is exactly what I'm looking for but finally the thread ends up *cry*Best regards from Belgium, Chris |
| Post Reply |
| Thread Tools | |
|
|