From: Alec M. <al...@al...> - 2009-04-14 17:33:53
|
Combined community experience (matching my own) seems to be that the old structure doesn't work, otherwise I don't think the change of format/location would have come to my attention. The installer appears no longer to copy the locale/ directory from the repository to the module directory, so on a cursory examination the line (125) $sourcePath = "$poDir/$prefix.mo"; doesn't reference a valid file to copy to g2data/locale etc. I haven't really looked into the installer structure, but that appears to be what's (not) happening. >>G2.3 still works with G2.2 plugins. If it can't find the mo files in the >>po/ folder, it will look for them in the plugin's locale/ folder. ( http://fisheye3.atlassian.com/browse/gallery/trunk/gallery2/modules/core/classes/helpers/GalleryTranslatorHelper_medium.class?r=17580#l42 ) On Tue, Apr 14, 2009 at 9:30 AM, Alec Myers <al...@al...> wrote: > OK, I'm going to try to answer my own question, in case someone in the > future has the same problem and gets to read this. Anyone who has been in > on > this great secret that's been wasting hours and hours of contributors's > time > (including mine) over the last 6 months - feel free to comment or correct > anything I've got wrong. > > G2.3 .mo and .po files are no longer stored (in the -contrib repository) > in > a locale/ folder structure, they're all together in the .po folder, and > the > locale folder is obsoleted. That's been part of the the release announcements, and part of the API change docs: http://codex.gallery2.org/Gallery2:API_Changes_Since_The_Last_Release#7.19_.3D.3E_7.20 But.. it's not supposed to be an incompatible API change. Plugins that have their mo files in the locale/ folder should still work. The problem is that I guess that we changed the packaging scripts on GMC to no longer include the locale/ folder. Only the client code (the code in G2.3) is backwards compatible. The code that does the packaging, is (probably) not. Thanks for saving other people's time and reporting your findings! Can you document this new requirement for plugins in gallery-contrib on codex.gallery2.org? Thanks again, - Andy I don't think this change is documented anywhere. > > You need to a) delete the locale directory and b) recompile all the .po > files,adding the <lang>.mo files to the repository in order to get > translations to work under G2.3. > > > ----- Original Message ----- > From: "Alec Myers" <al...@al...> > To: <gal...@li...> > Sent: Tuesday, February 24, 2009 9:46 AM > Subject: [Gallery-devel] G2.3 community repository language problems > > > HI All, > > G2.3 question here. There are a (relatively) large amount of queries like > this one > http://gallery.menalto.com/node/84202#comment-301524 > saying basically that they've downloaded the checkout module, but none of > the language files (.po/.mo) or folders locale/ etc. are in the module > folder. > > And on my installation when downloading from the community repository the > g2data/locale/en_GB/LC_MESSAGES/modules_checkout.mo file disappears and I > have to copy it over manually. > > I'm reasonably confident there's nothing wrong with the module, the > language > files are in the MANIFEST etc. It's possible that the checkout module is > the > only one in the community repository with sufficient users and languages > to > raise the issue, I can't tell if it's more widespread. > > I know a lot of language stuff was changed from 2.2.x to 2.3 - could > someone > give me a brief description of the flow and conditions under which the > language files are supposed to be downloaded from the repository? It feels > like there's something not quite right, but I don't know what the new > correct operation is to be able to investigate or advise people. > > Thanks > > -Alec > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > __[ g a l l e r y - d e v e l ]_________________________ > > [ list info/archive --> http://gallery.sf.net/lists.php ] > [ gallery info/FAQ/download --> http://gallery.sf.net ] > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > __[ g a l l e r y - d e v e l ]_________________________ > > [ list info/archive --> http://gallery.sf.net/lists.php ] > [ gallery info/FAQ/download --> http://gallery.sf.net ] > > |