Can you tell me how to translate the slideshow descriptions? Thanks.

CommentFileSizeAuthor
#1 page--front.tpl_.php_.txt6.01 KBFiable.biz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Fiable.biz’s picture

Assigned: Unassigned » Fiable.biz
Category: support » feature
Status: Active » Patch (to be ported)
FileSize
6.01 KB

In template file "page--front.tpl.php", replace

                <div class="descriptions">
                    <div class="desc" style="display: none;">About Bluemasters</div>
                    <div class="desc" style="display: none;">Our Portfolio</div>
                    <div class="desc" style="display: none;">Creation of Beaches</div>
                </div>

by

                <div class="descriptions">
                    <div class="desc" style="display: none;"><?php print t('my_caption1') ?></div>
                    <div class="desc" style="display: none;"><?php print t('my_caption2') ?></div>
                    <div class="desc" style="display: none;"><?php print t('my_caption3') ?></div>
                </div>

where "my_caption1" is the English caption for your 1st picture, "my_caption2" is the English caption for your 2nd picture and "my_caption3" is the English caption for your 3rd picture.
Then visit your site as webmaster and in Configuration → Performance, click on "Clear all caches", then visit your front page and see all the pictures of the slideshow (so that the translation function "t" be called for all the strings to translate), then in Configuration → Translate interface → Translate, in "Limit the search to", choose "User interface", click on "Filter", look for your strings. For each of them, click on the non-English languages abbreviations and translate the string from English.

Here is a patch proposal aimed to be the future "page--front.tpl.php" template file but, since it's the first time I propose a patch, I'm not sure whether it's the right way to do it.

kenorb’s picture

Issue summary: View changes
Status: Patch (to be ported) » Needs review
kenorb’s picture

Assigned: Fiable.biz » Unassigned
gaurav.kapoor’s picture

Assigned: Unassigned » gaurav.kapoor
gaurav.kapoor’s picture

Assigned: gaurav.kapoor » Unassigned