function _get_plugin_data_markup_translate( $plugin_file,
$plugin_data,
$markup = true,
$translate = true
) { // Sanitize the plugin filename to a WP_PLUGIN_DIR relative path.
$plugin_file =
plugin_basename( $plugin_file );
// Translate fields.
if ( $translate ) { $textdomain =
$plugin_data['TextDomain'
];
if ( $textdomain ) { if ( !
is_textdomain_loaded( $textdomain ) ) { if ( $plugin_data['DomainPath'
] ) { load_plugin_textdomain( $textdomain, false,
dirname( $plugin_file ) .
$plugin_data['DomainPath'
] );
} else { load_plugin_textdomain( $textdomain, false,
dirname( $plugin_file ) );
} } } elseif ( 'hello.php' ===
basename( $plugin_file ) ) { $textdomain = 'default';
} if ( $textdomain ) { foreach ( array
( 'Name', 'PluginURI', 'Description', 'Author', 'AuthorURI', 'Version'
) as $field ) {