• Resolved Jon

    (@freshyjon)


    __( 'You must <a href="%s">sign in</a> to apply for this position.', 'wp-job-manager-applications' )

    I’m trying to translate that. But it doesn’t seem to be working. Do I need to implement a slash or something somewhere?

    Current setup: https://gyazo.com/e73474f7d07d93b00bf4bb4def082d16

    • This topic was modified 6 years, 4 months ago by Jon.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Lee Willis

    (@leewillis77)

    Hi Jon;

    You shouldn’t need to do anything special. If that’s not working my guess is that that isn’t the trying being used (maybe it’s a default value that’s being overwritten by a setting somewhere?)

    Thread Starter Jon

    (@freshyjon)

    It must’ve been some sort of strange cache, because it seems to be working now.

    Plugin Author Lee Willis

    (@leewillis77)

    Great – glad to hear it!

    Ran into a similar issue, however, the plugin uses a variable defined as %1$s instead of simply %s — any suggestions on how to target this? Works if I edit the plugin string manually and change to %s, but obviously would be broken in a plugin update.

    Edit: Nevermind, just re-applied the edit and it seems to be working properly now. Strange, must have had a typo in the “original string” field…

    • This reply was modified 5 years, 11 months ago by ouija.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translating with %s’ is closed to new replies.