translate_with_gettext_context in /wp-includes/l10n.php
3091
Continue readingTranslates 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 readingRetrieves the translation of $text. If there is no translation, or the domain isn’t loaded, the original text is returned.
3081
Continue readingLoads 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 readingLoads 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