Hi,
Is this a right asumption:
After every generation of a project the language directory is (re) build.
If this is true then I like to have a way to skip that proces (by the Hooks directory??)
I have made some minor translation changes but lately I found out that the where overridden.
And... Why would you have so many language subdirectories while you just need one (well. for me NL language) so can I delete the not wanted Language subdiretories?
If so... How do I do that.
Language Directory
Re: Language Directory
Hi,
Someone to answer?
Ron
Someone to answer?
Ron
Re: Language Directory
Hi Ron,
let me suggest a workaround.
For my projects I have created logos, additional scripts, scripts that I use, others, I use but I do not want the customer to have them.
For this purpose I have created a .cmd file which simply copies the files/folders, maybe overwriting files that AG has produced. The file is also capable to delete stuff from within the AG generated application directory.
The file looks somehow like this:
The
Currently it looks like this:
The
Maybe this helps?
Olaf
let me suggest a workaround.
For my projects I have created logos, additional scripts, scripts that I use, others, I use but I do not want the customer to have them.
For this purpose I have created a .cmd file which simply copies the files/folders, maybe overwriting files that AG has produced. The file is also capable to delete stuff from within the AG generated application directory.
The file looks somehow like this:
Code: Select all
@echo off
robocopy "c:\ag_development\project_a\web\special_from_root" "c:\ag_development\project_a\web" /E /COPY:DAT /DCOPY:DA /R:3 /W:5 /NP
del /Q "c:\ag_development\project_a\web\images"
rd "c:\ag_development\project_a\web\images"special_from_root directory is a directory that may contain other directories. Thus, all things in the special_from_root are put into the root of my application - essentially replacing files there if they exist.Currently it looks like this:
Code: Select all
templates\
admin\
_intern\
resources\
plugins\
thumbnail.php
favicon.png
favicon.ico
language.php
logo.pngdel command removes stuff. So for you this means, you could delete all language files you do not want to ship etc.Maybe this helps?
Olaf
Some postings I was involved, you might find useful:
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Re: Language Directory
Olaf,
Thank you for sharing your workaround.
Wouldn't it be easier, for us a application developers, to have a "frozen" language file.?
So not an override by every application generation?
Ron
Thank you for sharing your workaround.
Wouldn't it be easier, for us a application developers, to have a "frozen" language file.?
So not an override by every application generation?
Ron
Re: Language Directory
Hi Ron,
you can always write protect the language file.
However, I once had the problem (using my method) that things changed and I actually copied old code which broke the application.
So either way - write protecting or copying you will need to check.
I have another suggestion: You could simply place your language file somewhere (in /hooks for example) and do a simple include in /hooks/header-extras.php . This way, your language file should overwrite the variables that have been included by AG already before.
Either way has it's advantages. I am not sure, if "frozen files" like you suggest are a good idea.
Olaf
you can always write protect the language file.
However, I once had the problem (using my method) that things changed and I actually copied old code which broke the application.
So either way - write protecting or copying you will need to check.
I have another suggestion: You could simply place your language file somewhere (in /hooks for example) and do a simple include in /hooks/header-extras.php . This way, your language file should overwrite the variables that have been included by AG already before.
Either way has it's advantages. I am not sure, if "frozen files" like you suggest are a good idea.
Olaf
Some postings I was involved, you might find useful:
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Re: Language Directory
OIaf,
Thank you,
I'll take your suggestion:
Thank you,
I'll take your suggestion:
Ronyour include in /hooks/header-extras.php
Re: Language Directory
Hi Ron,
just thought - if
Olaf
just thought - if
header-extras.php does not work, try to include it in the footer-extras.phpOlaf
Some postings I was involved, you might find useful:
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Multi Path Upload (MPU) / dynamic upload folder; SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button
Re: Language Directory
Olaf,
It works, I've place de PHP-code in file: It didn't work in
But... It should be nice if you only get Language files you really need (in my case: NL(dutch) and maybe an English on depending of the chosen language settings)
Thank you so much.
Ron
It works, I've place de PHP-code in file:
Code: Select all
header-extras.phpfooter-extras.phpBut... It should be nice if you only get Language files you really need (in my case: NL(dutch) and maybe an English on depending of the chosen language settings)
Thank you so much.
Ron
