- Revision
- 15907
- Author
- bkirsch
- Date
- 2007-11-26 12:40:18 -0800 (Mon, 26 Nov 2007)
Log Message
Patch for bug 11430 Chandler Folders need to get name from vars. For 0.7.3 the Chandler Folder names will not be localized since there switching locales can orphan folders on the server. It should not be to much work to get the localization aspects of folder correctly working for 0.7.4. r=heikki
Modified Paths
Diff
Modified: trunk/chandler/application/dialogs/AccountPreferences.py (15906 => 15907)
--- trunk/chandler/application/dialogs/AccountPreferences.py 2007-11-26 20:35:17 UTC (rev 15906) +++ trunk/chandler/application/dialogs/AccountPreferences.py 2007-11-26 20:40:18 UTC (rev 15907) @@ -66,22 +66,24 @@ # --- Yes No Dialog Messages ----- # CREATE_FOLDERS_TITLE = _(u"Configure Chandler Folders") + CREATE_FOLDERS = _(u"""Chandler will attempt to create the following IMAP folders in your account on '%(host)s': - Chandler Events - Chandler Mail - Chander Tasks + %(ChandlerMailFolder)s + %(ChandlerTasksFolder)s + %(ChandlerEventsFolder)s If you have already set up Chandler folders in your account, no new folders will be created. Folders may take a while to show up in your email application.""") + REMOVE_FOLDERS_TITLE = _(u"Remove Chandler Folders") REMOVE_FOLDERS = _(u"""Chandler will now attempt to remove the following IMAP folders on '%(host)s': - Chandler Mail - Chander Tasks - Chandler Events + %(ChandlerMailFolder)s + %(ChandlerTasksFolder)s + %(ChandlerEventsFolder)s Would you like to proceed?""") @@ -1566,14 +1568,24 @@ if create: config = showConfigureDialog(CREATE_FOLDERS_TITLE, - CREATE_FOLDERS % {'host': account.host}, + CREATE_FOLDERS % { + "host": account.host, + "ChandlerMailFolder": constants.CHANDLER_MAIL_FOLDER, + "ChandlerTasksFolder": constants.CHANDLER_TASKS_FOLDER, + "ChandlerEventsFolder": constants.CHANDLER_EVENTS_FOLDER, + }, self) if config: ChandlerIMAPFoldersDialog(self, account, self.OnFolderCreation) else: yes = showYesNoDialog(REMOVE_FOLDERS_TITLE, - REMOVE_FOLDERS % {'host': account.host}, + REMOVE_FOLDERS % { + "host": account.host, + "ChandlerMailFolder": constants.CHANDLER_MAIL_FOLDER, + "ChandlerTasksFolder": constants.CHANDLER_TASKS_FOLDER, + "ChandlerEventsFolder": constants.CHANDLER_EVENTS_FOLDER, + }, self) if yes:
Modified: trunk/chandler/application/dialogs/AccountPreferencesDialogs.py (15906 => 15907)
--- trunk/chandler/application/dialogs/AccountPreferencesDialogs.py 2007-11-26 20:35:17 UTC (rev 15906) +++ trunk/chandler/application/dialogs/AccountPreferencesDialogs.py 2007-11-26 20:40:18 UTC (rev 15907) @@ -238,15 +238,19 @@ return _(u"""\ The following folders have been created in your account: -Chandler Mail - Add messages to this folder to add them to your Mail Dashboard. +%(ChandlerMailFolder)s - Add messages to this folder to add them to your Mail Dashboard. -Chandler Tasks - Add messages to this folder to add them to your Tasks Dashboard. +%(ChandlerTasksFolder)s - Add messages to this folder to add them to your Tasks Dashboard. -Chandler Events - Add messages to this folder to add them to your Calendar Dashboard. Chandler will do its best to makes sense of any date and time information in the message. +%(ChandlerEventsFolder)s - Add messages to this folder to add them to your Calendar Dashboard. Chandler will do its best to makes sense of any date and time information in the message. All messages added to Chandler folders will show up in your All Dashboard. -Note: Chandler folders may take a while to appear in your email application.""") +Note: Chandler folders may take a while to appear in your email application.""") % { + "ChandlerMailFolder": constants.CHANDLER_MAIL_FOLDER, + "ChandlerTasksFolder": constants.CHANDLER_TASKS_FOLDER, + "ChandlerEventsFolder": constants.CHANDLER_EVENTS_FOLDER, + } else: return _(u"You have already set up Chandler folders in this account. No new folders were created.")
Modified: trunk/chandler/parcels/osaf/mail/constants.py (15906 => 15907)
--- trunk/chandler/parcels/osaf/mail/constants.py 2007-11-26 20:35:17 UTC (rev 15906) +++ trunk/chandler/parcels/osaf/mail/constants.py 2007-11-26 20:40:18 UTC (rev 15907) @@ -24,9 +24,13 @@ CHANDLER_USERAGENT = "Chandler (%s)" % version.version CHANDLER_HEADER_PREFIX = "X-Chandler-" -CHANDLER_MAIL_FOLDER = _(u"Chandler Mail") -CHANDLER_TASKS_FOLDER = _(u"Chandler Tasks") -CHANDLER_EVENTS_FOLDER = _(u"Chandler Events") +#XXX For 0.7.3 the Chandler IMAP Folders will not +# be localized since there are potential issues +# when switching languages. For information see +# bug 11430. +CHANDLER_MAIL_FOLDER = u"Chandler Mail" +CHANDLER_TASKS_FOLDER = u"Chandler Tasks" +CHANDLER_EVENTS_FOLDER = u"Chandler Events" INVALID_EMAIL_ADDRESS = _(u"Email Address %(emailAddress)s is not valid.")
_______________________________________________ Commits mailing list [email protected] http://lists.osafoundation.org/mailman/listinfo/commits
