summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 048349c)
raw | patch | inline | side by side (parent: 048349c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 Jun 2008 11:54:02 +0000 (11:54 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 Jun 2008 11:54:02 +0000 (11:54 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11340 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/debian/patches/04_fix_locale_location.dpatch | patch | blob | history |
diff --git a/gosa-core/debian/patches/04_fix_locale_location.dpatch b/gosa-core/debian/patches/04_fix_locale_location.dpatch
index 1f969af3b6042c5ca3bc3732b273273b5cc0e72f..a803d251fbd6cf04836a4b8020ed8c054bb5a700 100755 (executable)
- if (!is_dir(LOCALE_DIR."/compiled/${language}/LC_MESSAGES")){
- if (!mkdir (LOCALE_DIR."/compiled/${language}/LC_MESSAGES", 0755, TRUE)){
- echo "Failed to create '".LOCALE_DIR."/compiled/${language}/LC_MESSAGES'- aborted";
-+ if (!is_dir("/var/cache/gosa/locale/compiled/${language}/LC_MESSAGES")){
-+ if (!mkdir ("/var/cache/gosa/locale/compiled/${language}/LC_MESSAGES", 0755, TRUE)){
-+ echo "Failed to create '/var/cache/gosa/locale/compiled/${language}/LC_MESSAGES'- aborted";
++ if (!is_dir("/var/cache/gosa/locale/${language}/LC_MESSAGES")){
++ if (!mkdir ("/var/cache/gosa/locale/${language}/LC_MESSAGES", 0755, TRUE)){
++ echo "Failed to create '/var/cache/gosa/locale/${language}/LC_MESSAGES'- aborted";
exit (3);
}
}
/* Cat all these po files into one single file */
- system ("(cd ".LOCALE_DIR." && msgcat --use-first ".implode(" ", $po_files)." > compiled/${language}/LC_MESSAGES/messages.po)", $val);
-+ system ("(cd ".LOCALE_DIR." && msgcat --use-first ".implode(" ", $po_files)." > /var/cache/gosa/locale/compiled/${language}/LC_MESSAGES/messages.po)", $val);
++ system ("(cd ".LOCALE_DIR." && msgcat --use-first ".implode(" ", $po_files)." > /var/cache/gosa/locale/${language}/LC_MESSAGES/messages.po)", $val);
if ($val != 0){
echo "Merging of message files failed - aborted";
exit (4);
}
- system ("(cd ".LOCALE_DIR."/compiled/${language}/LC_MESSAGES && msgfmt -o messages.mo messages.po && rm messages.po)", $val);
-+ system ("(cd /var/cache/gosa/locale/compiled/${language}/LC_MESSAGES && msgfmt -o messages.mo messages.po && rm messages.po)", $val);
++ system ("(cd /var/cache/gosa/locale/${language}/LC_MESSAGES && msgfmt -o messages.mo messages.po && rm messages.po)", $val);
if ($val != 0){
echo "Compiling of message files failed - aborted";
exit (5);