Dear Gallery community,
I have been using Gallery for a few years now
and recently decided to rebuild my website from scratch.
During that process I installed Gallery 2.3 without any
hassle, most of the modules are up and running to now,
all in dutch.
But....during the installation of the checkout module it
halts, stating it has 32 seconds remaining (estimate).
I have had that before, so I disregarded this.
Now it tunrs out that I have only the enlish language
availbale in checkout. I checked the locales folder
in the module and it is empty. The po folder only
holds the GNU-file and the RAW string-file.
During installation Gallery2 mentions the dutch langauges-pack:
Download Checkout
Download a package in order to use this plugin. You can upgrade by choosing a newer version of the package to download.
Basis Pakketten
Nu geïnstalleerd: versie 0.4.3 (bouw 1719)
The following language packages are available for this plugin
Nederlands versie 1712
Does anyone now how to solve this?
My setup is:
Gallery versie = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Thema 2.6, Embed 1.5
PHP versie = 5.2.9 apache
Web server = Apache/1.3.41 (Unix) PHP/5.2.9 mod_ssl/2.8.31 OpenSSL/0.9.7a mod_perl/1.29 FrontPage/5.0.2.2510
Database = mysqlt 5.0.45-community, lock.system=flock
Toolkits = Exif, LinkItemToolkit, Thumbnail, Gd, SquareThumb
Versnelling = none, none
Besturingssysteem = Linux da.webserver.nl 2.6.9-55.0.9.ELsmp #1 SMP Thu Sep 27 18:27:41 EDT 2007 i686
Standaard thema = carbon
gettext = geactiveerd
Talen = nl_NL
Browser = Opera/9.63 (Windows NT 5.1; U; nl) Presto/2.1.1
Rijen in GalleryAccessMap tabel = 26
Rijen in GalleryAccessSubscriberMap tabel = 226
Rijen in GalleryUser tabel = 3
Rijen in GalleryItem tabel = 224
Rijen in GalleryAlbumItem tabel = 12
Rijen in GalleryCacheMap tabel = 0
Posts: 3868
http://gallery.menalto.com/node/84202
Everyone seems to have trouble with checkout languages at the moment. I think it's because it's the only -contrib module with translations - certainly the only one I've tried - and the language download system was rewritten for G2.3, and I think (personal prejudice) it's broken for non-core modules. I've asked for help from the development team with this but got a big fat zero in response. G2.3 development is basically ended, so I doubt that this situation is ever going to get fixed (if I'm correct).
You can download the modules_checkout.mo files manually and copy them to your g2data/locale/<lang>/LC_MESSAGES/ folder - that's what I do when updating:
http://gallery-contrib.svn.sourceforge.net/viewvc/gallery-contrib/trunk/gallery2/modules/checkout/locale/
Posts: 8
AlecMyers,
You are my hero! I will be able to fix things manualy now.
The entire choice for Gallery2 with Checkout instead of
a commercial environment depended on a dutch checkout facility....
Thank you!
PS
Bitter that this issue isn't solved, I guess 2.3 will be around
for a while.....
Posts: 8
I managed to get gallery2 2.3 to pick up
dutch now.
It does seems that some parts of checkout
are not translated yet, like the new (?)
text-box option where customers can leave
comments?
Am I right to think that I can add these
translations with poedit?
Thank you in advance, Wannes.
Posts: 244
Alec,
I am not firm with version 2.3 but it seems to me that there is an new structure for the language files.
Did not found the structure ./locale/<lang>/LC_MESSAGES/ for the .mo files in any module. They are now all in the ./po folder
I have tested the checkoutbymail plugin on a fresh installed 2.3 gallery with German as default language. Did you tried to place a copy of your .mo files in the ./po folder?
Perhaps this could be a workaround for both: pre 2.3 and 2.3 versions?
Cheers,
Jens
___________________________________
http://jekophoto.eu | http://jekophoto.de
Posts: 3868
Oh that's very interesting... I just looked in the main repository and I see that you're right! The location for the .po and .mo files has changed since 2.2.x!
The /locale/<lang> structure is (has been up till now) created automatically by the makefile that compiled the .po - I will update the makefile to one copied from a 2.3 core module and see if that makes the difference. I've been using an old one, but until now there's no indication anywhere that this would have been incorrect.
Thanks!
Posts: 244
It is interesting that the installation process copies (or creates?) an empty locale folder for version 2.3...
Just give me a short ping if I should test a new version. Looking forword to see if this would be a solution - but now it's bedtime ;-)
Cheers,
Jens
___________________________________
http://jekophoto.eu | http://jekophoto.de
Posts: 2
Is there any news yet to get this nice module in dutch?
Posts: 3868
Take the most recent nl.po file (http://gallery-contrib.svn.sourceforge.net/viewvc/gallery-contrib/trunk/gallery2/modules/checkout/po/nl.po) - translate it, and put it in this thread and I'll compile/upload it. Now that we've sorted out recent language problems with checkout we should be good to go.
Posts: 8
I'm happy to fill the gaps, there seem to be missing a few lines in the
present dutch file....
Do I use poedit for that? Never doen it before!
Wannes, original poster...
Posts: 3868
Yes poedit is fine. (The lines at the end with the ~ at the start are all obsolete and can be removed, if you end up editing the original file. Or I can do that later.)
If you want to do the other nl.po files for the other checkout modules, feel free, and I'll upload those too. You can get the latest .po's from the sourceforge SVN repository, I'm sure you can work out how!
Posts: 8
AlecMyers,
Hereby the nl.po file as I created it.
I have added the missing lines and made some changes to the existing lines.
There were minor language-flaws, some translation-errors and some style-errors
in it. It seems ok to me now. Do you want me to test it? If so, how do I do that?
Regards, Wannes
I added it as a TXT-file, please rename.... Created with Poedit 1.4.3.
;-)
Posts: 3868
I've made a few changes to make the punctuation and capitalization more consistent, and compiled/uploaded to the repository. So you should be able to update your website via the plugins/language manager pages in ... three hours time.
Posts: 8
Well...
I have reinstalled checkout, uploaded manually
the mo file to the G2data/locale/<lang>/LC_MESSAGES folder
(as modules_checkout.mo and nl.mo) after first obtaining
ownership over this folder.
Now on and of dutch and english show up.
when I refresh my browser rapidly it jumps from dutch
to english even?!?
Is there an explanation for this? Most pages
seem to prefer english over dutch for checkout,
I sometimes see an album or photo page with dutch
checkout text, but it's rare....
My PC is all dutch, so is my browser.
Entire Gallery 2.3 is in dutch and I do not
have the the option 'check for browser language'
NOT switched on.
I have flushed template cache, database cache
and browser cahche several times.
No luck.
Any help?
Regards, Wannes
Posts: 3868
You shouldn't need to do that any more, as the .mo files are now in the (new, approved) G2.3 location in the module.
I've seen that behaviour, and in other threads. We decided that it was the server's gettext cache - I think it went away in the end in that case.
Posts: 8
You are right, after 48 hours the issue went away.
Thank you Alec!
Posts: 2
Okay Alec, many thanks for the hard work. It works wonderful!