回复:网站和软件翻译
原始发布页
打开来源页面查看 1 个交叉存档
引用自:aidos 于 2010 年 7 月 15 日 上午 12:49:11
好的,这是法语的 .po 文件。趁此机会,我注意到几个问题:
1. “关于”对话框没有采用翻译,对我来说它仍然显示英文版本,尽管软件的其他部分都在使用翻译后的字符串,而且 .po 文件中也包含“关于”对话框消息的翻译字符串。设置窗口中的“应用”按钮也有同样的问题。
我需要提供一个更新后的 .po 文件。
引用自:aidos 于 2010 年 7 月 15 日 上午 12:49:11
2. 如果主窗口交易列表中某笔交易的描述包含变音字符(例如“éàèç”),它就不会显示出来。我猜某处没有把这个字符串作为 UTF8 正确处理。
好的,这肯定是某处出了问题,我得查看一下,或者其他开发者也可以处理。
引用自:aidos 于 2010 年 7 月 15 日 上午 12:49:11
4. 关于 .po 文件: - .po 文件里有一些不需要翻译的字符串(例如:“Bitcoin”)。也许这些不该放在 _("...") 里面? - 另一些字符串不应该拆开。我记得有一条关于交易费的消息,为了插入费用数值而把字符串拆成了两段,其实你完全可以放一个 %s。这样会让消息更难翻译,因为我不得不去源代码里查清楚究竟是怎么回事。 - 有些字符串的开头或结尾带有空白,这些空白是否必要很值得商榷,而且在 PoEdit 里很容易漏掉。
许多字符串都在由 uiproject.fbp 自动生成的代码中,对这些问题无能为力。我有一个程序,用来找出你的 .po 文件中字符串开头和结尾所有不一致的空格,并在上传到 SVN 之前手动修正它们。
英文原文
展开英文原文
Quote from: aidos on July 15, 2010, 12:49:11 AM
Ok here is the .po file for French. While I'm at it, I noted a couple of issues:
1. The "About" box didn't take the translation into account, it still displays the english version to me, even though the rest of the software is using the translated strings, and the .po file contains the translation string of the "About" box message. Same problem with the "Apply" button in the Settings window.
I need to give an updated .po file.
Quote from: aidos on July 15, 2010, 12:49:11 AM
2. If an transaction's description in the list of transaction in the main window contains a diacritical character (such as "éàèç"), it's not displayed. I suppose the string is not being properly handled as UTF8 somewhere.
OK, this must be a problem somewhere, I'll have to take a look at it or one of the other devs can.
Quote from: aidos on July 15, 2010, 12:49:11 AM
4. About the .po file : - There are a few strings in the .po file that don't needs translation (ie: "Bitcoin"). Maybe those shouldn't be inside _("...") ? - Others shouldn't be split. I can remember one message about transaction fee where the string is split in two to insert the fee value, where you could simply have put a %s. It makes the message harder to translate as I had to go in the source to find exactly what was going on. - Some strings have whitespace at the end or start, which necessity is very debatable, and it's easy to miss in PoEdit.
Many of the strings are in code automatically generated from uiproject.fbp where nothing can be done about these things. I have a program I use to find all the spacing inconsistencies at the beginning and ending of strings in your .po file and manually fix them up before I upload them to SVN.