Chuyển sang bản 8.0 mình thấy các thuật ngữ dịch rồi mà không lưu lại được,
Các bạn xem trong file đính kèm nhé. Thanks.
11 Trả lời
Giá trị ir.ui.menu,name là giá trị kỹ thuật, để phần mềm biết được thuật ngữ đó thuộc đối tượng nào? trường nào? Vì vậy bạn chỉ nên quan tâm tới trường "Giá trị dịch" thôi. Còn những trường khác bạn nên giữ nguyên, trừ khi bạn nắm được sâu về kỹ thuật hãy can thiệp vào nó.
Mình vẫn nghĩ là vậy, nên hỏi lại trước khi thử.
Không rõ ý David Tran và làm thử nên vậy.
Anw, bắt đền David Tran. Dù giờ vẫn chạy bình thường nhưng vẫn muốn khôi phục lại như cũ.
Hi!
P/s: Mình đã dịch cái giá trị của trường như David Tran hướng dẫn, và làm đi làm lại nhiều lần vẫn không được đấy chứ.
Em dịch trong i18n của module mail ạ.
Em có dịch trực tiếp trên hệ thống nhưng cũng không được anh ơi.:(
Mình vừa làm thử với bản 8 của ERPOnline và thấy bình thường.
Nếu bạn muốn khôi phục lại bản dịch ban đầu, hãy Nạp lại ngôn ngữ, chọn tiếng Việt và nhớ đánh vào dấu kiểm "Ghi đè lên thuật ngữ đã có".
À, với cách làm này thì mọi thuật ngữ bạn đã dịch trước đó sẽ bị mất hết. Cảnh báo bạn trước để khỏi bị bắt đền :D
Tình hình là sau khi mình dịch luôn cả trường ir.ui.menu,name thì thấy báo lỗi.
Giờ search lại các thuật ngữ liên quan: Theo hóa đơn dự thảo; theo hóa đơn dựa theo; on draft invoice… thì ra cái màn hình lỗi như sau:
OpenERP Server Error
Traceback (most recent call last):
File "/opt/openerp/80/openerp/http.py", line 499, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/openerp/80/openerp/http.py", line 516, in dispatch
result = self._call_function(**self.params)
File "/opt/openerp/80/openerp/http.py", line 282, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/openerp/80/openerp/service/model.py", line 113, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/openerp/80/openerp/http.py", line 279, in checked_call
return self.endpoint(*a, **kw)
File "/opt/openerp/80/openerp/http.py", line 732, in __call__
return self.method(*args, **kw)
File "/opt/openerp/80/openerp/http.py", line 375, in response_wrap
response = f(*args, **kw)
File "/home/nmytz6hzufgbjkekmcvk7pxt7olcifj1/addons/web/controllers/main.py", line 870, in search_read
return self.do_search_read(model, fields, offset, limit, domain, sort)
File "/home/nmytz6hzufgbjkekmcvk7pxt7olcifj1/addons/web/controllers/main.py", line 891, in do_search_read
request.context)
File "/opt/openerp/80/openerp/http.py", line 834, in proxy
result = meth(cr, request.uid, *args, **kw)
File "/opt/openerp/80/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/openerp/80/openerp/models.py", line 5041, in search_read
result = self.read(cr, uid, record_ids, fields, context=read_ctx)
File "/opt/openerp/80/openerp/api.py", line 237, in wrapper
return old_api(self, *args, **kwargs)
File "/opt/openerp/80/openerp/models.py", line 3109, in read
result = BaseModel.read(records, fields, load=load)
File "/opt/openerp/80/openerp/api.py", line 235, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/openerp/80/openerp/models.py", line 3141, in read
self._read_from_database(stored)
File "/opt/openerp/80/openerp/api.py", line 235, in wrapper
return new_api(self, *args, **kwargs)
File "/opt/openerp/80/openerp/models.py", line 3303, in _read_from_database
res2 = self._columns[f].get(cr, self._model, ids, f, user, context=context, values=result)
File "/opt/openerp/80/openerp/osv/fields.py", line 1308, in get
result = self._fnct(obj, cr, uid, ids, name, self._arg, context)
File "/opt/openerp/80/openerp/addons/base/ir/ir_translation.py", line 177, in _get_src
model_name, field = record.name.split(',')
ValueError: need more than 1 value to unpackHi anh. Anh cần dịch trường ir.ui.menu,name. Hoặc dịch cả hai luôn là được.
Cái này chắc lỗi typo của bên em!
P/s:
- Dịch thuật ngữ thì không cần restart.
- Anh chỉ cần đính kèm hình ảnh là đủ. Nhiều người không sử dụng Word nên sẽ không mở được file của anh. Nhưng file ảnh thì máy tính nào cũng mở được.
Thanks!
Hình ảnh mình chụp màn hình không tự động tạo thành một file .jpg mà nằm trong clipboard nên phải dán vào word để dùng. Lần sau thêm thao tác xuất ra file ảnh vậy.
Nghĩa là phải dịch luôn cả trường ir.ui.menu,name luôn à. Có ảnh hưởng gì không nhỉ, Vì vẫn còn rất nhiều thuật ngữ không sát lắm.