콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
16125 화면

Let's say I make a module.

How can I generate a .po files for this module?

아바타
취소
작성자 베스트 답변

First we have to load the terms on OpenERP.

Log on OpenERP and ensure you are in Technical Features group

Synchronize translations in

Settings -> Translations -> Application Terms -> Synchronize Terms

Then use the following command line to generate your po file:

server/openerp-server --log-level=error --i18n-export=/tmp/<lang>.po -l <lang_code> -d <database> --modules=<module_name>

Ex.
lang_code = fr_FR
lang = fr

Then you can use msgmerge to merge the new po file with an existing one.

아바타
취소

Thanks for the tip, do you know for which versions does it work ?

작성자

This is what I use for v6.1 and v7 in a script.

베스트 답변

If you can't run openerp but can only use it, go to

Settings -> Translations -> Import / Export -> Export Translation

and folow the step to extract your po file

image description

아바타
취소

This does not extract text from `_("Python code")`, only from XML files. Instead, Yannick Vaucher's method does.

관련 게시물 답글 화면 활동
14
12월 24
69370
What's the context? 해결 완료
9
3월 24
118881
1
6월 20
12110
2
3월 16
10414
1
3월 15
7528