Skip to main content

get_installed_translations()

public static function get_installed_translations( $domain='gravityforms', $return_files=false )

Returns an array of locales or mo translation files found in the WP_LANG_DIR/plugins directory.

Since: 2.5.6

Source: common.php:7216

Parameters

NameTypeDefaultDescription
$domainstring'gravityforms'The plugin text domain. Default is gravityforms.
$return_filesboolfalseIndicates if the mo files should be returned using the locales as the keys.

Returns

  • array