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
889574a5
Kaydet (Commit)
889574a5
authored
Kas 18, 2012
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
put filename into msgctxt, because po entries must be unique
Change-Id: I700b668863c2b20cdf60fa672a994b8ae4dc613a
üst
302a099e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
po.cxx
l10ntools/source/po.cxx
+6
-5
No files found.
l10ntools/source/po.cxx
Dosyayı görüntüle @
889574a5
...
...
@@ -452,7 +452,8 @@ PoEntry::PoEntry(const OString& rSDFLine, const TYPE eType)
copy
(
vParts
[
SOURCEFILE
].
lastIndexOf
(
"
\\
"
)
+
1
));
OString
sMsgCtxt
=
vParts
[
GROUPID
]
+
"
\n
"
+
vParts
[
SOURCEFILE
].
copy
(
vParts
[
SOURCEFILE
].
lastIndexOf
(
"
\\
"
)
+
1
)
+
"
\n
"
+
vParts
[
GROUPID
]
+
"
\n
"
+
(
vParts
[
LOCALID
].
isEmpty
()
?
""
:
vParts
[
LOCALID
]
+
"
\n
"
)
+
vParts
[
RESOURCETYPE
];
switch
(
eType
){
...
...
@@ -527,7 +528,7 @@ OString PoEntry::getSourceFile() const
OString
PoEntry
::
getGroupId
()
const
{
assert
(
m_bIsInitialized
);
return
m_pGenPo
->
getMsgCtxt
().
getToken
(
0
,
'\n'
);
return
m_pGenPo
->
getMsgCtxt
().
getToken
(
1
,
'\n'
);
}
//Get localid
...
...
@@ -538,7 +539,7 @@ OString PoEntry::getLocalId() const
if
(
sMsgCtxt
.
indexOf
(
'\n'
)
==
sMsgCtxt
.
lastIndexOf
(
'\n'
))
return
OString
();
else
return
sMsgCtxt
.
getToken
(
1
,
'\n'
);
return
sMsgCtxt
.
getToken
(
2
,
'\n'
);
}
//Get the type of component from which entry is extracted
...
...
@@ -547,9 +548,9 @@ OString PoEntry::getResourceType() const
assert
(
m_bIsInitialized
);
const
OString
sMsgCtxt
=
m_pGenPo
->
getMsgCtxt
();
if
(
sMsgCtxt
.
indexOf
(
'\n'
)
==
sMsgCtxt
.
lastIndexOf
(
'\n'
))
return
sMsgCtxt
.
getToken
(
1
,
'\n'
).
getToken
(
0
,
'.'
);
else
return
sMsgCtxt
.
getToken
(
2
,
'\n'
).
getToken
(
0
,
'.'
);
else
return
sMsgCtxt
.
getToken
(
3
,
'\n'
).
getToken
(
0
,
'.'
);
}
//Get the type of entry
...
...
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