Warning: preg_replace_callback(): Requires argument 2, '$func['entity_fix']('\2')', to be a valid callback in /nfs/c01/h06/mnt/10927/domains/dragonprime.net/html/Sources/Load.php(225) : runtime-created function on line 3
Translate to Russian and other
DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • September 20, 2019, 02:34:51 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: 1 2 3 [4] 5   Go Down
  Print  
Author Topic: Translate to Russian and other  (Read 38335 times)
0 Members and 1 Guest are viewing this topic.
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #45 on: November 17, 2005, 11:48:37 PM »

So, if we changed all calls for htmlentities() to use this scheme (and may made this scheme a setting / user-preference.... Would that work?
Logged

Running for more than three years now:
Nightborn
Guest
« Reply #46 on: November 18, 2005, 01:14:48 AM »

Yes, I think so.

I've cross checked some references, and I can narrow it down to this.

Maybe there are some other parts who need a coding table, yet I only found htmlentities and one related yet not used (in the core) command similiar to it.

We would have to add the scheme to any htmlentities we find. Maybe a setting would be apt, but I can't judge about that. We would have to bear this in mind each time something is replaced/fixed in the core.

For the primary purposes, the changes I submitted fix almost any display problem with normal core modules.
Problems occur with modules who use htmlentities without the coding table, the module won't do what it should probably. (if you know what fo fix,you may fix it though...and if there is a core setting, new modules can use this when calling htmlentities... okay, we can easily update nowadays, but if there is nothing stored, we have to make sure that lotgd versions w/o this setting still work).

I hope we can fix this entire issue Smiley I thought about making a guide to non-standard coding tables and how to use LotGD. (my wizard is going to develop too, I am adding the necessary htmlentities-fixes tomorrow to it).
Logged
Nightborn
Guest
« Reply #47 on: November 20, 2005, 12:18:52 PM »

okay, you can download my wizard anew. it *should* show you everything correctly within the wizard...so you can translate normally now there.

for any ingame issues, we are checking now what's up there.

please tell me, if the wizard works this way. thanks.
Logged
dzthk
Guest
« Reply #48 on: November 22, 2005, 10:36:34 PM »

Translation tool works fine, but if I translate buttons "SAVE & CLOSE" and "SAVE no CLOSE" into russian, there is abracadabra Smiley

And one more thing - in some places (cases) abracadabra appear in translation (not very often).
Logged
Nightborn
Guest
« Reply #49 on: November 22, 2005, 10:37:48 PM »

I need exact locations Wink

Logged
dzthk
Guest
« Reply #50 on: November 23, 2005, 12:51:11 AM »

1st location - buttons of hte translation tools Smiley

The other - come times in select box there is no russian. I see it in game-admin panel.

I can tomorrow make some screenshot if needed.
Logged
Nightborn
Guest
« Reply #51 on: November 23, 2005, 01:41:00 AM »

please do so.

remember that you have to add new russian text if there are chunky parts. my fixes won't change your tables, and the old htmlentities function did result in saving wrong chars.

Logged
dzthk
Guest
« Reply #52 on: November 23, 2005, 02:10:22 AM »

ok Smiley I know this.
Logged
Creation
Guest
« Reply #53 on: November 25, 2005, 08:33:33 AM »

When we had this problem ( ...) we just put the line <META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=windows-1251'> and changed HTMLEntities to HTMLSpecialchars.
We use the Cyrillic, too.
Logged
Nightborn
Guest
« Reply #54 on: November 25, 2005, 09:04:16 AM »

I see...

htmlspecialchars WITH the table called?

may you copy some of the changes as source code here within?

then we may adapt (Chris?) it.
Logged
Grandfather
Guest
« Reply #55 on: November 25, 2005, 10:10:22 AM »

If I start to copy all the places where we've done the change  it's gonna take a long time. ;-)
We looked the code carefully and no matter where we found  "HTMLEntities" we changed it to "HTMLSpecialChars".
It takes less that 30 minutes to go through all the code and make the changes.

For exaple, look translatortool.php
Quote
   $saveclose = htmlspecialchars(translate_inline("Something in cyrillic"));
   $savenotclose = htmlspecialchars(translate_inline("Something in cyrillic"));
...
...
   rawoutput("$namespace <input name='uri' value=\"".htmlspecialchars(stripslashes($uri))."\"><br/>");
   rawoutput("$texta<br>");
   rawoutput("<textarea name='text' cols='60' rows='5'>".htmlspecialchars($text)."</textarea><br/>");
   rawoutput("$translation<br>");
   rawoutput("<textarea name='trans' cols='60' rows='5'>".htmlspecialchars(stripslashes($trans))."</textarea><br/>");
And so on...
I copied a random code where we've already made the change. I hope you were asking for that.

P.S. Btw, the forum has this problem, too. The problem with cyrillic.
When i try to post "abc" in cyrillic, it becomes "&#1072;&#1073;&#1089;"
Logged
Nightborn
Guest
« Reply #56 on: November 25, 2005, 10:30:08 AM »

interesting.

have tried using a htmlentities yet added your language table?

this would solve the issue too, I guess... since the htmlspecialchars may also be called with a special table.

Logged
Nightborn
Guest
« Reply #57 on: December 13, 2005, 04:34:10 AM »

@ dzthk

any new results? is the wizard working?

did you replace the htmlentities with htmlspecialchars?
Logged
Technomage
Guest
« Reply #58 on: January 25, 2006, 08:53:19 AM »

I'm added ENT_COMPAT,"Windows-1251" in ALL htmlentities() in all php files and had full russian language support on all game pages and input forms.

Please add russian language support in next game release.
Logged
ynblpb
Guest
« Reply #59 on: February 01, 2006, 03:59:54 AM »

Hmm, excuse me, where i can find translation waizard? i couldnot find it
Logged
Pages: 1 2 3 [4] 5   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
74 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search