DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • December 15, 2018, 10:04:38 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 1502 times)
0 Members and 1 Guest are viewing this topic.
Aeolus
Mod God
*****
Offline Offline

Posts: 1912


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: 492


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
Version 1.1.2 is the current supported version and is available for download.

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