原始文献 / 论坛帖 / Re: Website and software translations

Re: Website and software translations

Bitcointalk · 2010-10-04 19:21:01 UTC

AuthorSatoshi Nakamoto
TitleRe: Website and software translations
Date2010-10-04 19:21:01 UTC
ForumBitcointalk · 原文

引用自 eurekafag(2010 年 10 月 4 日 10:55:56 AM)(https://bitcointalk.org/index.php?topic=151.msg15248#msg15248):哪里能找到最新的英文 .po 文件,好让翻译跟上?
poedit 可以办到。要么从某个发布版里拿 src 目录,要么用 SVN 下载。把你的 .po 文件放在 src 目录下三级深的位置。用 poedit 打开它,做 Catalog->Update from sources。

比如,你有:
src
src\base58.h
src\bignum.h
...
src\util.cpp
src\util.h
src\xpm
src\locale
u\LC_MESSAGES\bitcoin.po

用 poedit 打开 bitcoin.po,做 Catalog->Update from sources。它会从 bitcoin.po 所在位置往上 3 级目录(..\..\..)找源代码。

这会更新你已有的 .po 文件,并加入新增的字符串。它可能会尝试匹配相近的字符串,所以要检查一遍,确保它没有猜错。

一定要用我上传到 SVN 或发布版里的 .po 文件,因为我每次总会顺手修好几处。我把你的俄语文件附在这条消息里了。

英文原文

Quote from: eurekafag on October 04, 2010, 10:55:56 AM(https://bitcointalk.org/index.php?topic=151.msg15248#msg15248)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.