[FIX]: Fixed translation of warning messages
lp bug: https://launchpad.net/bugs/660494 fixed bzr revid: rpa@tinyerp.com-20101027133524-2mijip7zskzwevnh
This commit is contained in:
parent
bc2707e65d
commit
d6ba50f386
|
@ -241,14 +241,14 @@ class account_cash_statement(osv.osv):
|
|||
|
||||
def create(self, cr, uid, vals, context=None):
|
||||
if 'journal_id' not in vals:
|
||||
raise osv.except_osv('Error', _('You cannot create a bank or cash register without a journal!'))
|
||||
raise osv.except_osv(_('Error'), _('You cannot create a bank or cash register without a journal!'))
|
||||
sql = [
|
||||
('journal_id', '=', vals.get('journal_id', False)),
|
||||
('state', '=', 'open')
|
||||
]
|
||||
open_jrnl = self.search(cr, uid, sql)
|
||||
if open_jrnl:
|
||||
raise osv.except_osv('Error', _('You can not have two open register for the same journal'))
|
||||
raise osv.except_osv(_('Error'), _('You can not have two open register for the same journal'))
|
||||
|
||||
if self.pool.get('account.journal').browse(cr, uid, vals['journal_id']).type == 'cash':
|
||||
open_close = self._get_cash_open_close_box_lines(cr, uid, context)
|
||||
|
|
|
@ -5617,6 +5617,7 @@ msgstr ""
|
|||
#: code:addons/account/invoice.py:0
|
||||
#: code:addons/account/wizard/account_invoice_refund.py:0
|
||||
#: code:addons/account/wizard/account_use_model.py:0
|
||||
#: code:addons/account/account_cash_statement.py:0
|
||||
#, python-format
|
||||
msgid "Error !"
|
||||
msgstr ""
|
||||
|
@ -6138,6 +6139,12 @@ msgstr ""
|
|||
msgid "You can not have two open register for the same journal"
|
||||
msgstr ""
|
||||
|
||||
#. module: account
|
||||
#: code:addons/account/account_cash_statement.py:0
|
||||
#, python-format
|
||||
msgid "You cannot create a bank or cash register without a journal!"
|
||||
msgstr ""
|
||||
|
||||
#. module: account
|
||||
#: view:account.payment.term.line:0
|
||||
msgid " day of the month= -1"
|
||||
|
|
|
@ -307,6 +307,54 @@ msgstr ""
|
|||
msgid "The Buyer \"%s\" has no Invoice Address."
|
||||
msgstr ""
|
||||
|
||||
#. module: auction
|
||||
#: code:addons/auction/wizard/auction_pay_buy.py:0
|
||||
#, python-format
|
||||
msgid "Payment aborted !"
|
||||
msgstr ""
|
||||
|
||||
#. module: auction
|
||||
#: code:addons/auction/wizard/auction_pay_buy.py:0
|
||||
#, python-format
|
||||
msgid "You should pay all the total: "%.2f" are missing to accomplish the payment."
|
||||
msgstr ""
|
||||
|
||||
#. module: auction
|
||||
#: code:addons/auction/wizard/auction_pay_buy.py:0
|
||||
#, python-format
|
||||
msgid "Error!"
|
||||
msgstr ""
|
||||
|
||||
#. module: auction
|
||||
#: code:addons/auction/wizard/auction_catalog_flagey_report.py:0
|
||||
#, python-format
|
||||
msgid "No Lots belong to this Auction Date"
|
||||
msgstr ""
|
||||
|
||||
#. module: auction
|
||||
#: code:addons/auction/wizard/auction_lots_numerotate.py:0
|
||||
#, python-format
|
||||
msgid "This record does not exist !"
|
||||
msgstr ""
|
||||
|
||||
#. module: auction
|
||||
#: code:addons/auction/wizard/auction_lots_numerotate.py:0
|
||||
#, python-format
|
||||
msgid "This lot does not exist !"
|
||||
msgstr ""
|
||||
|
||||
#. module: auction
|
||||
#: code:addons/auction/wizard/auction_lots_buyer_map.py:0
|
||||
#, python-format
|
||||
msgid "No buyer is set for this lot."
|
||||
msgstr ""
|
||||
|
||||
#. module: auction
|
||||
#: code:addons/auction/wizard/auction_pay_buy.py:0
|
||||
#, python-format
|
||||
msgid "No auction date for "%s": Please set one."
|
||||
msgstr ""
|
||||
|
||||
#. module: auction
|
||||
#: view:auction.dates:0
|
||||
msgid "Commissions"
|
||||
|
@ -659,6 +707,7 @@ msgstr ""
|
|||
|
||||
#. module: auction
|
||||
#: code:addons/auction/wizard/auction_lots_invoice.py:0
|
||||
#: code:addons/auction/wizard/auction_lots_numerotate.py:0
|
||||
#, python-format
|
||||
msgid "UserError"
|
||||
msgstr ""
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
|
||||
from osv import osv, fields
|
||||
import netsvc
|
||||
from tools.translate import _
|
||||
|
||||
class auction_catalog_flagey(osv.osv_memory):
|
||||
_name = 'auction.catalog.flagey'
|
||||
|
@ -57,7 +58,7 @@ class auction_catalog_flagey(osv.osv_memory):
|
|||
v_ids = lots_obj.browse(cr, uid, v_lots)
|
||||
for ab in v_ids:
|
||||
if not ab.auction_id :
|
||||
raise osv.except_osv('Error!','No Lots belong to this Auction Date')
|
||||
raise osv.except_osv(_('Error!'), _('No Lots belong to this Auction Date'))
|
||||
pass
|
||||
|
||||
def print_report(self, cr, uid, ids, context):
|
||||
|
|
|
@ -67,7 +67,7 @@ class wiz_auc_lots_buyer_map(osv.osv_memory):
|
|||
lots_obj = self.pool.get('auction.lots')
|
||||
for rec in lots_obj.browse(cr, uid, ids, context):
|
||||
if (len(ids)==1) and (not rec.ach_uid and not rec.ach_login):
|
||||
raise osv.except_osv('Error', 'No buyer is set for this lot.')
|
||||
raise osv.except_osv(_('Error'), _('No buyer is set for this lot.'))
|
||||
if not rec.ach_uid and rec.ach_login:
|
||||
return {'ach_login': rec.ach_login}
|
||||
return {}
|
||||
|
|
|
@ -99,7 +99,7 @@ class auction_lots_numerotate_per_lot(osv.osv_memory):
|
|||
('lot_num','=',int(datas['lot_num']))])
|
||||
found = [r for r in res if r in record_ids]
|
||||
if len(found)==0:
|
||||
raise osv.except_osv('UserError', 'This record does not exist !')
|
||||
raise osv.except_osv(_('UserError'), _('This record does not exist !'))
|
||||
lots_obj.write(cr, uid, found, {'obj_num':int(datas['obj_num'])} )
|
||||
view_id = data_obj._get_id(cr, uid, 'auction', 'view_auction_numerotate')
|
||||
if view_id:
|
||||
|
@ -125,7 +125,7 @@ class auction_lots_numerotate_per_lot(osv.osv_memory):
|
|||
('lot_num','=',int(datas['lot_num']))])
|
||||
found = [r for r in res if r in record_ids]
|
||||
if len(found)==0:
|
||||
raise osv.except_osv('UserError', 'This record does not exist !')
|
||||
raise osv.except_osv(_('UserError'), _('This record does not exist !'))
|
||||
lots_datas = lots_obj.read(cr, uid, found,
|
||||
['obj_num', 'name', 'lot_est1',
|
||||
'lot_est2', 'obj_desc'])
|
||||
|
@ -141,7 +141,7 @@ class auction_lots_numerotate_per_lot(osv.osv_memory):
|
|||
('lot_num','=',int(datas['lot_num']))])
|
||||
found = [r for r in res if r in record_ids]
|
||||
if len(found)==0:
|
||||
raise osv.except_osv('Error', 'This lot does not exist !')
|
||||
raise osv.except_osv(_('Error'), _('This lot does not exist !'))
|
||||
view_id = data_obj._get_id(cr, uid, 'auction', 'view_auction_lots_numerotate_second')
|
||||
if view_id:
|
||||
res_id = data_obj.browse(cr, uid, view_id, context=context).res_id
|
||||
|
|
|
@ -76,14 +76,14 @@ class auction_pay_buy(osv.osv_memory):
|
|||
for datas in self.read(cr, uid, ids):
|
||||
if not abs(datas['total'] - (datas['amount'] + datas['amount2'] + datas['amount3'])) <0.01:
|
||||
rest = datas['total'] - (datas['amount'] + datas['amount2'] + datas['amount3'])
|
||||
raise osv.except_osv('Payment aborted !', 'You should pay all the total: "%.2f" are missing to accomplish the payment.' %(round(rest, 2)))
|
||||
raise osv.except_osv(_('Payment aborted !'), _('You should pay all the total: "%.2f" are missing to accomplish the payment.') %(round(rest, 2)))
|
||||
|
||||
lots = lot_obj.browse(cr, uid, context['active_ids'], context)
|
||||
for lot in lots:
|
||||
if datas['buyer_id']:
|
||||
lot_obj.write(cr, uid, [lot.id], {'ach_uid': datas['buyer_id']})
|
||||
if not lot.auction_id:
|
||||
raise osv.except_osv('Error !', 'No auction date for "%s": Please set one.'%(lot.name))
|
||||
raise osv.except_osv(_('Error!'), _('No auction date for "%s": Please set one.') % (lot.name))
|
||||
lot_obj.write(cr, uid, [lot.id], {'is_ok':True})
|
||||
|
||||
for st, stamount in [('statement_id1', 'amount'), ('statement_id2', 'amount2'), ('statement_id3', 'amount3')]:
|
||||
|
|
|
@ -1089,9 +1089,9 @@ class calendar_event(osv.osv):
|
|||
cr.execute("UPDATE %s set exrule=Null where id=%%s" % self._table,( event,))
|
||||
elif datas.get('rrule_type') == 'custom':
|
||||
if datas.get('interval', 0) < 0:
|
||||
raise osv.except_osv('Warning!', 'Interval can not be Negative')
|
||||
raise osv.except_osv(_('Warning!'), _('Interval can not be Negative'))
|
||||
if datas.get('count', 0) < 0:
|
||||
raise osv.except_osv('Warning!', 'Count can not be Negative')
|
||||
raise osv.except_osv(_('Warning!'), _('Count can not be Negative'))
|
||||
rrule_custom = self.compute_rule_string(cr, uid, datas, \
|
||||
context=context)
|
||||
result[event] = rrule_custom
|
||||
|
|
|
@ -146,6 +146,24 @@ msgstr ""
|
|||
msgid "Warning !"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_calendar
|
||||
#: code:addons/base_calendar/base_calendar.py:0
|
||||
#, python-format
|
||||
msgid "Warning!"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_calendar
|
||||
#: code:addons/base_calendar/base_calendar.py:0
|
||||
#, python-format
|
||||
msgid "Interval can not be Negative"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_calendar
|
||||
#: code:addons/base_calendar/base_calendar.py:0
|
||||
#, python-format
|
||||
msgid "Count can not be Negative"
|
||||
msgstr ""
|
||||
|
||||
#. module: base_calendar
|
||||
#: selection:base.calendar.set.exrule,week_list:0
|
||||
#: selection:calendar.event,week_list:0
|
||||
|
|
|
@ -38,8 +38,7 @@ from tools.safe_eval import safe_eval as eval
|
|||
try:
|
||||
import vobject
|
||||
except ImportError:
|
||||
raise osv.except_osv('vobject Import Error!','Please install python-vobject \
|
||||
from http://vobject.skyhouseconsulting.com/')
|
||||
raise osv.except_osv(_('vobject Import Error!'), _('Please install python-vobject from http://vobject.skyhouseconsulting.com/'))
|
||||
|
||||
# O-1 Optional and can come only once
|
||||
# O-n Optional and can come more than once
|
||||
|
|
|
@ -61,6 +61,18 @@ msgstr ""
|
|||
msgid "Warning !"
|
||||
msgstr ""
|
||||
|
||||
#. module: caldav
|
||||
#: code:addons/caldav/calendar.py:0
|
||||
#, python-format
|
||||
msgid "vobject Import Error!"
|
||||
msgstr ""
|
||||
|
||||
#. module: caldav
|
||||
#: code:addons/caldav/calendar.py:0
|
||||
#, python-format
|
||||
msgid "Please install python-vobject from http://vobject.skyhouseconsulting.com/"
|
||||
msgstr ""
|
||||
|
||||
#. module: caldav
|
||||
#: field:basic.calendar,has_webcal:0
|
||||
msgid "WebCal"
|
||||
|
|
|
@ -123,3 +123,14 @@ msgstr ""
|
|||
msgid "Name"
|
||||
msgstr ""
|
||||
|
||||
#. module: document_webdav
|
||||
#: code:addons/document_webdav/webdav.py:0
|
||||
#, python-format
|
||||
msgid "PyWebDAV Import Error!"
|
||||
msgstr ""
|
||||
|
||||
#. module: document_webdav
|
||||
#: code:addons/document_webdav/webdav.py:0
|
||||
#, python-format
|
||||
msgid "Please install PyWebDAV from http://code.google.com/p/pywebdav/downloads/detail?name=PyWebDAV-0.9.4.tar.gz&can=2&q=/"
|
||||
msgstr ""
|
||||
|
|
|
@ -27,14 +27,14 @@ from xml.dom.minicompat import StringTypes
|
|||
import urlparse
|
||||
import urllib
|
||||
from osv import osv
|
||||
from tools.translate import _
|
||||
|
||||
try:
|
||||
from DAV import utils
|
||||
from DAV.propfind import PROPFIND
|
||||
from DAV.report import REPORT
|
||||
except ImportError:
|
||||
raise osv.except_osv('PyWebDAV Import Error!','Please install PyWebDAV \
|
||||
from http://code.google.com/p/pywebdav/downloads/detail?name=PyWebDAV-0.9.4.tar.gz&can=2&q=/')
|
||||
raise osv.except_osv(_('PyWebDAV Import Error!'), _('Please install PyWebDAV from http://code.google.com/p/pywebdav/downloads/detail?name=PyWebDAV-0.9.4.tar.gz&can=2&q=/'))
|
||||
|
||||
import tools
|
||||
|
||||
|
|
|
@ -190,6 +190,17 @@ msgid "Your bank BVR number should be of the form 0X-XXX-X!\n' \\n"
|
|||
" 'information for the invoice:\n%s"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_ch
|
||||
#: code:addons/l10n_ch/wizard/create_dta.py:0
|
||||
#, python-format
|
||||
msgid "No address defined \n' \\n"
|
||||
" 'for the partner: ' + pline.partner_id.name + '\n' \\n"
|
||||
" 'on line: ' + pline.name))\n"
|
||||
"\n"
|
||||
" if pline.order_id.date_scheduled:\n"
|
||||
" date_value = datetime.strptime(pline.order_id.date_scheduled, '%Y-%m-%d"
|
||||
msgstr ""
|
||||
|
||||
#. module: l10n_ch
|
||||
#: view:bvr.invoices.report:0
|
||||
#: view:bvr.report:0
|
||||
|
|
|
@ -464,9 +464,9 @@ def _create_dta(obj, cr, uid, data, context=None):
|
|||
v['partner_city']= ''
|
||||
v['partner_zip']= ''
|
||||
v['partner_country']= ''
|
||||
raise osv.except_osv('Error', 'No address defined \n' \
|
||||
raise osv.except_osv(_('Error'), _('No address defined \n' \
|
||||
'for the partner: ' + pline.partner_id.name + '\n' \
|
||||
'on line: ' + pline.name)
|
||||
'on line: ' + pline.name))
|
||||
|
||||
if pline.order_id.date_scheduled:
|
||||
date_value = datetime.strptime(pline.order_id.date_scheduled, '%Y-%m-%d')
|
||||
|
@ -613,4 +613,4 @@ class create_dta_wizard(osv.osv_memory):
|
|||
|
||||
create_dta_wizard()
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -31,6 +31,18 @@ msgstr ""
|
|||
msgid "The current step for this item has no email or report to preview."
|
||||
msgstr ""
|
||||
|
||||
#. module: marketing_campaign
|
||||
#: code:addons/marketing_campaign/marketing_campaign.py:0
|
||||
#, python-format
|
||||
msgid "Operation not supported"
|
||||
msgstr ""
|
||||
|
||||
#. module: marketing_campaign
|
||||
#: code:addons/marketing_campaign/marketing_campaign.py:0
|
||||
#, python-format
|
||||
msgid "Sorry, campaign duplication is not supported at the moment."
|
||||
msgstr ""
|
||||
|
||||
#. module: marketing_campaign
|
||||
#: code:addons/marketing_campaign/marketing_campaign.py:0
|
||||
#, python-format
|
||||
|
|
|
@ -205,7 +205,7 @@ Normal - the campaign runs normally and automatically sends all emails and repor
|
|||
|
||||
# prevent duplication until the server properly duplicates several levels of nested o2m
|
||||
def copy(self, cr, uid, id, default=None, context=None):
|
||||
raise osv.except_osv("Operation not supported", "Sorry, campaign duplication is not supported at the moment.")
|
||||
raise osv.except_osv(_("Operation not supported"), _("Sorry, campaign duplication is not supported at the moment."))
|
||||
|
||||
marketing_campaign()
|
||||
|
||||
|
|
|
@ -306,6 +306,12 @@ msgstr ""
|
|||
msgid "No valid pricelist line found !"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#: code:addons/point_of_sale/wizard/pos_discount.py:0
|
||||
#, python-format
|
||||
msgid "No Order Lines"
|
||||
msgstr ""
|
||||
|
||||
#. module: point_of_sale
|
||||
#: report:pos.details:0
|
||||
#: report:pos.lines:0
|
||||
|
@ -1754,6 +1760,7 @@ msgstr ""
|
|||
|
||||
#. module: point_of_sale
|
||||
#: code:addons/point_of_sale/wizard/pos_payment.py:0
|
||||
#: code:addons/point_of_sale/wizard/pos_discount.py:0
|
||||
#, python-format
|
||||
msgid "Error!"
|
||||
msgstr ""
|
||||
|
|
|
@ -49,7 +49,7 @@ class pos_discount(osv.osv_memory):
|
|||
record_id = context and context.get('active_id', False) or False
|
||||
order = self.pool.get('pos.order').browse(cr, uid, record_id, context=context)
|
||||
if not order.lines:
|
||||
raise osv.except_osv('Error!','No Order Lines ')
|
||||
raise osv.except_osv(_('Error!'), _('No Order Lines'))
|
||||
True
|
||||
def apply_discount(self, cr, uid, ids, context=None):
|
||||
"""
|
||||
|
|
|
@ -378,3 +378,14 @@ msgstr ""
|
|||
msgid "Purchase Orders"
|
||||
msgstr ""
|
||||
|
||||
#. module: purchase_requisition
|
||||
#: code:addons/purchase_requisition/wizard/purchase_requisition_partner.py:0
|
||||
#, python-format
|
||||
msgid "Error!"
|
||||
msgstr ""
|
||||
|
||||
#. module: purchase_requisition
|
||||
#: code:addons/purchase_requisition/wizard/purchase_requisition_partner.py:0
|
||||
#, python-format
|
||||
msgid "No Product in Tender"
|
||||
msgstr ""
|
||||
|
|
|
@ -24,6 +24,7 @@ from datetime import datetime
|
|||
from dateutil.relativedelta import relativedelta
|
||||
from osv import fields, osv
|
||||
from osv.orm import browse_record, browse_null
|
||||
from tools.translate import _
|
||||
|
||||
class purchase_requisition_partner(osv.osv_memory):
|
||||
_name = "purchase.requisition.partner"
|
||||
|
@ -38,7 +39,7 @@ class purchase_requisition_partner(osv.osv_memory):
|
|||
record_id = context and context.get('active_id', False) or False
|
||||
tender = self.pool.get('purchase.requisition').browse(cr, uid, record_id)
|
||||
if not tender.line_ids:
|
||||
raise osv.except_osv('Error!','No Product in Tender')
|
||||
raise osv.except_osv(_('Error!'), _('No Product in Tender'))
|
||||
True
|
||||
|
||||
def onchange_partner_id(self, cr, uid, ids, partner_id):
|
||||
|
|
|
@ -3379,10 +3379,17 @@ msgstr ""
|
|||
#: code:addons/stock/product.py:0
|
||||
#: code:addons/stock/stock.py:0
|
||||
#: code:addons/stock/wizard/stock_splitinto.py:0
|
||||
#: code:addons/stock/wizard/stock_fill_inventory.py:0
|
||||
#, python-format
|
||||
msgid "Error!"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: code:addons/stock/wizard/stock_fill_inventory.py:0
|
||||
#, python-format
|
||||
msgid "Stock Inventory is done"
|
||||
msgstr ""
|
||||
|
||||
#. module: stock
|
||||
#: code:addons/stock/stock.py:0
|
||||
#, python-format
|
||||
|
|
|
@ -45,7 +45,7 @@ class stock_fill_inventory(osv.osv_memory):
|
|||
if context.get('active_id', False):
|
||||
stock = self.pool.get('stock.inventory').browse(cr, uid, context.get('active_id', False))
|
||||
if stock.state=='done':
|
||||
raise osv.except_osv('Error!','Stock Inventory is done')
|
||||
raise osv.except_osv(_('Error!'), _('Stock Inventory is done'))
|
||||
True
|
||||
|
||||
def fill_inventory(self, cr, uid, ids, context=None):
|
||||
|
|
Loading…
Reference in New Issue