Archive | /wp-includes/l10n.php RSS feed for this section

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

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

3081

Continue reading

load_theme_textdomain

Loads the theme’s translated strings.If the current locale exists as a .mo file in the theme’s root directory, it will be included in the translated strings by the $domain.

2293

Continue reading

load_textdomain

Loads a MO file into the domain $domain.If the domain already exists, the translations will be merged. If both sets have the same string, the translation from the original value will be taken.

2291

Continue reading