Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Imagecache preset names are not user-firendly at all. Insert module's imagecache.inc exposes imagecache presets as strings for translation, see includes/imagecache.inc, line 17
'label' => t($preset['presetname']),
So colorbox.module, line 263
'label' => t('Colorbox: @preset image', array('@preset' => $preset['presetname'])),
could be replaced with
'label' => t('Colorbox: @preset image', array('@preset' => t($preset['presetname']))),
It already works for me without side effects.
Comment | File | Size | Author |
---|---|---|---|
#2 | colorbox-presetname-translation-3-810820.patch | 713 bytes | soulfroys |
Comments
Comment #1
frjo CreditAttribution: frjo commentedThe label itself are already translatable. This is how the imagecache module does it.
Comment #2
soulfroysEven though I'm translating the preset name, without the suggested change by @fasdalf@fasdalf.ru, does not work for Colorbox...
Please consider this feature... Thanks!
Comment #3
frjo CreditAttribution: frjo commentedClosing old issues that doesn't seems to effect a lot of users.
Comment #4
soulfroysI use this path in production. ASAP, I'll review this usability issue and post here.
Thanks!