CRM-14769: Extension translation: bugfix and add support for phpgettext.