POedit/xgettext: create context-specific .po file / string import
Using POedit I'd like to work with 2 separate language files, so translators need only edit one client-specific language file, while the system-specific language file stays intact.
This is my xgettext call:
xgettext --force-po -o %o %C %F -k --keyword=_e:1,2c
However, this How to get (translatable) strings from specific domain with POEdit gets ALL translatable strings.
Now, I want to create a .po file containing ONLY the strings that match a certain context. This is my PHP:
# CLIENT-specific: should BE imported into .po file
__('Photo challenge', 'imlang_ext');
# SYSTEM-specific: should NOT be imported into .po file
__('An error has occured.', 'imlang_msg');
How can I import only those values that match the imlang_ext context?