原始文献 / 论坛帖 / Re: Website and software translations
Re: Website and software translations
Bitcointalk · 2010-07-15 18:30:22 UTC
引用自:aidos,2010 年 7 月 15 日 12:49:11 AM(https://bitcointalk.org/index.php?topic=151.msg3017#msg3017)
这是法语 .po 文件。顺手记了几个问题:
1. "关于"框没吃翻译,还是显示英文版,虽然软件其他地方都用了翻译字符串,.po 文件里也有"关于"框消息的翻译。设置窗口里的"应用"按钮也一样。
我得给你个更新的 .po 文件。
引用自:aidos,2010 年 7 月 15 日 12:49:11 AM(https://bitcointalk.org/index.php?topic=151.msg3017#msg3017)
2. 主窗口交易列表里,如果某笔交易的描述带变音字符(比如 "éàèç"),就显示不出来。我猜是某处没把字符串当 UTF8 处理。
OK,这肯定是哪儿有问题,我得看看,或者其他 dev 也可以看下。
引用自:aidos,2010 年 7 月 15 日 12:49:11 AM(https://bitcointalk.org/index.php?topic=151.msg3017#msg3017)
4. 关于 .po 文件:
- 有些字符串不用翻译(比如 "Bitcoin"),是不是不该包在 _("...")里?
- 有些不该拆开。我记得有一条交易费的消息,字符串被拆成两截、中间插手续费数值,其实直接放个 %s 就行。拆开后难翻,我得去源码里找才知道怎么回事。
- 有些字符串首尾带空格,必要性很可疑,在 PoEdit 里还容易漏看。
很多字符串在 uiproject.fbp 自动生成的代码里,那些地方动不了。我有个小程序,专门找你 .po 文件里字符串首尾空格不一致的地方,传 SVN 前我手动修好。
英文原文
Quote from: aidos on July 15, 2010, 12:49:11 AM(https://bitcointalk.org/index.php?topic=151.msg3017#msg3017)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(https://bitcointalk.org/index.php?topic=151.msg3017#msg3017)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(https://bitcointalk.org/index.php?topic=151.msg3017#msg3017)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.
