[Libreoffice-commits] core.git: config_host.mk.in solenv/bin

David Tardon dtardon at redhat.com
Wed May 15 02:03:53 PDT 2013


 config_host.mk.in                           |    1 
 solenv/bin/modules/installer/scriptitems.pm |   68 ----------------------------
 solenv/bin/ooinstall                        |    4 -
 3 files changed, 2 insertions(+), 71 deletions(-)

New commits:
commit 44727e34a1e4eb03b01c6be77a753a18ae84aed7
Author: David Tardon <dtardon at redhat.com>
Date:   Tue May 14 16:07:54 2013 +0200

    drop now unused DEFAULT_TO_ENGLISH_FOR_PACKING
    
    See
    http://lists.freedesktop.org/archives/libreoffice/2013-May/051706.html
    for explanation.
    
    Change-Id: Ieb7480f9f7a64a026abc985edde3ed932c1e8f56
    Reviewed-on: https://gerrit.libreoffice.org/3908
    Tested-by: LibreOffice gerrit bot <gerrit at libreoffice.org>
    Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
    Tested-by: Fridrich Strba <fridrich at documentfoundation.org>

diff --git a/config_host.mk.in b/config_host.mk.in
index 7515883..2c5167d 100644
--- a/config_host.mk.in
+++ b/config_host.mk.in
@@ -83,7 +83,6 @@ export DBUSMENUGTK_LIBS=$(gb_SPACE)@DBUSMENUGTK_LIBS@
 export DBUS_CFLAGS=$(gb_SPACE)@DBUS_CFLAGS@
 export DBUS_LIBS=$(gb_SPACE)@DBUS_LIBS@
 export DEFAULT_BRAND_IMAGES=@DEFAULT_BRAND_IMAGES@
-export DEFAULT_TO_ENGLISH_FOR_PACKING=yes
 export DEVINSTALLDIR=@DEVINSTALLDIR@
 export DIAGRAM_EXTENSION_PACK=@DIAGRAM_EXTENSION_PACK@
 export DICT_SYSTEM_DIR=@DICT_SYSTEM_DIR@
diff --git a/solenv/bin/modules/installer/scriptitems.pm b/solenv/bin/modules/installer/scriptitems.pm
index cd4b141..3406e2f 100644
--- a/solenv/bin/modules/installer/scriptitems.pm
+++ b/solenv/bin/modules/installer/scriptitems.pm
@@ -926,15 +926,7 @@ sub get_sourcepath_from_filename_and_includepath_classic
         $onefile = "";  # the sourcepath has to be empty
         if ( $write_logfile)
         {
-            if ( $ENV{'DEFAULT_TO_ENGLISH_FOR_PACKING'} )
-            {
-                $infoline = "WARNING: Source for $$searchfilenameref not found!\n";  # Important message in log file
-            }
-            else
-            {
-                $infoline = "ERROR: Source for $$searchfilenameref not found!\n";    # Important message in log file
-            }
-
+            $infoline = "ERROR: Source for $$searchfilenameref not found!\n";    # Important message in log file
             push( @installer::globals::logfileinfo, $infoline);
         }
     }
@@ -1002,15 +994,7 @@ sub get_sourcepath_from_filename_and_includepath
         $onefile = "";  # the sourcepath has to be empty
         if ( $write_logfile)
         {
-            if ( $ENV{'DEFAULT_TO_ENGLISH_FOR_PACKING'} )
-            {
-                $infoline = "WARNING: Source for $$searchfilenameref not found!\n";  # Important message in log file
-            }
-            else
-            {
-                $infoline = "ERROR: Source for $$searchfilenameref not found!\n";    # Important message in log file
-            }
-
+            $infoline = "ERROR: Source for $$searchfilenameref not found!\n";    # Important message in log file
             push( @installer::globals::logfileinfo, $infoline);
         }
     }
@@ -1097,54 +1081,6 @@ sub get_Source_Directory_For_Files_From_Includepathlist
         else { $sourcepathref = get_sourcepath_from_filename_and_includepath(\$onefilename, $includepatharrayref, 1); }
 
         $onefile->{'sourcepath'} = $$sourcepathref; # This $$sourcepathref is empty, if no source was found
-
-        # defaulting to english for multilingual files if DEFAULT_TO_ENGLISH_FOR_PACKING is set
-
-        if ( $ENV{'DEFAULT_TO_ENGLISH_FOR_PACKING'} )
-        {
-            if (( ! $onefile->{'sourcepath'} ) && ( $onefile->{'ismultilingual'} ))
-            {
-                my $oldname = $onefile->{'Name'};
-                my $oldlanguage = $onefile->{'specificlanguage'};
-                my $newlanguage = "en-US";
-                $onefilename = $onefile->{'Name'};
-                $onefilename =~ s/$oldlanguage\./$newlanguage\./;   # Example: tplwizfax_it.zip -> tplwizfax_en-US.zip
-                $onefilename =~ s/^\s*\Q$installer::globals::separator\E//;     # filename begins with a slash, for instance /registry/schema/org/openoffice/VCL.xcs
-                $sourcepathref = get_sourcepath_from_filename_and_includepath(\$onefilename, $includepatharrayref, 1);
-                $onefile->{'sourcepath'} = $$sourcepathref;                     # This $$sourcepathref is empty, if no source was found
-
-                if ($onefile->{'sourcepath'})   # defaulting to english was successful
-                {
-                    $infoline = "WARNING: Using $onefilename instead of $oldname\n";
-                    push( @installer::globals::logfileinfo, $infoline);
-                    print "    $infoline";
-
-                    # If the directory, in which the new file is installed, is not language dependent,
-                    # the filename has to be changed to avoid installation conflicts
-                    # No mechanism for resource files!
-                    # -> implementing for the content of ARCHIVE files
-
-                    if ( $onefile->{'Styles'} =~ /\bARCHIVE\b/ )
-                    {
-                        my $directorygid = $onefile->{'Dir'};
-                        my $islanguagedependent = determine_directory_language_dependency($directorygid, $dirsref);
-
-                        if ( ! $islanguagedependent )
-                        {
-                            $onefile->{'Styles'} =~ s/\bARCHIVE\b/ARCHIVE, RENAME_TO_LANGUAGE/; # Setting new flag RENAME_TO_LANGUAGE
-                            $infoline = "Setting flag RENAME_TO_LANGUAGE: File $onefile->{'Name'} in directory: $directorygid\n";
-                            push( @installer::globals::logfileinfo, $infoline);
-                        }
-                    }
-                }
-                else
-                {
-                    $infoline = "WARNING: Using $onefile->{'Name'} instead of $oldname was not successful\n";
-                    push( @installer::globals::logfileinfo, $infoline);
-                    $onefile->{'Name'} = $oldname;  # Switching back to old file name
-                }
-            }
-        }
     }
 
     $infoline = "\n";   # empty line after listing of all files
diff --git a/solenv/bin/ooinstall b/solenv/bin/ooinstall
index 4902dda..59335e8 100755
--- a/solenv/bin/ooinstall
+++ b/solenv/bin/ooinstall
@@ -72,10 +72,6 @@ $ENV{LAST_MINOR} = 'm0';
 $ENV{OUT} = "../$ENV{'INPATH'}";
 $ENV{LOCAL_OUT} = $ENV{OUT};
 $ENV{LOCAL_COMMON_OUT} = $ENV{OUT};
-# FIXME: the following variable helps to install localizations even if some
-# files are not localized (like Japanese, Chinese wordbook), it makes
-# the installer to use the English localization of the file instead.
-$ENV{DEFAULT_TO_ENGLISH_FOR_PACKING} = 1;
 
 my @larr;
 $langs=$ENV{WITH_LANG_LIST};


More information about the Libreoffice-commits mailing list