2

i have follow issue. I want to add translation to the output in wordpress. In some sentences are variables. So i looked after a possibility to translate the sentence with the variable.

I found out that i can use printf with %s placeholder. If i execute the code the variable, which i want on place of %s get appended every time before the sentence.

Here is an example:

My Code:

printf( __('Have you already done the %s?', 'sage' ), $work);

have follow output: HouseworkHave you already done the ?

Why the placeholder doesn't get replaced?

Stefan
  • 61
  • 6

0 Answers0