Giter Site home page Giter Site logo

zedocn / vvm-translator Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 3.0 1.35 MB

visualvm 的汉化工具,提供了语言提取和生成,可用于其他语言的翻译。

Java 100.00%
chinese-translation languages localization swing translation translator utils visualvm

vvm-translator's Introduction

VVM-翻译助手

( VisualVM 以下简称 VVM )

VVM-翻译助手是一个基于Java的工具, 旨在自动化VisualVM软件的本地化过程。 它可以将JAR文件中的语言属性文件进行翻译, 从而轻松定制软件的用户界面。

特点

  • 自动将翻译应用于 VVM JAR 文件。
  • 创建 VVM 的备份,以便轻松回滚。
  • 识别尚未本地化的剩余语言。
  • 支持自定义和扩展以支持其他语言。

使用方法

使用现成的翻译语言

  1. 运行TranslationConfigWindow类,这是Swing制作的可视化翻译配置界面。
  2. 选择你的 VVM 安装路径。
  3. 选择要使用的翻译语言。
  4. 在翻译前你可以备份一下,防止意外事故。

翻译成其他语言

  1. 在接下来的操作前都需要设置 VVM 的路径 设置 VVM 的路径setVvmPath(Path.of("D:\\Program Files\\visualvm\\visualvm_217")), 必要时请创建备份createBackup(),可以使用rollbackFromBackup()进行恢复。
  2. 使用readAllLanguages()读取 VVM 所有的语言, 这时你将看到文件lang/allLang.properties里面是 VVM 的所有语言。
  3. 你可以创建一个翻译语言文件在lang/translated/(LanguageCode).properties,然后修改它。
  4. 当你不确定还有哪些内容没有翻译完时可以使用findRemainingLang(), 你可以在文件lang/remainingLang.properties查看剩下未翻译的内容。

目前拥有的语言

  • zh_CN 简体中文 英文源 由GPT翻译 chatGPT
  • zh_TW 繁体中文 简体中文源 由vsc扩展转换 opencclint
  • en_US 英文 VVM 原始内容

软件截图

  • 简易的使用界面

  • 简体中文的VVM界面

  • 设置界面 包含了所有插件的翻译

  • 繁体中文的VVM界面

其他

控件风格

在语言文件内的LookAndFeelClassNameLookAndFeelCustomsClassName值可以是以下:

  • default
  • javax.swing.plaf.metal.MetalLookAndFeel
  • com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel
  • com.sun.java.swing.plaf.motif.MotifLookAndFeel
  • com.sun.java.swing.plaf.mac.MacLookAndFeel
  • com.sun.java.swing.plaf.gtk.GTKLookAndFeel

欢迎贡献更多语言翻译

vvm-translator's People

Contributors

zedocn avatar

Stargazers

 avatar  avatar 会敲代码的程序员 avatar 亡灵暴龙大帝 avatar  avatar DolphinHome avatar  avatar captain avatar Jame Tillman avatar yesonline avatar  avatar  avatar zs avatar 鲸鸟 avatar  avatar GuoJunwang avatar linG avatar zengzeng avatar love_156 avatar

Watchers

 avatar  avatar

vvm-translator's Issues

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.