Bitcointalk · Website and software translations

中本聪,2010 年 7 月 15 日

SN-0593 已核对来源,附原文与上下文。

阅读语言
中文译文

好,这是法语的 .po 文件。顺手记下几个问题:

1. "About"(关于)框没有应用翻译,它仍给我显示英文版,尽管软件其他部分都在用翻译后的字符串,而且 .po 文件里也包含"About"框消息的翻译串。设置窗口里的"Apply"(应用)按钮同样如此。

我需要提供一份更新过的 .po 文件。

2. 如果主窗口交易列表中某笔交易的描述含有带变音符的字符(比如"éàèç"),它就显示不出来。我猜是字符串在某个环节没被当作 UTF8 正确处理。

好,这肯定是哪里出了问题,我回头看看,或者其他开发者来看看。

4. 关于 .po 文件: - .po 文件里有几个字符串并不需要翻译(如"Bitcoin")。也许这些不该放进 _("...") 里? - 另有一些不该拆分。我记得有一条关于交易费的消息被拆成了两段以便插入费值,其实用个 %s 就行了。这加大了翻译难度,我不得不翻源码才搞清楚到底是怎么回事。 - 有些字符串的开头或结尾带空白字符,其必要性很值得商榷,而且在 PoEdit 里很容易漏看。

很多字符串位于由 uiproject.fbp 自动生成的代码里,这些事在那里没有办法。我写了个小程序,用来找出你 .po 文件里所有字符串开头结尾的空格不一致问题,在上传到 SVN 之前手动修好。

ORIGINAL · 英文原文
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.

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.

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.
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-0593