odoo17 档案管理之翻译2

翻译格式:#: 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}&amp;field=content&amp;model=dms.file&amp;filename_field=name&amp;download=true"
                                        >
                                            <i class="fa fa-download" />
                                            Download
                                        </a>
                                    </div>
                                </div>

原先一直翻译不起效果,具体到格式上

每个版本匀有pot 模板文件,多对比

相关推荐
我是唐青枫6 分钟前
Linux nc 命令详解
linux·运维·服务器
张丹 新叶之扉9 分钟前
图片预览 图片上传到服务器
服务器·前端·html5·js
ejinxian10 分钟前
Windows 系统上构建 Linux 应用
linux·运维·服务器·red hat
jakeswang11 分钟前
spring循环依赖以及MyBatis-Plus的继承特性导致循环依赖自动解决失效
java·spring·mybatis
GISer_Jing13 分钟前
Vue进阶面试题(三)
前端·javascript·vue.js
疯一样的码农14 分钟前
使用命令行创建一个简单的 Maven Web 应用程序
java·maven
SlothLu31 分钟前
Debezium-BinaryLogClient
java·mysql·kafka·binlog·多线程·debezium·数据迁移
科技D人生34 分钟前
Vue.js 学习总结(15)—— 如何快速删除 node_modules 依赖文件
前端·vue.js
孤帝@35 分钟前
Shell编程完结
前端·chrome
荼靡60337 分钟前
shell完结
前端·chrome