翻译格式:#: model_terms:对象名称,arch_db:模块名.xml_id
#. module: dms
#: model_terms:ir.ui.view,arch_db:dms.view_dms_directory_kanban
#: model_terms:ir.ui.view,arch_db:dms.view_dms_file_kanban
#: model_terms:ir.ui.view,arch_db:dms.view_dms_tag_kanban
#. module: dms
#: model_terms:ir.ui.view,arch_db:dms.view_dms_directory_kanban
#: model_terms:ir.ui.view,arch_db:dms.view_dms_file_kanban
#: model_terms:ir.ui.view,arch_db:dms.view_dms_tag_kanban
msgid ""
"<i class=\"fa fa-trash-o\"/>\n"
" Delete"
msgstr ""
"<i class=\"fa fa-trash-o\"/>\n"
" 删除"
#. module: dms
#: model_terms:ir.ui.view,arch_db:dms.view_dms_file_kanban
msgid ""
"<i class=\"fa fa-unlock-alt\"/>\n"
" Unlock"
msgstr ""
"<i class=\"fa fa-unlock-alt\"/>\n"
" 解锁"
#. module: dms
#: model_terms:ir.ui.view,arch_db:dms.view_dms_file_kanban
msgid ""
"<i class=\"fa fa-lock\"/>\n"
" Lock"
msgstr ""
"<i class=\"fa fa-lock\"/>\n"
" 锁定"
#. module: dms
#: model_terms:ir.ui.view,arch_db:dms.view_dms_file_kanban
msgid ""
"<i class=\"fa fa-archive\"/>\n"
" Archive"
msgstr ""
"<i class=\"fa fa-archive\"/>\n"
" 归档"
代码文件:
<record id="view_dms_file_kanban" model="ir.ui.view">
<field name="name">dms_file.kanban</field>
<field name="model">dms.file</field>
<field name="arch" type="xml">
<kanban
js_class="file_kanban"
class="mk_file_kanban_view o_kanban_small_column o_kanban_mobile"
banner_route="/onboarding/document_onboarding_file"
>
<field name="id" />
<field name="tag_ids" />
<field name="name" />
<field name="color" />
<field name="active" />
<field name="mimetype" />
<field name="icon_url" />
<field name="create_uid" />
<field name="write_date" />
<field name="locked_by" />
<field name="is_locked" />
<field name="is_lock_editor" />
<field name="permission_write" />
<field name="permission_unlink" />
<field name="write_date" />
<templates>
<t t-name="kanban-menu">
<div class="container">
<div class="row">
<div
class="col-6 o_kanban_card_manage_section o_kanban_manage_view"
>
<h5
role="menuitem"
class="o_kanban_card_manage_title"
>
<span>Operations</span>
</h5>
<div
role="menuitem"
t-if="record.permission_write.raw_value and !record.is_locked.raw_value"
>
<a name="lock" type="object">
<i class="fa fa-lock" />
Lock
</a>
</div>
<div
role="menuitem"
t-if="record.is_locked.raw_value and record.is_lock_editor.raw_value"
>
<a name="unlock" type="object">
<i class="fa fa-unlock-alt" />
Unlock
</a>
</div>
<div
role="menuitem"
t-if="record.permission_write.raw_value and record.active.raw_value"
>
<a name="toggle_active" type="object">
<i class="fa fa-archive" />
Archive
</a>
</div>
<div
role="menuitem"
t-if="record.permission_write.raw_value and !record.active.raw_value"
>
<a name="toggle_active" type="object">
<i class="fa fa-archive" />
Unarchive
</a>
</div>
<div role="menuitem">
<a
t-attf-href="/web/content?id=#{record.id.raw_value}&field=content&model=dms.file&filename_field=name&download=true"
>
<i class="fa fa-download" />
Download
</a>
</div>
</div>
原先一直翻译不起效果,具体到格式上
每个版本匀有pot 模板文件,多对比