Code Monkey home page Code Monkey logo

chromium_grd_tool's Introduction

chromium_grd_tool

chromium中本地化中文资源添加工具

#为什么会小写一个这样的小工具?

  • 比如在基于chromium浏览器上给一个控件添加一个中文:"收藏网页",默认做法是:
    • 打开grd文件创建一个节点,如 <message name="IDS_NOTE_WEB_PAGE" desc="The text used for note to store web page "> Store Web Page </message>
    • 根据desc,使用chromium里一个脚本计算一个id值
    • 然后在中文对应的xtb文件添加一个节点:<translation id="2452486033108980940">收藏网页</translation>
  • 每次在浏览器上添加一个中文时如此麻烦,而且xtb里的id是不能重复的等等,这些都需要手动检测.

#使用

  • 运行grd_web_edit目录下的start.py即可启动(目录下的grd.dat是保存本地添加的记录)
  • test_files目录下是测试用的文件,实际的chromium可以修改目录\grd_web_edit\tools\handler\conf.py下grd和xtb文件配置.

#实际操作

  • 执行start.py会得到如下界面,点击添加: 这样一步就解决上述问题.而且还会自动判断重复的。

chromium_grd_tool's People

Contributors

510908220 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.