From 0eb19849badd549f6ea36622a82e69f9b2a634be Mon Sep 17 00:00:00 2001 From: "Pinakin Nayi (OpenERP)" Date: Thu, 12 Jul 2012 18:43:37 +0530 Subject: [PATCH] [IMP]google-caldav-warning-msg bzr revid: pna@tinyerp.com-20120712131337-uu2t52v22x3xo8ki --- addons/caldav/calendar.py | 6 +++--- addons/caldav/i18n/caldav.pot | 2 +- addons/caldav/wizard/caldav_browse.py | 2 +- addons/caldav/wizard/calendar_event_import.py | 2 +- addons/google_docs/google_docs.py | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/addons/caldav/calendar.py b/addons/caldav/calendar.py index fb98e00a86f..8678d617463 100644 --- a/addons/caldav/calendar.py +++ b/addons/caldav/calendar.py @@ -786,7 +786,7 @@ class basic_calendar_line(osv.osv): res = cr.fetchone() if res: if res[0] > 0: - raise osv.except_osv(_('Warning !'), _('Can not create line "%s" more than once') % (vals.get('name'))) + raise osv.except_osv(_('Warning !'), _('Cannot create line "%s" more than once.') % (vals.get('name'))) return super(basic_calendar_line, self).create(cr, uid, vals, context=context) basic_calendar_line() @@ -876,7 +876,7 @@ class basic_calendar_fields(osv.osv): line = line_obj.browse(cr, uid, l_id, context=context)[0] line_rel = line.object_id.model if (relation != 'NULL') and (not relation == line_rel): - raise osv.except_osv(_('Warning !'), _('Please provide proper configuration of "%s" in Calendar Lines') % (name)) + raise osv.except_osv(_('Warning !'), _('Please provide proper configuration of "%s" in Calendar Lines.') % (name)) return True def create(self, cr, uid, vals, context=None): @@ -1192,7 +1192,7 @@ class Alarm(CalDAV, osv.osv_memory): elif isinstance(child.value, datetime): # TODO # remember, spec says this datetime is in UTC - raise NotImplementedError("we cannot parse absolute triggers") + raise NotImplementedError("We cannot parse absolute triggers.") if not seconds: duration = abs(days) related = days > 0 and 'after' or 'before' diff --git a/addons/caldav/i18n/caldav.pot b/addons/caldav/i18n/caldav.pot index cdfd0be1490..444a7e04bba 100644 --- a/addons/caldav/i18n/caldav.pot +++ b/addons/caldav/i18n/caldav.pot @@ -365,7 +365,7 @@ msgstr "" #. module: caldav #: code:addons/caldav/wizard/calendar_event_import.py:63 #, python-format -msgid "Invalid format of the ics, file can not be imported" +msgid "Invalid format of the ics, file cannot be imported." msgstr "" #. module: caldav diff --git a/addons/caldav/wizard/caldav_browse.py b/addons/caldav/wizard/caldav_browse.py index f4bb8aeaabc..03ccfd3f294 100644 --- a/addons/caldav/wizard/caldav_browse.py +++ b/addons/caldav/wizard/caldav_browse.py @@ -178,7 +178,7 @@ configuration res = {} host = context.get('host') if not config.get_misc('webdav','enable',True): - raise Exception("WebDAV is disabled, cannot continue") + raise Exception("WebDAV is disabled, cannot continue.") user_pool = self.pool.get('res.users') current_user = user_pool.browse(cr, uid, uid, context=context) #TODO write documentation diff --git a/addons/caldav/wizard/calendar_event_import.py b/addons/caldav/wizard/calendar_event_import.py index 06e7af5e2d2..b185132417f 100644 --- a/addons/caldav/wizard/calendar_event_import.py +++ b/addons/caldav/wizard/calendar_event_import.py @@ -60,7 +60,7 @@ class calendar_event_import(osv.osv_memory): try: vals = model_obj.import_cal(cr, uid, base64.decodestring(data['file_path']), context['active_id'], context) except: - raise osv.except_osv(_('Warning !'),_('Invalid format of the ics, file can not be imported')) + raise osv.except_osv(_('Warning !'),_('Invalid format of the ics, file cannot be imported.')) global cnt if vals: cnt = len(vals) diff --git a/addons/google_docs/google_docs.py b/addons/google_docs/google_docs.py index 659c86ad0d1..270c105daab 100644 --- a/addons/google_docs/google_docs.py +++ b/addons/google_docs/google_docs.py @@ -27,7 +27,7 @@ try: from gdata.docs.service import DOCUMENT_LABEL import gdata.auth except ImportError: - raise osv.except_osv(_('Google Docs Error!'), _('Please install gdata-python-client from http://code.google.com/p/gdata-python-client/downloads/list')) + raise osv.except_osv(_('Google Docs Error!'), _('Please install gdata-python-client from http://code.google.com/p/gdata-python-client/downloads/list.')) class google_docs_ir_attachment(osv.osv): _inherit = 'ir.attachment' @@ -46,7 +46,7 @@ class google_docs_ir_attachment(osv.osv): #login gmail account client = google_pool.google_login( user_config['user'], user_config['password'], type='docs_client', context=context) if not client: - raise osv.except_osv( _('Google Docs Error!'), _("Check your google configuration in users/synchronization")) + raise osv.except_osv( _('Google Docs Error!'), _("Check your google configuration in Users/Users/Synchronization tab.")) return client def create_empty_google_doc(self, cr, uid, res_model, res_id, context=None): @@ -88,7 +88,7 @@ class google_docs_ir_attachment(osv.osv): #copy the document you choose in the configuration copy_resource = client.copy_resource(original_resource, 'copy_%s' % original_resource.title.text) except: - raise osv.except_osv(_('Google Docs Error!'), _("Your resource id is not correct. You can find the id in the google docs URL")) + raise osv.except_osv(_('Google Docs Error!'), _("Your resource id is not correct. You can find the id in the google docs URL.")) # create an ir.attachment self.create(cr, uid, { 'res_model': res_model,