Openkore.com

OpenKore Forums
It is currently 21 May 2013, 11:22

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Translation issues
PostPosted: 11 Apr 2010, 20:09 
Offline
Developers
Developers

Joined: 05 Dec 2008, 05:42
Posts: 1857
Good for english, how about translations? Maybe make separate messages?
Code:
TF("%s to attach %s.\n", ($args->{fail}) ? T("Failed") : T("Succeeded"), ($args->{index}) ? T("item: ").$char->inventory->getByServerIndex($args->{index}) : T("zeny"))

Code:
TF("Mail window is now %s.\n", ($args->{flag}) ? T("closed") : T("opened"))


Variable extrapolation inside TF?
Code:
   my $entityType = (Actor::get($sourceID)->{jobID} == 24) ? T("coin") : T("spirit");

   if ($sourceID eq $accountID) {
      message TF("You have %s ".$entityType."(s) now\n", $entities), "parseMsg_statuslook", 1 if $entities != $char->{spirits};
   } elsif (my $actor = Actor::get($sourceID)) {
      message TF("%s has %s ".$entityType."(s) now\n", $actor, $entities), "parseMsg_statuslook", 2 if $entities != $actor->{spirits};


Top
 Profile  
 
 Post subject: Re: Translation issues
PostPosted: 12 Apr 2010, 05:29 
Offline
Moderators
Moderators
User avatar

Joined: 04 Apr 2008, 09:30
Posts: 232
Location: My House
preferable make separate. it's easier to maintain the translations

_________________
Image
Follow The template in Asking Question or Be Trashed


Top
 Profile  
 
 Post subject: Re: Translation issues
PostPosted: 12 Apr 2010, 15:03 
Offline
Documentation Writers
Documentation Writers

Joined: 29 Jan 2010, 05:59
Posts: 24
I make ru-translation for OpenKore. I want to do this - diffs.zip.


Attachments:
File comment: diffs for i18n.
diffs.zip [27.76 KiB]
Downloaded 57 times
Top
 Profile  
 
 Post subject: Re: Translation issues
PostPosted: 27 May 2010, 18:31 
Offline
Documentation Writers
Documentation Writers

Joined: 29 Jan 2010, 05:59
Posts: 24
There is a problem. Not all of TF('...') and T('...') are in openkore.pot:
In source code is
src\Interface\Wx.pm Line 1321
Code:
$self->writeOutput("message", TF("Moving to Portal %s, %s\n", $x, $y), "info");

but there is this line in openkore.pot?
openkore.pot
Code:
#: ../Interface/Wx.pm:1298
#, perl-format
msgid "Mouse over: %s, %s"
msgstr ""

#WHERE IS LINE 1321???

#: ../Interface/Wx.pm:1345
#, perl-format
msgid "Moving to %s, %s\n"
msgstr ""

and
src\Network\Receive\kRO\Sakexe_0.pm Line 4236
src\Network\Receive\ServerType0.pm Line 4209
Code:
message TF("%s: Type 'store' to start buying, or type 'sell' to start selling\n", $name), "npc";

openkore.pot
Code:
#: ../Network/Receive/kRO/Sakexe_0.pm:4124
#: ../Network/Receive/ServerType0.pm:4097
#, perl-format
msgid "Minimap indicator at location %d, %d with the color %s cleared\n"
msgstr ""

#WHERE ARE Sakexe_0.pm Line 4236 and ServerType0.pm Line 4209 ??

#: ../Network/Receive/kRO/Sakexe_0.pm:4328
#: ../Network/Receive/ServerType0.pm:4301
#, perl-format
msgid "%s: Done talking\n"
msgstr ""

and
src\Task\Route.pm Line 260
Code:
my $msg = TF("Stuck at %s (%d,%d), while walking from (%d,%d) to (%d,%d).",

openkore.pot
Code:
#: ../Task/Route.pm:228
msgid "Destination reached.\n"
msgstr ""

#WHERE IS LINE 260?

#: ../Task/Route.pm:263
msgid " Teleporting to unstuck."
msgstr ""


Why?


Top
 Profile  
 
 Post subject: Re: Translation issues
PostPosted: 28 May 2010, 06:46 
Offline
Administrator
Administrator
User avatar

Joined: 24 Apr 2008, 12:02
Posts: 1254
manticora
May-be there are similar lines elsewhere.
So the duplication is not shown by default.

Or may-be? try to rebuild opnekore.pot

_________________
Join our Team. Click here.
Image


Image


Top
 Profile  
 
 Post subject: Re: Translation issues
PostPosted: 28 May 2010, 11:13 
Offline
Documentation Writers
Documentation Writers

Joined: 29 Jan 2010, 05:59
Posts: 24
I have checked, there is no similar lines in openkore.pot
Every time i translate OpenKore, i update the openkore.pot file.


Top
 Profile  
 
 Post subject: Re: Translation issues
PostPosted: 19 Jun 2010, 18:38 
Offline
Documentation Writers
Documentation Writers

Joined: 29 Jan 2010, 05:59
Posts: 24
tables \ commanddescriptions.txt
Code:
[auth]
(Un)authorize a user for using Kore chat commands.
<player name> <flag>   authorize <player name> if <flag> is 1, unauthorize if 0


console
Code:
help auth
------------ Help for 'auth' ------------
(Un)authorize a user for using Kore chat commands.
auth <player name> <flag>    authorize <player name> if <flag> is 1,
                             if 0
--------------------------------------------------


Where is "unauthorize"?

and

Code:
[cart]
Cart management
            lists items in cart.
add <inventory item #> [<amount>]   add <amount> items from inventory to cart
get <cart item #> [<amount>]   get <amount> items from cart to inventory
desc <cart item #> [<amount>]   displays cart item description


Code:
help cart
------------ Help for 'cart' ------------
Cart management
cart add <inventory item #> [<amount>]    add <amount> items from inventory to
                                         
cart get <cart item #> [<amount>]         get <amount> items from cart to
                                         
cart desc <cart item #> [<amount>]        displays cart item description
--------------------------------------------------


Fixed:
Quote:
sub helpIndent {
....
foreach my $word (@words) {
if ($padsize + length($messageTmp) + length($word) + 1 > 79) {
$message .= $messageTmp . "\n$pad";
$messageTmp = "$word "; #was $messageTmp = '';
} else {
$messageTmp .= "$word ";
}
}


Attachments:
File comment: screenshot
unauthorize.PNG
unauthorize.PNG [ 3.14 KiB | Viewed 1454 times ]
Top
 Profile  
 
 Post subject: Re: Translation issues
PostPosted: 27 Jun 2010, 08:57 
Offline
Documentation Writers
Documentation Writers

Joined: 29 Jan 2010, 05:59
Posts: 24
File tables\commanddescriptions.txt
Code:
[ai]
Enable/disable AI.
            toggles AI on/off
on            enables AI
off            disables AI
ai_v         displays the contents of the %ai_v hash, for debugging purposes
clear         clears AI sequences
print         displays detailed info about current AI sequence


Console log, where is toggles AI on/off?
Code:
help ai
----------------- Help for 'ai' ------------------
Enable/disable AI.
ai on       enables AI
ai off      disables AI
ai ai_v     displays the contents of the %ai_v hash, for debugging purposes
ai clear    clears AI sequences
ai print    displays detailed info about current AI sequence
--------------------------------------------------


After this patch in src\FileParsers.pm:
Quote:
sub parseCommandsDescription {
...
...
} elsif ($line =~ /^(.*?)\t+(.*)$/) {
push @{$r_hash->{$key}}, [$1, $2];

} elsif ($line !~ /\t/) { #if a console command is without any params
push @{$r_hash->{$key}}, ["", $line];
}


New console log:
Code:
help ai
----------------- Help for 'ai' ------------------
Enable/disable AI.
ai          toggles AI on/off
ai on       enables AI
ai off      disables AI
ai ai_v     displays the contents of the %ai_v hash, for debugging purposes
ai clear    clears AI sequences
ai print    displays detailed info about current AI sequence
--------------------------------------------------


Top
 Profile  
 
 Post subject: Re: Translation issues
PostPosted: 22 Aug 2010, 11:36 
Offline
Documentation Writers
Documentation Writers

Joined: 29 Jan 2010, 05:59
Posts: 24
Fixed (7460):

Quote:
$y = $portal->{y};#{O}_{O}#
$self->writeOutput("message", TF("Moving to Portal %s, %s\n", $x, $y), "info");


Top
 Profile  
 
 Post subject: Re: Translation issues
PostPosted: 22 Aug 2010, 18:36 
Offline
Developers
Developers

Joined: 05 Dec 2008, 05:42
Posts: 1857
http://openkore.svn.sourceforge.net/vie ... threv=7460
That's just a comment added or what?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
[ Time : 0.054s | 19 Queries | GZIP : On ]