Skip to Content
Menu
This question has been flagged
5 Replies
6222 Views

I translate file "point_of_sale_view.xml", upgraded module "point of sale" and get this:

Odoo Server Error

Traceback (most recent call last):

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\http.py", line 537, in _handle_exception

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\http.py", line 574, in dispatch

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\http.py", line 310, in _call_function

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\service\model.py", line 113, in wrapper

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\http.py", line 307, in checked_call

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\http.py", line 803, in __call__

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\http.py", line 403, in response_wrap

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\openerp\addons\web\controllers\main.py", line 948, in call_button

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\openerp\addons\web\controllers\main.py", line 936, in _call_kw

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\api.py", line 241, in wrapper

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\openerp\addons\base\module\module.py", line 533, in button_immediate_upgrade

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\api.py", line 241, in wrapper

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\openerp\addons\base\module\module.py", line 494, in _button_immediate_function

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\modules\registry.py", line 370, in new

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\modules\loading.py", line 351, in load_modules

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\modules\loading.py", line 255, in load_marked_modules

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\modules\loading.py", line 176, in load_module_graph

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\modules\loading.py", line 118, in _load_data

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\tools\convert.py", line 901, in convert_file

File "C:\Program Files (x86)\Odoo 8.0-20150710\server\.\openerp\tools\convert.py", line 974, in convert_xml_import

File "lxml.etree.pyx", line 3239, in lxml.etree.parse (src\lxml\lxml.etree.c:69955)

File "parser.pxi", line 1769, in lxml.etree._parseDocument (src\lxml\lxml.etree.c:102257)

File "parser.pxi", line 1789, in lxml.etree._parseFilelikeDocument (src\lxml\lxml.etree.c:102516)

File "parser.pxi", line 1684, in lxml.etree._parseDocFromFilelike (src\lxml\lxml.etree.c:101442)

File "parser.pxi", line 1134, in lxml.etree._BaseParser._parseDocFromFilelike (src\lxml\lxml.etree.c:97069)

File "parser.pxi", line 582, in lxml.etree._ParserContext._handleParseResultDoc (src\lxml\lxml.etree.c:91275)

File "parser.pxi", line 683, in lxml.etree._handleParseResult (src\lxml\lxml.etree.c:92461)

File "parser.pxi", line 622, in lxml.etree._raiseParseError (src\lxml\lxml.etree.c:91757)

XMLSyntaxError: Input is not proper UTF-8, indicate encoding !

Bytes: 0xC7 0xE0 0xEA 0xE0, line 15, column 30


If i try to reload page, i get a Internal Server Error.
Who now, how i can fix it?


Avatar
Discard
Best Answer

Hello Taras, I see that the Ukrainian translations are far from being completed. I suggest you revert your XML changes and use Odoo built-in translations support and simply translate the correct files.

To enable Odoo built-in translations support, you will require Administration permissions in your Odoo server to load the Ukrainian translation ("Settings > Translations > Load a Translation").

Every Odoo module has a directory with translations, you may try editing the `uk.po` for the "Point of Sale" module, in your local installation, and load the new translated terms by reinstalling the module. Look for the following file in your local installation: 
https://github.com/odoo/odoo/blob/8.0/addons/point_of_sale/i18n/uk.po

It is very important to use an UTF-8 aware editor so you don't run into encoding problems later. 

After the translation has been loaded, Odoo users have the option to set their preferred language by setting it at their Preferences (Username > Preferences: Language).

As in any open source project, contributions are always welcomed. Odoo now uses the Transifex platform to manage translations, you only require to subscribe there in order to push contributions.

Regards.

Avatar
Discard
Best Answer

Dear Taras,

The error says your accented characters cannot be encoded by xml.

You must not edit the XML, rather use your admin credentials to change the trnslations.

Thanks.

Avatar
Discard
Best Answer

Well i translate exporting the .po file from the module and use the PoEdit software, for me that's the best way

Avatar
Discard
Best Answer

Use import-export translations file/

and 

Install ODoo to *nix system - its work stable.

 

Avatar
Discard
Author Best Answer

Thanks for answer, but translations not completed, and i need full translate odoo. Other xml file i translate and haven't no one problem. 

Avatar
Discard
Related Posts Replies Views Activity
0
Apr 24
230
1
Mar 24
1389
3
Jun 23
639
3
Sep 18
2849
0
Mar 15
3303