Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   BT.Manager (phpMyBitTorrent) (http://www.bvlist.com/forumdisplay.php?f=23)
-   -   Translation to greek unknown parts of the code (http://www.bvlist.com/showthread.php?t=8255)

Giorgatzelos 3rd September 2012 19:32

Translation to greek unknown parts of the code
 
4 Attachment(s)
Hi i am giving a big try to translate the parts of pmbt that do not exist in language.php but in .php pages. I believe i am over 90% of the translation but there ase some things i need to find and i can't...

1.first the tiny login word in picture 1
2.second in pm.php the inbox/oubox word in picture 2
3.third in details.php?id=1 i the parts in red (view snatched:, [view!], nuked, no , REQUIST A RESEED:, [RESEED NOW!])
4.Last in torrents comments we see "Add a Quick Thankyou to the uploader"

Bump: 2.Inbox/outbox of picture up and right found and successfully edited.Was in pm/inbox.php and pm/outbox.php

Bump: 4.The "thank you" message was in ajax.php

Bump: 3.Found it in ajax.php

joeroberts 5th September 2012 05:19

#1 functions.php

Giorgatzelos 15th September 2012 15:08

2 Attachment(s)
Hey Joe i want to translate these 2 lines and change the background colours of them...do you remember where they are located?

i am refering to the green and red message..

joeroberts 15th September 2012 15:15

theme main.php.

Giorgatzelos 16th September 2012 00:18

1 Attachment(s)
I managed to translate all the site pages and language file[i think!] but this part:
It is not in mybonus.php...can anyone tell me where is it located?

joeroberts 16th September 2012 00:45

it is in the data base

Giorgatzelos 16th September 2012 01:12

thanks man found it pretty easy...


why it displays ???????????? instead of greek though? the description s collation is in latin1_general_ci

joeroberts 16th September 2012 05:30

in torrent_torrent change to row descr to utf8 utf8_bin

Giorgatzelos 16th September 2012 16:31

3 Attachment(s)
i mean the description's collation is in latin1_general_ci for this

http://www.bvlist.com/attachment.php...1&d=1347747524

As you can see in picture 6.jpg the word "δοκιμή" is displayed in greek in database but not in page!

joeroberts 16th September 2012 16:33

change it to utf8 utf8_bin

Giorgatzelos 16th September 2012 16:37

it has only utf8_bin i changed it to this but still question marks are displayed in the page......

joeroberts 16th September 2012 16:45

I well check my files

Giorgatzelos 16th September 2012 16:46

ok Joe...

joeroberts 16th September 2012 16:56

please show me what your table structure looks like

Giorgatzelos 16th September 2012 17:02

2 Attachment(s)
Right now looks like this:Changed the bonus name and description to utf8_bin

joeroberts 16th September 2012 19:10

you need to let php incode the text like so
PHP Code:

$db->sql_query("UPDATE `".$db_prefix."_bonus` SET `description` = '".addslashes(strip_tags(urldecode('Αν φτάσετε τα σημεία για αυτή την περίπτωση, μπορείτε να ανταλλάξετε αυτά τα σημεία σχετικά με την πετάξει σε κυκλοφορία, αν αφαιρέσουμε τα σημεία και θα λάβετε την κίνηση.')))."' WHERE `torrent_bonus`.`id` = 1;"); 

and that inturn inserts text like this
Code:

Αν φτάσετε τα σημεία για αυτή την περίπτωση, μπορείτε να ανταλλάξετε αυτά τα σημεία σχετικά με την πετάξει σε κυκλοφορία, αν αφαιρέσουμε τα σημεία και θα λάβετε την κίνηση.
into the data base then php decodes it to this
Quote:

Αν φτάσετε τα σημεία για αυτή την περίπτωση, μπορείτε να ανταλλάξετε αυτά τα σημεία σχετικά με την πετάξει σε κυκλοφορία, αν αφαιρέσουμε τα σημεία και θα λάβετε την κίνηση.

Giorgatzelos 16th September 2012 19:15

so you are telling me to run sql command like this and it will work?just alter the greek text of each command accoardingly and the id in the end?

joeroberts 16th September 2012 19:19

yes you can see how it worked here
http://guv2.com/3/pmbt/mybonus.php

Giorgatzelos 16th September 2012 19:29

1 Attachment(s)
when i run your command it shows me this...

joeroberts 16th September 2012 19:39

you can not run it in phpmyadmin you add the line to one of your php files
and when you load that page it well run the query.

Giorgatzelos 16th September 2012 19:50

can you tell me in what page did you add it and where exactly[after what code]?i will take care of the rest myself then...

joeroberts 16th September 2012 19:56

in mybonus.php like this
PHP Code:

"<td class=tabletitle align=left>"._btbonus_t."</td>".

"</tr>");
$db->sql_query("UPDATE `".$db_prefix."_bonus` SET `description` = '".addslashes(strip_tags(urldecode('Αν φτάσετε τα σημεία για αυτή την περίπτωση, μπορείτε να ανταλλάξετε αυτά τα σημεία σχετικά με την πετάξει σε κυκλοφορία, αν αφαιρέσουμε τα σημεία και θα λάβετε την κίνηση.')))."' WHERE `torrent_bonus`.`id` = 1;");
$sql = ("SELECT * FROM ".$db_prefix."_bonus order by id");
$res $db->sql_query($sql);
while (
$gets $db->sql_fetchrow($res))


you well only need to load the page one time

Giorgatzelos 16th September 2012 20:27

i've got it now thanx!


WORK DONE!


All times are GMT +2. The time now is 16:32.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.