Codex

Function Reference/load theme textdomain

Contents

Description

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.

The .mo files must be named based on the locale exactly.

Usage

<?php load_theme_textdomain$domain$path ?>

Parameters

$domain
(string) (required) Unique identifier for retrieving translated strings.
Default: None
$path
(unknown) (optional)
Default: false

Return Values

(void) 
This function does not return a value.

Examples

Notes

  • l10n is an abbreviation for localization.

Change Log

Since: 1.5.0

Source File

load_theme_textdomain() is located in wp-includes/l10n.php.

Related