I need to translate the "Pause" and "Play" state indicators, and the help at /admin/config/media/flexslider/edit/default indicates this can be done using the String Overrides function. However, String Overrides cannot translate user-defined content, and indeed, it does not work when I try it. Neither can I translate it using the i18n translation interface.

Ideas?

Files: 
CommentFileSizeAuthor
#6 flexslider-pause-play-i18n.patch2.52 KBjmdeleon

Comments

minorOffense’s picture

Category:bug» feature
Status:Active» Needs work

I can't think of a good way right now other than overriding the tpl files and adding the t function there (or better yet in a preprocess function)

I'll look into how other modules do user-input translations and see about integrating it.

minorOffense’s picture

Assigned:Unassigned» minorOffense
minorOffense’s picture

Version:7.x-1.0-rc3» 7.x-2.x-dev
minorOffense’s picture

Status:Needs work» Closed (fixed)

All strings are run through t() and should be translatable.

Vacilando’s picture

That's what I had seen as well, they indeed are inside t(). But they do *not* come up in the translation interface. That's the problem. Just try it...

jmdeleon’s picture

Issue summary:View changes
StatusFileSize
new2.52 KB

I saw the same issue as in post #5 with the strings already wrapped in t(). The patch I am attaching here wraps a few more strings in t() that were located in the Admin pages (Previous/Next/Pause/Play), in the Advanced settings for each pager. A String Override was then able to apply the translated strings.