admin管理员组文章数量:1415119
I have a .po file that works with the theme and it contains 1259 characters, and i translated many words in it.
That been said, after the theme was updated i found out that the new .po files contains 1898 (460 more characters).
So i would like to know if there is a safe and efficient way to merge these two files, that means keeping the integrity of manual translations i did + the new terms that were added by new version of the theme file.
Can anyone tell me if there is a way to achieve this ? I'd appreciate it
Thank you in advance
I have a .po file that works with the theme and it contains 1259 characters, and i translated many words in it.
That been said, after the theme was updated i found out that the new .po files contains 1898 (460 more characters).
So i would like to know if there is a safe and efficient way to merge these two files, that means keeping the integrity of manual translations i did + the new terms that were added by new version of the theme file.
Can anyone tell me if there is a way to achieve this ? I'd appreciate it
Thank you in advance
Share Improve this question edited Aug 22, 2019 at 10:16 fuxia♦ 107k39 gold badges255 silver badges459 bronze badges asked Aug 22, 2019 at 8:20 marouane91marouane91 176 bronze badges1 Answer
Reset to default 0Since .po files are full text, you could first compare the files to see if the differences between the files occur at a specific place (is the addition only located at the end?), are the same keys used for different values?, ... to ensure that no data is being lost.
To that purpose you could use: - CLI tools such as diff or a program like Meld (which is based on diff) to get a visual aid when comparing the files. - an IDE which provides file comparison possibilities (For example Atom with the add-on compare-files)
You could try to merge the files together automatically by using the following CLI tool msgmerge.
本文标签: pluginsHow to merge two PO language files
版权声明:本文标题:plugins - How to merge two .PO language files? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745224124a2648528.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论