Catalan Translation

jvaiguade

Joined: 2006-06-12
Posts: 13
Posted: Mon, 2006-06-12 09:55

Hello,

i downloaded gallery and i decide translate to Catalan.

I have a little translated but i think is better share that whith all people.

Tnks Bye

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2006-06-12 10:32

Hi,

just add your translation to the translation-tracker on Sourceforge.
Or if you are not able to do this. Send your translation to me.

Greetings,

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
jvaiguade

Joined: 2006-06-12
Posts: 13
Posted: Wed, 2006-06-14 10:13

Hi,

i read all that

http://codex.gallery2.org/index.php/Gallery2:Localization

and i created all ca.po (in this case)

i add this two lines in

modules/core/classes/GalleryTranslator.class

/* Catala */
$this->_supportedLanguages['ca']['ES']['description'] = 'Catala';
$defaultCountry['ca'] = 'ES';

Im in Windows :(

But the files mo are created in the same directory that po's

I can select Catalan in the languaje selector.

But i cant look G2 in catalan :(

Thanks for help

PS: When i finish i upload to http://sourceforge.net/tracker/?func=browse&group_id=7130&atid=582564

 
jvaiguade

Joined: 2006-06-12
Posts: 13
Posted: Wed, 2006-06-14 13:38

All correct, the problem is the mo files, im placed this in \locale\ca\LC_MESSAGES in all the modules translateds and run ok

 
jvaiguade

Joined: 2006-06-12
Posts: 13
Posted: Fri, 2006-06-16 14:52

Ok tim_j the file is uploaded.

 
xguardiola

Joined: 2006-07-05
Posts: 3
Posted: Fri, 2006-07-07 13:24

Hi all,
I've been trying to switch to Catalan but so far have not succeded. This is my context:

0. I downloaded gallery2 just two days ago.
1. I've got an Ubuntu drapper box with all locales set to 'ca_ES.UTF-8'.
2. 'Catalan' was not available at the language drop-list at 'Site Admin'. Maybe 'Catalan' was still not included in the latest version?
3. I've found this thread as well as .po files in my installation (for example at 'themes/matrix/po/ca.po') so I guessed that somehow Catalan was already integrated in g2.
4. At 'modules/core/classes/GalleryTranslator.class' there is no entry for Catalan, so I added,
$supportedLanguages['ca']['ES']['description'] = 'Catala';
$defaultCountry['ca'] = 'ES';
5. I've also noticed that at 'install/locale' there is no 'ca' folder. Actually, there is neither an 'es' (spanish) folder. Is that normal?

Can anyone help me?
Cheers,

Xavi.

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2006-07-07 14:19

Hello,

its only available in the developer Version in SVN.

You can either download/install this, or wait for the next official version.

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
xguardiola

Joined: 2006-07-05
Posts: 3
Posted: Sat, 2006-07-08 11:54

OK, thanks!

 
usarytirar

Joined: 2006-09-08
Posts: 1
Posted: Fri, 2006-09-08 19:17

Hello,

I'd like to help with the translation. Can anybody send me a private message with instructions of how can I do it? I'm using linux, so I prefer tools in that OS.

See you!

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2006-09-08 20:57

These instructions are in our documentation area, for both. Gallery 1 and Gallery 2

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
pablocarmona

Joined: 2006-09-12
Posts: 1
Posted: Tue, 2006-09-12 17:28

I can´t see the translation on http://sourceforge.net/tracker/?func=browse&group_id=7130&atid=582564
I´m very interested on this translation. Where can I find it?

Thank you,

Pablo Carmona
http://www.interkonet.com

jvaiguade wrote:
Ok tim_j the file is uploaded.

 
albertc

Joined: 2006-09-13
Posts: 9
Posted: Thu, 2006-09-21 01:27

Where can I find the Catalan translation, even if it is unfinished? Please provide a download URL. Thank you!

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2006-09-21 02:09

Hello AlbertC,

In G2 its always included.
For G1 (very imcomplete) go to http://jems.de/archive

Greetings,
Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
albertc

Joined: 2006-09-13
Posts: 9
Posted: Thu, 2006-09-21 07:52

Thanks for your reply, tim_j

However, I'm still unable to find Catalan in G2. The Default Language dropdown menu in Admin/General does not include Catalan at all. Can you help?

Thank you again
--
Albert

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Thu, 2006-09-21 16:00

Hello Albert,

my fault.
It was added in the current development Version. -> Gallery 2.2-svn
You would need to install that version. You can get it either via SVN, or from the nightlies page: http://www.rabinovich.org/G2

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
albertc

Joined: 2006-09-13
Posts: 9
Posted: Thu, 2006-09-21 16:17

Oh, I see

Isn't there a way to add a single language to an existing Gallery site? I'm not very excited by the possibility of having to reconfigure everything :-)

Thanks for any assistance
--
Albert

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2006-09-22 15:35

You can just do an upgrade.

No need for a fresh install. All your settings stay as they are. You just get some more :)

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
albertc

Joined: 2006-09-13
Posts: 9
Posted: Fri, 2006-09-22 17:49

Jens

Many thanks for your help. That sounds a lot better. However, it's my first time using the SVN, so please allow me a last question: what's the best way to apply such an upgrade? Is it just a matter of overwriting old files?

Thanks in advance!
--
Albert

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Fri, 2006-09-22 18:19

Hi,

Yes, just copy over. Gallery will detect that you upgraded and automatically starts an upgrade wizard that will guide you.

See also this howto: http://codex.gallery2.org/index.php/Gallery2:faq#How_to_upgrade_Gallery2.3F

Jens
--
Last Gallery v1 Developer and v1 translation manager.

 
albertc

Joined: 2006-09-13
Posts: 9
Posted: Sat, 2006-09-23 22:49

Hi

I guess the Catalan translation is buggy: I have just upgraded to the G2 version in SVN, and the Gallery Sidebar in Drupal stopped working: now I'm unable to add features to the Gallery sidebar in Drupal.

They are supposedly selected in the Theme config, but whatever I try to add, I'm getting the following error message when submitting the form:

Format: [módul.NomdelBloc param=valor] ...

I guess it has something to do with the translation. Can somebody suggest an easy way to revert to default language and see if it works?

Thanks in advance
--
Albert

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2006-09-23 23:49

Hrm. I tried using Catalan on my dev server and it worked. I was able to add a block to my album in the Theme tab, and configure the block. Can you tell me what exact operation you tried to do, and maybe provide a screenshot of the error? Thanks!

 
albertc

Joined: 2006-09-13
Posts: 9
Posted: Mon, 2006-09-25 17:08

Thanks for your reply, bharat.

My problem is that no G2 sidebar (on the left) appears unless you're the Administrator. Please look at attached screenshots 01, 02 and album_view. On the attached shot03 you can see two things: the sidebar appears for the administrator, and there's an error (displayed in red) when trying to add any block in the Matrix module.

Can you help?

Thanks in advance
--
Albert

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2006-10-01 21:01

for the error adding blocks: clear your browser cache and also go to site admin / maintenance and run the task to clear the db cache.

 
alexbuil

Joined: 2006-10-16
Posts: 1
Posted: Mon, 2006-10-16 08:40

Hi,

I don't know if my experience will be helpful. I am quite new to Gallery, but liked the multilanguage feature. Most of my friends and family speak Catalan, so I was trying to configure this language.
I found that Catalan support is included in the nightly build (thanks to the translators btw). I have just contracted a web hosting package which automatically installs Gallery 2.1.2 with a unattended script. I cannot easily install the new beta there and prefer to use a stable version.

I installed 2.1.2 and beta in my dev machine to look for the differences. I added (unrar) Catalan translation module from
http://sourceforge.net/tracker/index.php?func=detail&aid=1507331&group_id=7130&atid=582564 to the stable version but still could not pick that language in the language combo box.
After some findings, I found that replacing old GalleryTranslator.class in modules/core/classes which new one that contains
if (empty($supportedLanguages)) {
...
/* Catalan */
$supportedLanguages['ca']['ES']['description'] = 'Catalan';
$defaultCountry['ca'] = 'ES';
...
works for me. Only need to create and copy the ca locale folder I guess.

Regards,
Alex.

 
cervantes_roger

Joined: 2006-10-25
Posts: 17
Posted: Wed, 2006-11-08 19:23

I havent been able to install the catalan translation, I just can't manage Gallery to show up in catalan. I have unzipped the folder in its correct place, so every /po folder has its ca.po files. Then I modified the "GalleryTranslator.class" and now I can pick the "catalan" option, but it just does not work! Anyone has any idea??? thnx

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2006-11-17 16:31

po files aren't used at runtime, only the compiled mo files. you can try a current nightly snapshot which has all the catalan that has been submitted.