Kaydet (Commit) 44727e34 authored tarafından David Tardon's avatar David Tardon Kaydeden (comit) Fridrich Strba

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/3908Tested-by: 's avatarLibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
Tested-by: 's avatarFridrich Strba <fridrich@documentfoundation.org>
üst 4e312f0c
...@@ -83,7 +83,6 @@ export DBUSMENUGTK_LIBS=$(gb_SPACE)@DBUSMENUGTK_LIBS@ ...@@ -83,7 +83,6 @@ export DBUSMENUGTK_LIBS=$(gb_SPACE)@DBUSMENUGTK_LIBS@
export DBUS_CFLAGS=$(gb_SPACE)@DBUS_CFLAGS@ export DBUS_CFLAGS=$(gb_SPACE)@DBUS_CFLAGS@
export DBUS_LIBS=$(gb_SPACE)@DBUS_LIBS@ export DBUS_LIBS=$(gb_SPACE)@DBUS_LIBS@
export DEFAULT_BRAND_IMAGES=@DEFAULT_BRAND_IMAGES@ export DEFAULT_BRAND_IMAGES=@DEFAULT_BRAND_IMAGES@
export DEFAULT_TO_ENGLISH_FOR_PACKING=yes
export DEVINSTALLDIR=@DEVINSTALLDIR@ export DEVINSTALLDIR=@DEVINSTALLDIR@
export DIAGRAM_EXTENSION_PACK=@DIAGRAM_EXTENSION_PACK@ export DIAGRAM_EXTENSION_PACK=@DIAGRAM_EXTENSION_PACK@
export DICT_SYSTEM_DIR=@DICT_SYSTEM_DIR@ export DICT_SYSTEM_DIR=@DICT_SYSTEM_DIR@
......
...@@ -926,15 +926,7 @@ sub get_sourcepath_from_filename_and_includepath_classic ...@@ -926,15 +926,7 @@ sub get_sourcepath_from_filename_and_includepath_classic
$onefile = ""; # the sourcepath has to be empty $onefile = ""; # the sourcepath has to be empty
if ( $write_logfile) if ( $write_logfile)
{ {
if ( $ENV{'DEFAULT_TO_ENGLISH_FOR_PACKING'} ) $infoline = "ERROR: Source for $$searchfilenameref not found!\n"; # Important message in log file
{
$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
}
push( @installer::globals::logfileinfo, $infoline); push( @installer::globals::logfileinfo, $infoline);
} }
} }
...@@ -1002,15 +994,7 @@ sub get_sourcepath_from_filename_and_includepath ...@@ -1002,15 +994,7 @@ sub get_sourcepath_from_filename_and_includepath
$onefile = ""; # the sourcepath has to be empty $onefile = ""; # the sourcepath has to be empty
if ( $write_logfile) if ( $write_logfile)
{ {
if ( $ENV{'DEFAULT_TO_ENGLISH_FOR_PACKING'} ) $infoline = "ERROR: Source for $$searchfilenameref not found!\n"; # Important message in log file
{
$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
}
push( @installer::globals::logfileinfo, $infoline); push( @installer::globals::logfileinfo, $infoline);
} }
} }
...@@ -1097,54 +1081,6 @@ sub get_Source_Directory_For_Files_From_Includepathlist ...@@ -1097,54 +1081,6 @@ sub get_Source_Directory_For_Files_From_Includepathlist
else { $sourcepathref = get_sourcepath_from_filename_and_includepath(\$onefilename, $includepatharrayref, 1); } else { $sourcepathref = get_sourcepath_from_filename_and_includepath(\$onefilename, $includepatharrayref, 1); }
$onefile->{'sourcepath'} = $$sourcepathref; # This $$sourcepathref is empty, if no source was found $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 $infoline = "\n"; # empty line after listing of all files
......
...@@ -72,10 +72,6 @@ $ENV{LAST_MINOR} = 'm0'; ...@@ -72,10 +72,6 @@ $ENV{LAST_MINOR} = 'm0';
$ENV{OUT} = "../$ENV{'INPATH'}"; $ENV{OUT} = "../$ENV{'INPATH'}";
$ENV{LOCAL_OUT} = $ENV{OUT}; $ENV{LOCAL_OUT} = $ENV{OUT};
$ENV{LOCAL_COMMON_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; my @larr;
$langs=$ENV{WITH_LANG_LIST}; $langs=$ENV{WITH_LANG_LIST};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment