Well Scribu. I hardcoded the locale.php file at wp-includes folder to get the plugin workings as I wanted. I duplicated de get_month_abbrev function as it follows:
First, I duplicated month_abbrev:
$this->month_abbrev_eng[__('January')] = __('Jan');
$this->month_abbrev_eng[__('February')] = __('Feb');
$this->month_abbrev_eng[__('March')] = __('Mar');
$this->month_abbrev_eng[__('April')] = __('Apr');
$this->month_abbrev_eng[__('May')] = __('May');
$this->month_abbrev_eng[__('June')] = __('Jun');
$this->month_abbrev_eng[__('July')] = __('Jul');
$this->month_abbrev_eng[__('August')] = __('Aug');
$this->month_abbrev_eng[__('September')] = __('Sep');
$this->month_abbrev_eng[__('October')] = __('Oct');
$this->month_abbrev_eng[__('November')] = __('Nov');
$this->month_abbrev_eng[__('December')] = __('Dec');
foreach ($this->month_abbrev_eng as $month_ => $month_abbrev_eng_) {
$this->month_abbrev_eng[$month_] = preg_replace('/_.+_abbreviation$/', '', $month_abbrev_eng_);}
Then, I declared the function:
function get_month_abbrev_eng($month_name) {
return $this->month_abbrev_eng[$month_name];}
And finally, apply conditional tags to generator.php file from your plugin:
if ($_SESSION["idioma"]=="esp") {
// HERE I CALL NORMAL TRANSLATION FROM WP->LOCAL IN LOCALE.PHP
$month = $wp_locale->get_month_abbrev($month);
} else {
// HERE I CALL SPECIAL HARDCODED TRANSLATION IN LOCALE.PHP
$month = $wp_locale->get_month_abbrev_eng($month);
}
That’s all! Thanks for your plugin.