[haiku-development] Re: LocalKit

  • From: PulkoMandy <pulkomandy@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 23 Feb 2010 18:18:58 +0100

2010/2/23 Ralf Schülke <ralf.schuelke@xxxxxxxxxxxxxx>:
> Hi,
> i have some questions about LocalKit in Haiku.
>
> 1) is this Kit in a nighty Build includet? and can add in the makefile engin
> as "Local" by the libs and the catfile ?

yes, you have to link to liblocale.so

>
> 2) can i set a string(s) to tranzlate when it is outside from a BString? eg:
>
>
> ############################################
>
> BString strAbout;
>                     strAbout
>                         << "Pairs\n"
>                         << "\twritten by Ralf Schülke\n"
>                         << "\tCopyright 2008, Haiku Inc.\n"
>                         << "\n"
>                         << "You completed the game in " << fButtonClicks
>                         << " clicks.\n";
>
>                     BAlert* alert = new BAlert("about",
> TR_CMT(strAbout.String()),
>                         "New game", "Quit game");
>
>
> #######################################
>

yes, you have to call TR_MARK on the full original text, however. You
may want to wait for the BStringBuilder API which is still not
written...

> 3) i found a good Tranzlation Tool ( http://hta.haikuzone.net ), but i found
> no link to this page on haiku-os.org, i like this can add on the Trac system
> dev.haiku-os.org.
>

it's still in beta phase. But yes, a link seems a god idea...

>
>
> MFG Ralf Schülke
>



-- 
Adrien Destugues / PulkoMandy
http://pulkomandy.ath.cx

Other related posts: