mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
polib has more names than UTF-8 for utf8
In case of id.po it returns utf-8.
This commit is contained in:
parent
1b4728b5e2
commit
bc53fc53f8
@ -130,7 +130,7 @@ def mergepo_minimaldiff(target, source, options):
|
|||||||
target_enc = polib.detect_encoding(target)
|
target_enc = polib.detect_encoding(target)
|
||||||
# for utf8 files we can use our self written parser to minimize diffs,
|
# for utf8 files we can use our self written parser to minimize diffs,
|
||||||
# otherwise we need to use polib
|
# otherwise we need to use polib
|
||||||
if target_enc != 'UTF-8':
|
if not target_enc in ['UTF-8', 'utf-8', 'utf_8']:
|
||||||
raise
|
raise
|
||||||
po1 = open(target, 'rb')
|
po1 = open(target, 'rb')
|
||||||
oldlines = read(po1)
|
oldlines = read(po1)
|
||||||
|
Loading…
Reference in New Issue
Block a user