From: Erich G. <er...@gr...> - 2005-03-05 19:25:06
|
Paul, Shared Calendars 2.0.1 again, I wrote to you recently: >> Translations >> - Messages like =93Event Created Successfully=94 and all other >> messages are not translated. Solution: In file event_manage.php I insertet under function create, update and delete event what you forgot: bindtextdomain ('calendar', SM_PATH . 'locale'); textdomain ('calendar'); and at the end bindtextdomain ('squirrelmail', SM_PATH . 'locale'); textdomain ('squirrelmail'); Now, this point works. Please check that if it's right. I'm shure, you would write it in another way. File is in attachement. The second point: >> - The same is with the Recurrence-Pulldown "Days" till "Years" >> - The same is with the Priority-Pulldown "Emergency" till "Ignore", bu= t >> "Unknown" is translated! We can find all in file constants.php, almost all words are not translate= d, except "Unknown", it is the first in array! Line: 154 $EVENT_PRIORITIES =3D array( SM_CAL_EVENT_PRIORITY_UNKNOWN =3D> _("Unknown"), SM_CAL_EVENT_PRIORITY_EMERGENCY =3D> _("Emergency"), SM_CAL_EVENT_PRIORITY_URGENT =3D> _("Urgent"), and so on. Line 217: $RECURRENCE_TYPES =3D array( SM_CAL_ICAL_EVENT_RECURRENCE_FREQ_DAILY =3D> _("Days"), SM_CAL_ICAL_EVENT_RECURRENCE_FREQ_WEEKLY =3D> _("Weeks"), SM_CAL_ICAL_EVENT_RECURRENCE_FREQ_MONTHLY =3D> _("Months"), SM_CAL_ICAL_EVENT_RECURRENCE_FREQ_YEARLY =3D> _("Years"), It must be a correlation between these words an the art, the array works. The arrays who are defined in funktions.php are translated allright! The interesting thing is, that the first word in array "Unknows" is translated all other not! Would you please check this, I guess these arrays make a general translation problem. Thank You for the really good PlugIns you wrote (vlogin, for excample). Cheers Erich |