← Back to team overview

openerp-india team mailing list archive

[Bug 1049945] [NEW] wrong msgid in server/openerp/addons/base/i18n/base.pot

 

Public bug reported:

While translating openerp-server 6.1 on launchpad I have found wrong message.
Just use the following link: https://translations.launchpad.net/openobject-server/6.1/+pots/base/ru/+translate?batch=10&show=all&search=Insufficient+fields+to+generate+a+Calendar+View+for+

It's because a wrong entry in server/openerp/addons/base/i18n/base.pot:

#. module: base
#: code:addons/orm.py:1895
#, python-format
msgid "Insufficient fields to generate a Calendar View for %s, missing a date_stop or a date_delay\" % (self._name)))\n"
"\n"
"        return view\n"
"\n"
"    def _get_default_search_view(self, cr, uid, context=None):\n"
"        \"\n"
"        :param cr: database cursor\n"
"        :param int user: user id\n"
"        :param dict context: connection context\n"
"        :returns: an lxml document of the view\n"
"        :rtype: etree._Element\n"
"        \"\n"
"        form_view = self.fields_view_get(cr, uid, False, 'form', context=context)\n"
"        tree_view = self.fields_view_get(cr, uid, False, 'tree', context=context)\n"
"\n"
"        # TODO it seems _all_columns could be used instead of fields_get (no need for translated fields info)\n"
"        fields = self.fields_get(cr, uid, context=context)\n"
"        fields_to_search = set(\n"
"            field for field, descriptor in fields.iteritems()\n"
"            if descriptor.get('select'))\n"
"\n"
"        for view in (form_view, tree_view):\n"
"            view_root = etree.fromstring(view['arch'])\n"
"            # Only care about select=1 in xpath below, because select=2 is covered\n"
"            # by the custom advanced search in clients\n"
"            fields_to_search.update(view_root.xpath(\"//field[@select=1]/@name"
msgstr ""

** Affects: openobject-server
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1049945

Title:
  wrong msgid in server/openerp/addons/base/i18n/base.pot

Status in OpenERP Server:
  New

Bug description:
  While translating openerp-server 6.1 on launchpad I have found wrong message.
  Just use the following link: https://translations.launchpad.net/openobject-server/6.1/+pots/base/ru/+translate?batch=10&show=all&search=Insufficient+fields+to+generate+a+Calendar+View+for+

  It's because a wrong entry in
  server/openerp/addons/base/i18n/base.pot:

  #. module: base
  #: code:addons/orm.py:1895
  #, python-format
  msgid "Insufficient fields to generate a Calendar View for %s, missing a date_stop or a date_delay\" % (self._name)))\n"
  "\n"
  "        return view\n"
  "\n"
  "    def _get_default_search_view(self, cr, uid, context=None):\n"
  "        \"\n"
  "        :param cr: database cursor\n"
  "        :param int user: user id\n"
  "        :param dict context: connection context\n"
  "        :returns: an lxml document of the view\n"
  "        :rtype: etree._Element\n"
  "        \"\n"
  "        form_view = self.fields_view_get(cr, uid, False, 'form', context=context)\n"
  "        tree_view = self.fields_view_get(cr, uid, False, 'tree', context=context)\n"
  "\n"
  "        # TODO it seems _all_columns could be used instead of fields_get (no need for translated fields info)\n"
  "        fields = self.fields_get(cr, uid, context=context)\n"
  "        fields_to_search = set(\n"
  "            field for field, descriptor in fields.iteritems()\n"
  "            if descriptor.get('select'))\n"
  "\n"
  "        for view in (form_view, tree_view):\n"
  "            view_root = etree.fromstring(view['arch'])\n"
  "            # Only care about select=1 in xpath below, because select=2 is covered\n"
  "            # by the custom advanced search in clients\n"
  "            fields_to_search.update(view_root.xpath(\"//field[@select=1]/@name"
  msgstr ""

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1049945/+subscriptions


Follow ups

References