"Image galleries" vocabulary title - won't translate

doomed - June 25, 2008 - 14:50
Project:Image
Version:6.x-1.x-dev
Component:image_gallery
Category:bug report
Priority:minor
Assigned:Unassigned
Status:needs work
Description

Hi,

Since i'm using a portuguese site, the words "Image galleries" (title of main gallery) is "Galeria de Imagens" since i first created the gallery. Now, this was working fine but all of a sudden it changed back to "Image galleries" along with a new menu link on my navigation bar. Weird.

So i disabled the navigation link (no big deal) and went to the Categories settings and renamed the Image galleries vocabulary. Nothing, it still comes up as "Image galleries" when i check up the Gallery. I've tried emptying cache, devel cache reset, different browsers, localization string search numerous times... nothing.
Only one string comes up, it's already translated but still, the title on the Gallery page is still in english :(

If anyone knows how to fix this, please say. I'll keep an eye on this thread.

#1

ignasiga - January 13, 2009 - 18:29
Version:5.x-2.x-dev» 5.x-1.9
Status:active» postponed (maintainer needs more info)

I'm using Image Galleries 5.x-1.9 in Spanish and I solved this problem changing the line 169 of image_gallery.module from:
drupal_set_title($gallery->name);
To:
drupal_set_title(t($gallery->name));

I really think that this problem should be corrected to show internationalized gallery titles. So if someone could change this in the CVS, as I don't have really a clear idea of how to do it, I really appreciate this.

#2

Hetta - January 30, 2009 - 08:05
Version:5.x-1.9» 6.x-1.x-dev
Status:postponed (maintainer needs more info)» needs review

patch for 6.x-1.x-dev attached.

AttachmentSize
image-gall_274810.patch 95 bytes

#3

maverick14 - February 2, 2009 - 15:33

It can be a bug in the module, but it's possible as well that you have to change the name of the vocabulary 'Image Galleries' in "Galeria de Imagens" (so, under settings/taxonomy). good luck!

#4

sun - March 6, 2009 - 01:49
Status:needs review» needs work

Sorry, a taxonomy term belongs to user content and thus needs to be translated through a translation system. For example, i18n, resp. i18ntaxonomy module.

If this was about a configurable string in module settings, I would have committed the t() approach.

#5

johnnyoakland - September 30, 2009 - 05:26

In case anyone is searching for this fix, you can fix this by changing the name in the View.

 
 

Drupal is a registered trademark of Dries Buytaert.