From: p d. t. <pdo...@an...> - 2005-03-06 18:40:32
|
>>>>>- The same is with the Recurrence-Pulldown "Days" till "Years" >>>>>- The same is with the Priority-Pulldown "Emergency" till "Ignore", but >>>>>"Unknown" is translated! >>> >>>We can find all in file constants.php, almost all words are not >>>translated, except "Unknown", it is the first in array! >>> >>>$EVENT_PRIORITIES = array( >>> SM_CAL_EVENT_PRIORITY_UNKNOWN => _("Unknown"), >>> SM_CAL_EVENT_PRIORITY_EMERGENCY => _("Emergency"), >>> and so on. >>> >>>$RECURRENCE_TYPES = array( >>> SM_CAL_ICAL_EVENT_RECURRENCE_FREQ_DAILY => _("Days"), >>> SM_CAL_ICAL_EVENT_RECURRENCE_FREQ_WEEKLY => _("Weeks"), >>> >>>The interesting thing is, that the first word in array "Unknown" is >>>translated, but all others are not! > > > Still the same, not translated. Wow, this has me stumped. I'll take a look a bit later... I'm out for the day now. >>Calendar name: When personal calendar for a user does not exist, I >>want to be sure that it is created with its name translated: "Personal >>Calendar for %s" (%s is the username) > > > Not translated, file example: > BEGIN:VCALENDAR > VERSION:2.0 > PRODID:-//SquirrelMail//NONSGML SquirrelMail Calendar Plugin V2.0.1//EN > CALSCALE:GREGORIAN > X-WR-CALNAME:Personal Calendar for <name> > X-WR-RELCALID:sm_cal_<name> > X-SQ-CALID:sm_cal_<name> > X-SQ-CALNAME:Personal Calendar for <name> <-- This is what you mean? Yes, but as Fredrik noted, this might be because it was created the first time you used the plugin, before it had the correct translation in place. As soon as you have the plugin active and log in, it creates that calendar immediately. In my thread with Fredrick, I think I figured out that putting that name together when outputting the calendar is the only way to translate that message safely. I'll work on it. >> - drop-down selectors for month -- I don't think these will be >>correctly translated yet... I need to fix this > > > It is translated! No need to fix. Strange. Maybe only in some languages (it just takes a substr of the translated month, which is a bad idea). I'll test with Japanese, as I think that's one place it will implode. > But there is a new problem since this fix: I can't change preferences from > 12 hous to 24 hours. They don't stay in my choice. I removed that option from the calendar and I use the SM system default (Options->Folder Prefs). If you still have that option on the calendar prefs page, then you simply don't have the newest version of that file. I am attaching it here. >> - values in priority drop-down are all correctly translated > > > No, sorry, in Preferences Drop-down "Priority" is not translated! Weird.... > Another point I decided: > An Export of a Personal Calendar breaks with: > ERROR IN CALENDAR FILE BACKEND (cal_file_get_calendar_do): cannot find > calendar file for calendar ID personal > Other exports of global calendars are working. I fixed this much earlier after you identified it. It is working fine from here. Not sure why you'd see this problem again. I'll send you the full tarball offlist. Can you test again after that? Thanks a whole lot! - Paul |