This is with both 1.00 and 1.01.
My region setting is set to German, locale for non-unicode programs to Japanese. By default, MComix starts in German. I have switched the language to English and restarted. Preferences dialog still has "close" as "schließen" (German).
After testing some more it seems that the "close" button is not changing language no matter which one I select for the UI - it's always localized to German.
A similar thing happens to the "shortcuts" tab, it always stays English (I'm guessing it's not localized yet)
win8.1 x64.
More strings that are always localized:
This happens to me also. The text is on English but the buttons Close, Open, remove, cancel... appear in Portuguese.
Last edit: j santos 2015-04-17
OK, 2 issues with locales handling in MComix:
Attached is a Windows build with a patch to fix the second issue, would you mind testing it?
With that build everything is fine except Library -> "last open" is still localized.
I know windows is a pain in the rear when it comes to this, but is there a way to base the language on the display language, not the regional settings?
Your talking about the collection, right? That collection name is set at creation (localized), and never changed after that. So if you switch languages, the value stays the same.
You're talking about a Windows setting?
I see. Deleting the DB and restarting now shows the English "Recent" now. The approach is not really optimal, the db should be renamed accordingly after language switches, especially since the user is not allowed to do it manually. Else it sticks out like a sore thumb
It's not really a setting per se. Basically, the UI language and regional settings are separate. So on my system I use the English UI with German regional settings and Japanese locale for non-unicode programs. Most programs detect my region being set to Germany and use German as their default language.
Which leads to a mix of German and English UI across the apps, and why I was wondering if you could check for UI language used instead of region when deciding which language to use in auto mode.
Agreed, please create a ticket so we don't loose track of this.
OK, I'll see if I can use something like this and upload a test build (I'm not sure I'll be able to test this with Wine).
Any other issue (not related to locales) with the build I uploaded? I switched to another version of PyGTK (the one provided by PyGObject for Windows, so I'm interested in any feedback when used on a real Windows machine. It's also based on my latest development branch, so if you can reproduce any of the issues mentioned in [#84] (other than password protected 7z archives and animated Gif), I would like to know.
Related
Bugs:
#84I'm seeing an issue with 7z archives where a console window is opened for 7z for some reason. It pops up in front of the fullscreen window as well and closes once extraction is finished. This wasn't there with older builds.
There is also some kind of problem with big .rar archives. Browsing stalls to a crawl, about one picture per 2 seconds and it says "not responding" now and then.
Can you add the attached
w9xpopen.exeto the MComix directory, and see if the issue persist, please?And it was fine before? Can you explain what you mean exactly by browsing? Also, if you launch MComix from a console with "-W all", do you get any errors?
Last edit: Benoit Pierre 2015-04-18
Yes, nothing changed.
With 1.00 it's fluent, mostly. With 1.01 the thumbnails don't seem to appear. With 1.2.dev0 I can't go to next/previous file fluently, it takes several seconds to do so and gets progressively slower. The thumbnails then start to appear, about 10 at a time. Going through the pages faster than the thumbnails appearing will lead to slowdown/hang until the next group loads.
Feels like the extraction is too slow. The .rar is not a RAR5, there are about 200 .jpg with a resolution of 3000x3000 in the archive.
Is it better if you change the "max threads" settings to 1 in
preferences.conf?No, no difference. Forgot to say, no warnings or errors with
-W allOK, please try the attached build:
If the performance is still crap, I'll build another version with the Python profiler enabled.
Great!
Did you change "max threads" back to 3?
1.00 was already using PIL instead of GDK Pixbuf to load images, so something is still wrong.
With 1.01 you never get any thumbnails?
Fullscreen support is another can of worms...
if you mean in the .conf, then I left it at 3. I misunderstood and thought you meant the extraction threads setting, which I've set to 4 -> 3 -> 1 -> 4 when you asked me to test. It did not affect the "max threads" setting, so I'm guessing they're separate.
Setting that one to 1 makes things fluid with PIL, but PIL disabled is still faster. Actually, setting "max threads" to 3 also makes 1.00 be laggier, but still better than 1.2
I'm not sure what it depends on, but it seems to depend on archive size. For this archive with 1.01, I had to wait about a minute until the first thumbnails stated to appear. 1.00 takes about 6 seconds. 1.2dev1 about the same, but it hangs for a bit first. This is with "max threads"=3
With "max threads"=1, 1.00 takes 2 seconds, 1.01 takes 8 seconds and 1.2dev1 takes 8 seconds as well to display the first thumbnail. Disabling use of pil reduces that to <1 second.
So 1.2dev1 with pil disabled is faster than 1.00
Actually it looks like it's an issue that appeared since 1.01 as well. 1.00 correctly exits fullscreen to the last windowed dimensions... =/
When you say it hangs for a bit first, do you mean the first few thumbnails get created, then a pause, then the rest? Because the thumbnails creation is faster (than in the previous versions), and so with a "slower" archive, thumbnails creation will quickly catch up to the extraction thread, hence the pause.
The switch to PIL was originally done because of a regression in GDK Pixbuf leading to slow image decoding times (see this thread on the GTK list), the version from PyGObject does not suffers from this, as confirmed by your test, which is very good news. We may be able to switch back to GDK Pixbuf, and simplify the code.
Ah! That's a good thing to know. I'll take a look.
No, it's hanging right after opening the archive. It displays the first page, but the thumbnailer is empty. Then, after some time they start to load (pausing now and then).
Last edit: Soukyuu 2015-04-18
Mmm, weird... Do you have an idea of how long it takes to extract each page? (Check the timings in the traces when run with "-W all")
Also, is that when starting reading on the first page? Or do you start reading on another page? And is the archive solid?
I don't think there is a "solid" RAR archive, at least I don't see it mentioned anywhere. There are also nothing that looks like a trace when I run it with "-W all". The freeze is happening right after loading the archive, so the dialog window asking me if I want to resume or not is frozen as well.
There is ("rar -s" at creation).
Right, I think it's normal: I ask PyInstaller to disable creation of a console window for standard input/output at run time. Adding a logfile option might be a good idea.
Okay, let's put this issue aside for now, since it works fine without PIL.
Can you try the attached build, see if fullscreen support works better? Thanks.
Hmm well, there is no option in the GUI to set it, or I'm blind. So if it's not set by default, then I guess it's not a solid archive. I can extract single files from that archive without it going through the whole archive as it usually happens with solid archives, so I don't think it's.
Yes, it seems to behave as it did with 1.00 now. Now it only has to stop popping up those 7z.exe windows
Indeed, probably not a solid archive.
Good.
Do you get the same behavior when using an "open with" external command?