Hi Stella,
I found some duplicates of the issue I have with translating strings like "View Image Details", "Image x of y", ...
I did:
1. Translated the strings via admin/build/translate/search, I can remember I always did it like this the last years
2. Read your documentation at http://drupal.org/node/389930, enabled i18n and added :
$conf['i18n_variables'] = array(
'site_name',
'site_slogan',
'site_mission',
'site_footer',
'anonymous',
'menu_primary_menu',
'menu_secondary_menu',
// Lightbox2 Module
// the text to display as the link to the image details page (e.g. "View Image Details")
'lightbox2_node_link_text',
// the text that will appear as the link to the original file underneath the image in the lightbox (e.g. "Download image")
'lightbox2_download_link_text',
// image count text (e.g. "Image !current of !total")
'lightbox2_image_count_str',
// page count text (e.g. "Page !current of !total")
'lightbox2_page_count_str',
// video count text (e.g. "Video !current of !total")
'lightbox2_video_count_str',
);
to my settings.php file
3. Went back to the site, hit the themes page, cleared caches, but no result
4. Submitted the translation I had again at admin/build/translate/search and than cleared cache for the second time
5. Still no result.
What am I doing wrong?
And what a procedure to get some texts to be translated :)
I can remember this always worked fine for me on previous versions of LB2.
Thank you .. Bye,
Comments
Comment #1
stella commentedYou're looking in the wrong place to translate the variables - see http://drupal.org/node/134002 for more details. Basically after adding the above to your settings.php file, you should just need to go back to the lb2 configuration page (admin/settings/lightbox2) and you should see the text 'This is a multilingual variable' beside the fields in question. Fill out the text in your current language and save. Then switch your language and edit the text again.
This isn't overly user-friendly, but it's the correct way to translate user inputted strings for now. It's not something that is lightbox2 specific.
Cheers,
Stella
Comment #3
skolesnyk commentedIs this going to be changed to common Drupal translation logic via strings?