mxgross / EasyBackupBundle

Kimai 2 Plugin for easier backups
MIT License
24 stars 6 forks source link

Make flash messages translatable #8

Closed mxgross closed 4 years ago

mxgross commented 4 years ago

Currently the flash messages are hardcoded in english. They should be made translatable and be available at least in english and german.

kevinpapst commented 4 years ago

Use addFlashTranslated() instead of addFlash(). Then you have to use flashmessages.de.xlf for translation.

mxgross commented 4 years ago

Thanks. I implemented it for de and en

kevinpapst commented 4 years ago

Ups forgot: you could even use flashSuccess(), flashWarning() and flashError() to get rid of your own constants and to be safe for coming updates.