Author Topic: [fixed] r4260: Overloading tutorial localizations with $UserData_Root fails  (Read 721 times)

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
If someone does the translation, and then use the advanced translation and have been download files from transifex then only those translations from the main file, hints and scenarios are taken into account, and the rest you need manually swap. The situation is identical to 3.7.1 and the latest svn. Would have been nice to make the game seen also the rest of the files (tutorials).

Summary (tomreyn):
Overloading tutorial (but not scenario) localizations with what's stored in $UserData_Root/ does not work. As such, it is currently not possible to test tutorial localizations made on Transifex.
« Last Edit: 22 May 2013, 07:51:26 by filux »

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Support for testing translations for the tutorials
« Reply #1 on: 30 April 2013, 19:59:59 »
I agree, and it almost qualifies as a bug. I can't think of any reason why tutorials shouldn't be downloaded, too.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Re: Support for testing translations for the tutorials
« Reply #2 on: 30 April 2013, 20:55:02 »
Clarification, because I see now, I described the problem ambiguously.  :-[

The files are downloaded but not working, they are not swapped when you start a tutorial.

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Support for testing translations for the tutorials
« Reply #3 on: 1 May 2013, 11:45:27 »
You say "the [tutorial] files are [..] not swapped when you start a tutorial".

Can you explain what you mean by "not swapped"?
Which language is your game set to before you start testing the downloaded translations?
What do you do, what happens as a result, and what would you expect to happen as a result of your actions instead?
Put different: what's the exact process (which will have to include changing the currently set game language) to reproduce this issue?

Thanks.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Re: Support for testing translations for the tutorials
« Reply #4 on: 1 May 2013, 12:45:40 »
Hmm, ok  :)
E.g. 1_very_basic_tutorial

linux x64 OS =>
language in game set to - Polish =>
then I changed something in Polish tutorial on transifex (with saved changes) =>
then in-game in menu Options>Misc>Advanced Translation I enter my transifex login details with language code "pl" =>
then click to a "Download from transiflex" button and I get the message about the success of downloading =>
then I run the game and this tutorial =>
then I see a old translation in this tutorial  :( (does not take into account my changes :'( )
[ at this point all other translated files work well without of contriving  :) ] =>

I expect from game a identical treatment the tutorials' files as the other translated files.

{
Now when I want to see the new version of translation the tutorial, I have to manually copy the file or make a symlink to it (much worse solution)

from the location:
~/.megaglest/tutorials/1_very_basic_tutorial/1_very_basic_tutorial_polish.lng

to the location:
/usr/share/megaglest/tutorials/1_very_basic_tutorial/1_very_basic_tutorial_polish.lng   [for 3.7.1] (root permissions needed)

or to the location:
~/mglestsvn/data/glest_game/tutorials/1_very_basic_tutorial/1_very_basic_tutorial_polish.lng   [for svn]
}

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Support for testing translations for the tutorials
« Reply #5 on: 2 May 2013, 19:47:33 »
Thanks for explaining.

I believe what you are looking for is already implemented. Game data stored in ~/.megaglest/ should always overload data located in the installation directory.

However, you need to ensure that the game actually loads the language files you download from Transifex. The easiest way to do so is to press Ctrl-L and to click on the language which you just downloaded from Transifex. Copying files around should not be necessary.

I have not actually tested this, though. I'll do this in a next step if you are convinced that it still fails to work when you make the game reload the language files after you downloaded them from Transifex.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Re: Support for testing translations for the tutorials
« Reply #6 on: 3 May 2013, 07:36:58 »
Still doesn't working.

The test consisted of:
Making changes in the tutorial file at the location ~ /. megaglest / ...
- then selecting the Polish language (Ctrl + L),
- changing the language between English > Polish and Polish > English (Ctrl + L).
These tests have been made with a procedure: "run a game > test > turning off a game > run a game > test > ... ".

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Support for testing translations for the tutorials
« Reply #7 on: 4 May 2013, 14:01:28 »
Confirmed. Thank you, Filux.

Since I consider this to be a bug, I've moved it to the bug forum.
« Last Edit: 4 May 2013, 15:47:25 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
For me, scenarios works fine.
3.7.1 doesn't support "SCENARIO_NAME=" var and this can be confusing :).
E.g.: a moment ago tested on "Amazones".

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Thanks for testing scenarios, I've updated the title accordingly.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
This is fixed in svn rev#: 4299

filux

  • MegaGlest Team
  • Draco Rider
  • ********
  • Posts: 310
  • was OpenSuse x64, is Debian testing x64
    • View Profile
Now it looks that works fine.  :thumbup: :)