Gabriel Torres Posted June 23, 2021 Posted June 23, 2021 Hi, 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? Thanks.
Solution Ryan Ashbrook Posted June 23, 2021 Solution Posted June 23, 2021 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. Hisashi, SeNioR-, Sonya* and 1 other 3 1
Gabriel Torres Posted June 24, 2021 Author Posted June 24, 2021 @Ryan AshbrookWorked like a charm, many thanks! 🙂  Ryan Ashbrook 1
Recommended Posts