文号
t59754
阅读
7725
回复
4
收藏
1
已加入OpenRocket邮件列表并发表改进意见
2013/08/16
IP:澳大利亚
邮件列表地址
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


附文(写的都是很简单的英语,懒。)

Hi Guys,

I am a Chinese student. Some of my friends are rocket enthusiasts. They discovered the powerful OpenRocket in SourceForge but the language barrier is a headache problem so only few people could use the software.

When I was working on Chinese localization (l10n) these days, two main issues have been found.
(I haven't fully review the source code, maybe I am wrong in some points.)

1. Register supported language.

java.util.locale supports Language and Country, such as Fr_fr, En_US, En_GB, En_AU.
Of course, if set the language code without country code, Locale still works.
However, in China, which has two different language systems: Traditional Chinese and Simplified Chinese. Normally the language codes are zh_TW (Taiwai) and zh_CN (motherland).

A little enhancement could be done in [SwingPreferences.java]

    private static final List<Locale> SUPPORTED_LOCALES;
    static {
        List<Locale> list = new ArrayList<Locale>();
        for (String lang : new String[] { "en", "de", "es", "fr", "it", "ru", "cs", "pl"}) {   //original code
            list.add(new Locale(lang));
        }
        list.add(new Locale("zh","cn"));   //add
        list.add(new Locale("zh","tw"));   //add
        SUPPORTED_LOCALES = Collections.unmodifiableList(list);
    }

After modified this code and created two l10n language files (messages_zh_CN.properties, messages_zh_TW.properties), OpenRocket Preference -> Interface Languages will list the items properly.


2. Asian Fonts
When OpenRocket generates a diagram, it refers embedded font DejaVuSerif.ttf as default. Unfortunately, this font does not support Chinese or Japanese or other Asian languages, any words on the diagram will present as squares.
In my opinion, It is not recommended to embedded these fonts into OpenRocket because of their file size. I wish OpenRocket could implement a font selection menu in Preference window, for both java form font and diagram font.



Cheers,
celeron533
+14
科创币
20!Dopaminor
2013/08/16
好评&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .....................都千古了
4
celeron533作者
13年4个月前IP:未同步
560986
1楼
Interface这个单词都被屏蔽啊。。。

RFA

反屏蔽测试

测试通过
引用
评论
celeron533作者
13年4个月前IP:未同步
561279
2楼
已收到OpenRocket回复

Zhu
That is really good, could you please send us the files so that they can be
included in the OpenRocket core code. Note that sometime it is best to send
them has a word document so that I can convert them.

Kevin/Sampo

What do you think of point nbr 2 that Zhu reported?
Regards
Boris


经过对比,我发现当前的简体中文翻译文件已经无法适应最新的OpenRocket版本。主要问题是原本有部分字段未翻译以及某些字段在新版本中新增/移除。
希望有能力的人士能开始修订工作。
如果能同时出版繁体中文版那就更好了

关于翻译工作的详细内容,我会整理一下,明天发布。希望多多参与。
引用
评论
celeron533作者
13年4个月前IP:未同步
561772
3楼
From: sampo.niskanen@iki.fi
Date: Sun, 18 Aug 2013 18:52:17 +0300
To: openrocket-devel@lists.XXXXXXXXXXXXXXX
Subject: Re: [Openrocket-devel] Issues When Translate OpenRocket to Chinese (or other Asian Languages)




Hi,
Thanks for the work Zhu!
Regarding the language codes, I think it would be better to have either one the "default" Chinese version with language code zh, and the other one a language variant zh-CN or zh-TW.  That way it the current locale is just "zh" or some other variant of it (for example zh-HK), it still provides a Chinese locale.  In a previous work project we had "zh" being Simplified Chinese and zh-TW and zh-HK as variants.  Please give your opinion about this.

Is there some specific reason why the DejaVuSerif font is embedded and used?  Could we just use some standard PDF fonts (probably Helvetica)? (XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX)







Cheers,

   Sampo N.
引用
评论
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的