Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Can you tell me how to translate the slideshow descriptions? Thanks.
Comment | File | Size | Author |
---|---|---|---|
#1 | page--front.tpl_.php_.txt | 6.01 KB | Fiable.biz |
Comments
Comment #1
Fiable.biz CreditAttribution: Fiable.biz commentedIn template file "page--front.tpl.php", replace
by
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.
Comment #2
kenorb CreditAttribution: kenorb commentedComment #3
kenorb CreditAttribution: kenorb commentedComment #4
gaurav.kapoor CreditAttribution: gaurav.kapoor commentedComment #5
gaurav.kapoor CreditAttribution: gaurav.kapoor commented