Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
d33fd8ad
Kaydet (Commit)
d33fd8ad
authored
Haz 29, 2011
tarafından
Andras Timar
Kaydeden (comit)
Tor Lillqvist
Haz 29, 2011
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sorting additional language packs and dictionaries fdo#34479
Signed-off-by:
Tor Lillqvist
<
tlillqvist@novell.com
>
üst
32fb00ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
+39
-0
feature.pm
solenv/bin/modules/installer/windows/feature.pm
+39
-0
No files found.
solenv/bin/modules/installer/windows/feature.pm
Dosyayı görüntüle @
d33fd8ad
...
...
@@ -432,6 +432,45 @@ sub create_feature_table
}
}
# Sorting names of language packs and dictionaries
my
@tempfeaturetable
;
my
@langlist
;
my
@langpack
;
my
@dictlist
;
my
@sorteddictlist
;
my
@sortedlanglist
;
foreach
(
@featuretable
)
{
if
(
/^gm_r_Extension_Dictionary_/
)
{
push
(
@dictlist
,
$_
);
}
elsif
(
/^gm_Langpack_r_/
)
{
push
(
@langlist
,
$_
);
}
elsif
(
/\tgm_Langpack_r_/
)
{
push
(
@langpack
,
$_
);
}
else
{
push
(
@tempfeaturetable
,
$_
);
}
}
@sorteddictlist
=
sort
{
(
split
(
/\t/
,
$a
))[
2
]
cmp
(
split
(
/\t/
,
$b
))[
2
]
}
@dictlist
;
@sortedlanglist
=
sort
{
(
split
(
/\t/
,
$a
))[
2
]
cmp
(
split
(
/\t/
,
$b
))[
2
]
}
@langlist
;
@featuretable
=
(
@tempfeaturetable
,
@sorteddictlist
);
foreach
(
@sortedlanglist
)
{
my
$sortedlanglistline
=
$_
;
push
(
@featuretable
,
$sortedlanglistline
);
foreach
(
@langpack
)
{
my
$langpackline
=
$_
;
if
(
(
split
(
/\t/
,
$langpackline
))[
1
]
eq
(
split
(
/\t/
,
$sortedlanglistline
))[
0
]
)
{
push
(
@featuretable
,
$langpackline
);
}
}
}
# Saving the file
my
$featuretablename
=
$basedir
.
$
installer::globals::
separator
.
"Feature.idt"
.
"."
.
$onelanguage
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment