#. module: sale #: model:ir.model.fields,field_description:sale.field_sale_order__validity_date msgid"Expiration" msgstr"到期"
新模块po文件:
1 2 3 4
#. module: sale #: model:ir.model.fields,field_description:sale.field_sale_order__validity_date msgid"Expiration" msgstr"到期时间"
升级新模块即生效。注意:加载翻译不生效,且会变回原有的。
以下为config文件部分配置:
1 2 3 4 5 6 7 8 9 10 11 12
group.add_option('--load-language', dest="load_language", help="specifies the languages for the translations you want to be loaded") group.add_option('-l', "--language", dest="language", help="specify the language of the translation file. Use it with --i18n-export or --i18n-import") group.add_option("--i18n-export", dest="translate_out", help="export all sentences to be translated to a CSV file, a PO file or a TGZ archive and exit") group.add_option("--i18n-import", dest="translate_in", help="import a CSV or a PO file with translations and exit. The '-l' option is required.") group.add_option("--i18n-overwrite", dest="overwrite_existing_translations", action="store_true", my_default=False, help="overwrites existing translation terms on updating a module or importing a CSV or a PO file.") group.add_option("--modules", dest="translate_modules", help="specify modules to export. Use in combination with --i18n-export")