Conversation
…e placeholders for the links
| 'name' => esc_html__( 'oEmbed', 'cmb2' ), | ||
| 'desc' => sprintf( | ||
| /* translators: %s: link to codex.wordpress.org/Embeds */ | ||
| esc_html__( 'Enter a youtube, twitter, or instagram URL. Supports services listed at %s.', 'cmb2' ), |
There was a problem hiding this comment.
When you want to leave comments for translators, the _x() family of functions should be used. e.g.
esc_html_x( 'Enter a youtube, twitter, or instagram URL. Supports services listed at %s.', '%s is a link to codex.wordpress.org/Embeds', 'cmb2' ),|
@jtsternberg You should never use context As for the When using context function, It creates a new line in translate.wordpress.org, and allows you to provide a different meaning for this particular string. |
|
Oh wow, well thank you very much for educating me! Looks like I've been using those functions improperly. I'll review this a bit more thoroughly when I get back to my computer, but should be good. Thanks again! |
|
@jtsternberg the best example of proper use of |
|
Thanks for you contribution @ramiy! |


update translation strings related issues.
esc_html__()andesc_attr__().<a>links with%splaceholder.%s,%1$sand%2$s).