使用gettext .po文件应用翻译 [英] apply translation using gettext .po files

查看:75
本文介绍了使用gettext .po文件应用翻译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好的,这应该很简单,但是我找不到我需要的信息.

Okay, this should be simple, but I can't find the information I need.

比方说,我是从某些文本文件(不是源代码)创建的.po文件. 我翻译了所需的字符串.

Let's say I created .po file from some text file (which is not a source code). I translated needed strings.

如何应用此.po文件?换句话说,我应该基于现有的.po文件使用什么软件替换给定文本文件中的字符串?

How do I apply this .po file? In other words what software should I use to replace strings in a given text file based on the existing .po file?

我希望这是一个命令行实用程序或基于gui的实用程序,可以批量处理数百个文件.

I expect this to be a commandline utility or gui-based that can do this in a batch for hundreds of files.

哦,忘记了一件重要的事情.这是用于Windows!

oh, forgot one important thing. This is for Windows!

推荐答案

政策可以,一点胶水代码,用于在批处理模式下操作.po文件.

polib can, with a bit of glue code, be used to manipulate .po files in batch mode.

这篇关于使用gettext .po文件应用翻译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆