Skip to content

回复:网站和软件翻译 ​

原始发布页

打开来源页面
查看 1 个交叉存档

引用自:eurekafag 于 2010 年 10 月 4 日 上午 10:55:56

我在哪里可以找到最新的英语 .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\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

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.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。