List of Default Translated Phrases

The question:

With <?php _e('Save Changes') ?>, I know the phrase, “Save Changes” can be translated automatically if the user’s locale is set to a different language. I’d like to know if there is a list of those already translated WordPress default messages.

What else can I use?

The Solutions:

Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.

Method 1

The list is available in $GLOBALS['l10n'][ $text_domain ].

To get the looong list of translatable WordPress strings just use:

print '<pre>' . htmlspecialchars( print_r( $GLOBALS['l10n']['default'], TRUE ) ) . '</pre>';

Do not use these strings in your theme or plugin.

They are internal, de facto private. They can change any time, even in minor updates. Always use your own strings only, even when you think: this was stable for years!

Recently the HTML tab in the post editor has been renamed to Text. I wonder how many plugins will break now … 🙂

Method 2

Default wordpress translation files are available here:

Here is an example with the french file:

Use msgid like this: <?php _e('msgid') ?>

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Comment