Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit 861b252

Browse files
author
Maciej Olko
committed
Improve converting script
Remove print, use f-string.
1 parent e9f01f3 commit 861b252

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pos2tmxes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66

77
def convert():
88
for dirpath, dirnames, filenames in walk('pos/locale/python'):
9-
print(dirpath, dirnames, filenames)
109
for filename in filenames:
1110
if filename.endswith('.po'):
1211
directory = Path(dirpath)
1312
language = directory.name
1413
source = directory / filename
1514
target_directory = Path('tmxes') / language
16-
target = target_directory / (source.stem + '.tmx')
15+
target = target_directory / f'{source.stem}.tmx'
1716
target_directory.mkdir(parents=True, exist_ok=True)
1817
call(
1918
f'po2tmx --language {language} {source} {target}',

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy