Bitcointalk · Website and software translations

中本聪,2010 年 10 月 4 日

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

阅读语言
中文译文

我在哪里能找到最新的英文 .po 文件,好让翻译保持同步?

poedit 能做这件事。要么从发布包里取 src 目录,要么用 SVN 下载。把你的 .po 文件放在 src 目录下第 3 层深的地方。用 poedit 打开它,执行 Catalog->Update from sources。

举例来说,你有: src src\base58.h src\bignum.h ... src\util.cpp src\util.h src\xpm src\localeu\LC_MESSAGES\bitcoin.po

用 poedit 打开 bitcoin.po,执行 Catalog->Update from sources。它会从 bitcoin.po 所在位置向上 3 层目录(..\..\..)寻找源码。

这会更新你已然做过的 .po 文件并加入所有新字符串。它恐会尝试匹配相近的字符串,因而检查一遍,确认它没做出任何错误的猜测。

务必使用我上传到 SVN 或发布包里的 .po 文件,因我总会修好至少几处东西。我把你的俄语那份附在这条消息里。

ORIGINAL · 英文原文
Where can I find the latest English .po file to keep the translation up-to-date?
poedit does it.  Either get the src directory from a release, or download it with SVN.  Place your .po file 3 directories deep under the src directory.  Open it with poedit and do Catalog->Update from sources.

So for example, you have:
src
src\base58.h
src\bignum.h
...
src\util.cpp
src\util.h
src\xpm
src\locale u\LC_MESSAGES\bitcoin.po

Open bitcoin.po with poedit, do Catalog->Update from sources.  It looks for the sourcecode up 3 directories (..\..\..) from where bitcoin.po is.

This updates your existing .po file you already worked on and adds any news strings.  It may try to match close strings, so check things over and make sure it didn't make any bad guesses.

Make sure you use the .po file I uploaded to SVN or in a release, because I always fix up at least a few things.  I'm attaching your Russian one to this message.
来源
Bitcointalk 原始链接 ↗ 记录编号 SN-0643