schmittjoh / JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
http://jmsyst.com/bundles/JMSTranslationBundle
426 stars 292 forks source link

Deleting translation entries : how to prevent certain messages being culled when running translation:extract ? #448

Closed rileyrg closed 5 years ago

rileyrg commented 7 years ago
Q A
Bundle version

dev-master | Symfony version | 3.3 | PHP version | 7

How do I mark a set of messages as "undeletable"? I created a load of xiff messages to translate message codes which are stored in, for example, a name column on certain records in a mysql database. But if I dont use the --keep option they are sometimes deleted when I rerun something like this:

bin/console translation:extract en de --config=app

Extract removes them without the keep option because the specific codes are not seen inside the files it is able to scan and extract from.

rileyrg commented 5 years ago

Closing through no support