Hello ng,
and thanks for the great work done so far! This shall
be very useful for me.
I am just installing the cart, after installing gallery
1.5.1 with 4 languages: english, german, spanish and
catalan. The languages worked until I installed the
cart: Now, no matter what locale I choose in the
gallery, all text is always english (the flag indicator
works correctly, though.)
I am not aware of anything I could have done wrong - I
suppose it might be due to the different language sets
available in the two packages?
'email for Gallery Cart link'; I'll send it and I'll
create an account for you to log in, if necessary.
I'd want to work on a spanish language pack, if you are
interested to include it, let me know.
Thanks again and best regards
Matthias
Logged In: YES
user_id=1289873
I'll look into this tonight.
For now, if you don't mind the cart being in english, edit
base.php and comment out the localization settings (lines
88-105).
Logged In: YES
user_id=1289873
Okay, I think I have it :)
If you are up to doing some editing, here's how to do it:
First edit base.php and comment out/remove everything
related to localisation except these lines:
$domain = 'messages';
if (gettext_installed()) {
bindtextdomain($domain,
$galleryCart->cart_basedir.'/locale');
}
Then go through the cart files and replace
_(
with
dgettext('messages',
This should do a one-time lookup on the GalleryCart strings
to the GC locale.
I'll fix this in the next release-can't cvs it to unstable
as I'm right in the middle of re-coding the admin section
and want to finish that first.
I will try to do a bugfix release on 0.42 with the changes
sometime this week-if you need it sooner please let me know.
Ng
Logged In: YES
user_id=1373794
Hello Ng,
wow, that was fast, great! and 1000x thank you.
I have looked into editing - I am not very sure of what I am
doing there... in the course of this week is more than
enough for a fix, my system is not in production yet and
will not be for quite some weeks probably. So I think I'll
better invest my time in the language pack for spanish, is
that ok?
In the meantime, I did follow your advice #1 and the gallery
is back with languages!
Cheers
Matthias
Logged In: YES
user_id=1289873
Time is tighter than I thought, so I'm just going to attach
the affected files here. If you have WinMerge or the like
it can help you detect the differences and merge them with
your files if you've made changes.
If you have not made changes you should just be able to pop
them in, tho it's a good idea to make backups ..just in case.
I'm getting closer to having the .po file for the next
release ready-anyone who wants to help with a translation,
please feel free to email me.
Ng
Localization fix for v0.42