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
bb554462
Kaydet (Commit)
bb554462
authored
Agu 22, 2013
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
pocheck: Math symbol names (from symbol.src) must not contain spaces
Change-Id: I4195ae747229dd5f991acc8ed5764b42aeb73cf3
üst
e830fa3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
pocheck.cxx
l10ntools/source/pocheck.cxx
+33
-0
No files found.
l10ntools/source/pocheck.cxx
Dosyayı görüntüle @
bb554462
...
...
@@ -242,6 +242,38 @@ static void checkVerticalBar(OString aLanguage)
aPoInput
.
close
();
}
// In starmath/source.po Math symbol names (from symbol.src)
// must not contain spaces
static
void
checkMathSymbolNames
(
OString
aLanguage
)
{
OString
aPoPath
=
OString
(
getenv
(
"SRC_ROOT"
))
+
"/translations/source/"
+
aLanguage
+
"/starmath/source.po"
;
PoIfstream
aPoInput
;
aPoInput
.
open
(
aPoPath
);
if
(
!
aPoInput
.
isOpen
()
)
std
::
cerr
<<
"Warning: Cannot open "
<<
aPoPath
<<
std
::
endl
;
for
(;;)
{
PoEntry
aPoEntry
;
aPoInput
.
readEntry
(
aPoEntry
);
if
(
aPoInput
.
eof
()
)
break
;
if
(
!
aPoEntry
.
isFuzzy
()
&&
aPoEntry
.
getGroupId
()
==
"RID_UI_SYMBOL_NAMES"
&&
!
aPoEntry
.
getMsgStr
().
isEmpty
()
&&
(
aPoEntry
.
getMsgStr
().
indexOf
(
" "
)
!=
-
1
)
)
{
std
::
cout
<<
"ERROR: Math symbol names must not contain spaces.
\n
"
<<
"File: "
<<
aPoPath
<<
std
::
endl
<<
"Language: "
<<
aLanguage
<<
std
::
endl
<<
"English: "
<<
aPoEntry
.
getMsgId
()
<<
std
::
endl
<<
"Localized: "
<<
aPoEntry
.
getMsgStr
()
<<
std
::
endl
<<
std
::
endl
;
}
}
aPoInput
.
close
();
}
int
main
()
{
OString
aLanguages
(
getenv
(
"ALL_LANGS"
));
...
...
@@ -260,6 +292,7 @@ int main()
checkStyleNames
(
aLanguage
);
checkFunctionNames
(
aLanguage
);
checkVerticalBar
(
aLanguage
);
checkMathSymbolNames
(
aLanguage
);
}
return
0
;
}
...
...
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