1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Replace all relative imports

This commit is contained in:
2022-05-09 01:40:08 -05:00
parent f7ed1c801c
commit e382683f66
79 changed files with 155 additions and 216 deletions

View File

@@ -5,21 +5,10 @@ import tempfile
import polib
from . import pygettext
from hscommon import pygettext
LC_MESSAGES = "LC_MESSAGES"
# There isn't a 1-on-1 exact fit between .po language codes and cocoa ones
PO2COCOA = {
"pl_PL": "pl",
"pt_BR": "pt-BR",
"zh_CN": "zh-Hans",
}
COCOA2PO = {v: k for k, v in PO2COCOA.items()}
STRING_EXT = ".strings"
def get_langs(folder):
return [name for name in os.listdir(folder) if op.isdir(op.join(folder, name))]