PO files, swap msgid and msgstr
-
20-06-2021 - |
题
Is there any tool that lets me swap msgid and msgstr in a po file? I couldn't find it.
Notice that I don't really need to keep the resulting msgstrs: in short, I need to get a second po file having as msgids the first file's msgstrs.
解决方案
I found two useful tools for this purpose:
- http://mola.io/2013/09/17/swapping-languages-in-gettext-po-file/
- http://docs.translatehouse.org/projects/translate-toolkit/en/latest/commands/poswap.html
Gone offline:
其他提示
I only see reg exp for that, and swapping expressions.
不隶属于 StackOverflow