From f81034403597ce23342b928db1e92866f304f3d4 Mon Sep 17 00:00:00 2001 From: "Vidhin Mehta (OpenERP)" Date: Thu, 5 Jan 2012 14:27:29 +0530 Subject: [PATCH 01/40] [FIX]check value and selection field. lp bug: https://launchpad.net/bugs/910821 fixed bzr revid: vme@tinyerp.com-20120105085729-xcl43wdalml8v8f7 --- addons/web_graph/static/src/js/graph.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web_graph/static/src/js/graph.js b/addons/web_graph/static/src/js/graph.js index 30a10eee73a..ccf3b6c3890 100644 --- a/addons/web_graph/static/src/js/graph.js +++ b/addons/web_graph/static/src/js/graph.js @@ -389,6 +389,11 @@ openerp.web_graph.GraphView = openerp.web.View.extend({ // unconditionally nuke tooltips before switching view $(".dhx_tooltip").remove('div'); id = id[this.abscissa]; + if(this.fields[this.abscissa].type == "selection"){ + id = _.detect(this.fields[this.abscissa].selection,function(select_value){ + return _.include(select_value, id); + }); + } if (typeof id == 'object'){ id = id[0]; } From 8d71421347c311558e07df5052922a7a1cfaaf7c Mon Sep 17 00:00:00 2001 From: "Vidhin Mehta (OpenERP)" Date: Thu, 12 Jan 2012 16:52:04 +0530 Subject: [PATCH 02/40] [Fix]bug no.914515 lp bug: https://launchpad.net/bugs/914515 fixed bzr revid: vme@tinyerp.com-20120112112204-ybdy5awniy9l0wt0 --- addons/web/static/src/css/base.css | 24 +++++++++++++++++++++--- addons/web/static/src/xml/base.xml | 15 ++++++++++----- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 9e5bae864ab..464c0164f4a 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1850,15 +1850,29 @@ label.error { } .openerp .oe-treeview-table { width: 100%; + background-color : #FFFFFF; + border-spacing: 0; } +.openerp .oe-treeview-table tr:hover{ + color: blue; + background-color : #D8D8D8; + } .treeview-tr, .treeview-td { cursor: pointer; vertical-align: top; text-align: left; + border-bottom: 1px solid #CFCCCC; +} + +.oe-number{ + text-align: right !important; } .treeview-tr span, .treeview-td span { + font-size: 90%; + font-weight: normal; + white-space: nowrap; display: block; -} + } .treeview-tr:first-of-type { background: transparent url(/web/static/src/img/expand.gif) 0 50% no-repeat; } @@ -1871,9 +1885,13 @@ label.error { } .treeview-header { - text-align: left; vertical-align: top; -} + background-color : #D8D8D8; + white-space: nowrap; + text-align: left; + padding: 4px 5px; + + } /* Shortcuts*/ .oe-shortcut-toggle { height: 20px; diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 9580b1877a2..8aee84493f0 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -546,22 +546,27 @@ - - + + - + t-att-style="color_for(record) + style " + t-att-class="(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer') + ? (class +' ' +'oe-number') : class"> + + + + From b0c069d28fa0ca44edf108b1c8070e8a6554a78f Mon Sep 17 00:00:00 2001 From: "Vidhin Mehta (OpenERP)" Date: Thu, 12 Jan 2012 17:10:47 +0530 Subject: [PATCH 03/40] [IMP]remove extra lines bzr revid: vme@tinyerp.com-20120112114047-bdq8msissyridbe1 --- addons/web/static/src/css/base.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 464c0164f4a..6cb455b6e55 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1856,14 +1856,13 @@ label.error { .openerp .oe-treeview-table tr:hover{ color: blue; background-color : #D8D8D8; - } +} .treeview-tr, .treeview-td { cursor: pointer; vertical-align: top; text-align: left; border-bottom: 1px solid #CFCCCC; } - .oe-number{ text-align: right !important; } @@ -1890,8 +1889,7 @@ label.error { white-space: nowrap; text-align: left; padding: 4px 5px; - - } +} /* Shortcuts*/ .oe-shortcut-toggle { height: 20px; From 0618ebfe2786c6cf0d79e15e8d1cfacb291e89a9 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Mon, 16 Jan 2012 12:14:31 +0100 Subject: [PATCH 04/40] [IMP] FormView: Only show invalid field on_ui_change and do_save bzr revid: fme@openerp.com-20120116111431-8zm8883ull42ljgx --- addons/web/static/src/js/view_form.js | 13 +++++-------- addons/web_calendar/static/src/js/calendar.js | 2 -- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index ebe1ca26785..2c3808ffc15 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -40,7 +40,6 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView# this.fields = {}; this.fields_order = []; this.datarecord = {}; - this.show_invalid = true; this.default_focus_field = null; this.default_focus_button = null; this.registry = openerp.web.form.widgets; @@ -179,7 +178,6 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView# }); return $.when.apply(null, set_values).pipe(function() { if (!record.id) { - self.show_invalid = false; // New record: Second pass in order to trigger the onchanges // respecting the fields order defined in the view _.each(self.fields_order, function(field_name) { @@ -192,7 +190,6 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView# } self.on_form_changed(); self.is_initialized.resolve(); - self.show_invalid = true; self.do_update_pager(record.id == null); if (self.sidebar) { self.sidebar.attachments.do_update(); @@ -429,7 +426,7 @@ openerp.web.FormView = openerp.web.View.extend( /** @lends openerp.web.FormView# f = self.fields[f]; if (!f.is_valid()) { form_invalid = true; - f.update_dom(); + f.update_dom(true); if (!first_invalid_field) { first_invalid_field = f; } @@ -1116,7 +1113,7 @@ openerp.web.form.WidgetButton = openerp.web.form.Widget.extend({ }); }, update_dom: function() { - this._super(); + this._super.apply(this, arguments); this.check_disable(); }, check_disable: function() { @@ -1238,7 +1235,7 @@ openerp.web.form.Field = openerp.web.form.Widget.extend(/** @lends openerp.web.f get_on_change_value: function() { return this.get_value(); }, - update_dom: function() { + update_dom: function(show_invalid) { this._super.apply(this, arguments); if (this.field.translate) { this.$element.find('.oe_field_translate').toggle(!!this.view.datarecord.id); @@ -1246,7 +1243,7 @@ openerp.web.form.Field = openerp.web.form.Widget.extend(/** @lends openerp.web.f if (!this.disable_utility_classes) { this.$element.toggleClass('disabled', this.readonly); this.$element.toggleClass('required', this.required); - if (this.view.show_invalid) { + if (show_invalid) { this.$element.toggleClass('invalid', !this.is_valid()); } } @@ -1259,7 +1256,7 @@ openerp.web.form.Field = openerp.web.form.Widget.extend(/** @lends openerp.web.f this.view.do_onchange(this); this.view.on_form_changed(); } else { - this.update_dom(); + this.update_dom(true); } }, validate: function() { diff --git a/addons/web_calendar/static/src/js/calendar.js b/addons/web_calendar/static/src/js/calendar.js index 8e03208e276..9cc576d132d 100644 --- a/addons/web_calendar/static/src/js/calendar.js +++ b/addons/web_calendar/static/src/js/calendar.js @@ -300,7 +300,6 @@ openerp.web_calendar.CalendarView = openerp.web.View.extend({ this.dataset.index = null; self.creating_event_id = event_id; this.form_dialog.form.do_show().then(function() { - form.show_invalid = false; _.each(['date_start', 'date_delay', 'date_stop'], function(field) { var field_name = self[field]; if (field_name && form.fields[field_name]) { @@ -313,7 +312,6 @@ openerp.web_calendar.CalendarView = openerp.web.View.extend({ }); } }); - form.show_invalid = true; self.form_dialog.open(); }); }, From 2606558efada1cd5f7ba6cb97e5c0895263b55b2 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Mon, 16 Jan 2012 14:25:54 +0100 Subject: [PATCH 05/40] [FIX] some accounting report do not work lp bug: https://launchpad.net/bugs/914183 fixed bzr revid: fme@openerp.com-20120116132554-1reoy6gg4lpynsij --- addons/web/static/src/js/view_form.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 2c3808ffc15..0e25027967f 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -713,9 +713,11 @@ openerp.web.form.compute_domain = function(expr, fields) { stack.push(field_value >= val); break; case 'in': + if (!_.isArray(val)) val = [val]; stack.push(_(val).contains(field_value)); break; case 'not in': + if (!_.isArray(val)) val = [val]; stack.push(!_(val).contains(field_value)); break; default: From b1985884fb32b1ca888df57cd62f985a07b274c1 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 16 Jan 2012 15:01:58 +0100 Subject: [PATCH 06/40] [FIX] link between binary field and file name is @filename, not @fieldname lp bug: https://launchpad.net/bugs/915537 fixed bzr revid: xmo@openerp.com-20120116140158-8tah34gwy01967u8 --- openerp/addons/base/module/wizard/base_export_language_view.xml | 2 +- openerp/addons/base/rng/view.rng | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/openerp/addons/base/module/wizard/base_export_language_view.xml b/openerp/addons/base/module/wizard/base_export_language_view.xml index c908c5ce03a..16477bbd5e5 100644 --- a/openerp/addons/base/module/wizard/base_export_language_view.xml +++ b/openerp/addons/base/module/wizard/base_export_language_view.xml @@ -31,7 +31,7 @@ - + diff --git a/openerp/addons/base/rng/view.rng b/openerp/addons/base/rng/view.rng index 4769f961288..8d02ce3f919 100644 --- a/openerp/addons/base/rng/view.rng +++ b/openerp/addons/base/rng/view.rng @@ -528,7 +528,6 @@ - From 3a3880277790342baea2c28c5f5b1c4e930a2b6a Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 16 Jan 2012 16:57:49 +0100 Subject: [PATCH 07/40] [IMP] web_livechat: use other skill bzr revid: chs@openerp.com-20120116155749-hijukv0nk677mjmx --- addons/web_livechat/static/src/js/web_livechat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_livechat/static/src/js/web_livechat.js b/addons/web_livechat/static/src/js/web_livechat.js index 088d0107ca3..ecfcb887ab3 100644 --- a/addons/web_livechat/static/src/js/web_livechat.js +++ b/addons/web_livechat/static/src/js/web_livechat.js @@ -71,7 +71,7 @@ openerp.web_livechat.Livechat = openerp.web.Widget.extend({ __lc_buttons.push({ elementId: lc_id, //'livechat_status', language: 'en', - skill: '0', + skill: '2', type: 'text', labels: { online: 'Support', From 528c4151ac9a447ae13c63c84ea85b7fed609f95 Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Tue, 17 Jan 2012 02:48:43 +0100 Subject: [PATCH 08/40] [REM] bullshit from about bzr revid: al@openerp.com-20120117014843-xlcw4hfvw949q588 --- addons/web/static/src/xml/base.xml | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 0179a7a7bfd..f460d6ba435 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1722,32 +1722,18 @@
- Debug mode -

OpenERP Web

-

Version

+ Activate the developper mode +

OpenERP

+

Version

- Copyright © 2011-TODAY OpenERP SA. All Rights Reserved.
+ Copyright © 2004-TODAY OpenERP SA. All Rights Reserved.
OpenERP is a trademark of the OpenERP SA Company.

Licenced under the terms of GNU Affero General Public License

-
-

About OpenERP

- OpenERP is a free enterprise-scale software system that is designed to boost - productivity and profit through data integration. It connects, improves and - manages business processes in areas such as sales, finance, supply chain, - project management, production, services, CRM, etc... -

-

- The system is platform-independent, and can be installed on Windows, Mac OS X, - and various Linux and other Unix-based distributions. Its architecture enables - new functionality to be rapidly created, modifications to be made to a - production system and migration to a new version to be straightforward. -

-

- Depending on your needs, OpenERP is available through a web or application client. + For more information visit OpenERP.com

From 1a79ad87d96079ee7987d839624a1830d7fe62cd Mon Sep 17 00:00:00 2001 From: Launchpad Translations on behalf of openerp <> Date: Tue, 17 Jan 2012 04:45:39 +0000 Subject: [PATCH 09/40] Launchpad automatic translations update. bzr revid: launchpad_translations_on_behalf_of_openerp-20120117044539-43j2u5ld0fjdd7hd --- addons/account/i18n/pt_BR.po | 12 +- addons/account_asset/i18n/pt_BR.po | 36 +- addons/account_cancel/i18n/pt_BR.po | 10 +- addons/crm_helpdesk/i18n/ar.po | 10 +- addons/l10n_be/i18n/ar.po | 68 +- addons/l10n_br/i18n/ar.po | 22 +- addons/l10n_br/i18n/pt_BR.po | 17 +- addons/l10n_ec/i18n/fr.po | 85 ++ addons/plugin_thunderbird/i18n/ar.po | 151 +++ addons/project_gtd/i18n/pt_BR.po | 22 +- addons/stock_planning/i18n/ar.po | 1175 ++++++++++++++++++ addons/survey/i18n/ar.po | 1717 ++++++++++++++++++++++++++ 12 files changed, 3237 insertions(+), 88 deletions(-) create mode 100644 addons/l10n_ec/i18n/fr.po create mode 100644 addons/plugin_thunderbird/i18n/ar.po create mode 100644 addons/stock_planning/i18n/ar.po create mode 100644 addons/survey/i18n/ar.po diff --git a/addons/account/i18n/pt_BR.po b/addons/account/i18n/pt_BR.po index b5960e8e22f..04f18004b5b 100644 --- a/addons/account/i18n/pt_BR.po +++ b/addons/account/i18n/pt_BR.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: 2011-12-23 09:55+0000\n" -"PO-Revision-Date: 2011-11-07 12:51+0000\n" -"Last-Translator: OpenERP Administrators \n" +"PO-Revision-Date: 2012-01-16 13:55+0000\n" +"Last-Translator: Rafael Sales \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-12-24 05:51+0000\n" -"X-Generator: Launchpad (build 14560)\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" #. module: account #: view:account.invoice.report:0 @@ -198,7 +198,7 @@ msgid "" "journal of the same type." msgstr "" "Dá o tipo de diário analítico. Quando precisar de criar lançamentos " -"analíticos, para um documento (ex.fatura) oOpenERP vai procurar um diário " +"analíticos, para um documento (ex: fatura) o OpenERP vai procurar um diário " "deste tipo." #. module: account @@ -241,7 +241,7 @@ msgstr "Os lançamentos contábeis são uma entrada da reconciliação." #. module: account #: model:ir.ui.menu,name:account.menu_finance_management_belgian_reports msgid "Belgian Reports" -msgstr "Relatórios belgas" +msgstr "Relatórios Belgas" #. module: account #: code:addons/account/account_move_line.py:1199 diff --git a/addons/account_asset/i18n/pt_BR.po b/addons/account_asset/i18n/pt_BR.po index 1fddd6dcd03..9ad6994c366 100644 --- a/addons/account_asset/i18n/pt_BR.po +++ b/addons/account_asset/i18n/pt_BR.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-12-22 18:43+0000\n" -"PO-Revision-Date: 2011-09-30 14:07+0000\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2012-01-16 13:58+0000\n" +"Last-Translator: Francis David \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-12-23 07:36+0000\n" -"X-Generator: Launchpad (build 14560)\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" #. module: account_asset #: view:account.asset.asset:0 @@ -64,7 +64,7 @@ msgstr "" #: field:asset.asset.report,asset_id:0 #: model:ir.model,name:account_asset.model_account_asset_asset msgid "Asset" -msgstr "" +msgstr "Ativo" #. module: account_asset #: help:account.asset.asset,prorata:0 @@ -141,7 +141,7 @@ msgstr "" #: field:account.move.line,entry_ids:0 #: model:ir.actions.act_window,name:account_asset.act_entries_open msgid "Entries" -msgstr "" +msgstr "Entradas" #. module: account_asset #: view:account.asset.asset:0 @@ -179,7 +179,7 @@ msgstr "" #: model:ir.ui.menu,name:account_asset.menu_finance_assets #: model:ir.ui.menu,name:account_asset.menu_finance_config_assets msgid "Assets" -msgstr "" +msgstr "Ativos" #. module: account_asset #: field:account.asset.category,account_depreciation_id:0 @@ -198,7 +198,7 @@ msgstr "" #: view:asset.modify:0 #: field:asset.modify,note:0 msgid "Notes" -msgstr "" +msgstr "Notas" #. module: account_asset #: field:account.asset.depreciation.line,move_id:0 @@ -268,7 +268,7 @@ msgstr "" #: view:asset.asset.report:0 #: selection:asset.asset.report,state:0 msgid "Draft" -msgstr "" +msgstr "Rascunho" #. module: account_asset #: view:asset.asset.report:0 @@ -288,7 +288,7 @@ msgstr "" #. module: account_asset #: field:account.asset.category,account_analytic_id:0 msgid "Analytic account" -msgstr "" +msgstr "Conta analítica" #. module: account_asset #: field:account.asset.asset,method:0 @@ -370,12 +370,12 @@ msgstr "" #. module: account_asset #: model:ir.actions.wizard,name:account_asset.wizard_asset_compute msgid "Compute assets" -msgstr "" +msgstr "Calcular ativos" #. module: account_asset #: model:ir.actions.wizard,name:account_asset.wizard_asset_modify msgid "Modify asset" -msgstr "" +msgstr "Modificar ativo" #. module: account_asset #: view:account.asset.asset:0 @@ -391,7 +391,7 @@ msgstr "" #: view:account.asset.history:0 #: model:ir.model,name:account_asset.model_account_asset_history msgid "Asset history" -msgstr "" +msgstr "Histórico do ativo" #. module: account_asset #: view:asset.asset.report:0 @@ -402,7 +402,7 @@ msgstr "" #: field:account.asset.asset,state:0 #: field:asset.asset.report,state:0 msgid "State" -msgstr "" +msgstr "Estado" #. module: account_asset #: model:ir.model,name:account_asset.model_account_invoice_line @@ -458,7 +458,7 @@ msgstr "" #: field:account.asset.category,note:0 #: field:account.asset.history,note:0 msgid "Note" -msgstr "" +msgstr "Nota" #. module: account_asset #: help:account.asset.asset,method:0 @@ -495,7 +495,7 @@ msgstr "" #: field:account.asset.asset,partner_id:0 #: field:asset.asset.report,partner_id:0 msgid "Partner" -msgstr "" +msgstr "Parceiro" #. module: account_asset #: view:asset.asset.report:0 @@ -739,7 +739,7 @@ msgstr "" #: selection:account.asset.asset,method:0 #: selection:account.asset.category,method:0 msgid "Linear" -msgstr "" +msgstr "Linear" #. module: account_asset #: view:asset.asset.report:0 @@ -813,7 +813,7 @@ msgstr "" #: model:ir.actions.act_window,name:account_asset.action_account_asset_asset_tree #: model:ir.ui.menu,name:account_asset.menu_action_account_asset_asset_tree msgid "Asset Hierarchy" -msgstr "" +msgstr "Hierarquia do ativo" #. module: account_asset #: constraint:account.move.line:0 diff --git a/addons/account_cancel/i18n/pt_BR.po b/addons/account_cancel/i18n/pt_BR.po index f427d8746b2..789c3dae132 100644 --- a/addons/account_cancel/i18n/pt_BR.po +++ b/addons/account_cancel/i18n/pt_BR.po @@ -8,19 +8,19 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-12-22 18:44+0000\n" -"PO-Revision-Date: 2011-01-13 03:21+0000\n" -"Last-Translator: Vinicius Dittgen - Proge.com.br \n" +"PO-Revision-Date: 2012-01-16 13:22+0000\n" +"Last-Translator: Rafael Sales \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-12-23 07:19+0000\n" -"X-Generator: Launchpad (build 14560)\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" #. module: account_cancel #: view:account.invoice:0 msgid "Cancel" -msgstr "" +msgstr "Cancelar" #~ msgid "Account Cancel" #~ msgstr "Cancelar Conta" diff --git a/addons/crm_helpdesk/i18n/ar.po b/addons/crm_helpdesk/i18n/ar.po index 714d34237cd..542ba001723 100644 --- a/addons/crm_helpdesk/i18n/ar.po +++ b/addons/crm_helpdesk/i18n/ar.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-12-22 18:44+0000\n" -"PO-Revision-Date: 2012-01-08 00:01+0000\n" -"Last-Translator: FULL NAME \n" +"PO-Revision-Date: 2012-01-17 03:11+0000\n" +"Last-Translator: kifcaliph \n" "Language-Team: Arabic \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-01-09 04:50+0000\n" -"X-Generator: Launchpad (build 14640)\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" #. module: crm_helpdesk #: field:crm.helpdesk.report,delay_close:0 @@ -588,7 +588,7 @@ msgstr "" #: view:crm.helpdesk:0 #: field:crm.helpdesk,user_id:0 msgid "Responsible" -msgstr "مسئول" +msgstr "مسؤول" #. module: crm_helpdesk #: field:crm.helpdesk.report,delay_expected:0 diff --git a/addons/l10n_be/i18n/ar.po b/addons/l10n_be/i18n/ar.po index 97cf75e4885..cfaea6a91a0 100644 --- a/addons/l10n_be/i18n/ar.po +++ b/addons/l10n_be/i18n/ar.po @@ -7,14 +7,14 @@ msgstr "" "Project-Id-Version: OpenERP Server 5.0.4\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2011-12-23 09:56+0000\n" -"PO-Revision-Date: 2009-02-03 06:25+0000\n" -"Last-Translator: <>\n" +"PO-Revision-Date: 2012-01-16 16:52+0000\n" +"Last-Translator: kifcaliph \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-12-24 05:53+0000\n" -"X-Generator: Launchpad (build 14560)\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" #. module: l10n_be #: field:partner.vat.intra,test_xml:0 @@ -54,7 +54,7 @@ msgstr "" #. module: l10n_be #: constraint:res.company:0 msgid "Error! You can not create recursive companies." -msgstr "" +msgstr "خطأ! لا يمكنك إنشاء شركات متداخلة (شركات تستخدم نفسها)." #. module: l10n_be #: model:account.account.type,name:l10n_be.user_type_tiers @@ -64,7 +64,7 @@ msgstr "" #. module: l10n_be #: field:l1on_be.vat.declaration,period_id:0 msgid "Period" -msgstr "" +msgstr "فترة" #. module: l10n_be #: field:partner.vat.intra,period_ids:0 @@ -105,7 +105,7 @@ msgstr "" #. module: l10n_be #: view:partner.vat.list_13:0 msgid "Print" -msgstr "" +msgstr "طباعة" #. module: l10n_be #: view:partner.vat.intra:0 @@ -116,7 +116,7 @@ msgstr "" #: code:addons/l10n_be/wizard/l10n_be_vat_intra.py:219 #, python-format msgid "Save" -msgstr "" +msgstr "حفظ" #. module: l10n_be #: sql_constraint:res.company:0 @@ -133,7 +133,7 @@ msgstr "" #. module: l10n_be #: view:partner.vat.intra:0 msgid "_Close" -msgstr "" +msgstr "إ_غلاق" #. module: l10n_be #: code:addons/l10n_be/wizard/l10n_be_account_vat_declaration.py:131 @@ -144,7 +144,7 @@ msgstr "" #. module: l10n_be #: view:partner.vat.list_13:0 msgid "Customers" -msgstr "" +msgstr "العملاء" #. module: l10n_be #: model:account.account.type,name:l10n_be.user_type_tax_in @@ -176,7 +176,7 @@ msgstr "" #: view:l1on_be.vat.declaration:0 #: view:partner.vat.intra:0 msgid "Company" -msgstr "" +msgstr "شركة" #. module: l10n_be #: model:ir.model,name:l10n_be.model_partner_vat_13 @@ -225,12 +225,12 @@ msgstr "" #. module: l10n_be #: view:partner.vat.intra:0 msgid "Note: " -msgstr "" +msgstr "ملاحظة: " #. module: l10n_be #: view:partner.vat.intra:0 msgid "_Preview" -msgstr "" +msgstr "م_عاينة" #. module: l10n_be #: model:account.account.type,name:l10n_be.user_type_tiers_payable @@ -241,12 +241,12 @@ msgstr "" #: field:l1on_be.vat.declaration,tax_code_id:0 #: field:partner.vat.intra,tax_code_id:0 msgid "Tax Code" -msgstr "" +msgstr "رمز الضرائب" #. module: l10n_be #: view:partner.vat.intra:0 msgid "Periods" -msgstr "" +msgstr "فترات" #. module: l10n_be #: model:account.account.type,name:l10n_be.user_type_produit @@ -266,7 +266,7 @@ msgstr "" #. module: l10n_be #: view:l1on_be.vat.declaration:0 msgid "Ok" -msgstr "" +msgstr "تم" #. module: l10n_be #: field:l1on_be.vat.declaration,ask_payment:0 @@ -287,7 +287,7 @@ msgstr "" #. module: l10n_be #: model:ir.model,name:l10n_be.model_res_company msgid "Companies" -msgstr "" +msgstr "الشركات" #. module: l10n_be #: view:partner.vat.intra:0 @@ -376,7 +376,7 @@ msgstr "" #: field:partner.vat.intra,file_save:0 #: field:partner.vat.list_13,file_save:0 msgid "Save File" -msgstr "" +msgstr "حفظ الملف" #. module: l10n_be #: help:partner.vat.intra,period_code:0 @@ -397,7 +397,7 @@ msgstr "" #: field:partner.vat.intra,name:0 #: field:partner.vat.list_13,name:0 msgid "File Name" -msgstr "" +msgstr "اسم الملف" #. module: l10n_be #: model:account.account.type,name:l10n_be.user_type_tax_out @@ -407,7 +407,7 @@ msgstr "" #. module: l10n_be #: model:account.account.type,name:l10n_be.user_type_tax msgid "Tax" -msgstr "" +msgstr "ضريبة" #. module: l10n_be #: code:addons/l10n_be/wizard/l10n_be_account_vat_declaration.py:75 @@ -426,7 +426,7 @@ msgstr "" #: view:partner.vat.intra:0 #: field:partner.vat.intra,country_ids:0 msgid "European Countries" -msgstr "" +msgstr "الدول الأوروبية" #. module: l10n_be #: model:ir.actions.act_window,name:l10n_be.action_partner_vat_listing_13 @@ -437,7 +437,7 @@ msgstr "" #. module: l10n_be #: view:partner.vat.intra:0 msgid "General Information" -msgstr "" +msgstr "معلومات عامة" #. module: l10n_be #: view:partner.vat.intra:0 @@ -457,19 +457,19 @@ msgstr "" #. module: l10n_be #: field:partner.vat_13,year:0 msgid "Year" -msgstr "" +msgstr "سنة" #. module: l10n_be #: view:partner.vat_13:0 msgid "Cancel" -msgstr "" +msgstr "إلغاء" #. module: l10n_be #: view:l1on_be.vat.declaration:0 #: view:partner.vat.intra:0 #: view:partner.vat.list_13:0 msgid "Close" -msgstr "" +msgstr "إغلاق" #. module: l10n_be #: code:addons/l10n_be/wizard/l10n_be_vat_intra.py:105 @@ -492,3 +492,21 @@ msgstr "" #, python-format msgid "No data for the selected Year." msgstr "" + +#~ msgid "Client Name" +#~ msgstr "اسم العميل" + +#~ msgid "partner.vat.list" +#~ msgstr "partner.vat.list" + +#~ msgid "Country" +#~ msgstr "الدولة" + +#~ msgid "VAT" +#~ msgstr "ضريبة القيمة المضافة" + +#~ msgid "Amount" +#~ msgstr "المقدار" + +#~ msgid "Fiscal Year" +#~ msgstr "سنة مالية" diff --git a/addons/l10n_br/i18n/ar.po b/addons/l10n_br/i18n/ar.po index 2eec85dfeaf..0bfc9712f6c 100644 --- a/addons/l10n_br/i18n/ar.po +++ b/addons/l10n_br/i18n/ar.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-12-23 09:56+0000\n" -"PO-Revision-Date: 2011-09-22 02:56+0000\n" -"Last-Translator: kifcaliph \n" +"PO-Revision-Date: 2012-01-16 16:51+0000\n" +"Last-Translator: kifcaliph \n" "Language-Team: Arabic \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-12-24 05:55+0000\n" -"X-Generator: Launchpad (build 14560)\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" #. module: l10n_br #: field:account.tax,tax_discount:0 @@ -37,7 +37,7 @@ msgstr "" #: model:ir.model,name:l10n_br.model_account_tax_code #: field:l10n_br_account.cst,tax_code_id:0 msgid "Tax Code" -msgstr "" +msgstr "رمز الضرائب" #. module: l10n_br #: help:account.tax.code,domain:0 @@ -66,7 +66,7 @@ msgstr "" #: field:l10n_br_account.cst,name:0 #: field:l10n_br_account.cst.template,name:0 msgid "Description" -msgstr "" +msgstr "وصف" #. module: l10n_br #: model:account.account.type,name:l10n_br.despesa @@ -104,7 +104,7 @@ msgstr "" #. module: l10n_br #: model:ir.model,name:l10n_br.model_account_tax msgid "account.tax" -msgstr "" +msgstr "account.tax" #. module: l10n_br #: model:account.account.type,name:l10n_br.receita @@ -153,18 +153,18 @@ msgstr "" #: field:account.tax.code,domain:0 #: field:account.tax.code.template,domain:0 msgid "Domain" -msgstr "" +msgstr "نطاق" #. module: l10n_br #: field:l10n_br_account.cst,code:0 #: field:l10n_br_account.cst.template,code:0 msgid "Code" -msgstr "" +msgstr "رمز" #. module: l10n_br #: constraint:account.tax.code:0 msgid "Error ! You can not create recursive accounts." -msgstr "" +msgstr "خطأ ! لا يمكن إنشاء حسابات تكرارية." #. module: l10n_br #: help:account.tax,amount_mva:0 @@ -176,7 +176,7 @@ msgstr "" #: model:ir.model,name:l10n_br.model_account_tax_code_template #: field:l10n_br_account.cst.template,tax_code_template_id:0 msgid "Tax Code Template" -msgstr "" +msgstr "قالب رمز الضريبة" #~ msgid "Brazilian Localization" #~ msgstr "النظام للبرازيل" diff --git a/addons/l10n_br/i18n/pt_BR.po b/addons/l10n_br/i18n/pt_BR.po index 418f3b72fa3..a7b68b3eb9f 100644 --- a/addons/l10n_br/i18n/pt_BR.po +++ b/addons/l10n_br/i18n/pt_BR.po @@ -8,14 +8,14 @@ msgstr "" "Project-Id-Version: openobject-addons\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-12-23 09:56+0000\n" -"PO-Revision-Date: 2011-03-07 18:00+0000\n" -"Last-Translator: Alexsandro Haag \n" +"PO-Revision-Date: 2012-01-16 13:24+0000\n" +"Last-Translator: Rafael Sales \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-12-24 05:55+0000\n" -"X-Generator: Launchpad (build 14560)\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" #. module: l10n_br #: field:account.tax,tax_discount:0 @@ -37,7 +37,7 @@ msgstr "" #: model:ir.model,name:l10n_br.model_account_tax_code #: field:l10n_br_account.cst,tax_code_id:0 msgid "Tax Code" -msgstr "" +msgstr "Código da taxa" #. module: l10n_br #: help:account.tax.code,domain:0 @@ -46,6 +46,9 @@ msgid "" "This field is only used if you develop your own module allowing developers " "to create specific taxes in a custom domain." msgstr "" +"Este campo é usado apenas se você desenvolver o seu próprio módulo " +"permitindo aos desenvolvedores criar impostos específicos num domínio " +"personalizado." #. module: l10n_br #: model:account.account.type,name:l10n_br.resultado @@ -66,7 +69,7 @@ msgstr "" #: field:l10n_br_account.cst,name:0 #: field:l10n_br_account.cst.template,name:0 msgid "Description" -msgstr "" +msgstr "Descrição" #. module: l10n_br #: model:account.account.type,name:l10n_br.despesa @@ -77,7 +80,7 @@ msgstr "" #: field:account.tax,amount_mva:0 #: field:account.tax.template,amount_mva:0 msgid "MVA Percent" -msgstr "" +msgstr "Porcentagem MVA" #. module: l10n_br #: help:account.tax.template,amount_mva:0 diff --git a/addons/l10n_ec/i18n/fr.po b/addons/l10n_ec/i18n/fr.po new file mode 100644 index 00000000000..6f989ee864e --- /dev/null +++ b/addons/l10n_ec/i18n/fr.po @@ -0,0 +1,85 @@ +# French translation for openobject-addons +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-12-23 09:56+0000\n" +"PO-Revision-Date: 2012-01-16 14:30+0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_expense +msgid "Gasto" +msgstr "" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_stock +msgid "Inventario" +msgstr "" + +#. module: l10n_ec +#: model:ir.actions.todo,note:l10n_ec.config_call_account_template_ec +msgid "" +"Generate Chart of Accounts from a Chart Template. You will be asked to pass " +"the name of the company, the chart template to follow, the no. of digits to " +"generate the code for your accounts and Bank account, currency to create " +"Journals. Thus,the pure copy of chart Template is generated.\n" +"\tThis is the same wizard that runs from Financial " +"Management/Configuration/Financial Accounting/Financial Accounts/Generate " +"Chart of Accounts from a Chart Template." +msgstr "" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_receivable +msgid "Por Cobrar" +msgstr "" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_asset +msgid "Activo" +msgstr "" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_tax +msgid "Impuesto" +msgstr "" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_liability +msgid "Pasivo" +msgstr "" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_capital +msgid "Capital" +msgstr "" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_cash +msgid "Efectivo" +msgstr "" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_payable +msgid "Por Pagar" +msgstr "" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_income +msgid "Ingreso" +msgstr "" + +#. module: l10n_ec +#: model:account.account.type,name:l10n_ec.account_type_view +msgid "View" +msgstr "" diff --git a/addons/plugin_thunderbird/i18n/ar.po b/addons/plugin_thunderbird/i18n/ar.po new file mode 100644 index 00000000000..973f8d93648 --- /dev/null +++ b/addons/plugin_thunderbird/i18n/ar.po @@ -0,0 +1,151 @@ +# Arabic translation for openobject-addons +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-01-11 11:16+0000\n" +"PO-Revision-Date: 2012-01-17 03:07+0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: Arabic \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" + +#. module: thunderbird +#: field:thunderbird.installer,plugin_file:0 +#: field:thunderbird.installer,thunderbird:0 +msgid "Thunderbird Plug-in" +msgstr "" + +#. module: thunderbird +#: help:thunderbird.installer,plugin_file:0 +msgid "" +"Thunderbird plug-in file. Save as this file and install this plug-in in " +"thunderbird." +msgstr "" + +#. module: thunderbird +#: help:thunderbird.installer,thunderbird:0 +msgid "" +"Allows you to select an object that you would like to add to your email and " +"its attachments." +msgstr "" + +#. module: thunderbird +#: help:thunderbird.installer,pdf_file:0 +msgid "The documentation file :- how to install Thunderbird Plug-in." +msgstr "" + +#. module: thunderbird +#: model:ir.model,name:thunderbird.model_email_server_tools +msgid "Email Server Tools" +msgstr "" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "_Close" +msgstr "إ_غلاق" + +#. module: thunderbird +#: field:thunderbird.installer,pdf_file:0 +msgid "Installation Manual" +msgstr "" + +#. module: thunderbird +#: field:thunderbird.installer,description:0 +msgid "Description" +msgstr "وصف" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "title" +msgstr "الاسم" + +#. module: thunderbird +#: model:ir.ui.menu,name:thunderbird.menu_base_config_plugins_thunderbird +#: view:thunderbird.installer:0 +msgid "Thunderbird Plug-In" +msgstr "" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "" +"This plug-in allows you to link your e-mail to OpenERP's documents. You can " +"attach it to any existing one in OpenERP or create a new one." +msgstr "" + +#. module: thunderbird +#: model:ir.module.module,shortdesc:thunderbird.module_meta_information +msgid "Thunderbird Interface" +msgstr "" + +#. module: thunderbird +#: model:ir.model,name:thunderbird.model_thunderbird_installer +msgid "thunderbird.installer" +msgstr "" + +#. module: thunderbird +#: field:thunderbird.installer,name:0 +#: field:thunderbird.installer,pdf_name:0 +msgid "File name" +msgstr "اسم الملف" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "Installation and Configuration Steps" +msgstr "خطوات التثبيت و التهيئة" + +#. module: thunderbird +#: field:thunderbird.installer,progress:0 +msgid "Configuration Progress" +msgstr "سير الإعدادات" + +#. module: thunderbird +#: model:ir.actions.act_window,name:thunderbird.action_thunderbird_installer +#: model:ir.actions.act_window,name:thunderbird.action_thunderbird_wizard +#: view:thunderbird.installer:0 +msgid "Thunderbird Plug-In Configuration" +msgstr "" + +#. module: thunderbird +#: model:ir.model,name:thunderbird.model_thunderbird_partner +msgid "Thunderbid Plugin Tools" +msgstr "" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "Configure" +msgstr "تهيئة" + +#. module: thunderbird +#: view:thunderbird.installer:0 +msgid "Skip" +msgstr "تخطي" + +#. module: thunderbird +#: field:thunderbird.installer,config_logo:0 +msgid "Image" +msgstr "صورة" + +#. module: thunderbird +#: model:ir.module.module,description:thunderbird.module_meta_information +msgid "" +"\n" +" This module is required for the thuderbird plug-in to work\n" +" properly.\n" +" The Plugin allows you archive email and its attachments to the " +"selected \n" +" OpenERP objects. You can select a partner, a task, a project, an " +"analytical\n" +" account,or any other object and attach selected mail as eml file in \n" +" attachment of selected record. You can create Documents for crm Lead,\n" +" HR Applicant and project issue from selected mails.\n" +"\n" +" " +msgstr "" diff --git a/addons/project_gtd/i18n/pt_BR.po b/addons/project_gtd/i18n/pt_BR.po index cb6407b9db1..89f67bebe08 100644 --- a/addons/project_gtd/i18n/pt_BR.po +++ b/addons/project_gtd/i18n/pt_BR.po @@ -7,19 +7,19 @@ msgstr "" "Project-Id-Version: OpenERP Server 6.0dev\n" "Report-Msgid-Bugs-To: support@openerp.com\n" "POT-Creation-Date: 2011-12-22 18:43+0000\n" -"PO-Revision-Date: 2010-11-25 19:22+0000\n" -"Last-Translator: OpenERP Administrators \n" +"PO-Revision-Date: 2012-01-16 14:06+0000\n" +"Last-Translator: Rafael Sales \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2011-12-23 07:00+0000\n" -"X-Generator: Launchpad (build 14560)\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" #. module: project_gtd #: view:project.task:0 msgid "In Progress" -msgstr "" +msgstr "Em Progresso" #. module: project_gtd #: view:project.task:0 @@ -29,7 +29,7 @@ msgstr "" #. module: project_gtd #: view:project.task:0 msgid "Reactivate" -msgstr "" +msgstr "Reativar" #. module: project_gtd #: help:project.task,timebox_id:0 @@ -88,7 +88,7 @@ msgstr "" #. module: project_gtd #: view:project.task:0 msgid "Pending" -msgstr "" +msgstr "Pendente" #. module: project_gtd #: view:project.gtd.timebox:0 @@ -114,7 +114,7 @@ msgstr "Erro!" #: model:ir.ui.menu,name:project_gtd.menu_open_gtd_timebox_tree #: view:project.task:0 msgid "My Tasks" -msgstr "" +msgstr "Minhas Tarefas" #. module: project_gtd #: constraint:project.task:0 @@ -145,7 +145,7 @@ msgstr "" #. module: project_gtd #: constraint:project.task:0 msgid "Error ! Task end-date must be greater then task start-date" -msgstr "" +msgstr "Erro ! A data final deve ser maior do que a data inicial" #. module: project_gtd #: field:project.gtd.timebox,icon:0 @@ -160,7 +160,7 @@ msgstr "" #. module: project_gtd #: model:ir.model,name:project_gtd.model_project_task msgid "Task" -msgstr "" +msgstr "Tarefa" #. module: project_gtd #: view:project.timebox.fill.plan:0 @@ -170,7 +170,7 @@ msgstr "Adicionar ao período" #. module: project_gtd #: field:project.timebox.empty,name:0 msgid "Name" -msgstr "" +msgstr "Nome" #. module: project_gtd #: model:ir.actions.act_window,name:project_gtd.open_gtd_context_tree diff --git a/addons/stock_planning/i18n/ar.po b/addons/stock_planning/i18n/ar.po new file mode 100644 index 00000000000..9128b59e91d --- /dev/null +++ b/addons/stock_planning/i18n/ar.po @@ -0,0 +1,1175 @@ +# Arabic translation for openobject-addons +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-12-22 18:46+0000\n" +"PO-Revision-Date: 2012-01-17 03:05+0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: Arabic \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" + +#. module: stock_planning +#: code:addons/stock_planning/wizard/stock_planning_createlines.py:73 +#, python-format +msgid "" +"No forecasts for selected period or no products in selected category !" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,stock_only:0 +msgid "" +"Check to calculate stock location of selected warehouse only. If not " +"selected calculation is made for input, stock and output location of " +"warehouse." +msgstr "" + +#. module: stock_planning +#: field:stock.planning,maximum_op:0 +msgid "Maximum Rule" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +#: view:stock.sale.forecast:0 +msgid "Group By..." +msgstr "تجميع حسب..." + +#. module: stock_planning +#: help:stock.sale.forecast,product_amt:0 +msgid "" +"Forecast value which will be converted to Product Quantity according to " +"prices." +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:626 +#: code:addons/stock_planning/stock_planning.py:670 +#, python-format +msgid "Incoming Left must be greater than 0 !" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,outgoing_before:0 +msgid "" +"Planned Out in periods before calculated. Between start date of current " +"period and one day before start of calculated period." +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast.createlines,warehouse_id:0 +msgid "" +"Warehouse which forecasts will concern. If during stock planning you will " +"need sales forecast for all warehouses choose any warehouse now." +msgstr "" + +#. module: stock_planning +#: field:stock.planning,outgoing_left:0 +msgid "Expected Out" +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid " " +msgstr " " + +#. module: stock_planning +#: field:stock.planning,incoming_left:0 +msgid "Incoming Left" +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast.createlines:0 +msgid "Create Forecasts Lines" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,outgoing:0 +msgid "Quantity of all confirmed outgoing moves in calculated Period." +msgstr "" + +#. module: stock_planning +#: view:stock.period.createlines:0 +msgid "Create Daily Periods" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +#: field:stock.planning,company_id:0 +#: field:stock.planning.createlines,company_id:0 +#: view:stock.sale.forecast:0 +#: field:stock.sale.forecast,company_id:0 +#: field:stock.sale.forecast.createlines,company_id:0 +msgid "Company" +msgstr "شركة" + +#. module: stock_planning +#: help:stock.planning,warehouse_forecast:0 +msgid "" +"All sales forecasts for selected Warehouse of selected Product during " +"selected Period." +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Minimum Stock Rule Indicators" +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast.createlines,period_id:0 +msgid "Period which forecasts will concern." +msgstr "" + +#. module: stock_planning +#: field:stock.planning,stock_only:0 +msgid "Stock Location Only" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,already_out:0 +msgid "" +"Quantity which is already dispatched out of this warehouse in current period." +msgstr "" + +#. module: stock_planning +#: field:stock.planning,incoming:0 +msgid "Confirmed In" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Current Period Situation" +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,help:stock_planning.action_stock_period_createlines_form +msgid "" +"This wizard helps with the creation of stock planning periods. These periods " +"are independent of financial periods. If you need periods other than day-, " +"week- or month-based, you may also add then manually." +msgstr "" + +#. module: stock_planning +#: view:stock.period.createlines:0 +msgid "Create Monthly Periods" +msgstr "إنشاء فترات شهرية" + +#. module: stock_planning +#: model:ir.model,name:stock_planning.model_stock_period_createlines +msgid "stock.period.createlines" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,outgoing_before:0 +msgid "Planned Out Before" +msgstr "" + +#. module: stock_planning +#: field:stock.planning.createlines,forecasted_products:0 +msgid "All Products with Forecast" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,maximum_op:0 +msgid "Maximum quantity set in Minimum Stock Rules for this Warehouse" +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid "Periods :" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,procure_to_stock:0 +msgid "" +"Check to make procurement to stock location of selected warehouse. If not " +"selected procurement will be made into input location of warehouse." +msgstr "" + +#. module: stock_planning +#: help:stock.planning,already_in:0 +msgid "" +"Quantity which is already picked up to this warehouse in current period." +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/wizard/stock_planning_forecast.py:60 +#, python-format +msgid "No products in selected category !" +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid "Stock and Sales Forecast" +msgstr "" + +#. module: stock_planning +#: model:ir.model,name:stock_planning.model_stock_sale_forecast +msgid "stock.sale.forecast" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,to_procure:0 +msgid "Planned In" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,stock_simulation:0 +msgid "Stock Simulation" +msgstr "" + +#. module: stock_planning +#: model:ir.model,name:stock_planning.model_stock_planning_createlines +msgid "stock.planning.createlines" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,incoming_before:0 +msgid "" +"Confirmed incoming in periods before calculated (Including Already In). " +"Between start date of current period and one day before start of calculated " +"period." +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid "Search Sales Forecast" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period5_per_user:0 +msgid "This User Period5" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,history:0 +msgid "History of procurement or internal supply of this planning line." +msgstr "" + +#. module: stock_planning +#: help:stock.planning,company_forecast:0 +msgid "" +"All sales forecasts for whole company (for all Warehouses) of selected " +"Product during selected Period." +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period1_per_user:0 +msgid "This User Period1" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period3_per_user:0 +msgid "This User Period3" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Stock Planning" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,minimum_op:0 +msgid "Minimum Rule" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Procure Incoming Left" +msgstr "" + +#. module: stock_planning +#: view:stock.planning.createlines:0 +#: view:stock.sale.forecast.createlines:0 +msgid "Create" +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,name:stock_planning.action_view_stock_planning_form +#: model:ir.ui.menu,name:stock_planning.menu_stock_planning +#: model:ir.ui.menu,name:stock_planning.menu_stock_planning_manual +#: view:stock.planning:0 +msgid "Master Procurement Schedule" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,line_time:0 +msgid "Past/Future" +msgstr "" + +#. module: stock_planning +#: view:stock.period:0 +#: field:stock.period,state:0 +#: field:stock.planning,state:0 +#: field:stock.sale.forecast,state:0 +msgid "State" +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast.createlines,product_categ_id:0 +msgid "Product Category of products which created forecasts will concern." +msgstr "" + +#. module: stock_planning +#: model:ir.model,name:stock_planning.model_stock_period +msgid "stock period" +msgstr "" + +#. module: stock_planning +#: model:ir.model,name:stock_planning.model_stock_sale_forecast_createlines +msgid "stock.sale.forecast.createlines" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,warehouse_id:0 +#: field:stock.planning.createlines,warehouse_id:0 +#: field:stock.sale.forecast,warehouse_id:0 +#: field:stock.sale.forecast.createlines,warehouse_id:0 +msgid "Warehouse" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,stock_simulation:0 +msgid "" +"Stock simulation at the end of selected Period.\n" +" For current period it is: \n" +"Initial Stock - Already Out + Already In - Expected Out + Incoming Left.\n" +"For periods ahead it is: \n" +"Initial Stock - Planned Out Before + Incoming Before - Planned Out + Planned " +"In." +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast,analyze_company:0 +msgid "Check this box to see the sales for whole company." +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid "Per Department :" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,incoming_before:0 +msgid "Incoming Before" +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:641 +#, python-format +msgid "" +" Procurement created by MPS for user: %s Creation Date: %s " +" \n" +" For period: %s \n" +" according to state: \n" +" Warehouse Forecast: %s \n" +" Initial Stock: %s \n" +" Planned Out: %s Planned In: %s \n" +" Already Out: %s Already In: %s \n" +" Confirmed Out: %s Confirmed In: %s " +" \n" +" Planned Out Before: %s Confirmed In Before: %s " +" \n" +" Expected Out: %s Incoming Left: %s " +" \n" +" Stock Simulation: %s Minimum stock: %s" +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:626 +#: code:addons/stock_planning/stock_planning.py:670 +#: code:addons/stock_planning/stock_planning.py:672 +#: code:addons/stock_planning/stock_planning.py:674 +#: code:addons/stock_planning/wizard/stock_planning_createlines.py:73 +#: code:addons/stock_planning/wizard/stock_planning_forecast.py:60 +#, python-format +msgid "Error !" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_user_id:0 +msgid "This User" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Forecasts" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Supply from Another Warehouse" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Calculate Planning" +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:146 +#, python-format +msgid "Invalid action !" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,stock_start:0 +msgid "Stock quantity one day before current period." +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Procurement history" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,product_uom:0 +msgid "" +"Unit of Measure used to show the quantities of stock calculation.You can use " +"units from default category or from second category (UoS category)." +msgstr "" + +#. module: stock_planning +#: view:stock.period.createlines:0 +msgid "Create Weekly Periods" +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,help:stock_planning.action_stock_period_form +msgid "" +"Stock periods are used for stock planning. Stock periods are independent of " +"account periods. You can use wizard for creating periods and review them " +"here." +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Calculated Period Simulation" +msgstr "" + +#. module: stock_planning +#: view:stock.period.createlines:0 +msgid "Cancel" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period4_per_user:0 +msgid "This User Period4" +msgstr "" + +#. module: stock_planning +#: view:stock.period:0 +msgid "Stock and Sales Period" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,company_forecast:0 +msgid "Company Forecast" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,minimum_op:0 +msgid "Minimum quantity set in Minimum Stock Rules for this Warehouse" +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid "Per User :" +msgstr "" + +#. module: stock_planning +#: help:stock.planning.createlines,warehouse_id:0 +msgid "Warehouse which planning will concern." +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,user_id:0 +msgid "Created/Validated by" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,warehouse_forecast:0 +msgid "Warehouse Forecast" +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:674 +#, python-format +msgid "" +"You must specify a Source Warehouse different than calculated (destination) " +"Warehouse !" +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:146 +#, python-format +msgid "Cannot delete a validated sales forecast!" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period5_per_company:0 +msgid "This Company Period5" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,product_uom:0 +msgid "Product UoM" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period1_per_company:0 +msgid "This Company Period1" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period2_per_company:0 +msgid "This Company Period2" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period3_per_company:0 +msgid "This Company Period3" +msgstr "" + +#. module: stock_planning +#: field:stock.period,date_start:0 +#: field:stock.period.createlines,date_start:0 +msgid "Start Date" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period2_per_user:0 +msgid "This User Period2" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,confirmed_forecasts_only:0 +msgid "Validated Forecasts" +msgstr "" + +#. module: stock_planning +#: help:stock.planning.createlines,product_categ_id:0 +msgid "" +"Planning will be created for products from Product Category selected by this " +"field. This field is ignored when you check \"All Forecasted Product\" box." +msgstr "" + +#. module: stock_planning +#: field:stock.planning,planned_outgoing:0 +msgid "Planned Out" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,product_qty:0 +msgid "Forecast Quantity" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Forecast" +msgstr "" + +#. module: stock_planning +#: selection:stock.period,state:0 +#: selection:stock.planning,state:0 +#: selection:stock.sale.forecast,state:0 +msgid "Draft" +msgstr "" + +#. module: stock_planning +#: view:stock.period:0 +msgid "Closed" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +#: view:stock.sale.forecast:0 +msgid "Warehouse " +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast,product_uom:0 +msgid "" +"Unit of Measure used to show the quantities of stock calculation.You can use " +"units form default category or from second category (UoS category)." +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Planning and Situation for Calculated Period" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,planned_outgoing:0 +msgid "" +"Enter planned outgoing quantity from selected Warehouse during the selected " +"Period of selected Product. To plan this value look at Confirmed Out or " +"Sales Forecasts. This value should be equal or greater than Confirmed Out." +msgstr "" + +#. module: stock_planning +#: view:stock.period:0 +msgid "Current Periods" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Internal Supply" +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:724 +#, python-format +msgid "%s Pick List %s (%s, %s) %s %s \n" +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,name:stock_planning.action_stock_sale_forecast_createlines_form +#: model:ir.ui.menu,name:stock_planning.menu_stock_sale_forecast_createlines +msgid "Create Sales Forecasts" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period4_id:0 +msgid "Period4" +msgstr "" + +#. module: stock_planning +#: field:stock.period,name:0 +#: field:stock.period.createlines,name:0 +msgid "Period Name" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period2_id:0 +msgid "Period2" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period3_id:0 +msgid "Period3" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period1_id:0 +msgid "Period1" +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,help:stock_planning.action_stock_planning_createlines_form +msgid "" +"This wizard helps create MPS planning lines for a given selected period and " +"warehouse, so you don't have to create them one by one. The wizard doesn't " +"duplicate lines if they already exist for this selection." +msgstr "" + +#. module: stock_planning +#: field:stock.planning,outgoing:0 +msgid "Confirmed Out" +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,name:stock_planning.action_stock_planning_createlines_form +#: model:ir.ui.menu,name:stock_planning.menu_stock_planning_createlines +#: view:stock.planning.createlines:0 +msgid "Create Stock Planning Lines" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "General Info" +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,name:stock_planning.action_view_stock_sale_forecast_form +msgid "Sales Forecast" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period1_per_warehouse:0 +msgid "This Warehouse Period1" +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid "Sales history" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,supply_warehouse_id:0 +msgid "Source Warehouse" +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast,product_qty:0 +msgid "Forecast Product quantity." +msgstr "" + +#. module: stock_planning +#: field:stock.planning,stock_supply_location:0 +msgid "Stock Supply Location" +msgstr "" + +#. module: stock_planning +#: help:stock.period.createlines,date_stop:0 +msgid "Ending date for planning period." +msgstr "" + +#. module: stock_planning +#: help:stock.planning.createlines,forecasted_products:0 +msgid "" +"Check this box to create planning for all products having any forecast for " +"selected Warehouse and Period. Product Category field will be ignored." +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:632 +#: code:addons/stock_planning/stock_planning.py:678 +#: code:addons/stock_planning/stock_planning.py:702 +#, python-format +msgid "MPS(%s) %s" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,already_in:0 +msgid "Already In" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,product_uom_categ:0 +#: field:stock.planning,product_uos_categ:0 +#: field:stock.sale.forecast,product_uom_categ:0 +msgid "Product UoM Category" +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,help:stock_planning.action_view_stock_sale_forecast_form +msgid "" +"This quantity sales forecast is an indication for Stock Planner to make " +"procurement manually or to complement automatic procurement. You can use " +"manual procurement with this forecast when some periods are exceptional for " +"usual minimum stock rules." +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,help:stock_planning.action_view_stock_planning_form +msgid "" +"The Master Procurement Schedule can be the main driver for warehouse " +"replenishment, or can complement the automatic MRP scheduling (minimum stock " +"rules, etc.).\n" +"Each MPS line gives you a pre-computed overview of the incoming and outgoing " +"quantities of a given product for a given Stock Period in a given Warehouse, " +"based on the current and future stock levels,\n" +"as well as the planned stock moves. The forecast quantities can be altered " +"manually, and when satisfied with resulting (simulated) Stock quantity, you " +"can trigger the procurement of what is missing to reach your desired " +"quantities" +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:685 +#, python-format +msgid "" +"Pick created from MPS by user: %s Creation Date: %s " +" \n" +"For period: %s according to state: \n" +" Warehouse Forecast: %s \n" +" Initial Stock: %s \n" +" Planned Out: %s Planned In: %s \n" +" Already Out: %s Already In: %s \n" +" Confirmed Out: %s Confirmed In: %s \n" +" Planned Out Before: %s Confirmed In Before: %s " +" \n" +" Expected Out: %s Incoming Left: %s \n" +" Stock Simulation: %s Minimum stock: %s " +msgstr "" + +#. module: stock_planning +#: field:stock.planning,period_id:0 +#: field:stock.planning.createlines,period_id:0 +#: field:stock.sale.forecast,period_id:0 +#: field:stock.sale.forecast.createlines,period_id:0 +msgid "Period" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,product_uos_categ:0 +msgid "Product UoS Category" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,active_uom:0 +#: field:stock.sale.forecast,active_uom:0 +msgid "Active UoM" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Search Stock Planning" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast.createlines,copy_forecast:0 +msgid "Copy Last Forecast" +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast,product_id:0 +msgid "Shows which product this forecast concerns." +msgstr "" + +#. module: stock_planning +#: selection:stock.planning,state:0 +msgid "Done" +msgstr "" + +#. module: stock_planning +#: field:stock.period.createlines,period_ids:0 +msgid "Periods" +msgstr "" + +#. module: stock_planning +#: model:ir.ui.menu,name:stock_planning.menu_stock_period_creatlines +msgid "Create Stock Periods" +msgstr "" + +#. module: stock_planning +#: view:stock.period:0 +#: selection:stock.period,state:0 +#: view:stock.planning.createlines:0 +#: view:stock.sale.forecast.createlines:0 +msgid "Close" +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +#: selection:stock.sale.forecast,state:0 +msgid "Validated" +msgstr "" + +#. module: stock_planning +#: view:stock.period:0 +#: selection:stock.period,state:0 +msgid "Open" +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast.createlines,copy_forecast:0 +msgid "Copy quantities from last Stock and Sale Forecast." +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period1_per_dept:0 +msgid "This Dept Period1" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period3_per_dept:0 +msgid "This Dept Period3" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period2_per_dept:0 +msgid "This Dept Period2" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period5_per_dept:0 +msgid "This Dept Period5" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period4_per_dept:0 +msgid "This Dept Period4" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period2_per_warehouse:0 +msgid "This Warehouse Period2" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period3_per_warehouse:0 +msgid "This Warehouse Period3" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,stock_supply_location:0 +msgid "" +"Check to supply from Stock location of Supply Warehouse. If not checked " +"supply will be made from Output location of Supply Warehouse. Used in " +"'Supply from Another Warehouse' with Supply Warehouse." +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,create_uid:0 +msgid "Responsible" +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid "Default UOM" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period4_per_warehouse:0 +msgid "This Warehouse Period4" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period5_per_warehouse:0 +msgid "This Warehouse Period5" +msgstr "" + +#. module: stock_planning +#: view:stock.period:0 +msgid "Current" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,supply_warehouse_id:0 +msgid "" +"Warehouse used as source in supply pick move created by 'Supply from Another " +"Warehouse'." +msgstr "" + +#. module: stock_planning +#: model:ir.model,name:stock_planning.model_stock_planning +msgid "stock.planning" +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast,warehouse_id:0 +msgid "" +"Shows which warehouse this forecast concerns. If during stock planning you " +"will need sales forecast for all warehouses choose any warehouse now." +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:661 +#, python-format +msgid "%s Procurement (%s, %s) %s %s \n" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyze_company:0 +msgid "Per Company" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,to_procure:0 +msgid "" +"Enter quantity which (by your plan) should come in. Change this value and " +"observe Stock simulation. This value should be equal or greater than " +"Confirmed In." +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period4_per_company:0 +msgid "This Company Period4" +msgstr "" + +#. module: stock_planning +#: help:stock.planning.createlines,period_id:0 +msgid "Period which planning will concern." +msgstr "" + +#. module: stock_planning +#: field:stock.planning,already_out:0 +msgid "Already Out" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,product_id:0 +msgid "Product which this planning is created for." +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid "Per Warehouse :" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,history:0 +msgid "Procurement History" +msgstr "" + +#. module: stock_planning +#: help:stock.period.createlines,date_start:0 +msgid "Starting date for planning period." +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,name:stock_planning.action_stock_period_createlines_form +#: model:ir.actions.act_window,name:stock_planning.action_stock_period_form +#: model:ir.ui.menu,name:stock_planning.menu_stock_period +#: model:ir.ui.menu,name:stock_planning.menu_stock_period_main +#: view:stock.period:0 +#: view:stock.period.createlines:0 +msgid "Stock Periods" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "Stock" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,incoming:0 +msgid "Quantity of all confirmed incoming moves in calculated Period." +msgstr "" + +#. module: stock_planning +#: field:stock.period,date_stop:0 +#: field:stock.period.createlines,date_stop:0 +msgid "End Date" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +msgid "No Requisition" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,name:0 +msgid "Name" +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast,period_id:0 +msgid "Shows which period this forecast concerns." +msgstr "" + +#. module: stock_planning +#: field:stock.planning,product_uom:0 +msgid "UoM" +msgstr "" + +#. module: stock_planning +#: view:stock.period:0 +msgid "Closed Periods" +msgstr "" + +#. module: stock_planning +#: view:stock.planning:0 +#: field:stock.planning,product_id:0 +#: view:stock.sale.forecast:0 +#: field:stock.sale.forecast,product_id:0 +msgid "Product" +msgstr "" + +#. module: stock_planning +#: model:ir.ui.menu,name:stock_planning.menu_stock_sale_forecast +#: model:ir.ui.menu,name:stock_planning.menu_stock_sale_forecast_all +#: view:stock.sale.forecast:0 +msgid "Sales Forecasts" +msgstr "" + +#. module: stock_planning +#: field:stock.planning.createlines,product_categ_id:0 +#: field:stock.sale.forecast.createlines,product_categ_id:0 +msgid "Product Category" +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:672 +#, python-format +msgid "You must specify a Source Warehouse !" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,procure_to_stock:0 +msgid "Procure To Stock Location" +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid "Approve" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,period_id:0 +msgid "" +"Period for this planning. Requisition will be created for beginning of the " +"period." +msgstr "" + +#. module: stock_planning +#: code:addons/stock_planning/stock_planning.py:631 +#, python-format +msgid "MPS planning for %s" +msgstr "" + +#. module: stock_planning +#: field:stock.planning,stock_start:0 +msgid "Initial Stock" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,product_amt:0 +msgid "Product Amount" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,confirmed_forecasts_only:0 +msgid "" +"Check to take validated forecasts only. If not checked system takes " +"validated and draft forecasts." +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_period5_id:0 +msgid "Period5" +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_warehouse_id:0 +msgid "This Warehouse" +msgstr "" + +#. module: stock_planning +#: help:stock.sale.forecast,user_id:0 +msgid "Shows who created this forecast, or who validated." +msgstr "" + +#. module: stock_planning +#: field:stock.sale.forecast,analyzed_team_id:0 +msgid "Sales Team" +msgstr "" + +#. module: stock_planning +#: help:stock.planning,incoming_left:0 +msgid "" +"Quantity left to Planned incoming quantity. This is calculated difference " +"between Planned In and Confirmed In. For current period Already In is also " +"calculated. This value is used to create procurement for lacking quantity." +msgstr "" + +#. module: stock_planning +#: help:stock.planning,outgoing_left:0 +msgid "" +"Quantity expected to go out in selected period besides Confirmed Out. As a " +"difference between Planned Out and Confirmed Out. For current period Already " +"Out is also calculated" +msgstr "" + +#. module: stock_planning +#: view:stock.sale.forecast:0 +msgid "Calculate Sales History" +msgstr "" + +#. module: stock_planning +#: model:ir.actions.act_window,help:stock_planning.action_stock_sale_forecast_createlines_form +msgid "" +"This wizard helps create many forecast lines at once. After creating them " +"you only have to fill in the forecast quantities. The wizard doesn't " +"duplicate the line when another one exist for the same selection." +msgstr "" diff --git a/addons/survey/i18n/ar.po b/addons/survey/i18n/ar.po new file mode 100644 index 00000000000..9f313c2b33a --- /dev/null +++ b/addons/survey/i18n/ar.po @@ -0,0 +1,1717 @@ +# Arabic translation for openobject-addons +# Copyright (c) 2012 Rosetta Contributors and Canonical Ltd 2012 +# This file is distributed under the same license as the openobject-addons package. +# FIRST AUTHOR , 2012. +# +msgid "" +msgstr "" +"Project-Id-Version: openobject-addons\n" +"Report-Msgid-Bugs-To: FULL NAME \n" +"POT-Creation-Date: 2011-12-22 18:46+0000\n" +"PO-Revision-Date: 2012-01-17 03:07+0000\n" +"Last-Translator: FULL NAME \n" +"Language-Team: Arabic \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Launchpad-Export-Date: 2012-01-17 04:45+0000\n" +"X-Generator: Launchpad (build 14676)\n" + +#. module: survey +#: view:survey.print:0 +#: view:survey.print.answer:0 +msgid "Print Option" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:418 +#, python-format +msgid "" +"Minimum Required Answer you entered is " +"greater than the number of answer. " +"Please use a number that is smaller than %d." +msgstr "" + +#. module: survey +#: view:survey.question.wiz:0 +msgid "Your Messages" +msgstr "" + +#. module: survey +#: field:survey.question,comment_valid_type:0 +#: field:survey.question,validation_type:0 +msgid "Text Validation" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:430 +#, python-format +msgid "" +"Maximum Required Answer you entered for " +"your maximum is greater than the number of answer. " +" Please use a number that is smaller than %d." +msgstr "" + +#. module: survey +#: view:survey:0 +#: field:survey,invited_user_ids:0 +msgid "Invited User" +msgstr "مستخدم مدعو" + +#. module: survey +#: selection:survey.answer,type:0 +msgid "Character" +msgstr "حرف" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_survey_form1 +#: model:ir.ui.menu,name:survey.menu_print_survey_form +#: model:ir.ui.menu,name:survey.menu_reporting +#: model:ir.ui.menu,name:survey.menu_survey_form +#: model:ir.ui.menu,name:survey.menu_surveys +msgid "Surveys" +msgstr "" + +#. module: survey +#: field:survey.question,in_visible_answer_type:0 +msgid "Is Answer Type Invisible?" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +#: view:survey.request:0 +msgid "Group By..." +msgstr "تجميع حسب..." + +#. module: survey +#: view:survey.send.invitation.log:0 +msgid "Results :" +msgstr "النتائج:" + +#. module: survey +#: view:survey.request:0 +msgid "Survey Request" +msgstr "" + +#. module: survey +#: selection:survey.question,required_type:0 +msgid "A Range" +msgstr "" + +#. module: survey +#: view:survey.response.line:0 +msgid "Table Answer" +msgstr "" + +#. module: survey +#: field:survey.history,date:0 +msgid "Date started" +msgstr "" + +#. module: survey +#: field:survey,history:0 +msgid "History Lines" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:444 +#, python-format +msgid "" +"You must enter one or more menu choices in " +"column heading (white spaces not allowed)" +msgstr "" + +#. module: survey +#: field:survey.question.column.heading,in_visible_menu_choice:0 +msgid "Is Menu Choice Invisible??" +msgstr "" + +#. module: survey +#: field:survey.send.invitation,mail:0 +msgid "Body" +msgstr "النص" + +#. module: survey +#: field:survey.question,allow_comment:0 +msgid "Allow Comment Field" +msgstr "" + +#. module: survey +#: selection:survey.print,paper_size:0 +#: selection:survey.print.answer,paper_size:0 +msgid "A4 (210mm x 297mm)" +msgstr "" + +#. module: survey +#: field:survey.question,comment_maximum_date:0 +#: field:survey.question,validation_maximum_date:0 +msgid "Maximum date" +msgstr "" + +#. module: survey +#: field:survey.question,in_visible_menu_choice:0 +msgid "Is Menu Choice Invisible?" +msgstr "" + +#. module: survey +#: view:survey:0 +msgid "Completed" +msgstr "مكتمل" + +#. module: survey +#: selection:survey.question,required_type:0 +msgid "Exactly" +msgstr "بالضبط" + +#. module: survey +#: view:survey:0 +msgid "Open Date" +msgstr "تاريخ الفتح" + +#. module: survey +#: view:survey.request:0 +msgid "Set to Draft" +msgstr "حفظ كمسودة" + +#. module: survey +#: field:survey.question,is_comment_require:0 +msgid "Add Comment Field" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:397 +#, python-format +msgid "" +"#Required Answer you entered is greater " +"than the number of answer. Please use a " +"number that is smaller than %d." +msgstr "" + +#. module: survey +#: field:survey.question,tot_resp:0 +msgid "Total Answer" +msgstr "" + +#. module: survey +#: field:survey.tbl.column.heading,name:0 +msgid "Row Number" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_name_wiz +msgid "survey.name.wiz" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_survey_question_form +msgid "Survey Questions" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Matrix of Choices (Only One Answers Per Row)" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:471 +#, python-format +msgid "" +"Maximum Required Answer you entered for your maximum is greater than the " +"number of answer. Please use a number that is smaller than %d." +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_view_survey_question_message +#: model:ir.model,name:survey.model_survey_question +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "Survey Question" +msgstr "" + +#. module: survey +#: view:survey.question.column.heading:0 +msgid "Use if question type is rating_scale" +msgstr "" + +#. module: survey +#: field:survey.print,page_number:0 +#: field:survey.print.answer,page_number:0 +msgid "Include Page Number" +msgstr "" + +#. module: survey +#: view:survey.page:0 +#: view:survey.question:0 +msgid "Ok" +msgstr "تم" + +#. module: survey +#: field:survey.page,title:0 +msgid "Page Title" +msgstr "عنوان الصفحة" + +#. module: survey +#: model:ir.ui.menu,name:survey.menu_define_survey +msgid "Define Surveys" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_history +msgid "Survey History" +msgstr "" + +#. module: survey +#: field:survey.response.answer,comment:0 +#: field:survey.response.line,comment:0 +msgid "Notes" +msgstr "ملاحظات" + +#. module: survey +#: view:survey:0 +#: view:survey.request:0 +msgid "Search Survey" +msgstr "" + +#. module: survey +#: field:survey.response.answer,answer:0 +#: field:survey.tbl.column.heading,value:0 +msgid "Value" +msgstr "قيمة" + +#. module: survey +#: field:survey.question,column_heading_ids:0 +msgid " Column heading" +msgstr "" + +#. module: survey +#: model:ir.ui.menu,name:survey.menu_run_survey_form +msgid "Answer a Survey" +msgstr "" + +#. module: survey +#: code:addons/survey/wizard/survey_answer.py:86 +#, python-format +msgid "Error!" +msgstr "خطأ!" + +#. module: survey +#: field:survey,tot_comp_survey:0 +msgid "Total Completed Survey" +msgstr "" + +#. module: survey +#: view:survey.response.answer:0 +msgid "(Use Only Question Type is matrix_of_drop_down_menus)" +msgstr "" + +#. module: survey +#: model:ir.actions.report.xml,name:survey.survey_analysis +msgid "Survey Statistics" +msgstr "" + +#. module: survey +#: selection:survey,state:0 +#: view:survey.request:0 +#: selection:survey.request,state:0 +msgid "Cancelled" +msgstr "ملغي" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Rating Scale" +msgstr "" + +#. module: survey +#: field:survey.question,comment_field_type:0 +msgid "Comment Field Type" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:371 +#: code:addons/survey/survey.py:383 +#: code:addons/survey/survey.py:397 +#: code:addons/survey/survey.py:402 +#: code:addons/survey/survey.py:412 +#: code:addons/survey/survey.py:418 +#: code:addons/survey/survey.py:424 +#: code:addons/survey/survey.py:430 +#: code:addons/survey/survey.py:434 +#: code:addons/survey/survey.py:440 +#: code:addons/survey/survey.py:444 +#: code:addons/survey/survey.py:454 +#: code:addons/survey/survey.py:458 +#: code:addons/survey/survey.py:463 +#: code:addons/survey/survey.py:469 +#: code:addons/survey/survey.py:471 +#: code:addons/survey/survey.py:473 +#: code:addons/survey/survey.py:478 +#: code:addons/survey/survey.py:480 +#: code:addons/survey/survey.py:643 +#: code:addons/survey/wizard/survey_answer.py:118 +#: code:addons/survey/wizard/survey_answer.py:125 +#: code:addons/survey/wizard/survey_answer.py:668 +#: code:addons/survey/wizard/survey_answer.py:707 +#: code:addons/survey/wizard/survey_answer.py:727 +#: code:addons/survey/wizard/survey_answer.py:756 +#: code:addons/survey/wizard/survey_answer.py:761 +#: code:addons/survey/wizard/survey_answer.py:769 +#: code:addons/survey/wizard/survey_answer.py:780 +#: code:addons/survey/wizard/survey_answer.py:789 +#: code:addons/survey/wizard/survey_answer.py:794 +#: code:addons/survey/wizard/survey_answer.py:868 +#: code:addons/survey/wizard/survey_answer.py:904 +#: code:addons/survey/wizard/survey_answer.py:922 +#: code:addons/survey/wizard/survey_answer.py:950 +#: code:addons/survey/wizard/survey_answer.py:953 +#: code:addons/survey/wizard/survey_answer.py:956 +#: code:addons/survey/wizard/survey_answer.py:968 +#: code:addons/survey/wizard/survey_answer.py:975 +#: code:addons/survey/wizard/survey_answer.py:978 +#: code:addons/survey/wizard/survey_selection.py:66 +#: code:addons/survey/wizard/survey_selection.py:69 +#: code:addons/survey/wizard/survey_send_invitation.py:74 +#, python-format +msgid "Warning !" +msgstr "تحذير !" + +#. module: survey +#: selection:survey.question,comment_field_type:0 +msgid "Single Line Of Text" +msgstr "" + +#. module: survey +#: view:survey.send.invitation:0 +#: field:survey.send.invitation,send_mail_existing:0 +msgid "Send reminder for existing user" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Multiple Choice (Multiple Answer)" +msgstr "" + +#. module: survey +#: view:survey:0 +msgid "Edit Survey" +msgstr "" + +#. module: survey +#: view:survey.response.line:0 +msgid "Survey Answer Line" +msgstr "" + +#. module: survey +#: field:survey.question.column.heading,menu_choice:0 +msgid "Menu Choice" +msgstr "" + +#. module: survey +#: selection:survey.question,required_type:0 +msgid "At Most" +msgstr "على الأكثر" + +#. module: survey +#: view:survey:0 +msgid "My Survey(s)" +msgstr "" + +#. module: survey +#: field:survey.question,is_validation_require:0 +msgid "Validate Text" +msgstr "" + +#. module: survey +#: view:survey.send.invitation:0 +msgid "_Cancel" +msgstr "" + +#. module: survey +#: field:survey.response.line,single_text:0 +msgid "Text" +msgstr "نص" + +#. module: survey +#: constraint:res.users:0 +msgid "The chosen company is not in the allowed companies for this user" +msgstr "" +"الشركة المختارة غير مدرجة ضمن قائمة الشركات المسموح بها لهذا المستخدم" + +#. module: survey +#: selection:survey.print,paper_size:0 +#: selection:survey.print.answer,paper_size:0 +msgid "Letter (8.5\" x 11\")" +msgstr "" + +#. module: survey +#: view:survey:0 +#: field:survey,responsible_id:0 +msgid "Responsible" +msgstr "مسؤول" + +#. module: survey +#: model:ir.model,name:survey.model_survey_request +msgid "survey.request" +msgstr "" + +#. module: survey +#: field:survey.send.invitation,mail_subject:0 +#: field:survey.send.invitation,mail_subject_existing:0 +msgid "Subject" +msgstr "موضوع" + +#. module: survey +#: field:survey.question,comment_maximum_float:0 +#: field:survey.question,validation_maximum_float:0 +msgid "Maximum decimal number" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_tbl_column_heading +msgid "survey.tbl.column.heading" +msgstr "" + +#. module: survey +#: sql_constraint:res.users:0 +msgid "You can not have two users with the same login !" +msgstr "لا يمكن ان يكون هناك مستخدمان بنفس اسم الدخول!" + +#. module: survey +#: field:survey.send.invitation,mail_from:0 +msgid "From" +msgstr "من" + +#. module: survey +#: selection:survey.question,comment_valid_type:0 +#: selection:survey.question,validation_type:0 +msgid "Don't Validate Comment Text." +msgstr "" + +#. module: survey +#: selection:survey.question,comment_valid_type:0 +#: selection:survey.question,validation_type:0 +msgid "Must Be A Whole Number" +msgstr "" + +#. module: survey +#: field:survey.answer,question_id:0 +#: field:survey.page,question_ids:0 +#: field:survey.question,question:0 +#: field:survey.question.column.heading,question_id:0 +#: field:survey.response.line,question_id:0 +msgid "Question" +msgstr "سؤال" + +#. module: survey +#: view:survey.page:0 +msgid "Search Survey Page" +msgstr "" + +#. module: survey +#: field:survey.question.wiz,name:0 +msgid "Number" +msgstr "رقم" + +#. module: survey +#: code:addons/survey/survey.py:440 +#, python-format +msgid "" +"You must enter one or more menu choices in " +"column heading" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,help:survey.action_survey_form1 +msgid "" +"You can create survey for different purposes: recruitment interviews, " +"employee's periodical evaluations, marketing campaigns, etc. A survey is " +"made of pages containing questions of several types: text, multiple choices, " +"etc. You can edit survey manually or click on the 'Edit Survey' for a " +"WYSIWYG interface." +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.request:0 +#: field:survey.request,state:0 +msgid "State" +msgstr "الحالة" + +#. module: survey +#: view:survey.request:0 +msgid "Evaluation Plan Phase" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "Between" +msgstr "بين" + +#. module: survey +#: view:survey.print:0 +#: view:survey.print.answer:0 +#: view:survey.print.statistics:0 +msgid "Print" +msgstr "طباعة" + +#. module: survey +#: view:survey:0 +msgid "New" +msgstr "" + +#. module: survey +#: field:survey.question,make_comment_field:0 +msgid "Make Comment Field an Answer Choice" +msgstr "" + +#. module: survey +#: view:survey:0 +#: field:survey,type:0 +msgid "Type" +msgstr "نوع" + +#. module: survey +#: selection:survey.answer,type:0 +msgid "Email" +msgstr "بريد إلكتروني" + +#. module: survey +#: model:ir.ui.menu,name:survey.menu_answer_surveys +msgid "Answer Surveys" +msgstr "" + +#. module: survey +#: selection:survey.response,state:0 +msgid "Not Finished" +msgstr "" + +#. module: survey +#: view:survey.print:0 +msgid "Survey Print" +msgstr "" + +#. module: survey +#: view:survey.send.invitation:0 +msgid "Select Partner" +msgstr "" + +#. module: survey +#: field:survey.question,type:0 +msgid "Question Type" +msgstr "" + +#. module: survey +#: code:addons/survey/wizard/survey_answer.py:125 +#, python-format +msgid "You can not answer this survey more than %s times" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.act_survey_answer +msgid "Answers" +msgstr "الإجابات" + +#. module: survey +#: code:addons/survey/wizard/survey_answer.py:118 +#, python-format +msgid "You can not answer because the survey is not open" +msgstr "" + +#. module: survey +#: selection:survey.response,response_type:0 +msgid "Link" +msgstr "رابط" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_survey_type_form +#: model:ir.model,name:survey.model_survey_type +#: view:survey.type:0 +msgid "Survey Type" +msgstr "" + +#. module: survey +#: field:survey.page,sequence:0 +msgid "Page Nr" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +#: field:survey.question,descriptive_text:0 +#: selection:survey.question,type:0 +msgid "Descriptive Text" +msgstr "" + +#. module: survey +#: field:survey.question,minimum_req_ans:0 +msgid "Minimum Required Answer" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:480 +#, python-format +msgid "" +"You must enter one or more menu choices in column heading (white spaces not " +"allowed)" +msgstr "" + +#. module: survey +#: field:survey.question,req_error_msg:0 +msgid "Error Message" +msgstr "رسالة الخطأ" + +#. module: survey +#: code:addons/survey/survey.py:478 +#, python-format +msgid "You must enter one or more menu choices in column heading" +msgstr "" + +#. module: survey +#: field:survey.request,date_deadline:0 +msgid "Deadline date" +msgstr "" + +#. module: survey +#: selection:survey.question,comment_valid_type:0 +#: selection:survey.question,validation_type:0 +msgid "Must Be A Date" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_print +msgid "survey.print" +msgstr "" + +#. module: survey +#: view:survey.question.column.heading:0 +#: field:survey.question.column.heading,title:0 +msgid "Column Heading" +msgstr "" + +#. module: survey +#: field:survey.question,is_require_answer:0 +msgid "Require Answer to Question" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_survey_request_tree +#: model:ir.ui.menu,name:survey.menu_survey_type_form1 +msgid "Survey Requests" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:371 +#: code:addons/survey/survey.py:458 +#, python-format +msgid "You must enter one or more column heading." +msgstr "" + +#. module: survey +#: code:addons/survey/wizard/survey_answer.py:727 +#: code:addons/survey/wizard/survey_answer.py:922 +#, python-format +msgid "Please enter an integer value" +msgstr "رجاء إدخال قيمة رقمية (Integer)" + +#. module: survey +#: model:ir.model,name:survey.model_survey_browse_answer +msgid "survey.browse.answer" +msgstr "" + +#. module: survey +#: selection:survey.question,comment_field_type:0 +msgid "Paragraph of Text" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:424 +#, python-format +msgid "" +"Maximum Required Answer you entered for " +"your maximum is greater than the number of answer. " +" Please use a number that is smaller than %d." +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "When the question is not answered, display this error message:" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "Options" +msgstr "" + +#. module: survey +#: view:survey.send.invitation.log:0 +msgid "_Ok" +msgstr "" + +#. module: survey +#: model:ir.ui.menu,name:survey.menu_browse_survey_response +msgid "Browse Answers" +msgstr "" + +#. module: survey +#: field:survey.response.answer,comment_field:0 +#: view:survey.response.line:0 +msgid "Comment" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_answer +#: model:ir.model,name:survey.model_survey_response_answer +#: view:survey.answer:0 +#: view:survey.response:0 +#: view:survey.response.answer:0 +#: view:survey.response.line:0 +msgid "Survey Answer" +msgstr "" + +#. module: survey +#: selection:survey.answer,type:0 +msgid "Selection" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_browse_survey_response +#: view:survey:0 +msgid "Answer Survey" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "Comment Field" +msgstr "" + +#. module: survey +#: selection:survey.response,response_type:0 +msgid "Manually" +msgstr "" + +#. module: survey +#: view:survey.send.invitation:0 +msgid "_Send" +msgstr "" + +#. module: survey +#: help:survey,responsible_id:0 +msgid "User responsible for survey" +msgstr "" + +#. module: survey +#: field:survey,page_ids:0 +#: view:survey.question:0 +#: field:survey.response.line,page_id:0 +msgid "Page" +msgstr "" + +#. module: survey +#: field:survey.question,comment_column:0 +msgid "Add comment column in matrix" +msgstr "" + +#. module: survey +#: field:survey.answer,response:0 +msgid "#Answer" +msgstr "" + +#. module: survey +#: field:survey.print,without_pagebreak:0 +#: field:survey.print.answer,without_pagebreak:0 +msgid "Print Without Page Breaks" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "When the comment is an invalid format, display this error message" +msgstr "" + +#. module: survey +#: code:addons/survey/wizard/survey_selection.py:69 +#, python-format +msgid "" +"You can not give more response. Please contact the author of this survey for " +"further assistance." +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.act_survey_page_question +#: model:ir.actions.act_window,name:survey.act_survey_question +msgid "Questions" +msgstr "" + +#. module: survey +#: help:survey,response_user:0 +msgid "Set to one if you require only one Answer per user" +msgstr "" + +#. module: survey +#: field:survey,users:0 +msgid "Users" +msgstr "" + +#. module: survey +#: view:survey.send.invitation:0 +msgid "Message" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.request:0 +msgid "MY" +msgstr "" + +#. module: survey +#: field:survey.question,maximum_req_ans:0 +msgid "Maximum Required Answer" +msgstr "" + +#. module: survey +#: field:survey.name.wiz,page_no:0 +msgid "Page Number" +msgstr "" + +#. module: survey +#: code:addons/survey/wizard/survey_answer.py:86 +#, python-format +msgid "Cannot locate survey for the question wizard!" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "and" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_view_survey_print_statistics +#: view:survey.print.statistics:0 +msgid "Survey Print Statistics" +msgstr "" + +#. module: survey +#: field:survey.send.invitation.log,note:0 +msgid "Log" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "When the choices do not add up correctly, display this error message" +msgstr "" + +#. module: survey +#: field:survey,date_close:0 +msgid "Survey Close Date" +msgstr "" + +#. module: survey +#: field:survey,date_open:0 +msgid "Survey Open Date" +msgstr "" + +#. module: survey +#: field:survey.question.column.heading,in_visible_rating_weight:0 +msgid "Is Rating Scale Invisible ??" +msgstr "" + +#. module: survey +#: view:survey.browse.answer:0 +#: view:survey.name.wiz:0 +msgid "Start" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:473 +#, python-format +msgid "Maximum Required Answer is greater than Minimum Required Answer" +msgstr "" + +#. module: survey +#: field:survey.question,comment_maximum_no:0 +#: field:survey.question,validation_maximum_no:0 +msgid "Maximum number" +msgstr "" + +#. module: survey +#: selection:survey.request,state:0 +#: selection:survey.response.line,state:0 +msgid "Draft" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_print_statistics +msgid "survey.print.statistics" +msgstr "" + +#. module: survey +#: selection:survey,state:0 +msgid "Closed" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Matrix of Drop-down Menus" +msgstr "" + +#. module: survey +#: view:survey:0 +#: field:survey.answer,answer:0 +#: field:survey.name.wiz,response:0 +#: view:survey.page:0 +#: view:survey.print.answer:0 +#: field:survey.print.answer,response_ids:0 +#: view:survey.question:0 +#: field:survey.question,answer_choice_ids:0 +#: field:survey.request,response:0 +#: field:survey.response,question_ids:0 +#: field:survey.response.answer,answer_id:0 +#: field:survey.response.answer,response_id:0 +#: view:survey.response.line:0 +#: field:survey.response.line,response_answer_ids:0 +#: field:survey.response.line,response_id:0 +#: field:survey.response.line,response_table_ids:0 +#: field:survey.send.invitation,partner_ids:0 +#: field:survey.tbl.column.heading,response_table_id:0 +msgid "Answer" +msgstr "" + +#. module: survey +#: field:survey,max_response_limit:0 +msgid "Maximum Answer Limit" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_act_view_survey_send_invitation +msgid "Send Invitations" +msgstr "" + +#. module: survey +#: field:survey.name.wiz,store_ans:0 +msgid "Store Answer" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Date and Time" +msgstr "" + +#. module: survey +#: field:survey,state:0 +#: field:survey.response,state:0 +#: field:survey.response.line,state:0 +msgid "Status" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_view_survey_print +msgid "Print Survey" +msgstr "" + +#. module: survey +#: field:survey,send_response:0 +msgid "E-mail Notification on Answer" +msgstr "" + +#. module: survey +#: field:survey.response.answer,value_choice:0 +msgid "Value Choice" +msgstr "" + +#. module: survey +#: view:survey:0 +msgid "Started" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_view_survey_print_answer +#: view:survey:0 +#: view:survey.print.answer:0 +msgid "Print Answer" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Multiple Textboxes" +msgstr "" + +#. module: survey +#: selection:survey.print,orientation:0 +#: selection:survey.print.answer,orientation:0 +msgid "Landscape(Horizontal)" +msgstr "" + +#. module: survey +#: field:survey.question,no_of_rows:0 +msgid "No of Rows" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.name.wiz:0 +msgid "Survey Details" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Multiple Textboxes With Different Type" +msgstr "" + +#. module: survey +#: view:survey.question.column.heading:0 +msgid "Menu Choices (each choice on separate lines)" +msgstr "" + +#. module: survey +#: field:survey.response,response_type:0 +msgid "Answer Type" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "Validation" +msgstr "" + +#. module: survey +#: view:survey.request:0 +#: selection:survey.request,state:0 +msgid "Waiting Answer" +msgstr "" + +#. module: survey +#: selection:survey.question,comment_valid_type:0 +#: selection:survey.question,validation_type:0 +msgid "Must Be A Decimal Number" +msgstr "" + +#. module: survey +#: field:res.users,survey_id:0 +msgid "Groups" +msgstr "" + +#. module: survey +#: selection:survey.answer,type:0 +#: selection:survey.question,type:0 +msgid "Date" +msgstr "" + +#. module: survey +#: view:survey:0 +msgid "All New Survey" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_send_invitation +msgid "survey.send.invitation" +msgstr "" + +#. module: survey +#: field:survey.history,user_id:0 +#: view:survey.request:0 +#: field:survey.request,user_id:0 +#: field:survey.response,user_id:0 +msgid "User" +msgstr "" + +#. module: survey +#: field:survey.name.wiz,transfer:0 +msgid "Page Transfer" +msgstr "" + +#. module: survey +#: selection:survey.response.line,state:0 +msgid "Skiped" +msgstr "" + +#. module: survey +#: field:survey.print,paper_size:0 +#: field:survey.print.answer,paper_size:0 +msgid "Paper Size" +msgstr "" + +#. module: survey +#: field:survey.response.answer,column_id:0 +#: field:survey.tbl.column.heading,column_id:0 +msgid "Column" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_response_line +msgid "Survey Response Line" +msgstr "" + +#. module: survey +#: code:addons/survey/wizard/survey_selection.py:66 +#, python-format +msgid "You can not give response for this survey more than %s times" +msgstr "" + +#. module: survey +#: model:ir.actions.report.xml,name:survey.report_survey_form +#: model:ir.model,name:survey.model_survey +#: view:survey:0 +#: view:survey.browse.answer:0 +#: field:survey.browse.answer,survey_id:0 +#: field:survey.history,survey_id:0 +#: view:survey.name.wiz:0 +#: field:survey.name.wiz,survey_id:0 +#: view:survey.page:0 +#: field:survey.page,survey_id:0 +#: view:survey.print:0 +#: field:survey.print,survey_ids:0 +#: field:survey.print.statistics,survey_ids:0 +#: field:survey.question,survey:0 +#: view:survey.request:0 +#: field:survey.request,survey_id:0 +#: field:survey.response,survey_id:0 +msgid "Survey" +msgstr "" + +#. module: survey +#: field:survey.question,in_visible_rating_weight:0 +msgid "Is Rating Scale Invisible?" +msgstr "" + +#. module: survey +#: selection:survey.answer,type:0 +msgid "Integer" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Numerical Textboxes" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_question_wiz +msgid "survey.question.wiz" +msgstr "" + +#. module: survey +#: view:survey:0 +msgid "History" +msgstr "" + +#. module: survey +#: view:survey.request:0 +msgid "Late" +msgstr "" + +#. module: survey +#: field:survey.type,code:0 +msgid "Code" +msgstr "" + +#. module: survey +#: model:ir.ui.menu,name:survey.menu_print_survey_statistics +msgid "Surveys Statistics" +msgstr "" + +#. module: survey +#: field:survey.print,orientation:0 +#: field:survey.print.answer,orientation:0 +msgid "Orientation" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.answer:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "Seq" +msgstr "" + +#. module: survey +#: field:survey.request,email:0 +msgid "E-mail" +msgstr "" + +#. module: survey +#: field:survey.question,comment_minimum_no:0 +#: field:survey.question,validation_minimum_no:0 +msgid "Minimum number" +msgstr "" + +#. module: survey +#: field:survey.question,req_ans:0 +msgid "#Required Answer" +msgstr "" + +#. module: survey +#: field:survey.answer,sequence:0 +#: field:survey.question,sequence:0 +msgid "Sequence" +msgstr "" + +#. module: survey +#: field:survey.question,comment_label:0 +msgid "Field Label" +msgstr "" + +#. module: survey +#: view:survey:0 +msgid "Other" +msgstr "" + +#. module: survey +#: view:survey.request:0 +#: selection:survey.request,state:0 +msgid "Done" +msgstr "" + +#. module: survey +#: view:survey:0 +msgid "Test Survey" +msgstr "" + +#. module: survey +#: field:survey.question,rating_allow_one_column_require:0 +msgid "Allow Only One Answer per Column (Forced Ranking)" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.browse.answer:0 +#: view:survey.name.wiz:0 +#: view:survey.print:0 +#: view:survey.print.answer:0 +#: view:survey.print.statistics:0 +msgid "Cancel" +msgstr "" + +#. module: survey +#: view:survey:0 +msgid "Close" +msgstr "" + +#. module: survey +#: field:survey.question,comment_minimum_float:0 +#: field:survey.question,validation_minimum_float:0 +msgid "Minimum decimal number" +msgstr "" + +#. module: survey +#: view:survey:0 +#: selection:survey,state:0 +msgid "Open" +msgstr "" + +#. module: survey +#: field:survey,tot_start_survey:0 +msgid "Total Started Survey" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:463 +#, python-format +msgid "" +"#Required Answer you entered is greater than the number of answer. Please " +"use a number that is smaller than %d." +msgstr "" + +#. module: survey +#: help:survey,max_response_limit:0 +msgid "Set to one if survey is answerable only once" +msgstr "" + +#. module: survey +#: selection:survey.response,state:0 +msgid "Finished " +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_question_column_heading +msgid "Survey Question Column Heading" +msgstr "" + +#. module: survey +#: field:survey.answer,average:0 +msgid "#Avg" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Matrix of Choices (Multiple Answers Per Row)" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_view_survey_name +msgid "Give Survey Answer" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_res_users +msgid "res.users" +msgstr "" + +#. module: survey +#: help:survey.browse.answer,response_id:0 +msgid "" +"If this field is empty, all answers of the selected survey will be print." +msgstr "" + +#. module: survey +#: selection:survey.response.line,state:0 +msgid "Answered" +msgstr "" + +#. module: survey +#: code:addons/survey/wizard/survey_answer.py:419 +#, python-format +msgid "Complete Survey Answer" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Comment/Essay Box" +msgstr "" + +#. module: survey +#: field:survey.answer,type:0 +msgid "Type of Answer" +msgstr "" + +#. module: survey +#: field:survey.question,required_type:0 +msgid "Respondent must answer" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_view_survey_send_invitation +#: view:survey.send.invitation:0 +msgid "Send Invitation" +msgstr "" + +#. module: survey +#: code:addons/survey/wizard/survey_answer.py:761 +#, python-format +msgid "You cannot select the same answer more than one time" +msgstr "" + +#. module: survey +#: view:survey.question:0 +msgid "Search Question" +msgstr "" + +#. module: survey +#: field:survey,title:0 +msgid "Survey Title" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Single Textbox" +msgstr "" + +#. module: survey +#: view:survey:0 +#: field:survey,note:0 +#: field:survey.name.wiz,note:0 +#: view:survey.page:0 +#: field:survey.page,note:0 +#: view:survey.response.line:0 +msgid "Description" +msgstr "" + +#. module: survey +#: view:survey.name.wiz:0 +msgid "Select Survey" +msgstr "" + +#. module: survey +#: selection:survey.question,required_type:0 +msgid "At Least" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_view_survey_send_invitation_log +#: model:ir.model,name:survey.model_survey_send_invitation_log +msgid "survey.send.invitation.log" +msgstr "" + +#. module: survey +#: selection:survey.print,orientation:0 +#: selection:survey.print.answer,orientation:0 +msgid "Portrait(Vertical)" +msgstr "" + +#. module: survey +#: selection:survey.question,comment_valid_type:0 +#: selection:survey.question,validation_type:0 +msgid "Must Be Specific Length" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: field:survey.question,page_id:0 +msgid "Survey Page" +msgstr "" + +#. module: survey +#: view:survey:0 +#: view:survey.page:0 +#: view:survey.question:0 +msgid "Required Answer" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:469 +#, python-format +msgid "" +"Minimum Required Answer you entered is greater than the number of answer. " +"Please use a number that is smaller than %d." +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:454 +#, python-format +msgid "You must enter one or more answer." +msgstr "" + +#. module: survey +#: view:survey:0 +msgid "All Open Survey" +msgstr "" + +#. module: survey +#: model:ir.actions.report.xml,name:survey.survey_browse_response +#: field:survey.browse.answer,response_id:0 +msgid "Survey Answers" +msgstr "" + +#. module: survey +#: view:survey.browse.answer:0 +msgid "Select Survey and related answer" +msgstr "" + +#. module: survey +#: model:ir.ui.menu,name:survey.menu_print_survey_answer +msgid "Surveys Answers" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.act_survey_pages +msgid "Pages" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:402 +#, python-format +msgid "" +"#Required Answer you entered is greater " +"than the number of answer. Please use a " +"number that is smaller than %d." +msgstr "" + +#. module: survey +#: code:addons/survey/wizard/survey_answer.py:953 +#, python-format +msgid "You cannot select same answer more than one time'" +msgstr "" + +#. module: survey +#: selection:survey.print,paper_size:0 +#: selection:survey.print.answer,paper_size:0 +msgid "Legal (8.5\" x 14\")" +msgstr "" + +#. module: survey +#: field:survey.type,name:0 +msgid "Name" +msgstr "" + +#. module: survey +#: view:survey.page:0 +msgid "#Questions" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_response +msgid "survey.response" +msgstr "" + +#. module: survey +#: field:survey.question,comment_valid_err_msg:0 +#: field:survey.question,make_comment_field_err_msg:0 +#: field:survey.question,numeric_required_sum_err_msg:0 +#: field:survey.question,validation_valid_err_msg:0 +msgid "Error message" +msgstr "" + +#. module: survey +#: view:survey.send.invitation:0 +#: field:survey.send.invitation,send_mail:0 +msgid "Send mail for new user" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:383 +#, python-format +msgid "You must enter one or more Answer." +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:412 +#, python-format +msgid "" +"Minimum Required Answer you entered is " +"greater than the number of answer. Please " +"use a number that is smaller than %d." +msgstr "" + +#. module: survey +#: field:survey.answer,menu_choice:0 +msgid "Menu Choices" +msgstr "" + +#. module: survey +#: field:survey,id:0 +msgid "ID" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:434 +#, python-format +msgid "" +"Maximum Required Answer is greater than " +"Minimum Required Answer" +msgstr "" + +#. module: survey +#: view:survey.send.invitation.log:0 +msgid "User creation" +msgstr "" + +#. module: survey +#: selection:survey.question,required_type:0 +msgid "All" +msgstr "" + +#. module: survey +#: selection:survey.question,comment_valid_type:0 +#: selection:survey.question,validation_type:0 +msgid "Must Be An Email Address" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +msgid "Multiple Choice (Only One Answer)" +msgstr "" + +#. module: survey +#: field:survey.answer,in_visible_answer_type:0 +msgid "Is Answer Type Invisible??" +msgstr "" + +#. module: survey +#: model:ir.model,name:survey.model_survey_print_answer +msgid "survey.print.answer" +msgstr "" + +#. module: survey +#: view:survey.answer:0 +msgid "Menu Choices (each choice on separate by lines)" +msgstr "" + +#. module: survey +#: selection:survey.answer,type:0 +msgid "Float" +msgstr "" + +#. module: survey +#: view:survey.response.line:0 +msgid "Single Textboxes" +msgstr "" + +#. module: survey +#: code:addons/survey/wizard/survey_send_invitation.py:74 +#, python-format +msgid "%sSurvey is not in open state" +msgstr "" + +#. module: survey +#: field:survey.question.column.heading,rating_weight:0 +msgid "Weight" +msgstr "" + +#. module: survey +#: selection:survey.answer,type:0 +msgid "Date & Time" +msgstr "" + +#. module: survey +#: field:survey.response,date_create:0 +#: field:survey.response.line,date_create:0 +msgid "Create Date" +msgstr "" + +#. module: survey +#: field:survey.question,column_name:0 +msgid "Column Name" +msgstr "" + +#. module: survey +#: model:ir.actions.act_window,name:survey.action_survey_page_form +#: model:ir.model,name:survey.model_survey_page +#: model:ir.ui.menu,name:survey.menu_survey_page_form1 +#: view:survey.page:0 +msgid "Survey Pages" +msgstr "" + +#. module: survey +#: field:survey.question,numeric_required_sum:0 +msgid "Sum of all choices" +msgstr "" + +#. module: survey +#: selection:survey.question,type:0 +#: view:survey.response.line:0 +msgid "Table" +msgstr "" + +#. module: survey +#: code:addons/survey/survey.py:643 +#, python-format +msgid "You cannot duplicate the resource!" +msgstr "" + +#. module: survey +#: field:survey.question,comment_minimum_date:0 +#: field:survey.question,validation_minimum_date:0 +msgid "Minimum date" +msgstr "" + +#. module: survey +#: field:survey,response_user:0 +msgid "Maximum Answer per User" +msgstr "" + +#. module: survey +#: field:survey.name.wiz,page:0 +msgid "Page Position" +msgstr "" + +#~ msgid "Set to draft" +#~ msgstr "وضعه كمسودة" + +#~ msgid "Send" +#~ msgstr "إرسال" From 7d11edee231e341df3f91f25de0c723acb9e0266 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 16 Jan 2012 15:06:02 +0100 Subject: [PATCH 10/40] [FIX] link between binary field and its name is @filename, not @fieldname bzr revid: xmo@openerp.com-20120116140602-c25sjyrp3l6wpnow --- addons/account_coda/account_coda_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account_coda/account_coda_view.xml b/addons/account_coda/account_coda_view.xml index dad84f8f727..0df8d0acdb4 100644 --- a/addons/account_coda/account_coda_view.xml +++ b/addons/account_coda/account_coda_view.xml @@ -243,7 +243,7 @@ - + From 4d208734ec79a5d2fc8e9a3c4507c517d19fb8e2 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Mon, 16 Jan 2012 19:33:28 +0100 Subject: [PATCH 11/40] =?UTF-8?q?[FIX]=C2=A0missing=20imports=20and=20typo?= =?UTF-8?q?=20in=20=5F=5Fall=5F=5F.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bzr revid: florent.xicluna@gmail.com-20120116183328-m9isnoipj8taeke3 --- addons/web/__init__.py | 1 - addons/web/common/nonliterals.py | 2 +- addons/web/common/xml2json.py | 3 +++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/web/__init__.py b/addons/web/__init__.py index b09c8c213bc..36dead8ab74 100644 --- a/addons/web/__init__.py +++ b/addons/web/__init__.py @@ -1,7 +1,6 @@ import common import controllers import logging -import optparse _logger = logging.getLogger(__name__) diff --git a/addons/web/common/nonliterals.py b/addons/web/common/nonliterals.py index f6e81894a4c..0f5248edf33 100644 --- a/addons/web/common/nonliterals.py +++ b/addons/web/common/nonliterals.py @@ -8,7 +8,7 @@ import binascii import hashlib import simplejson.encoder -__all__ = ['Domain', 'Context', 'NonLiteralEncoder, non_literal_decoder', 'CompoundDomain', 'CompoundContext'] +__all__ = ['Domain', 'Context', 'NonLiteralEncoder', 'non_literal_decoder', 'CompoundDomain', 'CompoundContext'] #: 48 bits should be sufficient to have almost no chance of collision #: with a million hashes, according to hg@67081329d49a diff --git a/addons/web/common/xml2json.py b/addons/web/common/xml2json.py index 1f2e74691b9..d67d78480d4 100644 --- a/addons/web/common/xml2json.py +++ b/addons/web/common/xml2json.py @@ -3,6 +3,9 @@ # New BSD Licensed # # URL: http://code.google.com/p/xml2json-direct/ +import simplejson +from xml.etree import ElementTree + class Xml2Json(object): @staticmethod From 5cb4d484d8158c776591b2ec08953453f661bfa6 Mon Sep 17 00:00:00 2001 From: Launchpad Translations on behalf of openerp <> Date: Tue, 17 Jan 2012 05:08:29 +0000 Subject: [PATCH 12/40] Launchpad automatic translations update. bzr revid: launchpad_translations_on_behalf_of_openerp-20120117050829-rk831bjkq228jk0l --- addons/web/po/pt_BR.po | 36 +++++++++++++++++++++++------ addons/web_dashboard/po/pt_BR.po | 32 +++++++++++++------------ addons/web_default_home/po/pt_BR.po | 4 ++-- 3 files changed, 48 insertions(+), 24 deletions(-) diff --git a/addons/web/po/pt_BR.po b/addons/web/po/pt_BR.po index 4be0c66826c..eb3e427a769 100644 --- a/addons/web/po/pt_BR.po +++ b/addons/web/po/pt_BR.po @@ -8,15 +8,14 @@ msgstr "" "Project-Id-Version: openerp-web\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-12-20 18:48+0100\n" -"PO-Revision-Date: 2012-01-15 02:47+0000\n" -"Last-Translator: Renato Lima - http://www.akretion.com " -"\n" +"PO-Revision-Date: 2012-01-16 13:38+0000\n" +"Last-Translator: Rafael Sales \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-01-16 05:27+0000\n" -"X-Generator: Launchpad (build 14664)\n" +"X-Launchpad-Export-Date: 2012-01-17 05:08+0000\n" +"X-Generator: Launchpad (build 14676)\n" #: addons/web/static/src/js/chrome.js:162 #: addons/web/static/src/js/chrome.js:175 @@ -626,7 +625,7 @@ msgstr "Visão de Depuração#" #: addons/web/static/src/xml/base.xml:0 msgid "- Fields View Get" -msgstr "" +msgstr "- Fields View Get" #: addons/web/static/src/xml/base.xml:0 msgid "- Edit" @@ -786,7 +785,7 @@ msgstr "Botão" #: addons/web/static/src/xml/base.xml:0 msgid "(no string)" -msgstr "" +msgstr "(sem string)" #: addons/web/static/src/xml/base.xml:0 msgid "Special:" @@ -875,6 +874,10 @@ msgid "" " You can export all data or only the fields that can be " "reimported after modification." msgstr "" +"Este assistente irá exportar todos os dados que corresponda aos critérios de " +"pesquisa atual em um arquivo CSV.\n" +" Você pode exportar todos os dados ou apenas os campos que podem " +"ser reimportados após a modificação." #: addons/web/static/src/xml/base.xml:0 msgid "Export Type:" @@ -945,6 +948,10 @@ msgid "" "Select a .CSV file to import. If you need a sample of file to import,\n" " you should use the export tool with the \"Import Compatible\" option." msgstr "" +"Selecionar um arquivo .CSV para importar. Se você precisar de uma amostra do " +"arquivo para importação,\n" +" você deve usar a ferramenta de exportação com a opção \"Importação " +"Compatível\"." #: addons/web/static/src/xml/base.xml:0 msgid "CSV File:" @@ -1039,6 +1046,13 @@ msgid "" "supply chain,\n" " project management, production, services, CRM, etc..." msgstr "" +"é um sistema de software livre de escala empresarial que é projetado para " +"aumentar\n" +" produtividade e lucro através da integração de dados. Ele se " +"conecta, melhora e\n" +" gerencia os processos de negócio em áreas como vendas, " +"finanças, supply chain,\n" +" gerenciamento de projetos, produção, serviços, CRM, etc .." #: addons/web/static/src/xml/base.xml:0 msgid "" @@ -1051,6 +1065,14 @@ msgid "" " production system and migration to a new version to be " "straightforward." msgstr "" +"É um sistema independente de plataforma, onde pode ser instalado em " +"ambientes Windows, Mac OS X,\n" +" e várias distribuições Linux ou baseadas em Unix. Sua " +"arquitetura permite que\n" +" novas funcionalidades sejam criadas rapidamente, e modificações " +"possam ser realizadas em um\n" +" sistema de produção e sua migração para uma nova versão de " +"forma simples." #: addons/web/static/src/xml/base.xml:0 msgid "" diff --git a/addons/web_dashboard/po/pt_BR.po b/addons/web_dashboard/po/pt_BR.po index 2d089f77849..615b35f2306 100644 --- a/addons/web_dashboard/po/pt_BR.po +++ b/addons/web_dashboard/po/pt_BR.po @@ -8,34 +8,34 @@ msgstr "" "Project-Id-Version: openerp-web\n" "Report-Msgid-Bugs-To: FULL NAME \n" "POT-Creation-Date: 2011-12-20 18:48+0100\n" -"PO-Revision-Date: 2012-01-14 15:57+0000\n" +"PO-Revision-Date: 2012-01-16 13:49+0000\n" "Last-Translator: Rafael Sales \n" "Language-Team: Brazilian Portuguese \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-01-15 05:35+0000\n" -"X-Generator: Launchpad (build 14664)\n" +"X-Launchpad-Export-Date: 2012-01-17 05:08+0000\n" +"X-Generator: Launchpad (build 14676)\n" #: addons/web_dashboard/static/src/js/dashboard.js:63 msgid "Edit Layout" -msgstr "" +msgstr "Editar Layout" #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "Reset" -msgstr "" +msgstr "Restaurar" #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "Change layout" -msgstr "" +msgstr "Mudar Layout" #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid " " -msgstr "" +msgstr " " #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "Create" -msgstr "" +msgstr "Criar" #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "Choose dashboard layout" @@ -43,34 +43,36 @@ msgstr "Escolha o Layout do Painel" #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "progress:" -msgstr "" +msgstr "progresso:" #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "%" -msgstr "" +msgstr "%" #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "" "Click on the functionalites listed below to launch them and configure your " "system" msgstr "" +"Clique em alguma funcionalidade listada abaixo para ativa-lá e configurar no " +"seu sistema" #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "Welcome to OpenERP" -msgstr "" +msgstr "Bem Vindo ao OpenERP" #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "Remember to bookmark this page." -msgstr "" +msgstr "Lembre-se de adicionar esta página as seus favoritos." #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "Remember your login:" -msgstr "" +msgstr "Lembre-se de seu login:" #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "Choose the first OpenERP Application you want to install.." -msgstr "" +msgstr "Escolha a primeira Aplicação OpenERP que você deseja instalar.." #: addons/web_dashboard/static/src/xml/web_dashboard.xml:0 msgid "Please choose the first application to install." -msgstr "" +msgstr "Por favor, escolha a primeira aplicação para instalar." diff --git a/addons/web_default_home/po/pt_BR.po b/addons/web_default_home/po/pt_BR.po index 286fdf4f1e0..0d245f81e9d 100644 --- a/addons/web_default_home/po/pt_BR.po +++ b/addons/web_default_home/po/pt_BR.po @@ -14,8 +14,8 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Launchpad-Export-Date: 2012-01-16 05:27+0000\n" -"X-Generator: Launchpad (build 14664)\n" +"X-Launchpad-Export-Date: 2012-01-17 05:08+0000\n" +"X-Generator: Launchpad (build 14676)\n" #: addons/web_default_home/static/src/xml/web_default_home.xml:0 msgid "Welcome to your new OpenERP instance." From 20e0358e9ce18ab27d6ea7e57a29f32d60eb793d Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 09:58:12 +0100 Subject: [PATCH 13/40] [FIX] finish implementing xmo@openerp.com-20120116095337-ko0y6xha6oqx4vw1 for real bzr revid: xmo@openerp.com-20120117085812-gh3cowtxfcs84sss --- addons/web/static/src/js/data_export.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/web/static/src/js/data_export.js b/addons/web/static/src/js/data_export.js index 78be735edc7..3d15a4e3607 100644 --- a/addons/web/static/src/js/data_export.js +++ b/addons/web/static/src/js/data_export.js @@ -364,9 +364,8 @@ openerp.web.DataExport = openerp.web.Dialog.extend({ on_click_export_data: function() { var self = this; var exported_fields = this.$element.find('#fields_list option').map(function () { - var name = self.records[this.value] || this.value // DOM property is textContent, but IE8 only knows innerText - return {name: this.value, + return {name: self.records[this.value] || this.value, label: this.textContent || this.innerText}; }).get(); From e99358e2fa673e611ca4fd94d849151a0374d89f Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 10:47:48 +0100 Subject: [PATCH 14/40] [IMP] Xml2JSON: remove useless class indirection and unused methods bzr revid: xmo@openerp.com-20120117094748-g9470elsdpx78im8 --- addons/web/common/xml2json.py | 54 +++++++++++++--------------------- addons/web/controllers/main.py | 2 +- 2 files changed, 21 insertions(+), 35 deletions(-) diff --git a/addons/web/common/xml2json.py b/addons/web/common/xml2json.py index ab134b09786..df3aad67fa5 100644 --- a/addons/web/common/xml2json.py +++ b/addons/web/common/xml2json.py @@ -3,38 +3,24 @@ # New BSD Licensed # # URL: http://code.google.com/p/xml2json-direct/ -import simplejson -from xml.etree import ElementTree -class Xml2Json(object): - @staticmethod - def convert_to_json(s): - return simplejson.dumps( - Xml2Json.convert_to_structure(s), sort_keys=True, indent=4) - - @staticmethod - def convert_to_structure(s): - root = ElementTree.fromstring(s) - return Xml2Json.convert_element(root) - - @staticmethod - def convert_element(el, preserve_whitespaces=False): - res = {} - if el.tag[0] == "{": - ns, name = el.tag.rsplit("}", 1) - res["tag"] = name - res["namespace"] = ns[1:] - else: - res["tag"] = el.tag - res["attrs"] = {} - for k, v in el.items(): - res["attrs"][k] = v - kids = [] - if el.text and (preserve_whitespaces or el.text.strip() != ''): - kids.append(el.text) - for kid in el: - kids.append(Xml2Json.convert_element(kid, preserve_whitespaces)) - if kid.tail and (preserve_whitespaces or kid.tail.strip() != ''): - kids.append(kid.tail) - res["children"] = kids - return res +def from_elementtree(el, preserve_whitespaces=False): + res = {} + if el.tag[0] == "{": + ns, name = el.tag.rsplit("}", 1) + res["tag"] = name + res["namespace"] = ns[1:] + else: + res["tag"] = el.tag + res["attrs"] = {} + for k, v in el.items(): + res["attrs"][k] = v + kids = [] + if el.text and (preserve_whitespaces or el.text.strip() != ''): + kids.append(el.text) + for kid in el: + kids.append(from_elementtree(kid, preserve_whitespaces)) + if kid.tail and (preserve_whitespaces or kid.tail.strip() != ''): + kids.append(kid.tail) + res["children"] = kids + return res diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 191f184da5b..7b2ad5b311c 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -933,7 +933,7 @@ class View(openerpweb.Controller): xml = self.transform_view(arch, session, evaluation_context) else: xml = ElementTree.fromstring(arch) - fvg['arch'] = web.common.xml2json.Xml2Json.convert_element(xml, preserve_whitespaces) + fvg['arch'] = web.common.xml2json.from_elementtree(xml, preserve_whitespaces) for field in fvg['fields'].itervalues(): if field.get('views'): From 246fee51c655adb4a1dd64f39db191299199ecc9 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 17 Jan 2012 11:32:17 +0100 Subject: [PATCH 15/40] [IMP] Updated jquery.tipTip bzr revid: fme@openerp.com-20120117103217-jmjhm6i1baaljmty --- .../lib/jquery.tipTip/jquery.tipTip.fme.patch | 58 -- .../static/lib/jquery.tipTip/jquery.tipTip.js | 513 +++++++++++------- .../lib/jquery.tipTip/jquery.tipTip_old.js | 191 ------- .../web/static/lib/jquery.tipTip/tipTip.css | 27 +- addons/web/static/src/js/view_form.js | 1 - 5 files changed, 345 insertions(+), 445 deletions(-) delete mode 100644 addons/web/static/lib/jquery.tipTip/jquery.tipTip.fme.patch delete mode 100644 addons/web/static/lib/jquery.tipTip/jquery.tipTip_old.js diff --git a/addons/web/static/lib/jquery.tipTip/jquery.tipTip.fme.patch b/addons/web/static/lib/jquery.tipTip/jquery.tipTip.fme.patch deleted file mode 100644 index 1a62870a6b0..00000000000 --- a/addons/web/static/lib/jquery.tipTip/jquery.tipTip.fme.patch +++ /dev/null @@ -1,58 +0,0 @@ ---- jquery.tipTip_old.js 2011-12-01 14:15:35.000000000 +0100 -+++ jquery.tipTip.js 2011-12-07 12:32:32.000000000 +0100 -@@ -20,6 +20,9 @@ - */ - - (function($){ -+ $.tipTipClear = function() { -+ $("#tiptip_holder").remove(); -+ } - $.fn.tipTip = function(options) { - var defaults = { - activation: "hover", -@@ -31,7 +34,7 @@ - fadeIn: 200, - fadeOut: 200, - attribute: "title", -- content: false, // HTML or String to fill TipTIp with -+ content: false, // HTML String or function to fill TipTIp with - enter: function(){}, - exit: function(){} - }; -@@ -51,12 +54,7 @@ - - return this.each(function(){ - var org_elem = $(this); -- if(opts.content){ -- var org_title = opts.content; -- } else { -- var org_title = org_elem.attr(opts.attribute); -- } -- if(org_title != ""){ -+ if(opts.content || org_elem.attr(opts.attribute)){ - if(!opts.content){ - org_elem.removeAttr(opts.attribute); //remove original Attribute - } -@@ -99,6 +97,8 @@ - - function active_tiptip(){ - opts.enter.call(this); -+ var org_title = typeof opts.content === 'function' ? opts.content.call(org_elem, opts) : opts.content; -+ org_title = org_title || org_elem.attr(opts.attribute); - tiptip_content.html(org_title); - tiptip_holder.hide().removeAttr("class").css("margin","0"); - tiptip_arrow.removeAttr("style"); -@@ -177,7 +177,12 @@ - tiptip_holder.css({"margin-left": marg_left+"px", "margin-top": marg_top+"px"}).attr("class","tip"+t_class); - - if (timeout){ clearTimeout(timeout); } -- timeout = setTimeout(function(){ tiptip_holder.stop(true,true).fadeIn(opts.fadeIn); }, opts.delay); -+ timeout = setTimeout(function() { -+ tiptip_holder.stop(true,true); -+ if ($.contains(document.documentElement, org_elem[0])) { -+ tiptip_holder.fadeIn(opts.fadeIn); -+ } -+ }, opts.delay); - } - - function deactive_tiptip(){ diff --git a/addons/web/static/lib/jquery.tipTip/jquery.tipTip.js b/addons/web/static/lib/jquery.tipTip/jquery.tipTip.js index 522df828003..ff8cc1b0ba6 100644 --- a/addons/web/static/lib/jquery.tipTip/jquery.tipTip.js +++ b/addons/web/static/lib/jquery.tipTip/jquery.tipTip.js @@ -1,196 +1,325 @@ - /* - * TipTip - * Copyright 2010 Drew Wilson - * www.drewwilson.com - * code.drewwilson.com/entry/tiptip-jquery-plugin - * - * Version 1.3 - Updated: Mar. 23, 2010 - * - * This Plug-In will create a custom tooltip to replace the default - * browser tooltip. It is extremely lightweight and very smart in - * that it detects the edges of the browser window and will make sure - * the tooltip stays within the current window size. As a result the - * tooltip will adjust itself to be displayed above, below, to the left - * or to the right depending on what is necessary to stay within the - * browser window. It is completely customizable as well via CSS. - * - * This TipTip jQuery plug-in is dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - */ +/* +* TipTip +* Copyright 2010 Drew Wilson +* www.drewwilson.com +* code.drewwilson.com/entry/tiptip-jquery-plugin +* +* Version 1.3 - Updated: Mar. 23, 2010 +* +* This Plug-In will create a custom tooltip to replace the default +* browser tooltip. It is extremely lightweight and very smart in +* that it detects the edges of the browser window and will make sure +* the tooltip stays within the current window size. As a result the +* tooltip will adjust itself to be displayed above, below, to the left +* or to the right depending on what is necessary to stay within the +* browser window. It is completely customizable as well via CSS. +* +* This TipTip jQuery plug-in is dual licensed under the MIT and GPL licenses: +* http://www.opensource.org/licenses/mit-license.php +* http://www.gnu.org/licenses/gpl.html +*/ -(function($){ - $.tipTipClear = function() { - $("#tiptip_holder").remove(); +(function ($) { + $.fn.tipTip = function (options) { + + var defaults = { + activation: 'hover', // How to show (and hide) the tooltip. Can be: hover, focus, click and manual. + keepAlive: false, // When true the tooltip won't disapper when the mouse moves away from the element. Instead it will be hidden when it leaves the tooltip. + maxWidth: '200px', // The max-width to set on the tooltip. You may also use the option cssClass to set this. + edgeOffset: 0, // The offset between the tooltip arrow edge and the element that has the tooltip. + defaultPosition: 'bottom', // The position of the tooltip. Can be: top, right, bottom and left. + delay: 400, // The delay in msec to show a tooltip. + fadeIn: 200, // The length in msec of the fade in. + fadeOut: 200, // The length in msec of the fade out. + attribute: 'title', // The attribute to fetch the tooltip text if the option content is false. + content: false, // HTML or String or Function (that returns HTML or String) to fill TipTIp with + enter: function () { }, // Callback function before a tooltip is shown. + afterEnter: function () { }, // Callback function after a tooltip is shown. + exit: function () { }, // Callback function before a tooltip is hidden. + afterExit: function () { }, // Callback function after a tooltip is hidden. + cssClass: '', // CSS class that will be applied on the tooltip before showing only for this instance of tooltip. + detectTextDir: true // When false auto-detection for right-to-left text will be disable (When true affects a bit the performance). + }; + + // Setup tip tip elements and render them to the DOM + if ($('#tiptip_holder').length <= 0) { + var tiptip_inner_arrow = $('
', { id: 'tiptip_arrow_inner' }), + tiptip_arrow = $('
', { id: 'tiptip_arrow' }).append(tiptip_inner_arrow), + tiptip_content = $('
', { id: 'tiptip_content' }), + tiptip_holder = $('
', { id: 'tiptip_holder' }).append(tiptip_arrow).append(tiptip_content); + $('body').append(tiptip_holder); + } else { + var tiptip_holder = $('#tiptip_holder'), + tiptip_content = $('#tiptip_content'), + tiptip_arrow = $('#tiptip_arrow'); + } + + return this.each(function () { + var org_elem = $(this), + data = org_elem.data('tipTip'), + opts = data && data.options || $.extend({}, defaults, options), + callback_data = { + holder: tiptip_holder, + content: tiptip_content, + arrow: tiptip_arrow, + options: opts + }; + + if (data) { + switch (options) { + case 'show': + activate(); + break; + case 'hide': + deactivate(); + break; + case 'destroy': + org_elem.unbind('.tipTip').removeData('tipTip'); + break; + case 'position': + position_tiptip(); + } + } else { + var timeout = false; + + org_elem.data('tipTip', { options: opts }); + + if (opts.activation == 'hover') { + org_elem.bind('mouseenter.tipTip', function () { + activate(); + }).bind('mouseleave.tipTip', function () { + if (!opts.keepAlive) { + deactivate(); + } else { + tiptip_holder.one('mouseleave.tipTip', function () { + deactivate(); + }); + } + }); + } else if (opts.activation == 'focus') { + org_elem.bind('focus.tipTip', function () { + activate(); + }).bind('blur.tipTip', function () { + deactivate(); + }); + } else if (opts.activation == 'click') { + org_elem.bind('click.tipTip', function (e) { + e.preventDefault(); + activate(); + return false; + }).bind('mouseleave.tipTip', function () { + if (!opts.keepAlive) { + deactivate(); + } else { + tiptip_holder.one('mouseleave.tipTip', function () { + deactivate(); + }); + } + }); + } else if (opts.activation == 'manual') { + // Nothing to register actually. We decide when to show or hide. + } + } + + function activate() { + if (opts.enter.call(org_elem, callback_data) === false) { + return; + } + + // Get the text and append it in the tiptip_content. + var org_title; + if (opts.content) { + org_title = $.isFunction(opts.content) ? opts.content.call(org_elem, callback_data) : opts.content; + } else { + org_title = opts.content = org_elem.attr(opts.attribute); + org_elem.removeAttr(opts.attribute); //remove original Attribute + } + if (!org_title) { + return; // don't show tip when no content. + } + + tiptip_content.html(org_title); + tiptip_holder.hide().removeAttr('class').css({ 'max-width': opts.maxWidth }); + if (opts.cssClass) { + tiptip_holder.addClass(opts.cssClass); + } + + // Calculate the position of the tooltip. + position_tiptip(); + + // Show the tooltip. + if (timeout) { + clearTimeout(timeout); + } + + timeout = setTimeout(function () { + tiptip_holder.stop(true, true).fadeIn(opts.fadeIn); + }, opts.delay); + + $(window).bind('resize.tipTip scroll.tipTip', position_tiptip); + + // Ensure clicking on anything makes tipTip deactivate + $(document).unbind("click.tipTip dblclick.tipTip").bind("click.tiptip dblclick.tiptip", deactivate); + + + org_elem.addClass('tiptip_visible'); // Add marker class to easily find the target element with visible tooltip. It will be remove later on deactivate(). + + opts.afterEnter.call(org_elem, callback_data); + } + + function deactivate() { + if (opts.exit.call(org_elem, callback_data) === false) { + return; + } + + if (timeout) { + clearTimeout(timeout); + } + + tiptip_holder.fadeOut(opts.fadeOut); + + $(window).unbind('resize.tipTip scroll.tipTip'); + $(document).unbind("click.tipTip").unbind("dblclick.tipTip"); + + org_elem.removeClass('tiptip_visible'); + + opts.afterExit.call(org_elem, callback_data); + } + + function position_tiptip() { + var org_offset = org_elem.offset(), + org_top = org_offset.top, + org_left = org_offset.left, + org_width = org_elem.outerWidth(), + org_height = org_elem.outerHeight(), + tip_top, + tip_left, + tip_width = tiptip_holder.outerWidth(), + tip_height = tiptip_holder.outerHeight(), + tip_class, + tip_classes = { top: 'tip_top', bottom: 'tip_bottom', left: 'tip_left', right: 'tip_right' }, + arrow_top, + arrow_left, + arrow_width = 12, // tiptip_arrow.outerHeight() and tiptip_arrow.outerWidth() don't work because they need the element to be visible. + arrow_height = 12, + win = $(window), + win_top = win.scrollTop(), + win_left = win.scrollLeft(), + win_width = win.width(), + win_height = win.height(), + is_rtl = opts.detectTextDir && isRtlText(tiptip_content.text()); + + function moveTop() { + tip_class = tip_classes.top; + tip_top = org_top - tip_height - opts.edgeOffset - (arrow_height / 2); + tip_left = org_left + ((org_width - tip_width) / 2); + } + + function moveBottom() { + tip_class = tip_classes.bottom; + tip_top = org_top + org_height + opts.edgeOffset + (arrow_height / 2); + tip_left = org_left + ((org_width - tip_width) / 2); + } + + function moveLeft() { + tip_class = tip_classes.left; + tip_top = org_top + ((org_height - tip_height) / 2); + tip_left = org_left - tip_width - opts.edgeOffset - (arrow_width / 2); + } + + function moveRight() { + tip_class = tip_classes.right; + tip_top = org_top + ((org_height - tip_height) / 2); + tip_left = org_left + org_width + opts.edgeOffset + (arrow_width / 2); + } + + // Calculate the position of the tooltip. + if (opts.defaultPosition == 'bottom') { + moveBottom(); + } else if (opts.defaultPosition == 'top') { + moveTop(); + } else if (opts.defaultPosition == 'left' && !is_rtl) { + moveLeft(); + } else if (opts.defaultPosition == 'left' && is_rtl) { + moveRight(); + } else if (opts.defaultPosition == 'right' && !is_rtl) { + moveRight(); + } else if (opts.defaultPosition == 'right' && is_rtl) { + moveLeft(); + } else { + moveBottom(); + } + + // Flip the tooltip if off the window's viewport. (left <-> right and top <-> bottom). + if (tip_class == tip_classes.left && !is_rtl && tip_left < win_left) { + moveRight(); + } else if (tip_class == tip_classes.left && is_rtl && tip_left - tip_width < win_left) { + moveRight(); + } else if (tip_class == tip_classes.right && !is_rtl && tip_left > win_left + win_width) { + moveLeft(); + } else if (tip_class == tip_classes.right && is_rtl && tip_left + tip_width > win_left + win_width) { + moveLeft(); + } else if (tip_class == tip_classes.top && tip_top < win_top) { + moveBottom(); + } else if (tip_class == tip_classes.bottom && tip_top > win_top + win_height) { + moveTop(); + } + + // Fix the vertical position if the tooltip is off the top or bottom sides of the window's viewport. + if (tip_class == tip_classes.left || tip_class == tip_classes.right) { // If positioned left or right check if the tooltip is off the top or bottom window's viewport. + if (tip_top + tip_height > win_height + win_top) { // If the bottom edge of the tooltip is off the bottom side of the window's viewport. + tip_top = org_top + org_height > win_height + win_top ? org_top + org_height - tip_height : win_height + win_top - tip_height; // Make 'bottom edge of the tooltip' == 'bottom side of the window's viewport'. + } else if (tip_top < win_top) { // If the top edge of the tooltip if off the top side of the window's viewport. + tip_top = org_top < win_top ? org_top : win_top; // Make 'top edge of the tooltip' == 'top side of the window's viewport'. + } + } + + // Fix the horizontal position if the tooltip is off the right or left sides of the window's viewport. + if (tip_class == tip_classes.top || tip_class == tip_classes.bottom) { + if (tip_left + tip_width > win_width + win_left) { // If the right edge of the tooltip is off the right side of the window's viewport. + tip_left = org_left + org_width > win_width + win_left ? org_left + org_width - tip_width : win_width + win_left - tip_width; // Make 'right edge of the tooltip' == 'right side of the window's viewport'. + } else if (tip_left < win_left) { // If the left edge of the tooltip if off the left side of the window's viewport. + tip_left = org_left < win_left ? org_left : win_left; // Make 'left edge of the tooltip' == 'left side of the window's viewport'. + } + } + + // Apply the new position. + tiptip_holder + .css({ left: Math.round(tip_left), top: Math.round(tip_top) }) + .removeClass(tip_classes.top) + .removeClass(tip_classes.bottom) + .removeClass(tip_classes.left) + .removeClass(tip_classes.right) + .addClass(tip_class); + + // Position the arrow + if (tip_class == tip_classes.top) { + arrow_top = tip_height; // Position the arrow vertically on the top of the tooltip. + arrow_left = org_left - tip_left + ((org_width - arrow_width) / 2); // Center the arrow horizontally on the center of the target element. + } else if (tip_class == tip_classes.bottom) { + arrow_top = -arrow_height; // Position the arrow vertically on the bottom of the tooltip. + arrow_left = org_left - tip_left + ((org_width - arrow_width) / 2); // Center the arrow horizontally on the center of the target element. + } else if (tip_class == tip_classes.left) { + arrow_top = org_top - tip_top + ((org_height - arrow_height) / 2); // Center the arrow vertically on the center of the target element. + arrow_left = tip_width; // Position the arrow vertically on the left of the tooltip. + } else if (tip_class == tip_classes.right) { + arrow_top = org_top - tip_top + ((org_height - arrow_height) / 2); // Center the arrow vertically on the center of the target element. + arrow_left = -arrow_width; // Position the arrow vertically on the right of the tooltip. + } + + tiptip_arrow + .css({ left: Math.round(arrow_left), top: Math.round(arrow_top) }); + } + }); } - $.fn.tipTip = function(options) { - var defaults = { - activation: "hover", - keepAlive: false, - maxWidth: "200px", - edgeOffset: 3, - defaultPosition: "bottom", - delay: 400, - fadeIn: 200, - fadeOut: 200, - attribute: "title", - content: false, // HTML String or function to fill TipTIp with - enter: function(){}, - exit: function(){} - }; - var opts = $.extend(defaults, options); - - // Setup tip tip elements and render them to the DOM - if($("#tiptip_holder").length <= 0){ - var tiptip_holder = $('
'); - var tiptip_content = $('
'); - var tiptip_arrow = $('
'); - $("body").append(tiptip_holder.html(tiptip_content).prepend(tiptip_arrow.html('
'))); - } else { - var tiptip_holder = $("#tiptip_holder"); - var tiptip_content = $("#tiptip_content"); - var tiptip_arrow = $("#tiptip_arrow"); - } - - return this.each(function(){ - var org_elem = $(this); - if(opts.content || org_elem.attr(opts.attribute)){ - if(!opts.content){ - org_elem.removeAttr(opts.attribute); //remove original Attribute - } - var timeout = false; - - if(opts.activation == "hover"){ - org_elem.hover(function(){ - active_tiptip(); - }, function(){ - if(!opts.keepAlive){ - deactive_tiptip(); - } - }); - if(opts.keepAlive){ - tiptip_holder.hover(function(){}, function(){ - deactive_tiptip(); - }); - } - } else if(opts.activation == "focus"){ - org_elem.focus(function(){ - active_tiptip(); - }).blur(function(){ - deactive_tiptip(); - }); - } else if(opts.activation == "click"){ - org_elem.click(function(){ - active_tiptip(); - return false; - }).hover(function(){},function(){ - if(!opts.keepAlive){ - deactive_tiptip(); - } - }); - if(opts.keepAlive){ - tiptip_holder.hover(function(){}, function(){ - deactive_tiptip(); - }); - } - } - - function active_tiptip(){ - opts.enter.call(this); - var org_title = typeof opts.content === 'function' ? opts.content.call(org_elem, opts) : opts.content; - org_title = org_title || org_elem.attr(opts.attribute); - tiptip_content.html(org_title); - tiptip_holder.hide().removeAttr("class").css("margin","0"); - tiptip_arrow.removeAttr("style"); - - var top = parseInt(org_elem.offset()['top']); - var left = parseInt(org_elem.offset()['left']); - var org_width = parseInt(org_elem.outerWidth()); - var org_height = parseInt(org_elem.outerHeight()); - var tip_w = tiptip_holder.outerWidth(); - var tip_h = tiptip_holder.outerHeight(); - var w_compare = Math.round((org_width - tip_w) / 2); - var h_compare = Math.round((org_height - tip_h) / 2); - var marg_left = Math.round(left + w_compare); - var marg_top = Math.round(top + org_height + opts.edgeOffset); - var t_class = ""; - var arrow_top = ""; - var arrow_left = Math.round(tip_w - 12) / 2; - if(opts.defaultPosition == "bottom"){ - t_class = "_bottom"; - } else if(opts.defaultPosition == "top"){ - t_class = "_top"; - } else if(opts.defaultPosition == "left"){ - t_class = "_left"; - } else if(opts.defaultPosition == "right"){ - t_class = "_right"; - } - - var right_compare = (w_compare + left) < parseInt($(window).scrollLeft()); - var left_compare = (tip_w + left) > parseInt($(window).width()); - - if((right_compare && w_compare < 0) || (t_class == "_right" && !left_compare) || (t_class == "_left" && left < (tip_w + opts.edgeOffset + 5))){ - t_class = "_right"; - arrow_top = Math.round(tip_h - 13) / 2; - arrow_left = -12; - marg_left = Math.round(left + org_width + opts.edgeOffset); - marg_top = Math.round(top + h_compare); - } else if((left_compare && w_compare < 0) || (t_class == "_left" && !right_compare)){ - t_class = "_left"; - arrow_top = Math.round(tip_h - 13) / 2; - arrow_left = Math.round(tip_w); - marg_left = Math.round(left - (tip_w + opts.edgeOffset + 5)); - marg_top = Math.round(top + h_compare); - } + var ltrChars = 'A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02B8\u0300-\u0590\u0800-\u1FFF\u2C00-\uFB1C\uFDFE-\uFE6F\uFEFD-\uFFFF', + rtlChars = '\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC', + rtlDirCheckRe = new RegExp('^[^' + ltrChars + ']*[' + rtlChars + ']'); + + function isRtlText(text) { + return rtlDirCheckRe.test(text); + }; + +})(jQuery); - var top_compare = (top + org_height + opts.edgeOffset + tip_h + 8) > parseInt($(window).height() + $(window).scrollTop()); - var bottom_compare = ((top + org_height) - (opts.edgeOffset + tip_h + 8)) < 0; - - if(top_compare || (t_class == "_bottom" && top_compare) || (t_class == "_top" && !bottom_compare)){ - if(t_class == "_top" || t_class == "_bottom"){ - t_class = "_top"; - } else { - t_class = t_class+"_top"; - } - arrow_top = tip_h; - marg_top = Math.round(top - (tip_h + 5 + opts.edgeOffset)); - } else if(bottom_compare | (t_class == "_top" && bottom_compare) || (t_class == "_bottom" && !top_compare)){ - if(t_class == "_top" || t_class == "_bottom"){ - t_class = "_bottom"; - } else { - t_class = t_class+"_bottom"; - } - arrow_top = -12; - marg_top = Math.round(top + org_height + opts.edgeOffset); - } - - if(t_class == "_right_top" || t_class == "_left_top"){ - marg_top = marg_top + 5; - } else if(t_class == "_right_bottom" || t_class == "_left_bottom"){ - marg_top = marg_top - 5; - } - if(t_class == "_left_top" || t_class == "_left_bottom"){ - marg_left = marg_left + 5; - } - tiptip_arrow.css({"margin-left": arrow_left+"px", "margin-top": arrow_top+"px"}); - tiptip_holder.css({"margin-left": marg_left+"px", "margin-top": marg_top+"px"}).attr("class","tip"+t_class); - - if (timeout){ clearTimeout(timeout); } - timeout = setTimeout(function() { - tiptip_holder.stop(true,true); - if ($.contains(document.documentElement, org_elem[0])) { - tiptip_holder.fadeIn(opts.fadeIn); - } - }, opts.delay); - } - - function deactive_tiptip(){ - opts.exit.call(this); - if (timeout){ clearTimeout(timeout); } - tiptip_holder.fadeOut(opts.fadeOut); - } - } - }); - } -})(jQuery); diff --git a/addons/web/static/lib/jquery.tipTip/jquery.tipTip_old.js b/addons/web/static/lib/jquery.tipTip/jquery.tipTip_old.js deleted file mode 100644 index d2b460d1261..00000000000 --- a/addons/web/static/lib/jquery.tipTip/jquery.tipTip_old.js +++ /dev/null @@ -1,191 +0,0 @@ - /* - * TipTip - * Copyright 2010 Drew Wilson - * www.drewwilson.com - * code.drewwilson.com/entry/tiptip-jquery-plugin - * - * Version 1.3 - Updated: Mar. 23, 2010 - * - * This Plug-In will create a custom tooltip to replace the default - * browser tooltip. It is extremely lightweight and very smart in - * that it detects the edges of the browser window and will make sure - * the tooltip stays within the current window size. As a result the - * tooltip will adjust itself to be displayed above, below, to the left - * or to the right depending on what is necessary to stay within the - * browser window. It is completely customizable as well via CSS. - * - * This TipTip jQuery plug-in is dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - */ - -(function($){ - $.fn.tipTip = function(options) { - var defaults = { - activation: "hover", - keepAlive: false, - maxWidth: "200px", - edgeOffset: 3, - defaultPosition: "bottom", - delay: 400, - fadeIn: 200, - fadeOut: 200, - attribute: "title", - content: false, // HTML or String to fill TipTIp with - enter: function(){}, - exit: function(){} - }; - var opts = $.extend(defaults, options); - - // Setup tip tip elements and render them to the DOM - if($("#tiptip_holder").length <= 0){ - var tiptip_holder = $('
'); - var tiptip_content = $('
'); - var tiptip_arrow = $('
'); - $("body").append(tiptip_holder.html(tiptip_content).prepend(tiptip_arrow.html('
'))); - } else { - var tiptip_holder = $("#tiptip_holder"); - var tiptip_content = $("#tiptip_content"); - var tiptip_arrow = $("#tiptip_arrow"); - } - - return this.each(function(){ - var org_elem = $(this); - if(opts.content){ - var org_title = opts.content; - } else { - var org_title = org_elem.attr(opts.attribute); - } - if(org_title != ""){ - if(!opts.content){ - org_elem.removeAttr(opts.attribute); //remove original Attribute - } - var timeout = false; - - if(opts.activation == "hover"){ - org_elem.hover(function(){ - active_tiptip(); - }, function(){ - if(!opts.keepAlive){ - deactive_tiptip(); - } - }); - if(opts.keepAlive){ - tiptip_holder.hover(function(){}, function(){ - deactive_tiptip(); - }); - } - } else if(opts.activation == "focus"){ - org_elem.focus(function(){ - active_tiptip(); - }).blur(function(){ - deactive_tiptip(); - }); - } else if(opts.activation == "click"){ - org_elem.click(function(){ - active_tiptip(); - return false; - }).hover(function(){},function(){ - if(!opts.keepAlive){ - deactive_tiptip(); - } - }); - if(opts.keepAlive){ - tiptip_holder.hover(function(){}, function(){ - deactive_tiptip(); - }); - } - } - - function active_tiptip(){ - opts.enter.call(this); - tiptip_content.html(org_title); - tiptip_holder.hide().removeAttr("class").css("margin","0"); - tiptip_arrow.removeAttr("style"); - - var top = parseInt(org_elem.offset()['top']); - var left = parseInt(org_elem.offset()['left']); - var org_width = parseInt(org_elem.outerWidth()); - var org_height = parseInt(org_elem.outerHeight()); - var tip_w = tiptip_holder.outerWidth(); - var tip_h = tiptip_holder.outerHeight(); - var w_compare = Math.round((org_width - tip_w) / 2); - var h_compare = Math.round((org_height - tip_h) / 2); - var marg_left = Math.round(left + w_compare); - var marg_top = Math.round(top + org_height + opts.edgeOffset); - var t_class = ""; - var arrow_top = ""; - var arrow_left = Math.round(tip_w - 12) / 2; - - if(opts.defaultPosition == "bottom"){ - t_class = "_bottom"; - } else if(opts.defaultPosition == "top"){ - t_class = "_top"; - } else if(opts.defaultPosition == "left"){ - t_class = "_left"; - } else if(opts.defaultPosition == "right"){ - t_class = "_right"; - } - - var right_compare = (w_compare + left) < parseInt($(window).scrollLeft()); - var left_compare = (tip_w + left) > parseInt($(window).width()); - - if((right_compare && w_compare < 0) || (t_class == "_right" && !left_compare) || (t_class == "_left" && left < (tip_w + opts.edgeOffset + 5))){ - t_class = "_right"; - arrow_top = Math.round(tip_h - 13) / 2; - arrow_left = -12; - marg_left = Math.round(left + org_width + opts.edgeOffset); - marg_top = Math.round(top + h_compare); - } else if((left_compare && w_compare < 0) || (t_class == "_left" && !right_compare)){ - t_class = "_left"; - arrow_top = Math.round(tip_h - 13) / 2; - arrow_left = Math.round(tip_w); - marg_left = Math.round(left - (tip_w + opts.edgeOffset + 5)); - marg_top = Math.round(top + h_compare); - } - - var top_compare = (top + org_height + opts.edgeOffset + tip_h + 8) > parseInt($(window).height() + $(window).scrollTop()); - var bottom_compare = ((top + org_height) - (opts.edgeOffset + tip_h + 8)) < 0; - - if(top_compare || (t_class == "_bottom" && top_compare) || (t_class == "_top" && !bottom_compare)){ - if(t_class == "_top" || t_class == "_bottom"){ - t_class = "_top"; - } else { - t_class = t_class+"_top"; - } - arrow_top = tip_h; - marg_top = Math.round(top - (tip_h + 5 + opts.edgeOffset)); - } else if(bottom_compare | (t_class == "_top" && bottom_compare) || (t_class == "_bottom" && !top_compare)){ - if(t_class == "_top" || t_class == "_bottom"){ - t_class = "_bottom"; - } else { - t_class = t_class+"_bottom"; - } - arrow_top = -12; - marg_top = Math.round(top + org_height + opts.edgeOffset); - } - - if(t_class == "_right_top" || t_class == "_left_top"){ - marg_top = marg_top + 5; - } else if(t_class == "_right_bottom" || t_class == "_left_bottom"){ - marg_top = marg_top - 5; - } - if(t_class == "_left_top" || t_class == "_left_bottom"){ - marg_left = marg_left + 5; - } - tiptip_arrow.css({"margin-left": arrow_left+"px", "margin-top": arrow_top+"px"}); - tiptip_holder.css({"margin-left": marg_left+"px", "margin-top": marg_top+"px"}).attr("class","tip"+t_class); - - if (timeout){ clearTimeout(timeout); } - timeout = setTimeout(function(){ tiptip_holder.stop(true,true).fadeIn(opts.fadeIn); }, opts.delay); - } - - function deactive_tiptip(){ - opts.exit.call(this); - if (timeout){ clearTimeout(timeout); } - tiptip_holder.fadeOut(opts.fadeOut); - } - } - }); - } -})(jQuery); diff --git a/addons/web/static/lib/jquery.tipTip/tipTip.css b/addons/web/static/lib/jquery.tipTip/tipTip.css index 4fb95d37691..dc41b650615 100644 --- a/addons/web/static/lib/jquery.tipTip/tipTip.css +++ b/addons/web/static/lib/jquery.tipTip/tipTip.css @@ -13,15 +13,15 @@ } #tiptip_holder.tip_bottom { - padding-top: 5px; + padding-bottom: 5px; } #tiptip_holder.tip_right { - padding-left: 5px; + padding-right: 5px; } #tiptip_holder.tip_left { - padding-right: 5px; + padding-left: 5px; } #tiptip_content { @@ -110,4 +110,25 @@ #tiptip_holder.tip_top #tiptip_arrow_inner { border-top-color: rgba(20,20,20,0.92); } +} + +/* Alternative theme for TipTip */ +#tiptip_holder.alt.tip_top #tiptip_arrow_inner { + border-top-color: #444444; +} + +#tiptip_holder.alt.tip_bottom #tiptip_arrow_inner { + border-bottom-color: #444444; +} + +#tiptip_holder.alt.tip_right #tiptip_arrow_inner { + border-right-color: #444444; +} + +#tiptip_holder.alt.tip_left #tiptip_arrow_inner { + border-left-color: #444444; +} + +#tiptip_holder.alt #tiptip_content { + background-color: #444444; border: 1px solid White; border-radius: 3px; box-shadow: 0 0 3px #555555; color: #FFFFFF; font-size: 11px; padding: 4px 8px; text-shadow: 0 0 1px Black; } \ No newline at end of file diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 0e25027967f..e9819d43198 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -1062,7 +1062,6 @@ openerp.web.form.WidgetButton = openerp.web.form.Widget.extend({ this.execute_action().always(function() { self.force_disabled = false; self.check_disable(); - $.tipTipClear(); }); }, execute_action: function() { From ecfcf9c409b64b2b8bd026c92e329d608a017c92 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 12:19:38 +0100 Subject: [PATCH 16/40] [REM] wiki field from form and page bzr revid: xmo@openerp.com-20120117111938-rmjgsw309q6gltxe --- addons/web/static/src/js/view_form.js | 1 - addons/web/static/src/js/view_page.js | 1 - 2 files changed, 2 deletions(-) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index e9819d43198..e761173e042 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -3212,7 +3212,6 @@ openerp.web.form.widgets = new openerp.web.Registry({ 'email' : 'openerp.web.form.FieldEmail', 'url' : 'openerp.web.form.FieldUrl', 'text' : 'openerp.web.form.FieldText', - 'text_wiki' : 'openerp.web.form.FieldText', 'date' : 'openerp.web.form.FieldDate', 'datetime' : 'openerp.web.form.FieldDatetime', 'selection' : 'openerp.web.form.FieldSelection', diff --git a/addons/web/static/src/js/view_page.js b/addons/web/static/src/js/view_page.js index d3ee79effca..31190d70f85 100644 --- a/addons/web/static/src/js/view_page.js +++ b/addons/web/static/src/js/view_page.js @@ -241,7 +241,6 @@ openerp.web.page = function (openerp) { 'email': 'openerp.web.page.FieldEmailReadonly', 'url': 'openerp.web.page.FieldUrlReadonly', 'text': 'openerp.web.page.FieldCharReadonly', - 'text_wiki' : 'openerp.web.page.FieldCharReadonly', 'date': 'openerp.web.page.FieldCharReadonly', 'datetime': 'openerp.web.page.FieldCharReadonly', 'selection' : 'openerp.web.page.FieldSelectionReadonly', From 24ef362e7f3c05decf176a9e2ff94440fe749e6a Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 12:22:46 +0100 Subject: [PATCH 17/40] [ADD] extremely basic wikitext support for web client, in page view * Headers work (kinda) * Lists work * Text decoration (bold, italics) work * Indentation works BUT Internal links, OpenERP actions, images, attachments and tables don't work lp bug: https://launchpad.net/bugs/910527 fixed bzr revid: xmo@openerp.com-20120117112246-mrpjld9382ibupr6 --- addons/wiki/__openerp__.py | 1 + addons/wiki/static/src/js/wiki.js | 14 + addons/wiki/static/src/lib/wiky/Readme.md | 41 +++ addons/wiki/static/src/lib/wiky/autogit.sh | 6 + addons/wiki/static/src/lib/wiky/index.html | 56 ++++ .../wiki/static/src/lib/wiky/input_complete | 35 ++ .../static/src/lib/wiky/jquery-1.4.2.min.js | 170 ++++++++++ addons/wiki/static/src/lib/wiky/wiky.css | 79 +++++ addons/wiki/static/src/lib/wiky/wiky.js | 303 ++++++++++++++++++ 9 files changed, 705 insertions(+) create mode 100644 addons/wiki/static/src/js/wiki.js create mode 100755 addons/wiki/static/src/lib/wiky/Readme.md create mode 100755 addons/wiki/static/src/lib/wiky/autogit.sh create mode 100755 addons/wiki/static/src/lib/wiky/index.html create mode 100755 addons/wiki/static/src/lib/wiky/input_complete create mode 100755 addons/wiki/static/src/lib/wiky/jquery-1.4.2.min.js create mode 100755 addons/wiki/static/src/lib/wiky/wiky.css create mode 100755 addons/wiki/static/src/lib/wiky/wiky.js diff --git a/addons/wiki/__openerp__.py b/addons/wiki/__openerp__.py index ab9203a9afd..11477d535b6 100644 --- a/addons/wiki/__openerp__.py +++ b/addons/wiki/__openerp__.py @@ -53,5 +53,6 @@ Keep track of Wiki groups, pages, and history. 'certificate': '0086363630317', 'web': True, 'images': ['images/create_index.jpeg','images/page_history.jpeg','images/wiki_groups.jpeg','images/wiki_pages.jpeg'], + 'js': ['static/src/lib/wiky/wiky.js', 'static/src/js/wiki.js'], } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/wiki/static/src/js/wiki.js b/addons/wiki/static/src/js/wiki.js new file mode 100644 index 00000000000..7b84ff5080c --- /dev/null +++ b/addons/wiki/static/src/js/wiki.js @@ -0,0 +1,14 @@ +openerp.wiki = function (openerp) { + openerp.web.form.widgets.add( + 'text_wiki', 'openerp.web.form.FieldText'); + openerp.web.page.readonly.add( + 'text_wiki', 'openerp.wiki.FieldWikiReadonly'); + openerp.wiki = {}; + openerp.wiki.FieldWikiReadonly = openerp.web.page.FieldCharReadonly.extend({ + set_value: function (value) { + var show_value = wiky.process(value); + this.$element.find('div').html(show_value); + return show_value; + } + }); +}; diff --git a/addons/wiki/static/src/lib/wiky/Readme.md b/addons/wiki/static/src/lib/wiky/Readme.md new file mode 100755 index 00000000000..5d9bfe175a6 --- /dev/null +++ b/addons/wiki/static/src/lib/wiky/Readme.md @@ -0,0 +1,41 @@ +Wiky.js - a javascript library to convert Wiki Markup language to HTML. +======================= + +(It is buggy, please use with care) + +Wiky.js is a javascript library that converts Wiki Markup language to HTML. + + +How to use it +------------------- +Include wiki.js into your HTML file. Wiky.js has only one function, which is wiky.process(wikitext). + +Please see index.html for an example. + +*wiky.js does not depend on jQuery, which is included for testing purpose. + + + +Supported Syntax +------------------- +* == Heading == +* === Subheading === +* [http://www.url.com Name of URLs] +* [[File:http://www.url.com/image.png Alternative Text]] +* -------------------- (Horizontal line) +* : (Indentation) +* # Ordered bullet point +* * Unordered bullet point + + + +License +------------------ +Creative Commons 3.0 + + + +Contributors +------------------- +Tanin Na Nakorn +Tanun Niyomjit (Designer) \ No newline at end of file diff --git a/addons/wiki/static/src/lib/wiky/autogit.sh b/addons/wiki/static/src/lib/wiky/autogit.sh new file mode 100755 index 00000000000..79f59a51a8f --- /dev/null +++ b/addons/wiki/static/src/lib/wiky/autogit.sh @@ -0,0 +1,6 @@ +#!/bin/sh +git add --all +git commit -a -m "prototype changed" +git pull +git mergetool +git push diff --git a/addons/wiki/static/src/lib/wiky/index.html b/addons/wiki/static/src/lib/wiky/index.html new file mode 100755 index 00000000000..97992354fd6 --- /dev/null +++ b/addons/wiki/static/src/lib/wiky/index.html @@ -0,0 +1,56 @@ + + + + + + + Untitled Document + + + + +
+ + + + + + + diff --git a/addons/wiki/static/src/lib/wiky/input_complete b/addons/wiki/static/src/lib/wiky/input_complete new file mode 100755 index 00000000000..c7e860cccf9 --- /dev/null +++ b/addons/wiki/static/src/lib/wiky/input_complete @@ -0,0 +1,35 @@ +=== Heading === +Some content +I would like to add another line + +== Subheading == +Some more content +Some more lines1 +:A line with indent +:: A 2-indented line +:: more +:back to 1-indented line + +This is Taeyeon. +[[File:http://www.oknation.net/blog/home/blog_data/12/2012/images/ty4.jpg Taeyeon]] +Taeyeon is so cute. + +This is a link:[http://www.google.com Google]. +This is a bold link:'''[http://www.google.com Google]'''. +This is a bold-italic link:'''''[http://www.google.com Google]'''''. +This is '''bold''', '''''bold-italic''''', and ''italic'' + + +# First +# second +## Second-First +*** First Point +*** Second Point +#### z +#### y +#### x +*** Third Point +## Second-Second [ftp://www.facebook.com FacebookFTP] +## Second-Third [http://www.google.com Google Here] +# third + diff --git a/addons/wiki/static/src/lib/wiky/jquery-1.4.2.min.js b/addons/wiki/static/src/lib/wiky/jquery-1.4.2.min.js new file mode 100755 index 00000000000..8060d0e5041 --- /dev/null +++ b/addons/wiki/static/src/lib/wiky/jquery-1.4.2.min.js @@ -0,0 +1,170 @@ +/*! + * jQuery JavaScript Library v1.4.2 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Sat Feb 13 22:33:48 2010 -0500 + */ +(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, +Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& +(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, +a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== +"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, +function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
a"; +var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, +parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= +false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= +s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, +applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; +else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, +a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== +w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, +cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= +c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); +a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, +function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); +k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), +C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= +e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& +f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; +if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", +e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, +"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, +d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, +e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); +t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| +g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, +CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, +g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, +text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, +setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= +h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== +"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, +h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& +q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; +if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); +(function(){var g=s.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: +function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= +{},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== +"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", +d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? +a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== +1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= +c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, +wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, +prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, +this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, +""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); +return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", +""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= +c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? +c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= +function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= +Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, +"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= +a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= +a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== +"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, +serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), +function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, +global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& +e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? +"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== +false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= +false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", +c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| +d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); +g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== +1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== +"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; +if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== +"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| +c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; +this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= +this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, +e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
"; +a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); +c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, +d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- +f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": +"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in +e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); + +// jquery.escape 1.0 - escape strings for use in jQuery selectors +// http://ianloic.com/tag/jquery.escape +// Copyright 2009 Ian McKellar +// Just like jQuery you can use it under either the MIT license or the GPL +// (see: http://docs.jquery.com/License) +(function() { +escape_re = /[#;&,\.\+\*~':"!\^\$\[\]\(\)=>|\/\\]/; +jQuery.escape = function jQuery$escape(s) { + var left = s.split(escape_re, 1)[0]; + if (left == s) return s; + return left + '\\' + + s.substr(left.length, 1) + + jQuery.escape(s.substr(left.length+1)); +} +})(); diff --git a/addons/wiki/static/src/lib/wiky/wiky.css b/addons/wiki/static/src/lib/wiky/wiky.css new file mode 100755 index 00000000000..0adc7896df0 --- /dev/null +++ b/addons/wiki/static/src/lib/wiky/wiky.css @@ -0,0 +1,79 @@ +@charset "UTF-8"; +.wiky_preview_area { + font-family: "Helvetica Neue", Arial, Helvetica, 'Liberation Sans', FreeSans, sans-serif; + font-size: 13px; + line-height: 1.5em; + color: #666; + font-weight:350; + width:600px; + display:block; +} +.wiky_preview_area h2{ + font-size:24px; + color:#333; + font-weight:400; + + text-shadow:0 1px 0 rgba(000, 000, 000, .4); +} +.wiky_preview_area h3{ + font-size:18px; + color:#555; + font-weight:400; + + text-shadow:0 1px 0 rgba(000, 000, 000, .4); +} +.wiky_preview_area img{ + background-repeat: repeat; + width: 400px; + -webkit-border-radius: 10px; + -moz-border-radius: 10px; + border-radius: 10px; + -webkit-box-shadow:0 1px 3px rgba(0, 0, 0, .8); + -moz-box-shadow:0 1px 3px rgba(0, 0, 0, .8); + box-shadow:0 1px 3px rgba(0, 0, 0, .8); +} +.wiky_preview_area a{ + padding:5px; + font-weight:400; + + background: #999; /* for non-css3 browsers */ + + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); /* for IE */ + background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); /* for webkit browsers */ + background: -moz-linear-gradient(top, #ccc, #000); /* for firefox 3.6+ */ + + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + + -webkit-box-shadow:none; + -moz-box-shadow:none; + box-shadow:none; + + text-shadow:0 1px 0 rgba(255, 255, 255, 1); +} + +.wiky_preview_area a:hover{ + color:#333; + padding:5px; + font-weight:400; + text-decoration:none; + + -webkit-border-radius: 4px; + -moz-border-radius: 4px; + border-radius: 4px; + + -webkit-box-shadow:0 1px 3px rgba(0, 0, 0, .3); + -moz-box-shadow:0 1px 3px rgba(0, 0, 0, .3); + box-shadow:0 1px 3px rgba(0, 0, 0, .3); + + text-shadow:0 1px 0 rgba(255, 255, 255, 1); +} + + +.wiky_preview_area > ol, +.wiky_preview_area > ul, +.wiky_preview_area > ul > li, +.wiky_preview_area > ol > li { + list-style: disc inside none; +} \ No newline at end of file diff --git a/addons/wiki/static/src/lib/wiky/wiky.js b/addons/wiki/static/src/lib/wiky/wiky.js new file mode 100755 index 00000000000..5bc9c6f167d --- /dev/null +++ b/addons/wiki/static/src/lib/wiky/wiky.js @@ -0,0 +1,303 @@ +/** + * Wiky.js - Javascript library to converts Wiki MarkUp language to HTML. + * You can do whatever with it. Please give me some credits (Apache License) + * - Tanin Na Nakorn + */ + +var wiky = {}; + + +wiky.process = function(wikitext) { + var lines = wikitext.split(/\r?\n/); + var start; + var html = ""; + + for (var i=0;i"; + } + else if (line.match(/^==/)!=null && line.match(/==$/)!=null) + { + html += "

"+line.substring(2,line.length-2)+"

"; + } + else if (line.match(/^:+/)!=null) + { + // find start line and ending line + start = i; + while (i < lines.length && lines[i].match(/^:+/)!=null) i++; + i--; + + html += wiky.process_indent(lines,start,i); + } + else if (line.match(/^----+(\s*)$/)!=null) + { + html += "
"; + } + else if (line.match(/^(\*+) /)!=null) + { + // find start line and ending line + start = i; + while (i < lines.length && lines[i].match(/^(\*+|##+):? /)!=null) i++; + i--; + + html += wiky.process_bullet_point(lines,start,i); + } + else if (line.match(/^(#+) /)!=null) + { + // find start line and ending line + start = i; + while (i < lines.length && lines[i].match(/^(#+|\*\*+):? /)!=null) i++; + i--; + + html += wiky.process_bullet_point(lines,start,i); + } + else + { + html += wiky.process_normal(line); + } + + html += "
\n"; + } + + return html; +}; + +wiky.process_indent = function(lines,start,end) { + var html = "
"; + + for(var i=start;i<=end;i++) { + + html += "
"; + + var this_count = lines[i].match(/^(:+)/)[1].length; + + html += wiky.process_normal(lines[i].substring(this_count)); + + var nested_end = i; + for (var j=i+1;j<=end;j++) { + var nested_count = lines[j].match(/^(:+)/)[1].length; + if (nested_count <= this_count) break; + else nested_end = j; + } + + if (nested_end > i) { + html += wiky.process_indent(lines,i+1,nested_end); + i = nested_end; + } + + html += "
"; + } + + html += "
"; + return html; +}; + +wiky.process_bullet_point = function(lines,start,end) { + var html = (lines[start].charAt(0)=='*')?"
    ":"
      "; + + for(var i=start;i<=end;i++) { + + html += "
    1. "; + + var this_count = lines[i].match(/^(\*+|#+) /)[1].length; + + html += wiky.process_normal(lines[i].substring(this_count+1)); + + // continue previous with #: + { + var nested_end = i; + for (var j = i + 1; j <= end; j++) { + var nested_count = lines[j].match(/^(\*+|#+):? /)[1].length; + + if (nested_count < this_count) + break; + else { + if (lines[j].charAt(nested_count) == ':') { + html += "
      " + wiky.process_normal(lines[j].substring(nested_count + 2)); + nested_end = j; + } else { + break; + } + } + + } + + i = nested_end; + } + + // nested bullet point + { + var nested_end = i; + for (var j = i + 1; j <= end; j++) { + var nested_count = lines[j].match(/^(\*+|#+):? /)[1].length; + if (nested_count <= this_count) + break; + else + nested_end = j; + } + + if (nested_end > i) { + html += wiky.process_bullet_point(lines, i + 1, nested_end); + i = nested_end; + } + } + + // continue previous with #: + { + var nested_end = i; + for (var j = i + 1; j <= end; j++) { + var nested_count = lines[j].match(/^(\*+|#+):? /)[1].length; + + if (nested_count < this_count) + break; + else { + if (lines[j].charAt(nested_count) == ':') { + html += wiky.process_normal(lines[j].substring(nested_count + 2)); + nested_end = j; + } else { + break; + } + } + + } + + i = nested_end; + } + + html += "
    2. "; + } + + html += (lines[start].charAt(0)=='*')?"
":""; + return html; +}; + +wiky.process_url = function(txt) { + + var index = txt.indexOf(" "); + + if (index == -1) + { + return ""; + } + else + { + var url = txt.substring(0,index); + var label = txt.substring(index+1); + return ""+label+""; + } +}; + +wiky.process_image = function(txt) { + var index = txt.indexOf(" "); + var url = txt; + var label = ""; + + if (index > -1) + { + url = txt.substring(0,index); + label = txt.substring(index+1); + } + + + return "\""+label+"\""; +}; + +wiky.process_video = function(url) { + + if (url.match(/^(https?:\/\/)?(www.)?youtube.com\//) == null) + { + return ""+url+" is an invalid YouTube URL"; + } + var result; + if ((result = url.match(/^(https?:\/\/)?(www.)?youtube.com\/watch\?(.*)v=([^&]+)/)) != null) + { + url = "http://www.youtube.com/embed/"+result[4]; + } + + + return ''; +}; + +wiky.process_normal = function(wikitext) { + + // Image + { + var index = wikitext.indexOf("[[File:"); + var end_index = wikitext.indexOf("]]", index + 7); + while (index > -1 && end_index > -1) { + + wikitext = wikitext.substring(0,index) + + wiky.process_image(wikitext.substring(index+7,end_index)) + + wikitext.substring(end_index+2); + + index = wikitext.indexOf("[[File:"); + end_index = wikitext.indexOf("]]", index + 7); + } + } + + // Video + { + var index = wikitext.indexOf("[[Video:"); + var end_index = wikitext.indexOf("]]", index + 8); + while (index > -1 && end_index > -1) { + + wikitext = wikitext.substring(0,index) + + wiky.process_video(wikitext.substring(index+8,end_index)) + + wikitext.substring(end_index+2); + + index = wikitext.indexOf("[[Video:"); + end_index = wikitext.indexOf("]]", index + 8); + } + } + + + // URL + var protocols = ["http","ftp","news"]; + + for (var i=0;i -1 && end_index > -1) { + + wikitext = wikitext.substring(0,index) + + wiky.process_url(wikitext.substring(index+1,end_index)) + + wikitext.substring(end_index+1); + + index = wikitext.indexOf("["+protocols[i]+"://",end_index+1); + end_index = wikitext.indexOf("]", index + 1); + + } + } + + var count_b = 0; + var index = wikitext.indexOf("'''"); + while(index > -1) { + + if ((count_b%2)==0) wikitext = wikitext.replace(/'''/,""); + else wikitext = wikitext.replace(/'''/,""); + + count_b++; + + index = wikitext.indexOf("'''",index); + } + + var count_i = 0; + var index = wikitext.indexOf("''"); + while(index > -1) { + + if ((count_i%2)==0) wikitext = wikitext.replace(/''/,""); + else wikitext = wikitext.replace(/''/,""); + + count_i++; + + index = wikitext.indexOf("''",index); + } + + wikitext = wikitext.replace(/<\/b><\/i>/g,""); + + return wikitext; +}; From 1a0e9063d4592aba5c594ce45cc4135edfab7cab Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 13:00:35 +0100 Subject: [PATCH 18/40] [FIX] forbid spaces in db names lp bug: https://launchpad.net/bugs/916771 fixed bzr revid: xmo@openerp.com-20120117120035-n7kk3uzfqwdgkm88 --- addons/web/static/src/js/chrome.js | 3 +++ addons/web/static/src/xml/base.xml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 39bc0181e16..588af765978 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -280,6 +280,9 @@ openerp.web.Database = openerp.web.Widget.extend(/** @lends openerp.web.Database init: function(parent, element_id, option_id) { this._super(parent, element_id); this.unblockUIFunction = $.unblockUI; + $.validator.addMethod('matches', function (s, _, re) { + return new RegExp(re).test(s); + }, _t("Invalid database name")); }, start: function() { this.$option_id = $("#oe_db_options"); diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index f460d6ba435..b119e5aae3c 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -70,7 +70,8 @@ - + From 4a16a74de03749e4e4cc18f1575af2566df97563 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 13:43:12 +0100 Subject: [PATCH 19/40] [IMP] only display group paginator if there are more than 80 records in the group bzr revid: xmo@openerp.com-20120117124312-n4h9r1g9ovk09xli --- addons/web/static/src/js/view_list.js | 31 ++++++++++++++++----------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index aa970c31649..1f8a6020f46 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -1316,19 +1316,24 @@ openerp.web.ListView.Groups = openerp.web.Class.extend( /** @lends openerp.web.L if (!self.datagroup.openable) { view.configure_pager(dataset); } else { - var pages = Math.ceil(dataset.ids.length / limit); - self.$row - .find('.oe-pager-state') - .text(_.str.sprintf(_t("%(page)d/%(page_count)d"), { - page: page + 1, - page_count: pages - })) - .end() - .find('button[data-pager-action=previous]') - .attr('disabled', page === 0) - .end() - .find('button[data-pager-action=next]') - .attr('disabled', page === pages - 1); + if (dataset.ids.length == records.length) { + // only one page + self.$row.find('td.oe-group-pagination').empty(); + } else { + var pages = Math.ceil(dataset.ids.length / limit); + self.$row + .find('.oe-pager-state') + .text(_.str.sprintf(_t("%(page)d/%(page_count)d"), { + page: page + 1, + page_count: pages + })) + .end() + .find('button[data-pager-action=previous]') + .attr('disabled', page === 0) + .end() + .find('button[data-pager-action=next]') + .attr('disabled', page === pages - 1); + } } self.records.add(records, {silent: true}); From 809968ecfd8ab4e6bc667a5d8d30077edc6d7e6b Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 17 Jan 2012 13:44:17 +0100 Subject: [PATCH 20/40] [FIX] Char fields don't correctly retain their values in Firefox 3.6 Unknown bug in old version of firefox : input type=text onchange event not fired when tootip is shown Disabled tooltips for gecko version < 2 lp bug: https://launchpad.net/bugs/911327 fixed bzr revid: fme@openerp.com-20120117124417-k3vdiktc93gl99fi --- addons/web/static/src/js/view_form.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index e761173e042..290af47c04c 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -790,6 +790,11 @@ openerp.web.form.Widget = openerp.web.Widget.extend(/** @lends openerp.web.form. return QWeb.render(template, { "widget": this }); }, do_attach_tooltip: function(widget, trigger, options) { + if ($.browser.mozilla && parseInt($.browser.version.split('.')[0], 10) < 2) { + // Unknown bug in old version of firefox : + // input type=text onchange event not fired when tootip is shown + return; + } widget = widget || this; trigger = trigger || this.$element; options = _.extend({ From 07a459f2d49977ac108756d4d03a70ede133b617 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 14:28:43 +0100 Subject: [PATCH 21/40] [FIX] trailing commas bzr revid: xmo@openerp.com-20120117132843-obecwigtts1rf9ja --- addons/web/static/src/js/chrome.js | 6 +++--- addons/web/static/src/js/core.js | 6 +++--- addons/web/static/src/js/data.js | 4 ++-- addons/web/static/src/js/view_editor.js | 12 ++++++------ addons/web/static/src/js/view_form.js | 4 ++-- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 588af765978..6dce78a1c5e 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -205,7 +205,7 @@ openerp.web.CrashManager = openerp.web.CallbackEnabled.extend({ buttons: buttons }).open(); dialog.$element.html(QWeb.render('CrashManagerError', {session: openerp.connection, error: error})); - }, + } }); openerp.web.Loading = openerp.web.Widget.extend(/** @lends openerp.web.Loading# */{ @@ -649,7 +649,7 @@ openerp.web.Login = openerp.web.Widget.extend(/** @lends openerp.web.Login# */{ } } }); - }, + } }); openerp.web.Header = openerp.web.Widget.extend(/** @lends openerp.web.Header# */{ @@ -1215,7 +1215,7 @@ openerp.web.EmbeddedClient = openerp.web.Widget.extend({ self.am.do_action(action); }); - }, + } }); diff --git a/addons/web/static/src/js/core.js b/addons/web/static/src/js/core.js index b36e576ae47..3005fc80d13 100644 --- a/addons/web/static/src/js/core.js +++ b/addons/web/static/src/js/core.js @@ -491,7 +491,7 @@ openerp.web.Connection = openerp.web.CallbackEnabled.extend( /** @lends openerp. dataType: 'json', contentType: 'application/json', data: JSON.stringify(payload), - processData: false, + processData: false }, url); if (this.synch) ajax.async = false; @@ -502,7 +502,7 @@ openerp.web.Connection = openerp.web.CallbackEnabled.extend( /** @lends openerp. // extracted from payload to set on the url var data = { session_id: this.session_id, - id: payload.id, + id: payload.id }; url.url = this.get_url(url.url); var ajax = _.extend({ @@ -864,7 +864,7 @@ openerp.web.Connection = openerp.web.CallbackEnabled.extend( /** @lends openerp. } finally { this.synch = synch; } - }, + } }); /** diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index 447b95d17cf..bb53fb2175a 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -829,9 +829,9 @@ openerp.web.Model = openerp.web.CallbackEnabled.extend({ model: this.model_name, method: method, args: args, - kwargs: kwargs, + kwargs: kwargs }); - }, + } }); openerp.web.CompoundContext = openerp.web.Class.extend({ diff --git a/addons/web/static/src/js/view_editor.js b/addons/web/static/src/js/view_editor.js index bf920380ff9..6e58886fadd 100644 --- a/addons/web/static/src/js/view_editor.js +++ b/addons/web/static/src/js/view_editor.js @@ -806,7 +806,7 @@ openerp.web.ViewEditor = openerp.web.Widget.extend({ 'widget' : {'name':'widget', 'string': 'widget', 'type': 'selection'}, 'colors' : {'name':'colors', 'string': 'Colors', 'type': 'char'}, 'editable' : {'name':'editable', 'string': 'Editable', 'type': 'selection', 'selection': [["",""],["top","Top"],["bottom", "Bottom"]]}, - 'groups' : {'name':'groups', 'string': 'Groups', 'type': 'seleciton_multi'}, + 'groups' : {'name':'groups', 'string': 'Groups', 'type': 'seleciton_multi'} }; var arch_val = self.get_object_by_id(this.one_object.clicked_tr_id,this.one_object['main_object'], []); this.edit_node_dialog.$element.append('
'); @@ -928,7 +928,7 @@ openerp.web.ViewEditor = openerp.web.Widget.extend({ type: 'ir.actions.act_window', target: "new", flags: { - action_buttons: true, + action_buttons: true } } var action_manager = new openerp.web.ActionManager(self); @@ -982,7 +982,7 @@ openerp.web.ViewEditor.Field = openerp.web.Class.extend({ }, render: function() { return _.str.sprintf("%s", this.name, QWeb.render(this.template, {widget: this})) - }, + } }); openerp.web.ViewEditor.FieldBoolean = openerp.web.ViewEditor.Field.extend({ template : "vieweditor_boolean", @@ -1084,7 +1084,7 @@ var _PROPERTIES = { 'action' : ['name', 'string', 'colspan', 'groups'], 'tree' : ['string', 'colors', 'editable', 'link', 'limit', 'min_rows'], 'graph' : ['string', 'type'], - 'calendar' : ['string', 'date_start', 'date_stop', 'date_delay', 'day_length', 'color', 'mode'], + 'calendar' : ['string', 'date_start', 'date_stop', 'date_delay', 'day_length', 'color', 'mode'] }; var _CHILDREN = { 'form': ['notebook', 'group', 'field', 'label', 'button','board', 'newline', 'separator'], @@ -1100,7 +1100,7 @@ var _CHILDREN = { 'label': [], 'button' : [], 'newline': [], - 'separator': [], + 'separator': [] }; var _ICONS = ['','STOCK_ABOUT', 'STOCK_ADD', 'STOCK_APPLY', 'STOCK_BOLD', 'STOCK_CANCEL', 'STOCK_CDROM', 'STOCK_CLEAR', 'STOCK_CLOSE', 'STOCK_COLOR_PICKER', @@ -1134,6 +1134,6 @@ openerp.web.ViewEditor.property_widget = new openerp.web.Registry({ 'seleciton_multi' : 'openerp.web.ViewEditor.FieldSelectMulti', 'selection' : 'openerp.web.ViewEditor.FieldSelect', 'char' : 'openerp.web.ViewEditor.FieldChar', - 'float' : 'openerp.web.ViewEditor.FieldFloat', + 'float' : 'openerp.web.ViewEditor.FieldFloat' }); }; diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index e761173e042..467edcebd8c 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -1279,7 +1279,7 @@ openerp.web.form.Field = openerp.web.form.Widget.extend(/** @lends openerp.web.f this.definition_options = JSON.parse(str); } return this.definition_options; - }, + } }); openerp.web.form.FieldChar = openerp.web.form.Field.extend({ @@ -2422,7 +2422,7 @@ openerp.web.form.One2ManyListView = openerp.web.ListView.extend({ var self = this; var def = $.Deferred().then(callback).then(function() {self.o2m.view.reload();}); return this._super(name, id, _.bind(def.resolve, def)); - }, + } }); openerp.web.form.One2ManyFormView = openerp.web.FormView.extend({ From 56fb6cba857b76d0ee406aad4d85cacca573da79 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 17 Jan 2012 14:45:41 +0100 Subject: [PATCH 22/40] [IMP] Kanban images not being reloaded when saved in form view Kanban view now uses write_date if defined in model in order to force reload of images lp bug: https://launchpad.net/bugs/912705 fixed bzr revid: fme@openerp.com-20120117134541-yvernouqxuegoep4 --- addons/web_kanban/static/src/js/kanban.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/addons/web_kanban/static/src/js/kanban.js b/addons/web_kanban/static/src/js/kanban.js index 5e5abfb292b..a2e6f00e8c0 100644 --- a/addons/web_kanban/static/src/js/kanban.js +++ b/addons/web_kanban/static/src/js/kanban.js @@ -47,7 +47,7 @@ openerp.web_kanban.KanbanView = openerp.web.View.extend({ }, on_loaded: function(data) { this.fields_view = data; - this.fields_keys = _.keys(this.fields_view.fields); + this.fields_keys = _.keys(this.fields_view.fields).concat(['write_date']); this.add_qweb_template(); this.has_been_loaded.resolve(); }, @@ -531,7 +531,12 @@ openerp.web_kanban.KanbanRecord = openerp.web.Widget.extend({ }, kanban_image: function(model, field, id) { id = id || ''; - return openerp.connection.prefix + '/web/binary/image?session_id=' + this.session.session_id + '&model=' + model + '&field=' + field + '&id=' + id; + var url = openerp.connection.prefix + '/web/binary/image?session_id=' + this.session.session_id + '&model=' + model + '&field=' + field + '&id=' + id; + if (this.record.write_date && this.record.write_date.raw_value) { + var time = openerp.web.str_to_datetime(this.record.write_date.raw_value).getTime(); + url += '&t=' + time; + } + return url; }, kanban_text_ellipsis: function(s, size) { size = size || 160; From a76f9d6112db7fdadf1f8c13f2807384062aa1cd Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 17 Jan 2012 14:47:13 +0100 Subject: [PATCH 23/40] [ADD] Add write_date to hr.employee and product.product in order to allow image reloading in kanban views bzr revid: fme@openerp.com-20120117134713-uewdqmv08r6r5hmq --- addons/hr/hr.py | 1 + addons/product/product.py | 1 + 2 files changed, 2 insertions(+) diff --git a/addons/hr/hr.py b/addons/hr/hr.py index 76f9295a829..15c7c254f85 100644 --- a/addons/hr/hr.py +++ b/addons/hr/hr.py @@ -175,6 +175,7 @@ class hr_employee(osv.osv): 'color': fields.integer('Color Index'), 'city': fields.related('address_id', 'city', type='char', string='City'), 'login': fields.related('user_id', 'login', type='char', string='Login', readonly=1), + 'write_date': fields.datetime('Update Date' , readonly=True), } def unlink(self, cr, uid, ids, context=None): diff --git a/addons/product/product.py b/addons/product/product.py index e6b4b4c6348..977e408de6f 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -513,6 +513,7 @@ class product_product(osv.osv): 'name_template': fields.related('product_tmpl_id', 'name', string="Name", type='char', size=128, store=True, select=True), 'color': fields.integer('Color Index'), 'product_image': fields.binary('Image'), + 'write_date': fields.datetime('Update Date' , readonly=True), } def unlink(self, cr, uid, ids, context=None): From 439f23d77b268aff1417d9cbf65e540dcf3c3dff Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 14:53:12 +0100 Subject: [PATCH 24/40] [FIX] root css on .openerp, not body.openerp bzr revid: xmo@openerp.com-20120117135312-f9pmqgmy4704vfyh --- addons/web/static/src/css/base.css | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css index 84e4da5b711..0994ed41b1a 100644 --- a/addons/web/static/src/css/base.css +++ b/addons/web/static/src/css/base.css @@ -1,4 +1,5 @@ -body.openerp { +body { padding: 0; margin: 0; } +.openerp { padding: 0; margin: 0; height: 100%; @@ -7,7 +8,8 @@ body.openerp { font-family: Ubuntu, Helvetica, sans-serif; } -body.openerp, .openerp textarea, .openerp input, .openerp select, .openerp option, .openerp button, .openerp .ui-widget { +.openerp, .openerp textarea, .openerp input, .openerp select, .openerp option, +.openerp button, .openerp .ui-widget { font-family: Ubuntu, Helvetica, sans-serif; font-size:85%; } From 7d305cbbee66251870e825cd44a99a57a41f407c Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 14:58:17 +0100 Subject: [PATCH 25/40] [FIX] MSIE does not like calling .html on the page's title, set the string on the document's title directly (as a property) bzr revid: xmo@openerp.com-20120117135817-t3ggfjp71r6io6b4 --- addons/web/static/src/js/chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index 6dce78a1c5e..be570e3dd84 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -1092,7 +1092,7 @@ openerp.web.WebClient = openerp.web.Widget.extend(/** @lends openerp.web.WebClie self.bind_hashchange(); if (!self.session.openerp_entreprise) { self.$element.find('.oe_footer_powered').append(' - Unsupported/Community Version'); - $('title').html('OpenERP - Unsupported/Community Version'); + document.title = _t("OpenERP - Unsupported/Community Version"); } }); }, From 425b6b4b334f3f1baf5f13ffdd572d0e4211d2f4 Mon Sep 17 00:00:00 2001 From: Fabien Meghazi Date: Tue, 17 Jan 2012 14:59:58 +0100 Subject: [PATCH 26/40] [FIX] QWeb: Internet Explorer DOM converts tags to uppercase bzr revid: fme@openerp.com-20120117135958-gv2iv4ixomqzcnny --- addons/web/static/lib/qweb/qweb2.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/web/static/lib/qweb/qweb2.js b/addons/web/static/lib/qweb/qweb2.js index 093b3651fa0..6518ee5d939 100644 --- a/addons/web/static/lib/qweb/qweb2.js +++ b/addons/web/static/lib/qweb/qweb2.js @@ -194,7 +194,7 @@ var QWeb2 = { QWeb2.Engine = (function() { function Engine() { - // TODO: handle prefix at template level : t-prefix="x" + // TODO: handle prefix at template level : t-prefix="x", don't forget to lowercase it this.prefix = 't'; this.debug = false; this.templates_resources = []; // TODO: implement this.reload() @@ -620,7 +620,7 @@ QWeb2.Element = (function() { } } } - if (this.tag !== this.engine.prefix) { + if (this.tag.toLowerCase() !== this.engine.prefix) { var tag = "<" + this.tag; for (var a in this.attributes) { tag += this.engine.tools.gen_attribute([a, this.attributes[a]]); From aeebcf3dccbd1adfdb4fd62e29043449ef96c603 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 15:02:13 +0100 Subject: [PATCH 27/40] [FIX] un-nivity call of WebClient, IE8 does not like nobody to mess with its body: bzr revid: xmo@openerp.com-20120117140213-u2n1l4cg1nz1xrea --- addons/web/controllers/main.py | 4 ++-- addons/web/static/src/js/chrome.js | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py index 7b2ad5b311c..b0a12802db4 100644 --- a/addons/web/controllers/main.py +++ b/addons/web/controllers/main.py @@ -99,7 +99,7 @@ html_template = """ }); - + """ @@ -207,7 +207,7 @@ class WebClient(openerpweb.Controller): 'js': js, 'css': css, 'modules': simplejson.dumps(self.server_wide_modules(req)), - 'init': 'new s.web.WebClient().replace($("body"));', + 'init': 'new s.web.WebClient().start();', } return r diff --git a/addons/web/static/src/js/chrome.js b/addons/web/static/src/js/chrome.js index be570e3dd84..8b9a0d4efc6 100644 --- a/addons/web/static/src/js/chrome.js +++ b/addons/web/static/src/js/chrome.js @@ -1062,13 +1062,9 @@ openerp.web.WebClient = openerp.web.Widget.extend(/** @lends openerp.web.WebClie this._current_state = null; }, - render_element: function() { - this.$element = $(''); - this.$element.attr("id", "oe"); - this.$element.addClass("openerp"); - }, start: function() { var self = this; + this.$element = $(document.body); if (jQuery.param != undefined && jQuery.deparam(jQuery.param.querystring()).kitten != undefined) { this.$element.addClass("kitten-mode-activated"); this.$element.delegate('img.oe-record-edit-link-img', 'hover', function(e) { From c82878388a5a26ec424453eafe4ae71779c62824 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 17 Jan 2012 15:38:06 +0100 Subject: [PATCH 28/40] [FIX] qweb: benchmark on browsers without console.time & console/timeEnd bzr revid: xmo@openerp.com-20120117143806-x5hqclaw6a8hdu98 --- addons/web/static/lib/qweb/qweb-benchmark.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/addons/web/static/lib/qweb/qweb-benchmark.html b/addons/web/static/lib/qweb/qweb-benchmark.html index 0cc67e7e54f..4f7fb56ac1f 100644 --- a/addons/web/static/lib/qweb/qweb-benchmark.html +++ b/addons/web/static/lib/qweb/qweb-benchmark.html @@ -5,11 +5,25 @@