DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • October 23, 2018, 04:21:23 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 1272 times)
0 Members and 1 Guest are viewing this topic.
Aeolus
Mod God
*****
Online Online

Posts: 1896


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


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
Please take the time to read the FAQ and browse the DragonPedia

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