Gettext
Gettext copied to clipboard
Feature request: Translation factory callback as an option for extractors
Please make the extractor methods (fromString() etc.) accept a Translation factory callback as an option. This will make it possible to use a subclass of Translation efficiently.
Alternatively, provide protected function copyValueFrom(Translation $other) in Translation so that an existing Translation object can be easily copied to a subclassed object.