LexikTranslationBundle icon indicating copy to clipboard operation
LexikTranslationBundle copied to clipboard

Only store missing translations in database, and remove after export

Open rvanlaak opened this issue 10 years ago • 3 comments

I was thinking about a scenario how we can easily keep track of missing translations. What happened was that I've modified the key of a translation in the translation file, but did not change it in the view. Because I've imported all translations into the database earlier, the view still seems to look fine because the translation was in the database.

Would it be possible to:

  • Only store missing keys in the database while "browsing" the application,
  • then export those keys after translating them, and thereafter remove them from the database,
  • and finally commit changed keys to VCS, and update application, so the process can start over again?

That way we don't have to enable the bundle in our production environment. Or does this sound as a really weird scenario?

rvanlaak avatar Jun 25 '15 11:06 rvanlaak

It does not sound weird to me, I suppose people that use the bundle only in dev manage translations as a similar way. But to get this exact flow it would required to add a new option to the import command and, and maybe also update the export command.

cedric-g avatar Jun 29 '15 08:06 cedric-g

Can you identify some actionables, so I can dive into that? I'll put the PR on the separate branch we already had.

rvanlaak avatar Jun 30 '15 07:06 rvanlaak

Is this issue related to the list_missing_translations branch?

If yes, rebase + PR could be easier for code reviews

Pierstoval avatar Jul 30 '15 14:07 Pierstoval