DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 23, 2018, 08:19:34 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: T-Tool Fix  (Read 1005 times)
0 Members and 1 Guest are viewing this topic.
Aeolus
Mod God
*****
Offline Offline

Posts: 1880


You're welcome.


View Profile WWW
« on: February 24, 2018, 11:15:08 PM »

T-Tool is infamous for saving some translations and not saving others. The reason for this appears to be because it doesn't save translations with apostrophes due to the presence of backslashes (honestly surprised this connection hasn't been made before).

Fix in translatortool.php.

Find:
Code:
$text = httppost('text');
Replace:
Code:
$text = stripslashes(httppost('text'));


Find all:
Code:
'$text'
Replace all:
Code:
'".addslashes($text)."'
Logged

TGTarheel
Codemeister
****
Offline Offline

Posts: 439


View Profile
« Reply #1 on: February 25, 2018, 01:11:51 AM »

T-Tool is infamous for saving some translations and not saving others. The reason for this appears to be because it doesn't save translations with apostrophes due to the presence of backslashes (honestly surprised this connection hasn't been made before).

Fix in translatortool.php.

Find:
Code:
$text = httppost('text');
Replace:
Code:
$text = stripslashes(httppost('text'));


Find all:
Code:
'$text'
Replace all:
Code:
'".addslashes($text)."'

Nice!
Hey, I knew it had trouble with apostrophes, but no idea what to do about it.

I even named one of my shopkeeps on my game "Noah Postrafees" to remind me not to use apostrophes, LOL
Logged
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
32 Guests, 1 User
Sunday
Home Forums News Downloads Login Register Advanced Search