markdown 使用Google翻译翻译.PO文件
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 使用Google翻译翻译.PO文件相关的知识,希望对你有一定的参考价值。
# Translating .PO files using Google translate
So you need to translate some plugin or theme to your native language and have been handed one of those pesky .pot / .po files?
You're lucky the plugin at least supports language files, but unlucky that you now have a mountain of small lines to translate. You could download a tool like [poedit][1] and slog through the translation, but I felt there has to be a way to populate the file with at least some of the required translation, saving some of the grunt work. Fortunately Google delivers (although oddly I did not find the link through my initial google search!)
Google translate has a workbench for PO files: http://translate.google.com/toolkit/list?hl=en#translations/active
Obviously you need a Google account. This tool gives you a simple side by side workflow where you can see the original and edit the translation, but more importantly: Google will make a best effort attempt to translate your file for you!
Let's take a wpjobboard po file as an example and upload this:
You select the orange upload option:
![overview][2]
Then you proceed to select the .PO file with the original language. Be sure to save the result as filename-nl_NL (in case of the Dutch version). If you are unsure about the correct language, check your wp-config.php file for the correct name.
![upload][3]
Once you select "upload for translation" the file will be uploaded and Google will attempt to translate the contents to the language you selected in the previous screen. This is where you go through the translations one by one to ensure they are correct.
Basically the blue entries are the ones Google believes are correct. The red entries were translated, but had some issues. Most automatic translation tools attempt to reverse translate their translations to verify. Red does not have to mean the translation is wrong, just that the system is unable to validate automatically.
![translating][4]
When you are finally done you can complete the translation. The file -> Download… gives you the resulting file. This file will need to be uploaded to the location specified by your plugin.
[1]: http://www.poedit.net/
[2]: http://bvs.io/wp-content/uploads/2013/01/overview.png
[3]: http://bvs.io/wp-content/uploads/2013/01/upload.png
[4]: http://bvs.io/wp-content/uploads/2013/01/translating-1024x439.png
[Source](http://bvs.io/translating-po-files-using-google-translate/ "Permalink to Translating .PO files using Google translate – Just my corner")
以上是关于markdown 使用Google翻译翻译.PO文件的主要内容,如果未能解决你的问题,请参考以下文章