maschmann / TranslationLoaderBundle

Symfony2 bundle with database translation loader
23 stars 9 forks source link

Find solution for missing $resource in Translation\DatabaseLoader.php #6

Open maschmann opened 10 years ago

maschmann commented 10 years ago

The MessageCatalogue in DatabaseLoader still has no $resource set when created. So the caching will not be triggered to refresh the translations cachefile. Since this is complete file-based at the moment (symfony-wise), the resource is a file resource and sf watches for changes in timestamp. A few thoughts:

Resolution:

This should keep translation MessageCatalogue in cache as consistent and current as the file-based checks.