Jump to content


Artis

Member Since 15 Jan 2013
Offline Last Active 18 Jan 2013 10:33
-----

Posts I've Made

In Topic: Automatic language / subtitle settings: improvements?

16 January 2013 - 10:28

FYI:
http://openpli.git.s...1dd9662c0b900cf


Thank You! That was amazingly fast! :D
I implemented this change for myself half a year ago. I thought I will share this fix, so that I don't have to apply it manually next time I upgrade and also someone else might benefit from it as well.

I will upgrade soon in a hope, that it will fix few Latvian characters (like 'š' and 'ū') in subtitles. Other Latvian specific characters are correct. I changed the font - it did not help. It looks like some character map problem for Baltic languages - I found a post where one Estonian reports similar problem.

In Topic: Automatic language / subtitle settings: improvements?

15 January 2013 - 14:09

Latvian language code is "lav" and not "lat". You can verify it at lib/python/Tools/ISO639.py . "lat" is for Latin language. Please apply following patch to fix auto language selection for Latvian language (unfortunately I am not allowed to attach this diff as a patch).

diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py
index f61874c..cde0028 100644
--- a/lib/python/Components/UsageConfig.py
+++ b/lib/python/Components/UsageConfig.py
@@ -337,7 +337,7 @@ def InitUsageConfig():
("heb", _("Hebrew")),
("hun", _("Hungarian")),
("ita", _("Italian")),
- ("lat", _("Latvian")),
+ ("lav", _("Latvian")),
("lit", _("Lithuanian")),
("ltz", _("Luxembourgish")),
("nor", _("Norwegian")),