In this case, 'themify'
is the defined textdomain for the Theme, used to make the Theme translatable. (Codex reference: load_theme_textdomain()
).
Making a Theme translation-ready requires a few steps.
-
Define the Theme’s textdomain:
load_theme_textdomain( 'themify', TEMPLATEPATH.'/languages' );
-
Define translatable strings in the template.
This is done using one of a few translation functions:
__()
(for returned strings),_e()
(for echoed strings), and_x()
/_ex()
(for gettext context strings). There are others, but you get the idea…A static text string, such as
<p>Hello world!</p>
, is wrapped in an appropriate translation function, such as<p><?php _e( 'Hello World!', 'themify' ); ?></p>
, to make it available for translation. -
Generate the .mo/.po files
reference on how to edit language files