when you create a view and open grouped images in lightbox ( so that you can click next/prev) there is a text "image 1 of 9" which is directly taken from the /sites/all/libraries/colorbox/colorbox/jquery...

instead the variable "colorbox_text_current" should be loaded so you can translate this string.

Comments

frjo’s picture

Yes, if you use the colorbox-load or colorbox-inline features some settings was missing. I must have thought they where not needed.

I have committed fixes for this to 6-dev as well as 7-dev.

Please try them out and report back here. If it works for you I will make it part of the next release.

tribsel’s picture

had same problem, just tried 6-dev and it worked.

frjo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

michèle’s picture

Status: Closed (fixed) » Active

Hi

I reopen this issue. It seems that the 7-dev-changes have been disappeared in the meanwhile.
To be able to translate the "current" text, I had to add the t-Function to line 187:

<?php
'current' => t(variable_get('colorbox_text_current', '{current} of {total}')),
?>

Regards, Michèle

lsolesen’s picture

@frjo Can you confirm that there still is a problem in the 7.x-version?

frjo’s picture

hook_variable_info should be implemented so variables in Colorbox are translatable via i18n module. Will try to fix that.

frjo’s picture

Status: Active » Fixed

Oops, I have already implemented hook_variable_info :-).

To use it you need i18n module plus the Variable module.

http://drupal.org/project/i18n
http://drupal.org/project/variable

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.