Locale problem with downloaded plugins

jørgen

Joined: 2009-09-29
Posts: 13
Posted: Fri, 2010-01-01 15:26

I have a fresh install of version 2.3.1 (gallery-2.3.1-typical.zip). Language configuration seems in general to work well.

However, when I download extra plugins, I only get English language for the downloaded plugins. As an example, I downloaded and installed the Gallery:Registration plugin (version 1.0.14) since this plugin is not included in the "typical" installation. I used the downloader included in Gallery (Site Admin | Plugins | Get More Plugins | Gallery: Registration | download).

When changing language to any other than English, I observe that the core and all other plugins change language, but the UI for the Registration plugin is always in English.

Digging a little deeper I notice:

1) In my installation directory, in modules/register/po I can only see two files:

- GNUmakefile
- strings.raw

while for other modules (like modules/exif/po) I can, in addition to the two files mentioned above, see a lot of *.mo and *.po files.

2) In g2data/locale/XX/LC_MESSAGES I gan see files for all modules, except "register" (for example, in g2data/locale/de/LC_MESSAGES I can see the language file for the EXIF module: modules_exif.mo and so on).

I have downloaded other modules ("Cart" and "Zip") and the pattern is the same: the *.mo language files do not get installed.

I can succesfully repair things by:

a) Copy all modules/<module>/po *.mo and *.po files from a manually downloaded ZIP-file to modules/<module>/po

and

b) Copy modules/<module>/<language>.mo from a manually downloaded ZIP-file to g2data/locale/<language>/LC_MESSAGES/modules_<module>.mo

Is this a bug in the module downloader/installer?


Gallery URL = http://www.rooftoptravel.com/main.php
Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.10 cgi
Webserver = Apache/2.2.13
Database = mysqli 5.1.38-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, ImageMagick, NetPBM, Gd
Acceleration = none, none
Operating system = Linux carlton 2.6.18-6-686-bigmem #1 SMP Thu Nov 5 17:30:05 UTC 2009 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 12
Rows in GalleryAccessSubscriberMap table = 3
Rows in GalleryUser table = 2
Rows in GalleryItem table = 3
Rows in GalleryAlbumItem table = 1
Rows in GalleryCacheMap table = 0