diff --git a/addons/base_gengo/ir_translation.py b/addons/base_gengo/ir_translation.py index 90cd04b99ef..3ed77c6ef15 100644 --- a/addons/base_gengo/ir_translation.py +++ b/addons/base_gengo/ir_translation.py @@ -41,7 +41,19 @@ LANG_CODE_MAPPING = { 'fr_BE': ('fr', 'French'), 'ru_RU': ('ru', 'Russian'), 'it_IT': ('it', 'Italian'), - 'pt_BR': ('pt-br', 'Portuguese (Brazil)') + 'pt_BR': ('pt-br', 'Portuguese (Brazil)'), + 'th_TH': ('th', 'Thai'), + 'nb_NO': ('no', 'Norwegian'), + 'ro_RO': ('ro', 'Romanian'), + 'tr_TR': ('tr', 'Turkish'), + 'bg_BG': ('bg', 'Bulgarian'), + 'da_DK': ('da', 'Danish'), + 'en_GB': ('en-gb', 'English (British)'), + 'el_GR': ('el', 'Greek'), + 'vi_VN': ('vi', 'Vietnamese'), + 'he_IL': ('he', 'Hebrew'), + 'hu_HU': ('hu', 'Hungarian'), + 'fi_FI': ('fi', 'Finnish') } class ir_translation(osv.Model): diff --git a/addons/website/static/src/js/website.translator.js b/addons/website/static/src/js/website.translator.js index 5b2ad413395..e88b1e4a6b6 100644 --- a/addons/website/static/src/js/website.translator.js +++ b/addons/website/static/src/js/website.translator.js @@ -74,7 +74,7 @@ var source_attr = 'data-oe-source-id'; var $editables = $('[data-oe-model="ir.ui.view"]') .not('link, script') - .not('.oe_snippets,.oe_snippet, .oe_snippet *') + .not('.oe_snippets,.oe_snippet, .oe_snippet *, .navbar-toggle') .not('[data-oe-type]'); $editables.each(function () { diff --git a/addons/website_gengo/controllers/main.py b/addons/website_gengo/controllers/main.py index 587c28df3f4..232c4b15241 100644 --- a/addons/website_gengo/controllers/main.py +++ b/addons/website_gengo/controllers/main.py @@ -32,6 +32,6 @@ class website_gengo(http.Controller): return True @http.route('/website/post_gengo_jobs', type='json', auth='user', website=True) - def set_gengo_config(self): + def post_gengo_jobs(self): request.registry['base.gengo.translations']._sync_request(request.cr, request.uid, limit=GENGO_DEFAULT_LIMIT, context=request.context) return True diff --git a/addons/website_gengo/static/src/js/website_gengo.js b/addons/website_gengo/static/src/js/website_gengo.js index 546f9fe28f5..ea3e84d2c75 100644 --- a/addons/website_gengo/static/src/js/website_gengo.js +++ b/addons/website_gengo/static/src/js/website_gengo.js @@ -13,7 +13,7 @@ this.gengo_translate = true; this._super.apply(this, arguments); var self = this; - var gengo_langs = ["ar_SA","id_ID","nl_NL","fr_CA","pl_PL","zh_TW","sv_SE","ko_KR","pt_PT","en_US","ja_JP","es_ES","zh_CN","de_DE","fr_FR","fr_BE","ru_RU","it_IT","pt_BR"]; + var gengo_langs = ["ar_SA","id_ID","nl_NL","fr_CA","pl_PL","zh_TW","sv_SE","ko_KR","pt_PT","en_US","ja_JP","es_ES","zh_CN","de_DE","fr_FR","fr_BE","ru_RU","it_IT","pt_BR","pt_BR","th_TH","nb_NO","ro_RO","tr_TR","bg_BG","da_DK","en_GB","el_GR","vi_VN","he_IL","hu_HU","fi_FI"]; if (gengo_langs.indexOf(website.get_context()['lang']) != -1){ self.$('.gengo_post,.gengo_wait,.gengo_inprogress,.gengo_info').remove(); self.$('button[data-action=save]')