i18n not working on gnome/ubuntu 7.10, v0.8

Issue #131 invalid
Former user created an issue

Originally reported on Google Code with ID 131 ``` When using Speedcrunch 0.8 on Ubuntu 7.10/Gnome (official depots), it shows up using english language while my locale information is set to french.

At first I thought Speedcrunch was english only, or missed french translation. It was my intention to help translating the app, but I saw there was a i18n directory with already a french translation in it. At the beginning, i thought it was only available for 0.9, but I tested the 0.8 version on windows, which shows up in french.

So it seems Speedcrunch doesn't switch language when used in gnome/ubuntu. Since i'm not tech savvy, I don't know if it's related to the program, to the gnome environment, to QT, or to the package itself (so maybe I should post the issue on the ubuntu website ?). ```

Reported by `christian.decruynaere` on 2008-01-02 18:29:33

Comments (5)

  1. Former user Account Deleted

    ``` Hi again, Christian. This is definitely a distribution issue. You should post a similar post in the Ubuntu issue tracker. I'm assuming your desktop is set to french and everything else works fine. Still, open a terminal and type:

    LANG=fr speedcrunch ```

    Reported by `helder.pereira.correia` on 2008-01-02 20:13:05 - Status changed: `Invalid`

  2. Former user Account Deleted

    ``` That's weird. My only guess (since I don't use Ubuntu) is that the package does not contain the translations or installs them to a different directory. ```

    Reported by `helder.pereira.correia` on 2008-01-03 02:15:07

  3. Former user Account Deleted

    ``` This is a way to solve language file problems, no matter what version of SpeedCrunch or what Linux distribution you use. I posted it a few months ago in a German forum, here's the English translation. Maybe it is worth an entry in the FAQ:

    1. You need a file "crunch_??.qm", where ?? is a placeholder for your country code (de = German, fr = French and so on). Locate this file on your hard disk, on your distributor's CD, or download it from the internet. 2. Once you have this file ready, check where SpeedCrunch looks for it: Open a console window with sufficient rights, and run strace -o scratch.file speedcrunch The SpeedCrunch application window should open now. 3. Close the SpeedCrunch application right away (Alt+F4 for instance) 4. The freshly created "scratch.file" contains tons of system calls. We're interested in a few of them only. Using the console, type grep "crunch_" scratch.file You are shown a couple of system calls that contain a fully qualified directory path, like /usr/share/crunch_??.qm for example. If you see SpeedCrunch looks for .qm file not containing your country code, either change your locale settings appropriately, or rename the crunch_??.qm file from step 1 accordingly. 4. Now you have to move the crunch_??.qm file into one of the searched directories. In many distributions, these directories are write protected, so you need root access. In Ubuntu you can get them using the console command sudo -i You are prompted for the root password then. 5. Assuming, the proper crunch_??.qm file is in /tmp and SpeedCrunch has searched the /usr/share directory, use the following command to copy the file into the desired location, using the root console: cp /tmp/crunch_??.qm /usr/share (Well, if any of the directories given here do not match your specific situation, you are hopefully able to make the necessary adjustments) 6. Give up root rights on the console, e.g if you followed step 4, simply type exit 7. tidy up and erase the temporarily needed scratch.file. If you still have the console open, you might enter: rm scratch.file

    That's it. Next time you launch SpeedCrunch, it should show translated labels and messages ```

    Reported by `wolf.lammen` on 2008-01-03 11:53:05

  4. Former user Account Deleted

    ``` It works flawlessly, thanks. Now we're sure it was then a packaging-related issue. ```

    Reported by `christian.decruynaere` on 2008-01-03 13:32:37

  5. Log in to comment