Page 1 of 1

Preserve language files on regeneration

Posted: 2019-11-13 00:13
by jmcgov
Hi AppGini'rs
Is there a way to preserve changes in the language files, after the application is regenerated?
TIA, James

Re: Preserve language files on regeneration

Posted: 2019-11-13 00:49
by ronwill
I just make files I want to preserve as 'read only'
Cheers,
Ron

Re: Preserve language files on regeneration

Posted: 2019-11-13 09:31
by jmcgov
@ronwill, thanks - simple, but v clever

Re: Preserve language files on regeneration

Posted: 2019-11-14 07:31
by pbottcher
Hi,

if you want you can also create you own translataion file (e.g. MyTranslation.php) where you either overwrite exisiting translations or add new ones.

Then add

include('MyTranslation.php');

to the hooks/__global.php file and your translations will be used.