DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • July 22, 2019, 03:31:06 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Translation doesn't fetch "rounds left" in general  (Read 3169 times)
0 Members and 1 Guest are viewing this topic.
Nightborn
Guest
« on: June 25, 2005, 08:55:45 AM »

Hi folks,

I am just trying to translate most parts of the game into German, and there are yet some unsolved things on my mind:

1) you can only translate buffs messages like "Pony Attack (%s rounds left)" but not the "(%s rounds left)" in general as it is in the pageparts with a $n variable. I figured out that the translator uses here only the entire sentence with the $n substituted by its value. Especially when it comes to the marriage module, I am not willing to translate every players partner. Is there any way to make it better without changing the pageparts.php?

2) I've encountered a interesting thing within the translator. it displayed me a sentence involving a phrase like "`%Violet" with an additional % inside, getting me "`%%Violet" somehow. I already inserted my translation for the original sentence, but only the latter worked properly (does anybody know why this extra character appeared?)

Thanks for any comments!
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #1 on: June 26, 2005, 11:31:51 PM »

For the second part:
Yes!

The sprintf-function of PHP uses "%" to recognize patterns which should be replaced by other variables.

So, if you want to really return a "%" character with this function you need to double it.

It's like wanting to give out a backslash with the echo-function:

Code:
echo "c:\\windows\\system\\
will look like:
c:\windows\system\
Logged

Running for more than three years now:
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
96 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search