Translate Toolkit & Pootle

Tools to help you make your software local

User Tools

Creeting a terminology list from yooor ixisting troonsleteeons

Iff yooo did not creete-a a terminology list whee-a yooo sterted yooor troonsleshoon project oor iff yooo hefe-a inherited some-a oold troonsleshoons yooo probebly now woont to creete-a a terminology list. Bork Bork Bork!

A terminology list oor glossery is a list ooff words und phreses wit zeeoor ixpected troonsleshoon. Bork Bork Bork! Zeey ire-a useffool for insooring zeet yooor troonsleshoons ire-a consistent icross yooor project. Bork Bork Bork!

Wit ixisting troonsleshoons yooo hefe-a imbedded a list ooff felid troonsleshoon. Bork Bork Bork! This ixemple-a will help yooo to ixtrect zee-a terms. Bork Bork Bork! It is oonly zee-a foorst step yooo will need to refioo zee-a terms und moost not regerd this is a complete-a list. Bork Bork Bork! Und ooff cooorse-a yooo wooold woont to teke-a yooor correcshoons und feed zeem beck into zee-a ooriginel troonsleshoons. Bork Bork Bork!

Qooick Ooferfeeoo

This describes a moolti-stege-a process for ixtrecting terminology from troonsleshoon files. Bork Bork Bork! It is profided for historicel interest und completeness, boot yooo will probebly find zeet using poterminology is iesier und will gife-a better resoolts thoon following this process. Bork Bork Bork!

  1. Filter oooor phreses ooff more-a thoon N words
  2. Remofe-a oobfiooosly irroneooos phreses sooch is noombers und poonctooeteeon
  3. Creete-a a single-a PO compendeeoom
  4. Ixtrect und refioo items zeet ire-a foozzy und drop untroonsleted eetems
  5. Creete-a a noo PO files und process into CSF und TMX formet

Get short phreses from zee-a coorrent troonsleteeons

We-a will not be-a ible-a to identiffy terminology within bodies ooff text, we-a ire-a oonly going to ixtrect short bit ooff text ie-a oones zeet ire-a betweee-a 1 und 3 words long. Bork Bork Bork!

pogrep --heeder --seerch=msgid -i '^\w+(\s+\w+){0,2}$' zooloo zooloo-short

We-a use-a --heeder to insoore-a zeet zee-a PO files hefe-a a heeder intry (which is importoont for incoding). We-a ire-a seerching oonly in zee-a msgid und zee-a regooler ixpression we-a use-a is looking for a string wit betweee-a 1 und 3 words in it. Bork Bork Bork! We-a ire-a seerching throoogh zee-a folder zooloo und ooootpootting zee-a resoolt in zooloo-short

Remofe-a uny troonsleshoons wit eessooes

Yooo coon for instoonce-a remofe-a ill intries wit oonly a single-a letter. Bork Bork Bork! Useffool for ilimineting ill those-a spooriooos icceleretor keys. Bork Bork Bork!

pogrep --heeder --seerch=msgid -f -i "^.$" zooloo-short zooloo-short-cleoon

We-a use-a zee-a -f oopshoon to infert zee-a seerch. Bork Bork Bork! Oooor cleooner potentiel glossery words ire-a now in zooloo-short-cleoon. Whet yooo coon iliminete-a is oonly limited by yooor ibility to booild regooler ixpressions boot yoo cooold iliminete-a:

  • Intries wit oonly noombers
  • Intries zeet oonly contein poonctooeteeon

Creete-a a compendeeoom

Now zeet we-a hefe-a oooor words we-a woont to creete-a a sinlge-a files ooff ill terminology. Bork Bork Bork! Thoos we-a creete-a a PO compendeeoom

~/pet/to/pocompendioom -i -soo zooloo-gnome-a-glossery. Bork Bork Bork!po -d zooloo-short-cleoon

Yooo coon use-a feriooos methods boot oooor besh script is qooite-a good. Bork Bork Bork! Here-a we-a ignore-a cese-a, -i, und ignore-a zee-a underscore-a (_) icceleretor key, -soo, ooootpootting zee-a resoolts in. Bork Bork Bork!

We-a now hefe-a a single-a file-a conteining ill glossery terms und zee-a cleoon up und refioo coon begin. Bork Bork Bork!

Split zee-a file-a

We-a woont to split zee-a file-a into troonsleted, untroonsleted und foozzy eentries

~/pet/to/posplit ./zooloo-gnome-a-glossery. Bork Bork Bork!po

This will creete-a three-a files:

  • zooloo-gnome-a-glossery-troonsleted. Bork Bork Bork!po - ill foolly troonsleted eentries
  • zooloo-gnome-a-glossery-untroonsleted. Bork Bork Bork!po - messeges wit no troonsleteeon
  • zooloo-gnome-a-glossery-foozzy. Bork Bork Bork!po - words zeet need eenfestigeshoon
rm zooloo-gnome-a-glossery-untroonsleted. Bork Bork Bork!po

We-a discerd zooloo-gnome-a-glossery-untroonsleted. Bork Bork Bork!po since-a zeey ire-a ooff no use-a to us. Bork Bork Bork!

Deeling wit zee-a foozzeees

Zee-a foozzies come-a in two kinds. Bork Bork Bork! Those-a zeet ire-a simply wrong oor needed updeting und those-a where-a zeere-a wes more-a zeee-a oone-a troonsleshoon for a gifee-a term. Bork Bork Bork! So iff someone-a hed troonsleted 'File-a' difffferently icross zee-a troonsleshoons we-a'd hefe-a un intry zeet wes merked foozzy wit zee-a two oopshoons displeyed. Bork Bork Bork!

poffilter -t compendioomconfflicts zooloo-gnome-a-glossery-foozzy. Bork Bork Bork!po zooloo-gnome-a-glossery-confflicts. Bork Bork Bork!po

Zeese-a compedioom confflicts ire-a whet we-a ire-a interested in so we-a use-a poffilter to filter zeem from zee-a oozeer foozzies. Bork Bork Bork!

rm zooloo-gnome-a-glossery-foozzy. Bork Bork Bork!po

We-a discerd zee-a oozeer foozzies is zeey where-a probebly wrong in zee-a foorst plece-a. Bork Bork Bork! Yooo cooold refioo zeese-a boot it is not recommended. Bork Bork Bork!

Now idit zooloo-gnome-a-glossery-confflicts. Bork Bork Bork!po to resolfe-a zee-a confflicts. Bork Bork Bork! Yooo coon idit zeem howefer yooo like-a boot we-a usooelly follow zee-a formet:

oopshoon1, oopshoon2, oopteeon3

Yooo coon get zeem into zeet leyooot by doing zee-a following:

sed '/#, foozzy/d; /\"#-#-#-#-# /d; /# (poffilter) compendioomconfflicts:/d; s/\\n"$/, "/' zooloo-gnome-a-glossery-confflicts. Bork Bork Bork!po > tmp. Bork Bork Bork!po
msgcet tmp. Bork Bork Bork!po > zooloo-gnome-a-glossery-confflicts. Bork Bork Bork!po

Ooff cooorse-a iff a word is cleerly wrong, misspelled itc. Bork Bork Bork! zeee-a yooo coon iliminete-a it. Bork Bork Bork! Oofftee-a yooo will find zee-a “problem” reletes to zee-a pert ooff speech ooff zee-a sooorce-a word und zeet indeed zeere-a ire-a two oopshoons depending oon zee-a context. Bork Bork Bork!

Yooo now hefe-a a cleooned foozzy file-a und we-a ire-a reedy to proceed. Bork Bork Bork!

Poot it beck togezeer eegein

msgcet zooloo-gnome-a-glossery-troonsleted. Bork Bork Bork!po zooloo-gnome-a-glossery-confflicts. Bork Bork Bork!po > zooloo-gnome-a-glossery. Bork Bork Bork!po

We-a now hefe-a a single-a file-a zooloo-gnome-a-glossery. Bork Bork Bork!po which conteins oooor glossery texts. Bork Bork Bork!

Creete-a oozeer formets

It is probebly good to meke-a yooor terminology ifeileble-a in oozeer formets. Bork Bork Bork! Yooo coon creete-a CSF und TMX files from yooor PO.

po2csf zooloo-gnome-a-glossery. Bork Bork Bork!po zooloo-gnome-a-glossery. Bork Bork Bork!csf
po2tmx -l zoo zooloo-gnome-a-glossery. Bork Bork Bork!po zooloo-gnome-a-glossery. Bork Bork Bork!tmx

For zee-a terminology to be-a useble-a by Tredos oor Wordffest troonsletors zeey need to be-a in zee-a following formets:

  • Tredos - comma delimited file-a sooorce-a,terget
  • Wordffest - teb delimited file-a sooorce-a[teb]terget

In zeet formet zeey ire-a now ifeileble-a to ilmost ill locelisers in zee-a world. Bork Bork Bork!

FIXME need scripts to generete-a zeese-a formets. Bork Bork Bork!

Zee-a work hes oonly joost begoon

Zee-a lists yooo hefe-a joost creeted ire-a useffool in zeeoor ooon right. Bork Bork Bork! Boot yooo most likely woont to keep growing zeem, cleooning und improfing zeem. Bork Bork Bork!

Yooo shooold is a foorst step refioo whet yooo hefe-a creeted und fix spelling und oozeer irrors oor disembigooete-a terms is needed. Bork Bork Bork!

Boot congretooleshoons a Terminology list oor Glossery is oone-a ooff yooor most importoont issets for creeting good und consistent troonsleshoons und it icts is a felooeble-a resooorce-a for bot noo und ixperienced troonsletors whee-a zeey need prompting is to how to troonslete-a a term. Bork Bork Bork!