标签:译文 状态 动作 下划线 source bank class rgba 模块名
odoo
翻译的不同情况汇总持续维护 - odoo
翻译的不同情况汇总模型字段在界面上显示模型翻译快代码选项翻译模型字段在界面上的help翻译显示fields.Selection
字段翻译界面子菜单翻译界面上警告信息翻译搜索翻译PDF报表打印翻译序列化名称翻译动作下拉框翻译下载文件翻译下载报表文件翻译创建的模型,描述翻译接口初始化翻译初始化审批流翻译界面上string翻译报表在线查看文件的标题翻译
例:
# 模型字段
allowance = fields.Monetary(string=‘Allowance‘, currency_field="currency_id")
xxxxxxxxxx
# 界面展示
<group>
<field name="allowance" widget="monetary"/>
</group>
翻译:
xxxxxxxxxx
#. module:kthrp_payroll
#: module:ir.model.fields,field_description:kthrp_payroll.field_hr_employee_allowance
msgid "Allowance"
msgstr "津贴"
解释:
xxxxxxxxxx
#. module:模块名
#: module:ir.model.fields,field_description:模块名.field_下划线连接的模型名_相应模型的字段名
msgid "相应模型的字段名的string"
msgstr "翻译"
xxxxxxxxxx
#. module: kthrp_hr
#: model:ir.model,name:kthrp_hr.model_kthrp_hr_department_level
msgid "Kthrp HR Department Level"
msgstr "部门层级"
例:
<!--供应商阶段-->
<record model="kthrp.base.lookup.type" id="type_kthrp_purchase_supplier_stage_available">
<field name="code" eval="‘kthrp_purchase_supplier_stage_available‘"/>
<field name="name" eval="‘Supplier Stage Available‘"/>
<field name="active" eval="True"/>
</record>
?
<!--供应商阶段取值来源快码-->
<record model="kthrp.base.lookup.value" id="value_kthrp_purchase_supplier_stage_available_1">
<field name="code" eval="‘unqualified‘"/>
<field name="name" eval="‘Unqualified‘"/>
<field name="lookup_type_id" ref="type_kthrp_purchase_supplier_stage_available"/>
</record>
?
<record model="kthrp.base.lookup.value" id="value_kthrp_purchase_supplier_stage_available_2">
<field name="code" eval="‘qualified‘"/>
<field name="name" eval="‘Qualified‘"/>
<field name="lookup_type_id" ref="type_kthrp_purchase_supplier_stage_available"/>
</record>
翻译:
xxxxxxxxxx
#. module: kthrp_purchase
#: model:kthrp.base.lookup.type,name:kthrp_purchase.type_kthrp_purchase_supplier_stage_available
msgid "Supplier Stage Available"
msgstr "供应商类别认证"
?
#. module: kthrp_purchase
#: model:kthrp.base.lookup.value,name:kthrp_purchase.value_kthrp_purchase_supplier_stage_available_1
msgid "Unqualified"
msgstr "未认证"
?
#. module: kthrp_purchase
#: model:kthrp.base.lookup.value,name:kthrp_purchase.value_kthrp_purchase_supplier_stage_available_2
msgid "Qualified"
msgstr "合格"
解释:
#. module: 模块名
#: model:kthrp.base.lookup.type,name:模块名.快码选项的ID
msgid "快码选项的name"
msgstr "翻译"
?
?
#. module: 模块名
#: model:kthrp.base.lookup.value,name:模块名.快码选项的ID
msgid "快码选项的name"
msgstr "翻译"
例:
xxxxxxxxxx
# 可选供应商阶段
stage_available_ids = fields.Many2many(‘kthrp.base.lookup.value‘, ‘purchase_stage_available_rel‘, string=‘Stage Available‘, domain="[(‘lookup_type_id.code‘, ‘=‘, ‘kthrp_purchase_supplier_stage_available‘)]", help="In the procurement process, suppliers at the corresponding stage can be selected.")
翻译:
x
#. module: kthrp_purchase
#: model:ir.model.fields,help:kthrp_purchase.field_kthrp_purchase_config_setting_stage_available_ids
msgid "In the procurement process, suppliers at the corresponding stage can be selected."
msgstr "在采购环节可选择处于对应阶段的供应商"
解释:
xxxxxxxxxx
#. module: 模块名
#: model:ir.model.fields,help:模型名.field_下划线连接的模型名_相应模型的字段名
msgid "help的内容"
msgstr "翻译"
fields.Selection
字段翻译举例:
xxxxxxxxxx
#. module: kthrp_base
#: selection:res.partner.bank,account_type:0
msgid "Inner"
msgstr "内部银行账户"
解释:
xxxxxxxxxx
#. module: 模块名
#: selection:模型名(.形式的),字段名:0
msgid "选项"
msgstr "选项翻译"
例:
xxxxxxxxxx
<menuitem id="menu_budget_summary_query_report"
name="Budget Summary Query Report"
parent="menu_kthrp_budget_report"
action="action_kthrp_budget_summary_query_report"
sequence="20"/>
翻译:
xxxxxxxxxx
#. module: kthrp_budget
#: model:ir.ui.menu,name:kthrp_budget.menu_budget_summary_query_report
#: model:ir.actions.report.xml,name:kthrp_budget.kthrp_budget_summary_query_report_xlsx
msgid "Budget Summary Query Report"
msgstr "预算编制汇总查询报表"
?
#. module: kthrp_hr
#: model:ir.actions.act_window,name:kthrp_hr.action_kthrp_hr_professional_title
#: model:ir.ui.menu,name:kthrp_hr.menu_kthrp_hr_professional_title
msgid "Professional Titles"
msgstr "职称"
解释:
xxxxxxxxxx
#. module: 模块名
#: model:ir.ui.menu,name:模块名.待翻译菜单id
msgid "菜单name值"
msgstr "翻译内容"
例:
xxxxxxxxxx
if rec.end_time and rec.start_time >= rec.end_time:
raise ValidationError(_(‘End time must be after the start time!‘))
翻译:
xxxxxxxxxx
#. module: kthrp_account
#: code:addons/kthrp_account/models/account_template.py:62
#, python-format
msgid "End time must be after the start time!"
msgstr "结束时间必须在开始时间之后!"
解释:
xxxxxxxxxx
#. module: 模块名
#: code:addons/模块名/路径/文件名.格式:行数
#, python-format
msgid "待翻译内容"
msgstr "翻译内容"
例:
xxxxxxxxxx
<record id="view_kthrp_portal_homepage_concern_search" model="ir.ui.view">
<field name="name">kthrp.portal.homepage.concern.search</field>
<field name="model">kthrp.portal.homepage.concern</field>
<field name="arch" type="xml">
<search>
<field name="name" filter_domain="[‘|‘,(‘name‘, ‘ilike‘, self),(‘code‘,‘ilike‘,self)]"/>
<filter string="Archived" domain="[(‘active‘,‘=‘,False)]"/>
<filter string="Code" filter_domain="[(‘code‘,‘ilike‘,self)]"/>
</search>
</field>
</record>
翻译:
xxxxxxxxxx
#. module: kthrp_portal
#: model:ir.ui.view,arch_db:kthrp_portal.view_kthrp_portal_homepage_concern_search
msgid "Code"
msgstr "编码"
解释:
xxxxxxxxxx
#. module: 模块名
#: model:ir.ui.view,arch_db:模块名.对应search的record的id
msgid "string值"
msgstr "翻译"
翻译:
xxxxxxxxxx
#. module: kthrp_asset
#: model:ir.ui.view,arch_db:kthrp_asset.kthrp_asset_installation_report
msgid "Installation Site"
msgstr "安装地点"
解释:
xxxxxxxxxx
#. module: 模块名
#: model:ir.ui.view,arch_db:对应xml定义报表的name值(kthrp_asset.kthrp_asset_installation_report)
msgid "显示"
msgstr "翻译"
例:
xxxxxxxxxx
<!--AR应收批初始化序列-->
<record id="sequence_kthrp_receivable_ar_receivable_batch" model="ir.sequence">
<field name="name">AR Receivable Batch</field>
<field name="code">AR_AR</field>
<field name="prefix">AR%(y)s%(month)s</field>
<field name="padding">5</field>
<field name="number_per_year">1</field>
<field name="number_per_month">1</field>
</record>
name(AR Receivable Batch)的翻译
xxxxxxxxxx
#. module: kthrp_receivable
#: model:ir.sequence,name:kthrp_receivable.sequence_kthrp_receivable_ar_receivable_batch
msgid "AR Receivable Batch"
msgstr "AR应收批"
解释:
xxxxxxxxxx
#. module: 模块名
#: model:ir.sequence,name:模块名.record的id
msgid "name"
msgstr "翻译"
例:
xxxxxxxxxx
<report id="action_kthrp_payable_invoice_report_print"
model="kthrp.payable.invoice"
string="Print Invoice"
report_type="qweb-pdf"
name="kthrp_payable.kthrp_payable_invoice_report"
file="kthrp_payable.kthrp_payable_invoice_report"
menu="True"/>
翻译:
xxxxxxxxxx
#. module: kthrp_payable
#: model:ir.actions.report.xml,name:kthrp_payable.action_kthrp_payable_invoice_report_print
msgid "Print Invoice"
msgstr "发票打印"
解释:
xxxxxxxxxx
#. module: 模块名
#: model:ir.actions.report.xml,name:模块名.record的id
msgid "Strin的值"
msgstr "翻译"
例子:
xxxxxxxxxx
<odoo>
<data>
<!-- xls 报表 -->
<record id="product_storage_space_import_xlsx" model="ir.actions.report.xml">
<field name="name">Product Storage Space</field>
<field name="model">kthrp.stock.product.storage.space</field>
<field name="type">ir.actions.report.xml</field>
<field name="report_name">kthrp.product.storage.space.import.xlsx</field>
<field name="report_type">xlsx</field>
<field name="auto" eval="False"/>
</record>
</data>
</odoo>
翻译:
xxxxxxxxxx
#. module: kthrp_stock
#: model:ir.actions.report.xml,name:kthrp_stock.product_storage_space_import_xlsx
msgid "Product Storage Space"
msgstr "产品存储货位批量导入模板"
解释:
xxxxxxxxxx
#. module: 模块名
#: model:ir.actions.report.xml,name:模块名.报表record的id
msgid "报表record的report_name"
msgstr "翻译内容"
例:
xxxxxxxxxx
<!-- xls 报表 -->
<record id="product_storage_space_import_xlsx" model="ir.actions.report.xml">
<field name="name">Product Storage Space</field>
<field name="model">kthrp.stock.product.storage.space</field>
<field name="type">ir.actions.report.xml</field>
<field name="report_name">kthrp.product.storage.space.import.xlsx</field>
<field name="report_type">xlsx</field>
<field name="auto" eval="False"/>
</record>
翻译:
xxxxxxxxxx
#. module: kthrp_stock
#: model:ir.actions.report.xml,name:kthrp_stock.product_storage_space_import_xlsx
msgid "Product Storage Space"
msgstr "产品存储货位批量导入模板"
解释:
xxxxxxxxxx
#. module: 模块名
#: model:ir.actions.report.xml,name:模块名.声明报表的xml文件的record的id
msgid "name"
msgstr "翻译"
例子:
xxxxxxxxxx
class KthrpAccountAccountMapping(models.Model):
_name = ‘kthrp.account.account.mapping‘
_description = ‘Kthrp Account Account Mapping‘
_order = ‘source_account_chart_id‘
翻译:
xxxxxxxxxx
#. module: kthrp_account
#: model:ir.model,name:kthrp_account.model_kthrp_account_account_mapping
msgid "Kthrp Account Account Mapping"
msgstr "科目表映射"
解释:
xxxxxxxxxx
#. module: 模块名
#: model:ir.model,name:模块名.model_下划线连接的模型名
msgid "描述"
msgstr "翻译"
例子:
xxxxxxxxxx
<record model="kthrp.base.interface" id="interface_kthrp_kthis_uom">
<field name="code">kthrp.kthis.uom</field>
<field name="name">Sync UOM to KTHIS</field>
<field name="interface_type">webservice</field>
<field name="source_system">kthrp</field>
<field name="target_system">kthis</field>
<field name="service_type">consumer</field>
</record>
翻译:
xxxxxxxxxx
#. module: kthrp_kthis_interface
#: model:kthrp.base.interface,name:kthrp_kthis_interface.interface_kthrp_kthis_uom
msgid "Sync UOM to KTHIS"
msgstr "从KTHRP同步单位至KTHIS接口"
解释:
xxxxxxxxxx
#. module: 模块名
#: model:kthrp.base.interface,name:模块名.record的id
msgid "record的name"
msgstr "翻译"
例子:
xxxxxxxxxx
<!--资产验收审批流-->
<record id="workflow_model_kthrp_asset_acceptance" model="kthrp.base.workflow.model">
<field name="name">Kthrp Asset Acceptance</field>
<field name="model_id" eval=" ref(‘kthrp_asset.model_kthrp_asset_acceptance‘)"/>
</record>
翻译:
xxxxxxxxxx
# module: kthrp_asset
#: model:kthrp.base.workflow.model,name:kthrp_asset.workflow_model_kthrp_asset_acceptance
msgid "Kthrp Asset Acceptance"
msgstr "资产验收"
解释:
xxxxxxxxxx
# module: 模块名
#: model:kthrp.base.workflow.model,name:模块名.record的id
msgid "name"
msgstr "翻译"
xxxxxxxxxx
#. module: kthrp_purchase
#: model:ir.ui.view,arch_db:kthrp_purchase.view_kthrp_purchase_qualification_type_tree
msgid "Purchase Qualification Type Tree"
msgstr "Purchase Qualification Type Tree"
xxxxxxxxxx
#. module: kthrp_asset
#. openerp-web
#: code:addons/kthrp_asset/static/src/xml/asset_suspense_report_query.xml:0
#, python-format
msgid "Asset State"
msgstr "状态"
标签:译文 状态 动作 下划线 source bank class rgba 模块名
原文地址:https://www.cnblogs.com/pywjh/p/13168259.html