Skip to content

Changing language, add folders! #100

@gioisco

Description

@gioisco

When I play the game and I want to change the language, my expected behavior was:
a) descriptions in the game and the folders in other language
or
b) only descriptions of the game in other language

The real behavior instead is more strange

  1. Start the game with ./start.sh
  2. Show folders with 'ls'
[mission 1] $ ls
Castle	Forest	Garden	Mountain  Stall
  1. Exit with gsh exit
  2. Start the game in other language with ./start.sh -L fr
  3. I don't want to start new game (I may be already complete some mission)
[giovanni@giovanni GameShell]$ ./start.sh -L fr
Le répertoire /run/media/giovanni/DATI/Projects-shared/GameShell/.config contient des méta-données provenant d'une partie précédente.
Voulez vous les supprimer et commencer une nouvelle partie ? [o/N] N
  1. Show folders and...
[mission 1] $ ls
Castle	Chateau  Forest  Garden  Mountain  Stall

I have the extra folder Chateau! (because the script of the first mission create the ./Chateau/Donjon/Premier_etage/Deuxieme_etage/Haut_du_donjon/ folders)

My expected behavios was

For a) descriptions in the game and the folders in other language

  1. Start the game with ./start.sh
  2. Show folders with 'ls'
[mission 1] $ ls
Castle	Forest	Garden	Mountain  Stall
  1. Exit with gsh exit
  2. Start the game in other language with ./start.sh -L fr
  3. Show message to continue or start new game
  4. If the last choice was N AND the language is different from the last run (I don't know how to check this)
  5. Translate all folders.
    This is is now possible running follow command at startup:
rm -r $GSH_HOME/*
gsh resetstatic

For b) only descriptions of the game in other language (this is more complicated)

Same as above, but in the step 7)
7) Ask if you want to translate folders (default N)
8a) If yes

rm -r $GSH_HOME/*
gsh resetstatic

8b) If no

rm -r $GSH_HOME/*

and recreate folders with previous language of last run (I don't know how to do this)
However, probably the game now doesn't work with folders in other language and only my hypothesis a) is practicable.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions