problem with turkish locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LottaNZB |
Fix Released
|
Medium
|
Severin H |
Bug Description
Using Turkish locale (tr_TR.utf8) i get the following error, and due to this error i cannot see download progress bar:
-------
02:55:02 environ No tr_TR translation found for domain kiwi
02:55:02 environ No tr_TR translation found for domain lottanzb
02:55:02 environ overriding default domain, was lottanzb
02:55:03 lottanzb.core Starting LottaNZB 0.4.0...
02:55:03 lottanzb.backend Connected to the HellaNZB daemon at localhost:8760.
02:55:03 lottanzb.modes Set usage mode to 'Local front-end'.
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/
self.run()
File "/usr/lib/
self.
File "/usr/lib/
update_
File "/usr/lib/
download_state = getattr(
AttributeError: type object 'State' has no attribute 'PROCESSiNG'
-------
Please pay attention to 'PROCESSiNG'.
Turkish has 4 letter "I"s. English has only two, a lowercase dotted i and an uppercase dotless I. Turkish has lowercase and uppercase forms of both dotted and dotless I.
http://
Distro: Arch Linux
Python: Tested with python 2.4, 2.5 and 2.6 series, same result.
Changed in lottanzb: | |
status: | Fix Committed → Fix Released |
Changed in lottanzb: | |
milestone: | 0.4 → 0.4.1 |
Hi ras0ir,
thanks a lot for reporting this bug. It seems to be a quite widespread problem and I just noticed that it could also be encountered in Exaile. Fixing the bug is not particularly hard and can be done by omitting the usage of the upper() method, which doesn't do what we expect from it when the Turkish locale is used. The upper() method is used twice in LottaNZB's source code. I just fixed the problem in backend.py, which causes the download progress bar to malfunction. Additionally, the upper method is used to save the HellaNZB configuration file in the stand-alone mode. Did you encounter any problems with that or didn't you use the stand-alone mode?
I'll commit the fix for the bug soon. If we decide to release a LottaNZB version 0.4.1, the fix will certainly be included. Would you mind if I create a source package for you with the fix included so that you can test if it works?