Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Internal Server Error when i translate odoo

By
Taras
on 9/11/15, 7:37 AM 1,142 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?


1
Marvin Taboada
On 9/11/15, 9:54 PM

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.

1

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4341
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 9/11/15, 9:25 AM

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.

0
Giovanny Vizcaya
On 9/13/15, 4:58 PM

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

0
Victor
On 9/13/15, 9:52 AM

Use import-export translations file/

and 

Install ODoo to *nix system - its work stable.

 

0
Taras
On 9/11/15, 9:41 AM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 9/11/15, 7:37 AM
Seen: 1142 times
Last updated: 9/13/15, 4:58 PM