跳转至内容
  • 版块
  • 标签
  • 热门
  • 用户
  • 群组
皮肤
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • 默认(Flatly)
  • 不使用皮肤
折叠

Odoo 中文社区

  1. 主页
  2. 版块
  3. Odoo 开发与实施交流
  4. 求教:关于翻译问题

求教:关于翻译问题

已定时 已固定 已锁定 已移动 Odoo 开发与实施交流
3 帖子 1 发布者 2.9k 浏览
  • 从旧到新
  • 从新到旧
  • 最多赞同
登录后回复
此主题已被删除。只有拥有主题管理权限的用户可以查看。
  • X 离线
    X 离线
    xichun
    写于 最后由 编辑
    #1

    open.py文件:

    <br />{<br />&nbsp; &nbsp; &quot;name&quot;: &quot;Device Management&quot;,<br />&nbsp; &nbsp; &quot;version&quot;: &quot;1.1&quot;,<br />&nbsp; &nbsp; &quot;category&quot;: &quot;Device Management&quot;,<br />&nbsp; &nbsp; &#039;complexity&#039;: &quot;easy&quot;,<br />&nbsp; &nbsp; &quot;website&quot;: &quot;http://www.xxx.com&quot;,<br />&nbsp; &nbsp; &#039;depends&#039;: &#91;&#039;base&#039;,&#039;region&#039;],<br />&nbsp; &nbsp; &#039;init_xml&#039;: &#91;&#039;device_data.xml&#039;],<br />&nbsp; &nbsp; &#039;update_xml&#039;: [<br />&nbsp; &nbsp; &nbsp; &nbsp; &#039;device_view.xml&#039;,<br />&nbsp; &nbsp; ],<br />&nbsp; &nbsp; &#039;demo_xml&#039;: &#91;],<br />&nbsp; &nbsp; &#039;test&#039;: &#91;],<br />&nbsp; &nbsp; &#039;installable&#039;: True,<br />&nbsp; &nbsp; &#039;application&#039;: True,<br />&nbsp; &nbsp; &#039;auto_install&#039;: False,<br />&nbsp; &nbsp; &quot;css&quot;: [ &#039;static/src/css/device.css&#039; ],<br />&nbsp; &nbsp; &#039;js&#039;: &#91;&#039;static/src/js/device.js&#039;],<br />}<br />
    


    device_data.xml文件(部分):

    <br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />&lt;openerp&gt;<br />&nbsp; &nbsp; &lt;data noupdate=&quot;1&quot;&gt;<br />	&lt;record id=&quot;assets_category1&quot; model=&quot;device.assets.category&quot;&gt;<br />	&nbsp; &nbsp; &lt;field name=&quot;name&quot;&gt;Optical gas detector&lt;/field&gt;<br />	&lt;/record&gt;<br />&nbsp; &nbsp; &lt;/data&gt;<br />&lt;/openerp&gt;<br />
    


    zh_CN.po文件(部分):

    <br />#. module: device<br />#: model:device.assets.category,name:device.assets_category1<br />msgid &quot;Optical gas detector&quot;<br />msgstr &quot;光学气体检测仪&quot;<br />
    



    为件么"[b]Optical gas detector[/b]"翻译不过来?

    1 条回复 最后回复
    0
    • X 离线
      X 离线
      xichun
      写于 最后由 编辑
      #2

      自已来回复,

      <br />class device_assets_category(osv.osv):&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &#039;&#039;&#039;Assets Category&#039;&#039;&#039;<br />&nbsp; &nbsp; _name=&#039;device.assets.category&#039;<br />&nbsp; &nbsp; _columns={<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;name&#039;:fields.char(&#039;Name&#039;,size=64,required=True,translate=True),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; _sql_constraints = [<br />&nbsp; &nbsp; &nbsp; &nbsp; (&#039;device_assets_category_uniq&#039;, &#039;unique (name)&#039;, &#039;device assets category name must be unique.&#039;)<br />&nbsp; &nbsp; ]<br />
      


      加上"translatel"属性

      1 条回复 最后回复
      0

      • 登录

      • 没有帐号? 注册

      • 登录或注册以进行搜索。
      • 第一个帖子
        最后一个帖子
      0
      • 版块
      • 标签
      • 热门
      • 用户
      • 群组