diff --git a/addons/account_analytic_analysis/i18n/zh_CN.po b/addons/account_analytic_analysis/i18n/zh_CN.po
index 7df872756b7..c3bd697646c 100644
--- a/addons/account_analytic_analysis/i18n/zh_CN.po
+++ b/addons/account_analytic_analysis/i18n/zh_CN.po
@@ -7,14 +7,14 @@ msgstr ""
"Project-Id-Version: OpenERP Server 6.0dev\n"
"Report-Msgid-Bugs-To: support@openerp.com\n"
"POT-Creation-Date: 2012-12-21 17:04+0000\n"
-"PO-Revision-Date: 2013-01-30 03:58+0000\n"
-"Last-Translator: Wei \"oldrev\" Li
\n" +" 点击以确立一个新合同\n" +"
\n" +" 你将发现合同已经更新,由于已过期或者工作流\n" +" 授权超过最大数\n" +"
\n"
+" OpenERP会自动更新挂起状态的合同,商谈结束,\n"
+" 销售员必须关闭或更新挂起的合同.\n"
+" "
#. module: account_analytic_analysis
#: view:account.analytic.account:0
@@ -153,7 +166,7 @@ msgstr "截止日期"
#. module: account_analytic_analysis
#: view:account.analytic.account:0
msgid "Account Manager"
-msgstr "会计经理"
+msgstr "分管会计"
#. module: account_analytic_analysis
#: help:account.analytic.account,remaining_hours_to_invoice:0
@@ -595,7 +608,7 @@ msgstr "总时间"
#: model:res.groups,comment:account_analytic_analysis.group_template_required
msgid ""
"the field template of the analytic accounts and contracts will be required."
-msgstr ""
+msgstr "这个分析账户和合同的字段模板是必填的"
#. module: account_analytic_analysis
#: field:account.analytic.account,invoice_on_timesheets:0
diff --git a/addons/account_bank_statement_extensions/i18n/da.po b/addons/account_bank_statement_extensions/i18n/da.po
index 40ad8a9cab9..0c6d05c076b 100644
--- a/addons/account_bank_statement_extensions/i18n/da.po
+++ b/addons/account_bank_statement_extensions/i18n/da.po
@@ -14,7 +14,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"X-Launchpad-Export-Date: 2013-10-15 04:41+0000\n"
+"X-Launchpad-Export-Date: 2013-10-16 04:37+0000\n"
"X-Generator: Launchpad (build 16799)\n"
#. module: account_bank_statement_extensions
diff --git a/addons/base_import/controllers.py b/addons/base_import/controllers.py
index b926c6b2782..cb41d27f44a 100644
--- a/addons/base_import/controllers.py
+++ b/addons/base_import/controllers.py
@@ -1,12 +1,10 @@
# -*- coding: utf-8 -*-
import simplejson
-import openerp
+from openerp.addons.web.http import Controller, route
-class ImportController(openerp.addons.web.http.Controller):
- _cp_path = '/base_import'
-
- @openerp.addons.web.http.httprequest
+class ImportController(Controller):
+ @route('/base_import/set_file')
def set_file(self, req, file, import_id, jsonp='callback'):
import_id = int(import_id)
diff --git a/addons/base_import/models.py b/addons/base_import/models.py
index 996dbf7964d..f49db56e755 100644
--- a/addons/base_import/models.py
+++ b/addons/base_import/models.py
@@ -224,12 +224,13 @@ class ir_import(orm.TransientModel):
headers, matches = self._match_headers(rows, fields, options)
# Match should have consumed the first row (iif headers), get
# the ``count`` next rows for preview
- preview = itertools.islice(rows, count)
+ preview = list(itertools.islice(rows, count))
+ assert preview, "CSV file seems to have no content"
return {
'fields': fields,
'matches': matches or False,
'headers': headers or False,
- 'preview': list(preview),
+ 'preview': preview,
}
except Exception, e:
# Due to lazy generators, UnicodeDecodeError (for
diff --git a/addons/contacts/i18n/lv.po b/addons/contacts/i18n/lv.po
new file mode 100644
index 00000000000..2e1850ece7a
--- /dev/null
+++ b/addons/contacts/i18n/lv.po
@@ -0,0 +1,37 @@
+# Latvian translation for openobject-addons
+# Copyright (c) 2013 Rosetta Contributors and Canonical Ltd 2013
+# This file is distributed under the same license as the openobject-addons package.
+# FIRST AUTHOR \n"
+" Click to add a contact in your address book.\n"
+" \n"
+" OpenERP helps you easily track all activities related to\n"
+" a customer; discussions, history of business opportunities,\n"
+" documents, etc.\n"
+"