Distribute the files from a language pack to your elgg test installation

I usually test my Elgg stuff in a test invironment like wamp. Efter a new installation of Elgg my language files must be moved to the proper folders. To do that I use the function below. Just insert $src and $dst directory paths followed by a trailing slash and run the script. Your language files will then be copied to the proper folders overwriting the old files.

Copy paste the code or get a little package with an index.php with a form to fill in with your paths, and an ajax return answer, which you can find here at Elggzone.

Eks: $src = 'DA_elgg-1.7.1/', $dst = 'myelggfolder'