Hey @ckass!
You can modify the translations using POEdit software. All translation files of the plugin/theme are located under /languages folder of its directory.
You will need to download .po and .mo files of your language from here and modify .po with POEdit. Then please upload new .po and .mo back to the same folder, replacing their old versions.
Let me know in case you have further questions.
Thank you! Have a wonderful day!
It’s impossible to get the correct naming without changing some lines of php code @wdsupport because the order is hard coded.
The problem is located at \frontend\models\FFWDModelBlog_style.php L100 and L102:
return $numberOfUnits.' '.$tokens_s[$unit] . __(' ago','ffwd');
$numberOfUnits = ‘4’
$tokens_s[$unit] = ‘Monate’
__(' ago','ffwd') = ‘vor’
Complete: 4 Monatevor, Correct would be: Vor 4 Monaten
The php code must be changed to something like:
if($numberOfUnits>1) {
if ( get_locale() === 'de_DE' ) {
return __('ago', 'ffwd') . ' ' . $numberOfUnits . ' ' . $tokens_s[$unit];
} else {
return $numberOfUnits . ' ' . $tokens_s[$unit] . __(' ago', 'ffwd');
}
}
if ( get_locale() === 'de_DE' ) {
return __('ago','ffwd') . ' ' . $numberOfUnits . ' ' . $text;
} else {
return $numberOfUnits.' '.$text. __(' ago','ffwd');
}
This produces: vor 4 Monaten
-
This reply was modified 8 years, 7 months ago by
fireemerald.