是否可以将两个.po翻译文件组合在一起? [英] Is it possible to combine two .po translation files together?

查看:134
本文介绍了是否可以将两个.po翻译文件组合在一起?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有两个.po文件,每个文件来自一个软件的不同分支.

We have two .po files, each from different branches of a piece of software.

我们需要将它们组合成一个.po文件.

We need to combine these into a single .po file.

两个文件之间存在重复项,理想的处理方式是(一致地)偏爱一个文件的字符串.

There are duplicates between the two files, and the ideal handling would be for one file's strings to be favoured (consistently).

我们有一个SUSE系统,所以--output-file似乎没有忽略/合并Sun版本根据我在网络搜索中找到的手册页中的重复项的行为. (我们没有Sun机器!)

We have a SUSE system so the --output-file doesn't seem to have the behaviour of ignoring/merging duplicates which the Sun version has according to a man page I found from a web search. (We do not have a Sun machine handy!)

推荐答案

您要查找的是msgcat实用程序,它可以连接并合并指定的PO词典.

What you are looking for is the msgcat util, it concatenates and merges the specified PO dictionaries.

这是gettext utils的一部分,有关更多信息,请查阅

This is part of gettext utils, for more information please consult gettext manual page on msgcat.

这篇关于是否可以将两个.po翻译文件组合在一起?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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