because those - are ­ characters. since you enabled encoding with the switch from the _ function to the __ function, you have to delete those characters from the translation files. use a text editor which can handle utf-8 encoding
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I am trying to get this to work with ru and ar translation:
<?php echo "<select name='month' size='1'>";
echo "<option value=''></option>";
for ($i=1;$i<13;$i++) {
echo "<option value='" . $i . "'>" . $format_date->monthName(mktime(0,0,0,$i,1,1)) . "</option>\n";
}
echo "</select><br>"; ?>
I tried in i18n_settings.ini:
[FormatDate]
encode_strings = TRUE
No success. Could someone help me please?
Thx.
Found it!
In class.FormatDate.inc.php function monthName and dayName, this needs to be changed:
return (string) $this->lg->_($this->day_array[$day]);
to:
return (string) $this->lg->__($this->day_array[$day]);
Now with all others languages except ru and ar it is doing:
Sep-tem-bre
Oc-to-bre
etc.
in the list. Please help!
because those - are ­ characters. since you enabled encoding with the switch from the _ function to the __ function, you have to delete those characters from the translation files. use a text editor which can handle utf-8 encoding