mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
Fix plugins descriptions localization, props Denis-de-Bernardy, fixes #10382
git-svn-id: http://svn.automattic.com/wordpress/trunk@11716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9afb0a1277
commit
93b0be9b0c
@ -107,9 +107,9 @@ function _get_plugin_data_markup_translate($plugin_file, $plugin_data, $markup =
|
||||
//Translate fields
|
||||
if( $translate && ! empty($plugin_data['TextDomain']) ) {
|
||||
if( ! empty( $plugin_data['DomainPath'] ) )
|
||||
load_plugin_textdomain($plugin_data['TextDomain'], dirname($plugin_file). $plugin_data['DomainPath']);
|
||||
load_plugin_textdomain($plugin_data['TextDomain'], false, dirname($plugin_file). $plugin_data['DomainPath']);
|
||||
else
|
||||
load_plugin_textdomain($plugin_data['TextDomain'], dirname($plugin_file));
|
||||
load_plugin_textdomain($plugin_data['TextDomain'], false, dirname($plugin_file));
|
||||
|
||||
foreach ( array('Name', 'PluginURI', 'Description', 'Author', 'AuthorURI', 'Version') as $field )
|
||||
$plugin_data[ $field ] = translate($plugin_data[ $field ], $plugin_data['TextDomain']);
|
||||
|
Loading…
Reference in New Issue
Block a user