From b6c5c4b2f41c3278c06234a9593470f21e39fad3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 24 Mar 2011 16:09:32 +0100 Subject: [PATCH 1/2] Remove unused translation creation, it is already done in convert.py --- country.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/country.py b/country.py index 5d8725d1f3..cdcf77584b 100644 --- a/country.py +++ b/country.py @@ -36,17 +36,7 @@ class Country(ModelSQL, ModelView): if 'code' in vals and vals['code']: vals = vals.copy() vals['code'] = vals['code'].upper() - new_id = super(Country, self).create(vals) - if 'module' in Transaction().context: - cursor = Transaction().cursor - cursor.execute('INSERT INTO ir_translation ' \ - '(name, lang, type, src, res_id, value, module, fuzzy) ' \ - 'VALUES (%s, %s, %s, %s, %s, %s, %s, %s)', - ('country.country,name', 'en_US', 'model', - vals['name'], new_id, '', - Transaction().context.get('module'), - False)) - return new_id + return super(Country, self).create(vals) def write(self, ids, vals): if 'code' in vals and vals['code']: From 6a79fd36117d7e35d678be331257822c815227a8 Mon Sep 17 00:00:00 2001 From: Sergey Kuraev Date: Thu, 24 Mar 2011 20:12:38 +0200 Subject: [PATCH 2/2] Update Russian translation --- ru_RU.csv | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ru_RU.csv b/ru_RU.csv index aa160117ad..c4570a604c 100644 --- a/ru_RU.csv +++ b/ru_RU.csv @@ -12,8 +12,9 @@ field,"country.subdivision,parent",0,Parent,Основной,0 field,"country.subdivision,rec_name",0,Name,Наименование,0 field,"country.subdivision,type",0,Type,Тип,0 help,"country.country,code",0,"The ISO country code in two chars. -You can use this field for quick search.",,0 -help,"country.country,name",0,The full name of the country.,,0 +You can use this field for quick search.","ISO-код страны из двух симовлов. +Вы можете использовать это поле для быстрого поиска.",0 +help,"country.country,name",0,The full name of the country.,Полное название страны.,0 model,"country.country,name",0,Country,Страны мира,0 model,"country.country,name",ad,Andorra,Андорра,0 model,"country.country,name",ae,United Arab Emirates,Объединённые Арабские Эмираты,0