swingx java,对SwingX 做了一些国际化翻译

今天用到了一些SwingX 的类库,但是显示的时候都是英文的,感觉挺别扭的,于是就对SwingX做了一些国际化!

下载了源代码,然后找到对应的Properties 文件,发现其实SwingX已经有很多个国家的语言版本了,就是少了中国版的,唉!谁叫中国的程序员使用Swing的少呢? 呵呵!

用NetBeans打开 项目文件,找到properties文件,为每个原始的Properties文件添加一个 zh_CN的locale

。然后就是翻译了。这里不得不赞美一下NetBeans 对properties

文件的编辑功能相当的好用,可以直接写中文,而不必转换为Unicode。NetBeans 默认已经帮你完成了。

这是我第一次翻译,因为能力有限,所以翻译难免会有一点小毛病,有什么翻译问题请留言,或者发邮件告诉我,让我好改正。

icon_wink.gif

2009-11-04 更新:

翻译更新到SwingX1.6, SwingX1.6 是一个 Java 6 only 版本,也就是说这个版本需要用JRE1.6 。

2009-09-23 更新:

应朋友们的要求,今天放上来 SwingX-1.0 的国际化版本(并非本地化,仅仅只是国际化)。

修复LoginPanel 翻译的问题,原来翻译成中文有乱码,现保留为英文。

初步判断是SwingX 中使用了不支持中文的字体造成的。

2009-07-07 更新:

第一次对SwingX进行翻译

------------------------------传说中华丽的分割线-----------------------------------

(SwingX-1.0)点这里下载   (20090923)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Readme - SwingLabs SwingX Project - http://swingx.dev.java.net<br><br><br>SwingX is a library of components and utilities extending the Java Swing library; read more at our website, <br>http://swingx.dev.java.net, and Wiki page, http://wiki.java.net/bin/view/Javadesktop/SwingLabsSwingX<br><br><br>Getting the Latest Source<br>=========================<br><br>1) Check out the lastest code<br>Download the latest release from our CVS repository; full instructions are at<br>https://swingx.dev.java.net/servlets/ProjectSource<br><br>but you can check out using the generic account "guest", with these settings<br><br>cvs -d :pserver:guest@cvs.dev.java.net:/cvs login<br><br>followed by<br><br>cvs -d :pserver:guest@cvs.dev.java.net:/cvs checkout swingx <br><br><br>Building the Source<br>===================<br>SwingX relies on Ant and Ant build files for controlling compilation, building docs, testing, etc. You can use our Ant build scripts or use your own--some IDEs make this easy to do.<br><br>To compile from the command line, you'll need to have Apache Ant installed; see http://ant.apache.org. <br><br>IMPORTANT: our default task in Ant also runs our unit tests, which are written using jUnit. You need to have Ant be aware of jUnit *before* compiling SwingX. We can't help you with <br>this--it's an Ant configuration issue. <br><br>If jUnit is not properly configured, you may get an error like this:<br> BUILD FAILED<br> c:\swingx\nbproject\build-impl.xml:407: Following error occured while executing this line<br> c:\\swingx\nbproject\build-impl.xml:127: Could not create task or type of type: junit.<br><br> Ant could not find the task or a class this task relies upon.<br><br>Suggestions: <br>- for Ant 1.5.x and previous, make sure optional.jar is in your ANT_HOME\lib directory.<br>- for Ant 1.6.x and above, make sure ant-junit.jar is in your ANT_HOME\lib directory, and that jUnit.jar is either in that directory as well OR listed on your CLASSPATH.<br><br>You can build SwingX by going to the command line and typing<br>ant<br><br>That should be it--this will test and build swingx.jar in the dist directory. <br><br><br>

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值