Code

Use only the first translation (=core) if multiple were found.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 Jun 2008 07:56:22 +0000 (07:56 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 10 Jun 2008 07:56:22 +0000 (07:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11272 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/update-gosa

index a8827e8cd3f3c709816876453bad19249262b8e9..55214d133d92abce2ba557858b96896ab11558e8 100755 (executable)
@@ -177,7 +177,7 @@ function rescan_i18n()
                }
 
                /* Cat all these po files into one single file */
-               system ("(cd ".LOCALE_DIR." && msgcat ".implode(" ", $po_files)." > compiled/${language}/LC_MESSAGES/messages.po)", $val);
+               system ("(cd ".LOCALE_DIR." && msgcat --use-first ".implode(" ", $po_files)." > compiled/${language}/LC_MESSAGES/messages.po)", $val);
                if ($val != 0){
                        echo "Merging of message files failed - aborted";
                        exit (4);