project-navigation
Personal tools

Author Topic: UFOpaedia Missing Descriptions  (Read 3744 times)

Offline YY.Cherubim

  • Rookie
  • ***
  • Posts: 10
    • View Profile
UFOpaedia Missing Descriptions
« on: June 05, 2011, 08:21:26 pm »
Gentlemen,
  I am really enjoying the game.  After much tinkering, I got 2.4 dev to work flawlessly; excellent job all around!

  My questions is how to I get the item descriptions to display?  It worked for about a week, but now when ever I look in the paedia of the main, research, equip, etc. screens, I get the file name in the content window.  The item's icon displays, just the text is missing.

  I am sure it's an easy fix, I just need some pointers on how to do it.  Thanks in advance for your help and all that you do to keep us entertained!

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: UFOpaedia Missing Descriptions
« Reply #1 on: June 05, 2011, 09:11:15 pm »
Gentlemen,
  I am really enjoying the game.  After much tinkering, I got 2.4 dev to work flawlessly; excellent job all around!

  My questions is how to I get the item descriptions to display?  It worked for about a week, but now when ever I look in the paedia of the main, research, equip, etc. screens, I get the file name in the content window.  The item's icon displays, just the text is missing.

  I am sure it's an easy fix, I just need some pointers on how to do it.  Thanks in advance for your help and all that you do to keep us entertained!

Did you compile it yourself? On which system?

In general, the language files (*.po) should be compiled (make lang). and the base/i18n directories should be at a place the game finds.

-geever

Offline YY.Cherubim

  • Rookie
  • ***
  • Posts: 10
    • View Profile
Re: UFOpaedia Missing Descriptions
« Reply #2 on: June 05, 2011, 10:04:55 pm »
geever,

  Yes sir I compiled it myself.  I am running Ubuntu v11 on an Asus G50 laptop.

  I have many directories in the i18n parent.  I looked into the /en/LC_MESSAGES (English I assume?)  and it contains the single file ufoai.mo.

  If I remake the language packs will it break anything?  Again, It worked for about week before choking and everything else is working exactly as it should.

Thanks again for your help.

Offline YY.Cherubim

  • Rookie
  • ***
  • Posts: 10
    • View Profile
Re: UFOpaedia Missing Descriptions
« Reply #3 on: June 06, 2011, 05:44:04 pm »
So I retried to 'make lang' which resulted in:

yy@yy-G50VT:~/Downloads/ufoai/ufoai$ make lang
make: Nothing to be done for `lang'.


At least it did not kill the game.

  I tried a wildcard  search for news_after as the news_after_the_war_txt shows up in the description window of the UFOpaedia and nothing returned.


Any thoughts on how to re-populate my item descriptions?

Offline YY.Cherubim

  • Rookie
  • ***
  • Posts: 10
    • View Profile
Re: UFOpaedia Missing Descriptions
« Reply #4 on: June 07, 2011, 11:13:23 pm »
So in poking around the ufoai site I came across some possibilities.

  I downloaded the ufo-en.po from SourceForge and compiled it into the en/LC_MESSAGES. Still no change in the UFOpaedia.

  I attempted to update the po files and received the error:

Quote
yy@yy-G50VT:~/Downloads/ufoai/ufoai/src/po$ make update-po
make ufoai.pot-update
make[1]: Entering directory `/home/yy/Downloads/ufoai/ufoai/src/po'
xgettext --default-domain=ufoai --directory=.. \
     --add-comments=TRANSLATORS: --keyword=_ --keyword=N_ --no-wrap \
     --files-from=./POTFILES.in \
     --copyright-holder='The UFO:AI team' \
     --msgid-bugs-address=""tlh2000@users.sourceforge.net"" \
     --no-wrap \
     --output=ufoai.c.po
xgettext: error while opening "./client/campaign/cp_aircraft.c" for reading: No such file or directory
make[1]: *** [ufoai.pot-update] Error 1
make[1]: Leaving directory `/home/yy/Downloads/ufoai/ufoai/src/po'
make: *** [update-po] Error 2

  I checked my tree and I have no /campaign directory in the ./client parent.
   
  Is there anyone there that has any ideas as to what the crap is going on with my item descriptions?  As a workaround I am exiting the game and viewing the above lang file in an editor to read the descriptions.

   ...Better than nothing...

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: UFOpaedia Missing Descriptions
« Reply #5 on: June 08, 2011, 08:38:02 pm »
So in poking around the ufoai site I came across some possibilities.

  I downloaded the ufo-en.po from SourceForge and compiled it into the en/LC_MESSAGES. Still no change in the UFOpaedia.

  I attempted to update the po files and received the error:

Updating po files will not solve your problem. The po-check makescript doesn't read client/campaign directory anymore, probably you have an old source.

-geever

Offline YY.Cherubim

  • Rookie
  • ***
  • Posts: 10
    • View Profile
Re: UFOpaedia Missing Descriptions
« Reply #6 on: June 08, 2011, 10:00:41 pm »
geever thanks for the tips,

 I checked the options within the game menu and there are no available languages for me to select.  So I added the startup parameter LANG=en and eureka!

I guess you should always try the easy things first.  Anyway, I appreciate the help.  Thanks for all you do and the great game.
« Last Edit: June 08, 2011, 10:02:56 pm by YY.Cherubim »