Topic: problems with languages

Nasenbaer
Avatar
Joined: 2009-02-21, 18:17 UTC+1.0
Posts: 826
Ranking
One Elder of Players
Location: Germany
Posted at: 2009-03-19, 15:04 UTC+1.0

Hi nico_h,

are you running at least Build13? If you download our current build for linux, delete (or move somewhere else) the file ~/.widelands/config and start the downloaded widelandsversion from it's directory (doubleclicking on "widelands on ubuntu or "cd path/to/widelands and ./widelands in a terminal)

it should work fine. Please also note, that this is a problem specific to only some versions of ubuntu, which disables us to fix it generally - anyway leaving the language to "System default" should work in all cases since build13...


Top Quote
nico_h

Joined: 2009-03-19, 12:42 UTC+1.0
Posts: 7
Ranking
Pry about Widelands
Posted at: 2009-03-19, 20:07 UTC+1.0

yes, it is build 13, i compiled it from svn. was that a bad idea ?

EDIT: also deleted the config file and restarted widelands like you suggest (first cd ~/.bin/widelands/build-13/ and then .widelands) but it doesn't work.

should i delete this compiled version and install from another package ?

Edited: 2009-03-19, 20:15 UTC+1.0

Top Quote
Nasenbaer
Avatar
Joined: 2009-02-21, 18:17 UTC+1.0
Posts: 826
Ranking
One Elder of Players
Location: Germany
Posted at: 2009-03-19, 20:57 UTC+1.0

well perhaps that's just the point :-) Compiling yourself is just fine, but you need to tell widelands where it should search for the data files.

Just test to rebuild your version with the following command:

./build-widelands.sh build=release install_prefix=. bindir=. datadir=. localedir=locale

than it finally should work in French - if not:

  • Check if the file "locale" exists and if some *.mo files are in locale/fr_FR/LC_MESSAGES
  • Try the tipp with removing ~/.widelands/config

I hope that works out for you face-smile.png


Top Quote
nico_h

Joined: 2009-03-19, 12:42 UTC+1.0
Posts: 7
Ranking
Pry about Widelands
Posted at: 2009-03-19, 21:08 UTC+1.0

alright, i try this !! i was especially wondering because i wasn't able to find any locales nor any *.mo files !! so this was not normal !! cool, i try and let you know.

EDIT: a little another question, at the begining of compilation, it says some things are missing (like ctags and png something and astyle...). obviously they are not necessary since it compiled fine and the game works. is it worth installing them though ?

EDIT2: well it doesn't compile any more with these options. it starts well but finishes somewhat later on : src/widelands_map_building_data_packet.cc:108: internal compiler error: in get_biv_step, at loop-iv.c:774 don't know if there's a solution for that... looks like a bug, doesn't it ? i try it again but i'll delete everything, svn again and build again.

Edited: 2009-03-19, 21:35 UTC+1.0

Top Quote
Nasenbaer
Avatar
Joined: 2009-02-21, 18:17 UTC+1.0
Posts: 826
Ranking
One Elder of Players
Location: Germany
Posted at: 2009-03-19, 21:33 UTC+1.0

well those are actually only interesting for developers and official packagemaintainer -> They are used to smaller the size of some files. So depends on you whether you think 1MB more or less is important or not face-wink.png


Top Quote
nico_h

Joined: 2009-03-19, 12:42 UTC+1.0
Posts: 7
Ranking
Pry about Widelands
Posted at: 2009-03-19, 22:03 UTC+1.0

so, i deleted everything (rm -rf .bin/widelands/build-13 && rm -rf ~/.widelands) and re-got it from svn and tried to recompile it with the line you indicated, but the compilation stops at the error i mentionned above, here again :

src/widelands_map_building_data_packet.cc:108: internal compiler error: in get_biv_step, at loop-iv.c:774

actually, seems to be a bug of the compiler ! oh noooooooo !

Edited: 2009-03-19, 22:07 UTC+1.0

Top Quote
nico_h

Joined: 2009-03-19, 12:42 UTC+1.0
Posts: 7
Ranking
Pry about Widelands
Posted at: 2009-03-19, 22:14 UTC+1.0

maybe i can try something else, just compiling as i did before and separately compiling myself the po file (using poedit)

EDIT: not using poedit but msgfmt

Edited: 2009-03-19, 23:25 UTC+1.0

Top Quote
SirVer

Joined: 2009-02-19, 15:18 UTC+1.0
Posts: 1442
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2009-03-19, 22:32 UTC+1.0

Try

./build-widelands.sh build=debug install_prefix=. bindir=. datadir=. localedir=locale

The compiler bug is most certainly related to optimization.

!SirVer


Top Quote
nico_h

Joined: 2009-03-19, 12:42 UTC+1.0
Posts: 7
Ranking
Pry about Widelands
Posted at: 2009-03-19, 23:03 UTC+1.0

this one compiled ! but there's no locale dir.

i try to make it myself...


Top Quote
nico_h

Joined: 2009-03-19, 12:42 UTC+1.0
Posts: 7
Ranking
Pry about Widelands
Posted at: 2009-03-19, 23:25 UTC+1.0

finally, i got it !

having built using this line : ./build-widelands.sh build=debug install_prefix=. bindir=. datadir=. localedir=locale

i then did, in the installation folder :

mkdir -p locale/fr_FR/LC_MESSAGES/

cp -r po/fr_FR/* locale/fr_FR/LC_MESSAGES/

cd locale/fr_FR/LC_MESSAGES

and for each file.po that was there :

msgfmt file.po -o file.mo

and after that, it works translation included !

thanks for your help !!!

Edited: 2009-03-19, 23:26 UTC+1.0

Top Quote