Preserve language files on regeneration

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
User avatar
jmcgov
Veteran Member
Posts: 79
Joined: 2018-12-19 01:31
Location: Northern Ireland

Preserve language files on regeneration

Post by jmcgov » 2019-11-13 00:13

Hi AppGini'rs
Is there a way to preserve changes in the language files, after the application is regenerated?
TIA, James

User avatar
ronwill
Veteran Member
Posts: 228
Joined: 2015-08-08 10:12
Location: Cheltenham UK +Weatherford USA

Re: Preserve language files on regeneration

Post by ronwill » 2019-11-13 00:49

I just make files I want to preserve as 'read only'
Cheers,
Ron
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course

User avatar
jmcgov
Veteran Member
Posts: 79
Joined: 2018-12-19 01:31
Location: Northern Ireland

Re: Preserve language files on regeneration

Post by jmcgov » 2019-11-13 09:31

@ronwill, thanks - simple, but v clever

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Preserve language files on regeneration

Post by pbottcher » 2019-11-14 07:31

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.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

Post Reply