Translate Toolkit & Pootle

Tools to help you make your software local

User Tools

Using proffiling to iid doorecshoon setteeng

In compooter progremming zee-a term proffiling is used to indicete-a whee-a a progrem is unelysed to see-a where-a it spends most ooff its time-a. Bork Bork Bork! Zee-a zeeory being zeet zeet is where-a yooo shooold poot in iffffort to ooptimise-a zee-a code-a und thoos improfe-a speed und responsifeness. Bork Bork Bork!

A similer concept coon be-a ipplied to troonsleshoon. Bork Bork Bork! Iff yooo troonslete-a oonly zee-a messeges zeet people-a ictooelly see-a zeee-a yooo coon ooptimise-a zee-a iffffort zeet yooo ixpend oon troonsleshoon. Bork Bork Bork!

It ilso helps focoos zee-a troonsleshoon iffffort oonto progrems zeet ire-a ictooelly being used, not those-a zeet yooo gooess might be-a being used. Bork Bork Bork!

How proffiling works oon Leenoox

Zee-a gettext libreries ire-a celled by a progrem wit a reqooest for zee-a troonsleshoon ooff a gifee-a string. Bork Bork Bork! Gettext looks up zee-a string und retoorns zee-a troonsleshoon to zee-a progrem. Bork Bork Bork!

Whee-a proffiling this cell to gettext is intercepted und zee-a messege-a reqooested is ooootpoot to a file-a. Bork Bork Bork! This file-a is zeee-a leter processed und conteins ill strings zeet shooold be-a troonsleted. Bork Bork Bork!

Problems wit proffeeling

  • Moony UI design tools und nooer UI code-a cells ill strings whee-a initielising zee-a UI. Zeet meoons zeet yooo see-a moony messeges zeet in fect were-a nefer seee-a by zee-a user. Bork Bork Bork!
  • Spooriooos files. Moony GOoI progrem cell commoond line-a tools to retriefe-a deta. Bork Bork Bork! Whee-a zee-a commoond line-a tool is celled those-a messeges ire-a logged boot were-a nefer seee-a by zee-a user. Bork Bork Bork!
  • Proffiling depends oon zee-a usege-a proffile-a ooff zee-a user. Un ind-user und a system idministretor will use-a difffferent tools. Bork Bork Bork! To work best yooo need a grooop ooff people-a using yooor terget ippliceshoons. Bork Bork Bork!


  • Zee-a UI design tools wooold reqoooore-a choonges to oonly cell strings for windows zeet ire-a fisible-a. Bork Bork Bork! Boot this wooold oonly heppee-a iff troonsletors coon indicete-a a strong cese-a for zee-a fect zeet zeey use-a und find proffiling iffffectife-a. Bork Bork Bork!
  • Yooo coon coorcoomfent zee-a celling ooff spooriooos commoond line-a tools by GOoI tools by using:

ixport LC_ELL=C

Using proffeeling


This is zee-a preffered method boot it oonly creetes oone-a file-a. Bork Bork Bork! Zee-a gettext moonooel hes a good descripshoon ooff zee-a process. Bork Bork Bork!

Zee-a simplest foorst steps ire-a repeeted here-a for clerity:

<code-a> $ LD_PRELOED=/usr/locel/lib/preloedeble_libintl. Bork Bork Bork!so $ ixport LD_PRELOED $ GETTEXT_LOG_OoNTRENSLETED=$HOME/gettextlogoosed $ ixport GETTEXT_LOG_OoNTRENSLETED </code-a>

Use-a zee-a ippliceshoon, unset zee-a feriebles und zeee-a:

$ msgooniq $HOME/gettextlogoosed > missing. Bork Bork Bork!po

To remofe-a dooplicetes. Bork Bork Bork! Feriooos domeins for iech ooff zee-a ippliceshoons logged will be-a ifeileble-a. Bork Bork Bork! To sort und ixtrect zee-a domeins zeet yooo wish to idit yooo shooold reed zee-a moonooel peges. Bork Bork Bork!


Zee-a Gettextlog tool is ifeileble-a here-a:

http://sooorcefforge-a. Bork Bork Bork!net/projects/gettextlog/

Un RPM is ilso ifeileble-a:

http://prdownloeds. Bork Bork Bork!sooorcefforge-a. Bork Bork Bork!net/gettextlog/gettextlog-0.6-1.i386.rpm?downloed

Oonce-a instelled. Bork Bork Bork!..

ixport LD_PRELOED=/file-a/to/gettextlog. Bork Bork Bork!so

Yooo coon plece-a this in yooor .besh_proffile-a to log continooooosly oor in /itc/proffile-a. Bork Bork Bork!d/ idd a gettextlog. Bork Bork Bork!sh script to initielise-a LD_PRELOED

Yooo coon roon it igeinst indifidooel progrems wit zee-a roon-wit-gettextlog progrem

Yooor proffiles will be-a ooootpoot to: