Language of Checkout module

Joda

Joined: 2009-09-28
Posts: 2
Posted: Tue, 2009-09-29 14:27

Hi everybody,

I'm using gallery2 as a pre-installed module of my web host ! (OVH : http://www.ovh.com)

In Gallery2, I can change my language to FRENCH with no problems !

I've installed the checkout modules, via Gallery2 composants as it is explain in the official documentation.

I've got everything installed and it's working really nice, excepted the language.

It's in English !

On the server, I've looked into the "www\modules\checkout\" directories and I've found a 'fr.po', 'locale\fr\LC_MESSAGES\...' with all the translated sentences.

Is anybody knows where the change the default language ?

thanks to all

 
oceco

Joined: 2007-10-22
Posts: 666
Posted: Tue, 2009-09-29 18:57

Hi

have you checked http://codex.gallery2.org/Gallery2:Language_Settings and http://codex.gallery2.org/Gallery2:FAQ#I_changed_the_language_but_nothing_happens.2C_what.27s_wrong.3F? Beside the fr.po files are there also the 'compiled versions' fr.mo? The later are used by gettext and are cached. When you reupload changed .mo-files you have to clear the gettext-cache by restarting the webserver!
After I wrote all that I checked on my Gallery2-installation the checkout module: even when I changed my account setting to fr the configuration page for the checkout module in site-admin -> extensions remained in English. For me that's an indication that this particular page was not translated so far. I remember I had the same issue when I wanted to use these modules in German. I had to translate several pages and to complete/correct several others. After two hard days of work I translated everthing and the many configuration settings/options were set according to to my requirements. There are a lot of customization options depending on your product portfolio (e.g. T-shirt with the foto printed on the front or back) and therefore the chance is high that you will have to modify the language files anyhow.
To translate/modify the en.po-files to fr.po-files you will need e.g. the poEdit (search Gallery2-documention for poEdit). When you save your modifications it will also create the fr.mo-files.

Hope this helps!

Good luck!/oceco

PS: Please share your fr.po-files with the Gallery2-community afterwards!
__________________________________________
Für Support folgende Infos posten:
Site-Admin -> Wartungsaufgaben -> System-Info und Link zu phpinfo()

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2009-09-30 01:47

I'm the module's current maintainer.

Make sure that the file modules/checkout/locale/fr/LC_MESSAGES/modules_checkout.mo is copied to g2data/locale/fr/LC_MESSAGES/
That should be automatic when you install the French language pack, but there have been ongoing annoying problems with getting the language support to work for this module.

You'll also note that the French translation is somewhat out of date. If you want to fix up the fr.po file in modules/checkout/po then I'll update the module to include it.

 
Jiheffe

Joined: 2009-07-19
Posts: 14
Posted: Wed, 2009-09-30 06:02

Hi, I just came across this post, and just curious to know where you did find the French localisation?

I have Gallery2 set up with French as default language, using the X_treme theme. I downloaded and installed the checkout modules using the administration interface in G2.

Although French seems to be available as a package (but with a different revision number), I can't make up how to activate it! I looked in "gallery2/modules/checkout/po" but I can only find two files there, "GNUmakefile" and "strings.raw". There is no "locale" folder in modules/checkout and gallery2/locale/fr/LC_MESSAGES only contains two files, "gallery2_install.mo" and "gallery2_upgrade.mo".

Quote:
Actuellement installé : version 0.4.3 (build 1838)

Les packages de langue suivants sont disponibles pour ce composant

Deutsch version 1790
English (UK) version 1787
Español version 1716
Français version 1712
Italiano version 1790
Nederlands version 1837
Svenska version 1712

(I don't know how to pull the French version from the repository?)

Can anyone help?

JF

Quote:
URL de Gallery = http://www.jfschmitz.net/gallery2/main.php
Gallery version = 2.3 noyau 1.3.0
API = Noyau 7.54, Module 3.9, Thème 2.6, Intégré 1.5
PHP version = 5.2.1 cgi-fcgi
Serveur Web = Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7e mod_auth_pgsql/2.0.3
Base de données = mysqli 5.0.32-Debian_7etch5~bpo31+1-log, lock.system=flock
Boîtes à outils = ArchiveUpload, Exif, LinkItemToolkit, Thumbnail, Gd, SquareThumb, ImageMagick
Accélération = none, none
Système d'exploitation = Linux supremecenter14.co.uk 2.6.24.2-smp-AM #13 SMP Tue Feb 19 18:35:20 GMT 2008 i686
Thème par défaut = x_treme
gettext = activé
Langage = fr_FR
Navigateur Web = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3
Lignes dans la table GalleryAccessMap = 1036
Lignes dans la table GalleryAccessSubscriberMap = 912
Lignes dans la table GalleryUser = 3
Lignes dans la table GalleryItem = 908
Lignes dans la table GalleryAlbumItem = 26
Lignes dans la table GalleryCacheMap = 0

 
rant

Joined: 2006-01-17
Posts: 6
Posted: Wed, 2009-09-30 08:01

Iam having the same problem with german language :(

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Wed, 2009-09-30 08:15
Quote:
(I don't know how to pull the French version from the repository?)

Go to Site Admin -> Language Settings, select "download" or "upgrade" against "French" in the left column in the table of languages, and hit "Save".

You should probably go to Site Admin -> Plugins -> Get More Plugins and activate the community repository option ("Show Repository List") then "Update Plugin List" first.

 
Joda

Joined: 2009-09-28
Posts: 2
Posted: Wed, 2009-09-30 08:19

Thanks to all for your response !

-> alecmyers
It works, modules_checkout.mo wasn't into the g2data/locale/fr/LC_MESSAGES/ directory !

95% of the text is now translate, I think it's what you call the "out to date version".

If you want help for the 5% missing, I can help you if you want !

We can talk about in private message ?

 
Jiheffe

Joined: 2009-07-19
Posts: 14
Posted: Wed, 2009-09-30 15:45
alecmyers wrote:
Quote:
(I don't know how to pull the French version from the repository?)

Go to Site Admin -> Language Settings, select "download" or "upgrade" against "French" in the left column in the table of languages, and hit "Save".

Woops... Whathever I try to do, I get the following error:

Quote:
Error (ERROR_BAD_PATH) : Failed to download packages: "".
* in modules/core/classes/GalleryRepositoryUtilities.class at line 732 (GalleryCoreApi::error)
* in modules/core/classes/GalleryRepository.class at line 956 (GalleryRepositoryUtilities::downloadAggregatePackages)
* in modules/core/AdminLanguageManager.inc at line 336 (GalleryRepository::downloadAndUnpackPackages)
* in modules/core/AdminLanguageManager.inc at line 151 (AdminLanguageManagerController::_downloadAndInstallLanguagePackages)
* in ??? at line 0 (AdminLanguageManagerController::updateLanguageSettings)
* in modules/core/classes/GalleryTemplateAdapter.class at line 1092
* in g2data-4g25rd68sd/smarty/templates_c/%%1688938412/matrix/%%3A^3A8^3A818B59%%theme.tpl.php at line 75 (GalleryTemplateAdapter::trailer)
* in lib/smarty/Smarty.class.php at line 1255
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
* in main.php at line 506 (GalleryTemplate::display)
* in main.php at line 104
* in main.php at line 88

I had several languages installed (by default?), including English (UK), French, Deutch, Nederlands, Italiano, and a couple more. As I hed above error whathever I tried to update one of those, I uninstalled them all, leaving me with only the default (and un-unistallable ;-) ) language English (US). Now whathever I try to redownload French, I get this error...

I understand a path is missing. But which one?

[Edit / Additional info]

When logging in on my web hosting control panel, I noticed that my hosting site blocked outbound connections to IP address & port 209.237.226.156:80, which resolves to www.gallery2.org. I configured it to allow those outbound connections, ans the error message changed to

Quote:

Error (ERROR_PLATFORM_FAILURE) : '/home/www/jfschmitz.net/gallery2/modules/checkout/po/fr.mo' doesn't exist.

* in modules/core/classes/GalleryRepositoryUtilities.class at line 554 (GalleryCoreApi::error)
* in modules/core/classes/GalleryRepository.class at line 997 (GalleryRepositoryUtilities::verifyPackageIntegrity)
* in modules/core/AdminLanguageManager.inc at line 336 (GalleryRepository::downloadAndUnpackPackages)
* in modules/core/AdminLanguageManager.inc at line 151 (AdminLanguageManagerController::_downloadAndInstallLanguagePackages)
* in ??? at line 0 (AdminLanguageManagerController::updateLanguageSettings)
* in modules/core/classes/GalleryTemplateAdapter.class at line 1092
* in g2data-4g25rd68sd/smarty/templates_c/%%1688938412/x_treme/%%FE^FE0^FE021CE1%%theme.tpl.php at line 1082 (GalleryTemplateAdapter::trailer)
* in lib/smarty/Smarty.class.php at line 1255
* in modules/core/classes/GallerySmarty.class at line 61 (Smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 241 (GallerySmarty::fetch)
* in main.php at line 506 (GalleryTemplate::display)
* in main.php at line 104
* in main.php at line 88

Disallowing again those connections, brings up again the other error message...

 
rodeo_fly

Joined: 2008-08-12
Posts: 1
Posted: Wed, 2010-03-31 13:52

This post should be move to translation issues.

Quote:
Make sure that the file modules/checkout/locale/fr/LC_MESSAGES/modules_checkout.mo is copied to g2data/locale/fr/LC_MESSAGES/

Thanks for the tricks I dig the Internet and was about to ask OVH what's the hell with gettext.

Solution was so simple!

So alecmyers I you want just tell me where and how update your french translation and I'll do it !

Tx again !