Archive | Functions by letter t RSS feed for this section

translate_with_context

Translates $text like translate(), but assumes that the text contains a context after its last vertical bar.

3089

Continue reading

translate_user_role

Translates role name. Since the role names are in the database and not in the source there are dummy gettext calls to get them into the POT file and this function properly translates them back.The before_last_bar() call is needed, because older installs keep the roles using the old context format: ‘Role name|User role’ and just skipping the content after the last bar is easier than fixing them in the DB. New installs won’t suffer from that problem.

3087

Continue reading

translate_smiley

Convert one smiley code to the icon graphic file equivalent.Looks up one smiley code in the $wpsmiliestrans global array and returns an string for that smiley.

3085

Continue reading

translate

Retrieves the translation of $text. If there is no translation, or the domain isn’t loaded, the original text is returned.

3081

Continue reading