simplepackage.pm (4101619d) | simplepackage.pm (b871de36) |
---|---|
1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 159 unchanged lines hidden (view full) --- 168 169######################################################################## 170# Getting the translation file for the Mac Language Pack installer 171######################################################################## 172 173sub get_mac_translation_file 174{ 175 my $translationfilename = $installer::globals::maclangpackfilename; | 1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance --- 159 unchanged lines hidden (view full) --- 168 169######################################################################## 170# Getting the translation file for the Mac Language Pack installer 171######################################################################## 172 173sub get_mac_translation_file 174{ 175 my $translationfilename = $installer::globals::maclangpackfilename; |
176 # my $translationfilename = $installer::globals::idtlanguagepath . $installer::globals::separator . $installer::globals::maclangpackfilename; 177 # if ( $installer::globals::unicodensis ) { $translationfilename = $translationfilename . ".uulf"; } 178 # else { $translationfilename = $translationfilename . ".mlf"; } | |
179 if ( ! -f $translationfilename ) { installer::exiter::exit_program("ERROR: Could not find language file $translationfilename!", "get_mac_translation_file"); } 180 my $translationfile = installer::files::read_file($translationfilename); 181 182 my $infoline = "Reading translation file: $translationfilename\n"; 183 $installer::logger::Lang->print($infoline); 184 185 return $translationfile; 186} --- 642 unchanged lines hidden --- | 176 if ( ! -f $translationfilename ) { installer::exiter::exit_program("ERROR: Could not find language file $translationfilename!", "get_mac_translation_file"); } 177 my $translationfile = installer::files::read_file($translationfilename); 178 179 my $infoline = "Reading translation file: $translationfilename\n"; 180 $installer::logger::Lang->print($infoline); 181 182 return $translationfile; 183} --- 642 unchanged lines hidden --- |