How to activate a modified .po file?

gaiwan

Joined: 2009-03-27
Posts: 1
Posted: Fri, 2009-03-27 18:38

Gallery version 2.3
I want to change some terms in several languages. say - in Russian. does not matter actually.
What I do:
I copy .po and .mo file from MODULES/CORE/PO directory to my pc
I edit .po file with poedit and save
I notice that .mo file is also changed
I upload the modified .po and .mo files back to modules/core/po directory on the server

Nothing changes for the modified language

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Fri, 2009-03-27 20:22

rename and copy the .mo file to g2data/locale/<language>/LC_MESSAGES/modules_<moduleName>.mo

 
dA_uNknOwN

Joined: 2008-07-26
Posts: 2
Posted: Mon, 2009-03-30 06:54

Gallery 2.3

I edit the gallery2/modules/core/po/de.po with POEDIT and save it on my PC.
I renamed the .mo to modules_core.mo and copied into gallery2/locale/de/LC_MESSAGES/
But nothing changed i also copied the changed de.po and de.mo into gallery2/modules/core/po.
I just changed one thing in the de.po.

Nothing happens
Whats wrong ?
Help would be nice .

In the Gallery 2.2 the modfiying still worked.

Greetings
da_unknown

 
alecmyers

Joined: 2006-08-01
Posts: 4342
Posted: Mon, 2009-03-30 08:09
Quote:
In the Gallery 2.2 the modfiying still worked.

The Gallery translation system was rewritten in 2.3

You may have to restart Apache, or wait for the gettext cache (I believe there is one) to time out.

 
kenac

Joined: 2006-11-09
Posts: 4
Posted: Tue, 2009-04-07 12:41

i have the same problem. now it is impossible to change or correct stings (for example in german).
i have edited the po file, created the mo file and copied both in right places.
at first i got an error, that the po file was not registered in a mysterious packagevalidator.
i have reinstalled the whole module with the new po- and mo-File (of course i lost all my settings of this module).
ok - now the po file was accepted, but the language wasn't changed. than i pressed languagesupport in the adminsection of gallery. but the system breakes with the message beneath.

i repeated these procedure multi times - no success!!

my comment: security is important, but it should not deny the essential possibilities of easy handling. now it seems nearly impossible to change a string in a foreign language without having studied informatik. Please, please, please - keep changing language strings easy, because we often need this in worldwide open source. i want to change a po file, a mo file or look around for these files and than i want to copy them in the correct folders. Than it should work!! (The actual security-concepts damages an easy international exchange of modules with different languages).

now i have spent two days to build a translation for an module - without success.

Error (ERROR_PLATFORM_FAILURE) : Size of '..... gallery/modules/checkout/locale/de/LC_MESSAGES/modules_checkout.mo' did not match package descriptor.

* 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/smarty/templates_c/%%3953832383/classic/%%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)
*

if you have any hint, how i can solve the activation of these files, please let it know me.