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
5175ae0f
Kaydet (Commit)
5175ae0f
authored
Eyl 30, 2010
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i110142# make search/replace of colour names with translations safer
üst
db5f20a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
unoprov.cxx
svx/source/unodraw/unoprov.cxx
+15
-3
No files found.
svx/source/unodraw/unoprov.cxx
Dosyayı görüntüle @
5175ae0f
...
@@ -1295,12 +1295,24 @@ static USHORT __READONLY_DATA SvxUnoColorNameResId[] =
...
@@ -1295,12 +1295,24 @@ static USHORT __READONLY_DATA SvxUnoColorNameResId[] =
bool
SvxUnoConvertResourceString
(
USHORT
*
pSourceResIds
,
USHORT
*
pDestResIds
,
int
nCount
,
String
&
rString
)
throw
()
bool
SvxUnoConvertResourceString
(
USHORT
*
pSourceResIds
,
USHORT
*
pDestResIds
,
int
nCount
,
String
&
rString
)
throw
()
{
{
int
i
=
0
;
//We replace e.g. "Gray 10%" with the translation of Gray, but we shouldn't
//replace "Red Hat 1" with the translation of Red :-)
rtl
::
OUString
sStr
(
rString
);
const
sal_Unicode
*
pStr
=
sStr
.
getStr
();
sal_Int32
nLength
=
sStr
.
getLength
();
while
(
nLength
>
0
)
{
const
sal_Unicode
nChar
=
pStr
[
nLength
-
1
];
if
(
nChar
!=
'%'
&&
(
nChar
<
'0'
||
nChar
>
'9'
))
break
;
nLength
--
;
}
sStr
=
rtl
::
OUString
(
pStr
,
nLength
).
trim
();
for
(
i
=
0
;
i
<
nCount
;
i
++
)
for
(
int
i
=
0
;
i
<
nCount
;
++
i
)
{
{
String
aStrDefName
=
SVX_RESSTR
(
pSourceResIds
[
i
]
);
String
aStrDefName
=
SVX_RESSTR
(
pSourceResIds
[
i
]
);
if
(
rString
.
Search
(
aStrDefName
)
==
0
)
if
(
sStr
.
equals
(
aStrDefName
)
)
{
{
String
aReplace
=
SVX_RESSTR
(
pDestResIds
[
i
]
);
String
aReplace
=
SVX_RESSTR
(
pDestResIds
[
i
]
);
rString
.
Replace
(
0
,
aStrDefName
.
Len
(),
aReplace
);
rString
.
Replace
(
0
,
aStrDefName
.
Len
(),
aReplace
);
...
...
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