Skip to content
Snippets Groups Projects
Commit 6b8f3441 authored by Bob Mottram's avatar Bob Mottram
Browse files

Ignore case when sorting

parent a782e623
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ function web_admin_get_hostname {
function web_admin_translation_strings {
# returns all of the strings which can be translated
web_admin_get_hostname
grep -h 'translate="yes"' "$webadmin_install_dir/EN"/*.html | sed -e 's/<[^>]*>//g' | sed -e 's/^[[:space:]]*//' | sed 's/^[0-9]\+. //' | sed '/^$/d' | sort -u
grep -h 'translate="yes"' "$webadmin_install_dir/EN"/*.html | sed -e 's/<[^>]*>//g' | sed -e 's/^[[:space:]]*//' | sed 's/^[0-9]\+. //' | sed '/^$/d' | sort -uf
}
function web_admin_configure_installer_daemon {
......
......@@ -23,7 +23,7 @@ if (isset($_POST['submittranslatelanguage'])) {
if (!file_exists($translations_file)) {
// create the translations file
exec("grep -h 'translate=".'"'.'yes"'."' EN/*.html | sed -e 's/<[^>]*>//g' | sed -e 's/^[[:space:]]*//' | sed 's/^[0-9]\+. //' | sed '/^$/d' | sort -u | sed 's/$/|/' > ".$translations_file);
exec("grep -h 'translate=".'"'.'yes"'."' EN/*.html | sed -e 's/<[^>]*>//g' | sed -e 's/^[[:space:]]*//' | sed 's/^[0-9]\+. //' | sed '/^$/d' | sort -uf | sed 's/$/|/' > ".$translations_file);
}
if (file_exists(".translations.txt")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment