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
7a7cba91
Kaydet (Commit)
7a7cba91
authored
Tem 21, 2017
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix python2 assumption
Change-Id: I2113f64bac9f1e7421416266d20004b35ddbc54b
üst
a1826132
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
interim-update-module-for-gettext
solenv/bin/interim-update-module-for-gettext
+3
-3
polib.py
solenv/bin/polib.py
+1
-1
No files found.
solenv/bin/interim-update-module-for-gettext
Dosyayı görüntüle @
7a7cba91
#!/usr/bin/
python
#!/usr/bin/
env python3
import
binascii
import
polib
...
...
@@ -14,13 +14,13 @@ if len(sys.argv) < 2:
uiline
=
False
subpath
=
sys
.
argv
[
1
]
print
>>
sys
.
stderr
,
"interim-update-for-gettext: processing "
,
subpath
print
(
"interim-update-for-gettext: processing "
+
subpath
)
messages
=
None
npos
=
0
for
dirpath
,
dirname
,
filenames
in
walk
(
subpath
):
for
filename
in
filenames
:
ipath
=
join
(
dirpath
,
filename
)
print
>>
sys
.
stderr
,
"interim-update-for-gettext: merging "
,
ipath
print
(
"interim-update-for-gettext: merging "
+
ipath
)
po
=
polib
.
pofile
(
ipath
)
if
len
(
po
)
!=
0
:
samplefile
=
po
[
0
]
.
occurrences
[
0
][
0
]
...
...
solenv/bin/polib.py
Dosyayı görüntüle @
7a7cba91
...
...
@@ -867,7 +867,7 @@ class _BaseEntry(object):
wrapwidth
)
ret
.
append
(
''
)
usedirect
=
True
if
type
(
ret
[
0
]
!=
unicode
):
if
not
PY3
and
type
(
ret
[
0
]
!=
unicode
):
try
:
usedirect
=
False
ret
=
u
(
'
\n
'
)
.
join
(
x
.
decode
(
'utf-8'
)
for
x
in
ret
)
...
...
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