I need to filter out of a PO file all entries that are used only in the wordpress admin (so I can translate only user facing strings). In other words, if all references for any given entry contain the string "../admin" (i.e., begin with "#: ../admin") I don't want them in the output file.
Tools can be grep, sed, windows based, anything. Any ideas?
(Ideas on other ways to accomplish this are welcome, but I am thinking of filtering out the user facing strings for translation then placing only those on the PO file. The native language is English and I can leave all admin facing content in English.)
Filter this out:
#: ../admin/add_new_packet.php:64 #: ../admin_processing/add_new_packet_processing.php:9 msgid "Cancel" msgstr ""
Leave this in:
#: ../header-employer.php:81 #: ../admin/add_new_packet.php:64 msgid "Logout" msgstr ""
Here is the format for PO Files for those who are not familiar.