AlfredoCubitos / qosmic

Automatically exported from code.google.com/p/qosmic
0 stars 1 forks source link

i18n not properly working #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Placed qosmic_ru.ts/qm to ts dir
2. Added qosmic_ru.ts to qosmic.pro
3. Ran ./build.sh
4. UI is still in English

So:

1. What do I do? :)
2. Is qosmic really trying to compile QM into its binary? Why? :)

Original issue reported on code.google.com by alexandr...@gmail.com on 28 Jul 2009 at 5:55

GoogleCodeExporter commented 8 years ago
Try setting TRANSDIR=./ts in qosmic.pro.  Then rebuild by running "qmake ; make 
clean
; make".  It should then find the compiled translation file in 
./ts/qosmic_ru.qm if
you run ./qosmic from the build directory.

If you like, I would be happy to include your translations in the source 
package. 
Having more translations is always better.

Original comment by bit...@gmail.com on 28 Jul 2009 at 11:36

GoogleCodeExporter commented 8 years ago
Nope, it still doesn't work, sorry :(

Original comment by alexandr...@gmail.com on 24 Aug 2009 at 11:49

GoogleCodeExporter commented 8 years ago
You'll need to enable logging so we can see which locale and .qm it's trying to 
use. 
Uncomment the 'CONFIG += debug warn_on' line in qosmic.pro, rebuild as before, 
and
then run 'env log=info ./qosmic' from the build directory.  It should display 
some
messages on stdout about the locale that might be useful.

Original comment by bit...@gmail.com on 31 Aug 2009 at 1:51

GoogleCodeExporter commented 8 years ago
info [-1226782112]: main() : Qosmic (version 1.4.6)
info [-1226782112]: main() : no translations found for locale ru_RU
info [-1226782112]: main() : using default locale

I have qosmic_ru.ts/qm files there

Original comment by alexandr...@gmail.com on 22 Sep 2009 at 1:11

GoogleCodeExporter commented 8 years ago
It looks like the application is not able to recognize the file named 
qosmic_ru.qm in
the TRANSDIR directory.

I just noticed in your original report that your steps taken aren't quite 
correct if
you are adding a new translation set.  They should look more like this:

1. Added qosmic_ru.ts to qosmic.pro
2. Ran 'lupdate qosmic.pro'
3. Used linguist to edit ts/qosmic_ru.ts and add translations
4. Ran 'lrelease qosmic.pro'
5. Ran ./build.sh

This set of steps should work provided that you also set TRANSDIR to the 
directory
containing the file named qosmic_ru.qm as I mentioned above.

Original comment by bit...@gmail.com on 28 Sep 2009 at 8:00

GoogleCodeExporter commented 8 years ago
The suggested seqence of steps should make no difference whatsoever. lupdate 
just
updates TS files, and lrelease just creates QM files.

Original comment by alexandr...@gmail.com on 28 Sep 2009 at 10:14

GoogleCodeExporter commented 8 years ago
It's possible that the lrelease tool has created an invalid qm file that is 
being
rejected.  If can you attach both the qm and the ts files here I'll take a look 
at
them.

Original comment by bit...@gmail.com on 8 Oct 2009 at 8:05

GoogleCodeExporter commented 8 years ago
Here they are :)

Original comment by alexandr...@gmail.com on 9 Oct 2009 at 6:18

Attachments:

GoogleCodeExporter commented 8 years ago
I'm still unable to replicate your problem.  Your qm file loads fine here under 
Qt
4.5.3:

% LC_ALL=ru log=info ./qosmic        
info [140114715977568]: main() : Qosmic (version 1.4.6)
info [140114715977568]: main() : installing translations for ru_RU

The ts file is a little out of sync with the version 1.4.6 source code, but it 
doesn't
seem to matter, and I can see your translations in the menus and the widgets.  
Running
lrelease on your .ts file gives me an exact copy of your .qm file.

It might be time to ask a Qt dev about this.  You can point them at this bug. 
Hopefully someone more familiar with the QTranslator code will have some 
insight about
why it's not loading translations on your system.

Original comment by bit...@gmail.com on 14 Oct 2009 at 3:04

GoogleCodeExporter commented 8 years ago
1) There is new qosmic_ru.ts for qosmic-1.5.0 in attachment.
Alexander, if you have time please finish translation.

2) There is patch for i18n in attachment.

3) make install does not install translation.
For spec manually:
mkdir -p %{buildroot}%{_datadir}/%{name}/translations
cp -f ./ts/*.qm %{buildroot}%{_datadir}/%{name}/translations/

Original comment by loginov.alex.valer@gmail.com on 19 Oct 2014 at 9:09

Attachments:

glixx commented 8 years ago

Fixed.