Author Topic: More Language File Control  (Read 1145 times)

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
More Language File Control
« on: 30 September 2010, 01:32:22 »
The Language file (which holds all the game's text strings) should hold more, particularily the version (very handy for times like in military, since its logo replaces the glest logo, but military isn't version 0.3....). As well, there's at least a few other strings that don't have a string in the language file, off the top of my head, I know one with the word "IP" in it on the join game menu isn't, since I tried to capitalize the word "IP" (Ip looks bad) but found it wasn't in the language file...

As well, another interesting thing might be the ability to add line breaks (\n) in the language files, such as, we might have the part of the intro screen which has the link to the Glest site, and we may change it to say "www.glest.org\nwww.yoursite.com", etc;

The second idea is a bit more complex (maybe?) but the first is very much doable and would be beneficial.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: More Language File Control
« Reply #1 on: 1 October 2010, 04:45:06 »
The Language file (which holds all the game's text strings) should hold more, particularily the version (very handy for times like in military, since its logo replaces the glest logo, but military isn't version 0.3....). As well, there's at least a few other strings that don't have a string in the language file, off the top of my head, I know one with the word "IP" in it on the join game menu isn't, since I tried to capitalize the word "IP" (Ip looks bad) but found it wasn't in the language file...

If you set total-conversion="true" in the menu.xml, the 'Advanced Engine 0.X' wont be rendered over the logo texture, at the cost of a 'Glest Advanced Engine 0.X' rendered on the far bottom-right. Then you could put your version number for Military on the logo texture.

Quote
As well, another interesting thing might be the ability to add line breaks (\n) in the language files, such as, we might have the part of the intro screen which has the link to the Glest site, and we may change it to say "www.glest.org\nwww.yoursite.com", etc;

Will have to look into this, I think most text coming from the lang file is auto-formatted...
Glest Advanced Engine - Code Monkey

Timeline | Downloads

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: More Language File Control
« Reply #2 on: 1 October 2010, 18:53:19 »
The Language file (which holds all the game's text strings) should hold more, particularily the version (very handy for times like in military, since its logo replaces the glest logo, but military isn't version 0.3....). As well, there's at least a few other strings that don't have a string in the language file, off the top of my head, I know one with the word "IP" in it on the join game menu isn't, since I tried to capitalize the word "IP" (Ip looks bad) but found it wasn't in the language file...

If you set total-conversion="true" in the menu.xml, the 'Advanced Engine 0.X' wont be rendered over the logo texture, at the cost of a 'Glest Advanced Engine 0.X' rendered on the far bottom-right. Then you could put your version number for Military on the logo texture.Will have to look into this, I think most text coming from the lang file is auto-formatted...
Oh! Thanks. Was wondering what those new menu xml tags did. I replaced the GPL logo with the GAE logo (sweet logo by the way, who made it?) on military. Looks more in place and military's data itself isn't technically GPL anyway, even if the engine is...
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: More Language File Control
« Reply #3 on: 1 October 2010, 21:21:55 »
Oh! Thanks. Was wondering what those new menu xml tags did. I replaced the GPL logo with the GAE logo (sweet logo by the way, who made it?) on military. Looks more in place and military's data itself isn't technically GPL anyway, even if the engine is...

Modman made the logo for us, see here.

I think by default when you turn total-conversion on, it will place both the gpl and the gae logo down the bottom, this too can be controlled in menu.xml, I'm sure you've seen and played with the options by now ;)
Glest Advanced Engine - Code Monkey

Timeline | Downloads

 

anything