Jump to content

Help with phrase and strings (%s)

Go to solution Solved by Ryan Ashbrook,

Recommended Posts


We need to translate the phase solution_headline, which defaults to:

%s's <a href='%s'>%s</a> in <a href='%s'>%s</a> was marked as the answer

The problem is, the first %s is the user's name, and we need it to be shown after the link, and not before it, in order to the grammar in my language to be correct. There is probably a trick to change de order of the substution strings (%s).

Could anyone help me?


Link to comment
Share on other sites

  • Solution

Yes, you should be able to specify the positioning of the parameters. Try this (of course adjust for your language):

<a href='%2$s'>%3$s</a> %1$s's in <a href='%4$s'>%5$s</a> was marked as the answer

The parameters should be able to follow PHP's sprintf() function identifier rules.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...