Add the following new static methods Convert\Strings::stripUTF8BomBytes: removes the UTF8 BOM bytes from the beginning of a line Used for CSV files created in Excel for the first header entry (line 0/row 0) Get\Systen::getIpAddresses: gets all IP addresses for the the current access user and returns an array Moved the frontend folder detection from the first load config to the config.path.php Cleaned up the translations JS scripts
21 lines
777 B
Bash
Executable File
21 lines
777 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
BASE_FOLDER=$(dirname "$(readlink -f "$0")")"/";
|
|
# Assume script is in 4dev/bin
|
|
base_folder="${BASE_FOLDER}../../www/";
|
|
|
|
# locale gettext po to mo translator master
|
|
for file in "${base_folder}"../4dev/locale/*.po; do
|
|
[[ -e "$file" ]] || break
|
|
file=$(basename "$file" .po);
|
|
locale=$(echo "${file}" | cut -d "-" -f 1);
|
|
domain=$(echo "${file}" | cut -d "-" -f 2);
|
|
echo "- Translate language file '${file}' for locale '${locale}' and domain '${domain}':";
|
|
if [ ! -d "${base_folder}/includes/locale/${locale}/LC_MESSAGES/" ]; then
|
|
mkdir -p "${base_folder}/includes/locale/${locale}/LC_MESSAGES/";
|
|
fi;
|
|
msgfmt -o "${base_folder}/includes/locale/${locale}/LC_MESSAGES/${domain}.mo" "${base_folder}../4dev/locale/${locale}-${domain}.po";
|
|
done;
|
|
|
|
# __END__
|