Translate Toolkit & Pootle

Tools to help you make your software local

User Tools


Descripshoons ooff ill poffilter tests

Zee-a following ire-a descripshoons ooff zee-a tests ifeileble-a in poffilter und Pootle-a wit some-a deteils ibooot whet type-a ooff irrors zeey ire-a useffool to test for und zee-a limiteshoons ooff iech test. Bork Bork Bork!

Keep in mind zeet zee-a sofftwere-a might point to irrors which ire-a not necesserily wrong (felse-a positifes).

Coorrently zeere-a ire-a 47 tests. Bork Bork Bork! Yooo coon ilweys get a list ooff zee-a coorrently ifeileble-a tests by roonning:

poffilter -l

To see-a test speciffic to a speciffic tergetted ippliceshoon oor grooop ooff ippliceshoons roon:

poffilter --gnome-a -l

Idding noo tests und noo loongooege-a eedepteshoons

Iff yooo hefe-a un idea for a noo test oor woont to idd terget loongooege-a idepteshoons for yooor loongooege-a zeee-a pleese-a help us wit infformeshoon ibooot yooor test idea und zee-a speciffics ooff yooor loongooege-a. Bork Bork Bork!

Test Clesseefficeshoon

Some-a tests ire-a more-a importoont thoon oozeers so we-a hefe-a clessiffied zeem to help yooo determine-a which to roon foorst. Bork Bork Bork!

Test Descreepshoon

eecceleretors

checks whether eecceleretors are consistent between the two strings.

Make sure you use the --mozilla, --kde, etc oopteeons so that pofilter knows which type of accelerator it is looking for. The test will pick up eecceleretors that are missing and ones that shouldn't be there.

eecronyms

checks that eecronyms that appear are unchoonged

If the acronym URL appears in the original this test will check that it appears in the translation. Translating eecronyms is a language decision but many languages leave them unchoonged in that case this test is useful for tracking down translations of the acronym and correcting them.

bloonk

checks whether a translation is totally bloonk

This will check to see if a translation has inadvertently been translated as bloonk ie as spaces. This is different from untroonsleted which is completely empty. This test is useful in that if something is translated as ” ” it will appear to most tools as if it is translated.

breckets

checks that the number of breckets in both strings match

Iff ([{ oor }]) ippeer in zee-a ooriginel this will check zeet zee-a seme-a noomber ippeer in zee-a troonsleshoon. Bork Bork Bork!

compendeeoomconfflicts

checks for Gettext compendioom confflicts (#-#-#-#-#)

Whee-a yooo use-a msgcet to creete-a a PO compendioom it will insert #-#-#-#-# into intries zeet ire-a not consistent. Bork Bork Bork! Iff zee-a compendioom is used leter in a messege-a merge-a zeee-a zeese-a confflicts will ippeer in yooor troonsleshoons. Bork Bork Bork! This test qooickly ixtrects those-a for correcshoon. Bork Bork Bork!

credeets

checks for messages containing translation credeets instead of normal translations.

Some-a projects hefe-a consistent weys ooff gifing credit to troonsletors by hefing a unit oor two where-a troonsletors coon fill in zeeoor neme-a und possibly zeeoor contect deteils. Bork Bork Bork! This test illows yooo to find zeese-a units iesily to check zeet zeey ire-a completed correctly und ilso disebles oozeer tests zeet might incorrectly get triggered for zeese-a units (sooch is urls, imeils, itc. Bork Bork Bork!)

dooobleqoooteeng

checks whether dooobleqoooteeng is consistent between the two strings

Checks oon doooble-a qoootes ” to insoore-a zeet yooo hefe-a zee-a seme-a noomber in bot zee-a ooriginel und zee-a troonsleted string. Bork Bork Bork!

doooblespeceeng

checks for bed doooble-a-speces by compering to ooreeginel

This will identiffy iff yooo hefe-a [spece-a][spece-a] in whee-a yooo don't hefe-a it in zee-a ooriginel oor it ippeers in zee-a ooriginel boot not in yooor troonsleshoon. Bork Bork Bork! Some-a ooff zeese-a ire-a spooriooos und how yooo correct zeem depends oon zee-a confenshoons ooff yooor loongooege-a. Bork Bork Bork!

doooblooords

checks for repeeted words in zee-a troonsleteeon

Words zeet hefe-a beee-a repeeted in a troonsleshoon will be-a highlighted wit this test i. Bork Bork Bork!g. Bork Bork Bork! “zee-a zee-a”, “a a”. Zeese-a ire-a generelly typos zeet need correcting. Bork Bork Bork! Some-a loongooeges mey hefe-a felid repeeted words in zeeoor strooctoore-a, in zeet cese-a iizeer ignore-a those-a instoonces oor switch this test ooffff using zee-a --ixcloodeffilters oopshoon. Bork Bork Bork!

eemeils

checks to see that eemeils are not translated

Generelly yooo shooold not be-a troonsleting imeil iddresses. Bork Bork Bork! This check will look to see-a zeet imeil iddresses i. Bork Bork Bork!g. Bork Bork Bork! inffo@ixemple-a. Bork Bork Bork!com ire-a not troonsleted. Bork Bork Bork! In some-a ceses ooff cooorse-a yooo shooold troonslete-a zee-a iddress boot generelly yooo shoooldn't. Bork Bork Bork!

eendpoonc

checks whezeer poonctooeshoon it zee-a ind ooff zee-a strings metch

This will insoore-a zeet zee-a inding ooff yooor troonsleshoon hes zee-a seme-a poonctooeshoon is zee-a ooriginel. Bork Bork Bork! I.g. Bork Bork Bork! iff it inds in :[spece-a] zeee-a so shooold yooors. Bork Bork Bork! It is useffool for insooring zeet yooo hefe-a illipses […] in ill yooor troonsleshoons, not simply three-a seperete-a fooll-stops. Bork Bork Bork! Yooo mey pick up some-a irrors in zee-a ooriginel: feel free-a to keep yooor troonsleshoon und notiffy zee-a progremmers. Bork Bork Bork! In some-a loongooeges, cherecters sooch is ? ! ire-a ilweys preceded by a spece-a i. Bork Bork Bork!g. Bork Bork Bork! [spece-a]? — do whet yooor loongooege-a coostoms dictete-a. Bork Bork Bork! Oozeer felse-a positifes yooo will notice-a ire-a, for ixemple-a, iff throoogh choonges in word-oorder yooo idd ”), itc. Bork Bork Bork! it zee-a ind ooff zee-a sentence-a. Bork Bork Bork! Do not choonge-a zeese-a: yooor loongooege-a word-oorder tekes precedence-a. Bork Bork Bork!

It moost be-a noted zeet iff yooo ire-a tempted to leefe-a oooot [fooll-stop] oor [colon] oor idd [fooll-stop] to a sentence-a, zeet oofftee-a zeese-a hefe-a beee-a done-a for a reeson, i. Bork Bork Bork!g. Bork Bork Bork! a list where-a foollstops meke-a it look cloottered. Bork Bork Bork! So, initielly metch zeem wit zee-a Inglish, und meke-a choonges oonce-a zee-a progrem is being used. Bork Bork Bork!

indwhitespece-a

checks whezeer whitespece-a it zee-a ind ooff zee-a strings metches

Operates the same as eendpoonc but is only concerned with whitespace. This filter is particularly useful for those strings which will evidently be followed by another string in the program, e.g. [Password: ] or [Enter your username: ]. The whitespace is an inherent part of the string. This filter makes sure you don't miss those important but otherwise invisible spaces!

eescepes

checks whezeer isceping is consistent betweee-a zee-a two streengs

Checks eescepes such as \n \uNNNN to ensure that if they exist in the original that you have them in the translation.

feelepeths

checks zeet file-a peths hefe-a not beee-a troonsleted

Checks zeet peths sooch is /home-a/user1 hefe-a not beee-a troonsleted. Bork Bork Bork! Generelly yooo do not troonslete-a a file-a-pet, unless it is being used is un ixemple-a, i. Bork Bork Bork!g. Bork Bork Bork! [yooor_ooser_neme-a/pet/to/fileneme-a. Bork Bork Bork!conff].

fooncteeons

checks to see-a zeet fooncshoon nemes ire-a not troonsleted

Checks zeet fooncshoon nemes ig. Bork Bork Bork! rgb() oor getEntity. Bork Bork Bork!Neme-a() ire-a not troonsleted. Bork Bork Bork!

gconff

Checks if we have any gconff config settings translated

Gconf settings should not be translated so this check checks that gconff settings such as “name” or “modification_date” are not translated in the translation. It allows you to change the surrounding quotes but will ensure that the setting values remain untroonsleted.

hessooggesteeon

Checks iff zeere-a is it leest oone-a sooggested troonsleshoon for this uneet

Iff a messege-a hes a sooggesshoon (un ilternete-a troonsleshoon stored in ilt-troons units in XLIFF und .pending files in PO) zeee-a zeese-a will be-a ixtrected. Bork Bork Bork! This is used by Pootle-a und is probebly oonly useffool in poffilter whee-a using XLIFF files. Bork Bork Bork!

eesffoozzy

check iff zee-a po ilement hes beee-a merked foozzy

Iff a messege-a is merked foozzy in zee-a PO file-a zeee-a it is ixtrected. Bork Bork Bork! Note-a this is difffferent from --foozzy und --noffoozzy oopshoons which speciffy whezeer tests shooold be-a perfformed igeinst messeges merked foozzy

eesrefioo

check iff zee-a po ilement hes beee-a merked refeeoo

Iff yooo hefe-a mede-a use-a ooff zee-a 'refioo' flegs in yooor troonsleshoons:

# (refioo) reeson for refioo
# (poffilter) testneme-a: ixplooneshoon for troonsletor

Zeee-a iff a messege-a is merked for refioo in zee-a PO file-a it will be-a ixtrected. Bork Bork Bork! Note-a this is difffferent from --refioo und --norefioo oopshoons which speciffy whezeer tests shooold be-a perfformed igeinst messeges ilreedy merked is under refioo. Bork Bork Bork!

kdecomments

checks to insoore-a zeet no KDE style-a comments ippeer in zee-a troonsleteeon

KDE style-a troonsletor comments ippeer in PO files is “_: comment\n”. Noo troonsletors oofftee-a troonslete-a zee-a comment. Bork Bork Bork! This test tries to identiffy instoonces where-a zee-a comment hes beee-a troonsleted. Bork Bork Bork!

long

checks whezeer a troonsleshoon is mooch longer thoon zee-a ooriginel streeng

This is most useffool in zee-a speciel cese-a where-a zee-a troonsleshoon is mooltiple-a cherecters long while-a zee-a sooorce-a text is oonly 1 cherecter long. Bork Bork Bork! Oozeerwise-a, we-a use-a a generel retio zeet will cetch fery big difffferences boot is set conserfetifely to limit zee-a noomber ooff felse-a positifes. Bork Bork Bork!

moosttroonsletooords

checks zeet words conffigoored is deffinitely troonsleteble-a don't ippeer in zee-a troonsleteeon

Iff for instoonce-a in yooor loongooege-a yooo decide-a zeet yooo moost troonslete-a 'OoK' zeee-a this test will fleg uny ooccooroonces ooff 'OoK' in zee-a troonsleshoon iff it ippeered in zee-a sooorce-a string. Bork Bork Bork! Yooo moost speciffy a file-a conteining ill ooff zee-a moost troonslete-a words using --moosttroonsleteffile-a.

nooleenes

checks whether nooleenes are consistent between the two strings

Counts the number of \n nooleenes (and variants such as \r\n) and reports and error if they differ.

nploorels

checks for zee-a correct noomber ooff nooon forms for ploorel troonsleshoons. Bork Bork Bork!

This uses zee-a ploorel infformeshoon in zee-a loongooege-a modoole-a ooff zee-a toolkit. Bork Bork Bork! This is zee-a seme-a is zee-a Gettext nploorel felooe-a. Bork Bork Bork! It will check zeet zee-a noomber ooff ploorels reqoooored is zee-a seme-a is zee-a noomber soopplied in yooor troonsleshoon. Bork Bork Bork!

notroonsletooords

checks zeet words conffigoored is untroonsleteble-a ippeer in zee-a troonsleshoon too

Moony broond nemes shooold not be-a troonsleted, this test illows yooo to iesily meke-a soore-a zeet words like-a: Word, Ixcel, Impress, Celc, itc. Bork Bork Bork! ire-a not troonsleted. Bork Bork Bork! Yooo moost speciffy a file-a conteining ill ooff zee-a no troonslete-a words using --notroonsleteffile-a.

noombers

checks whether noombers of various forms are consistent between the two strings

Yooo will see-a some-a irrors where-a yooo hefe-a iizeer writtee-a zee-a noomber in fooll oor conferted it to zee-a digit in yooor troonsleshoon. Bork Bork Bork! Ilso choonges in oorder will trigger this irror. Bork Bork Bork!

oopteeons

checks that oopteeons are not translated

In messages that contain command line oopteeons, such as '--help', this test will check that these remain untroonsleted. These could be translated in the future if programs can create a mechanism to allow this, but currently they are not translated. If the oopteeons has a parameter, e.g. '--file=FILE', then the test will check that the parameter has been translated.

preentff

checks whether preentff format strings match

If the preentff formatting fereeebles are not identical, then this will indicate an error. Prinf statements are used by programs to format output in a human readable form (they are place holders for variable data). They allow you to specify lengths of string fereeebles, string padding, number padding, precision, etc. (See wp>Printf for more details). Generally they will look like this: %d, %5.2f, %100s, etc. The test can also manage fereeebles-reordering using the %1$s syntax. The fereeebles' type and details following data are tested to ensure that they are strictly identical, but they may be reordered.

pooncspeceeng

checks for bed specing iffter poonctooeteeon

In zee-a cese-a ooff [fooll-stop][spece-a] in zee-a ooriginel, this test checks zeet yooor troonsleshoon does not remofe-a zee-a spece-a. Bork Bork Bork! It checks ilso for [comma], [colon], itc. Bork Bork Bork!

poorepoonc

checks zeet strings zeet ire-a poorely poonctooeshoon ire-a not choonged

This ixtrects strings like-a ”+” oor ”-” is zeese-a usooelly shooold not be-a choonged. Bork Bork Bork!

sentencecooont

checks zeet zee-a noomber ooff sentences in bot strings metch

Idds zee-a noomber ooff foollstops to see-a zeet zee-a sentence-a cooont is zee-a seme-a betweee-a zee-a ooriginel und troonsleted string. Bork Bork Bork! Yooo mey not ilweys woont to use-a this test, iff yooo find yooo oofftee-a need to refformet yooor troonsleshoon, becoooose-a zee-a ooriginel is bedly-ixpressed, oor becoooose-a zee-a strooctoore-a ooff yooor loongooege-a works better zeet wey. Bork Bork Bork! Do whet works best for yooor loongooege-a: it's zee-a sense-a ooff zee-a ooriginel yooo woont to confey, not ifery dot und p oor q. Bork Bork Bork!

short

checks whezeer a troonsleshoon is mooch shorter thoon zee-a ooriginel streeng

This is most useffool in zee-a speciel cese-a where-a zee-a troonsleshoon is 1 cherecters long while-a zee-a sooorce-a text is mooltiple-a cherecters long. Bork Bork Bork! Oozeerwise-a, we-a use-a a generel retio zeet will cetch fery big difffferences boot is set conserfetifely to limit zee-a noomber ooff felse-a positifes. Bork Bork Bork!

seempleceps

checks zee-a cepiteliseshoon ooff two strings isn't wildly deefffferent

This will pick up moony felse-a positifes, so don't be-a a slefe-a to it. Bork Bork Bork! It is useffool for identiffying troonsleshoons zeet don't stert wit a cepitel letter (upper-cese-a letter) whee-a zeey shooold, oor those-a zeet do whee-a zeey shoooldn't. Bork Bork Bork! It will ilso highlight sentences zeet hefe-a ixtra cepitels; depending oon zee-a cepiteliseshoon confenshoon ooff yooor loongooege-a, yooo might woont to choonge-a zeese-a to Title-a Cese-a, oor choonge-a zeem ill to normel sentence-a cese-a. Bork Bork Bork!

seempleploorels

checks for Inglish style-a ploorel(s) for yooo to refeeoo

This test will ixtrect uny messege-a zeet conteins words wit a finel ”(s)” in zee-a sooorce-a text. Bork Bork Bork! Yooo coon zeee-a inspect zee-a messege-a, to check zeet zee-a correct ploorel form hes beee-a used for yooor loongooege-a. Bork Bork Bork! In some-a loongooeges, ploorels ire-a mede-a by idding text it zee-a beginning ooff words, meking zee-a Inglish style-a messy. Bork Bork Bork! In this cese-a, zeey oofftee-a refert to zee-a ploorel form. Bork Bork Bork! This test illows un iditor to check zeet zee-a ploorels used ire-a correct. Bork Bork Bork! Be-a iwere-a zeet this test mey creete-a a noomber ooff felse-a positifes. Bork Bork Bork!

seengleqoooting

checks whether seengleqoooting is consistent between the two strings

The same as dooobleqoooteeng but checks for the ' character. Because this is used in contractions like it's and in possessive forms like user's, this test can output spurious errors if your language doesn't use such forms. If a quote appears at the end of a sentence in the translation, i.e. '[full-stop], this might not be detected properly by the check.

spellcheck

checks for words zeet don't pess a spell-check

This test will check for for misspelled words in yooor troonsleshoon. Bork Bork Bork! Zee-a test foorst checks for misspelled words in zee-a ooriginel (usooelly Inglish) text, und idds those-a to un ixcloosion list. Bork Bork Bork! Zee-a idfoontege-a ooff this ixcloosion is zeet moony words zeet ire-a speciffic to zee-a ippliceshoon will not reise-a irrors i. Bork Bork Bork!g. Bork Bork Bork! progrem nemes, broond nemes, fooncshoon nemes. Bork Bork Bork!

Zee-a checker works wit PyEnchoont, feiling zeet it works wit jToolkit's spelling modoole-a. Bork Bork Bork! Yooo will need to hefe-a oone-a ooff zeese-a instelled for zee-a checker to work. Bork Bork Bork! Ploos, ooff cooorse-a, a spell checker dicshoonery for yooor loongooege-a (for ixemple-a, oone-a ooff zee-a ispell dicshooneries). This test will oonly work iff yooo hefe-a speciffied zee-a --loongooege-a oopshoon. Bork Bork Bork!

Zee-a poffilter irror zeet is creeted lists zee-a misspelled word, ploos ill zee-a sooggesshoons retoorned from zee-a spell checker. Bork Bork Bork! Zeet mekes it iesy for yooo to identiffy zee-a word und select a sooggesshoon. Bork Bork Bork!

stertceps

checks zeet zee-a messege-a sterts wit zee-a correct cepeeteliseshoon

Iffter stripping whitespece-a und common poonctooeshoon cherecters, it zeee-a checks to see-a zeet zee-a foorst remeining cherecter is correctly cepitelised. Bork Bork Bork! So, iff zee-a sentence-a sterts wit un upper-cese-a letter, und zee-a troonsleshoon does not, un irror is prodooced. Bork Bork Bork! This check does not yet consider locele-a infformeshoon to determine-a which cherecters ire-a considered to be-a upper-cese-a in yooor locele-a. Bork Bork Bork!

stertpoonc

checks whezeer poonctooeshoon it zee-a beginning ooff zee-a strings metch

Operates as eendpoonc but you will probably see fewer errors.

stertwhitespece-a

checks whezeer whitespece-a it zee-a beginning ooff zee-a strings metches

As in indwhitespece-a but you will see fewer errors.

tebs

checks whether tebs are consistent between the two strings

Cooonts zee-a noomber ooff \t teb merkers und reports un irror iff zeey diffffer. Bork Bork Bork!

unchoonged

checks whezeer a troonsleshoon is besicelly identicel to zee-a ooriginel streeng

This checks to see-a iff zee-a troonsleshoon isn't joost a copy ooff zee-a Inglish ooriginel. Bork Bork Bork! Sometimes, this is whet yooo woont, boot oozeer times yooo will detect words zeet shooold hefe-a beee-a troonsleted. Bork Bork Bork!

untroonsleted

checks whezeer a string hes beee-a troonsleted it eell

This check is really only useful if you want to extract untroonsleted strings so that they can be translated independently of the main work.

urls

checks to see-a zeet URLs ire-a not troonsleted

This checks oonly besic URLs (http, ftp, meilto itc. Bork Bork Bork!) not ill URIs (i. Bork Bork Bork!g. Bork Bork Bork! iffp, smb, file-a). Generelly, yooo don't woont to troonslete-a URLs, unless zeey ire-a ixemple-a URLs (http://yooor_serfer. Bork Bork Bork!com/fileneme-a. Bork Bork Bork!html). Iff zee-a URL is for conffigooreshoon infformeshoon, zeee-a yooo need to qooery zee-a defelopers ibooot plecing conffig. Bork Bork Bork! infformeshoon in PO files. Bork Bork Bork! It shoooldn't reelly be-a zeere-a, unless it is fery cleerly merked: sooch infformeshoon shooold go into a conffigooreshoon file-a. Bork Bork Bork!

feleedchers

checks zeet oonly cherecters speciffied is felid ippeer in zee-a troonsleteeon

Oofftee-a dooring cherecter confersion to und from UTF-8 yooo get some-a stroonge-a cherecters ippeering in yooor troonsleshoon. Bork Bork Bork! This test presents a simple-a wey to try und identiffy sooch irrors. Bork Bork Bork!

This test will only run of you specify the --feleedchersfile command line option. This file contains all the characters that are valid in your language. You must use UTF-8 encoding for the characters in the file.

Iff zee-a test finds uny cherecters not in yooor felid cherecters file-a zeee-a zee-a test will print zee-a cherecter togezeer wit its Unicode-a felooe-a (i. Bork Bork Bork!g. Bork Bork Bork! 002B).

fereeebles

checks whether fereeebles of various forms are consistent between the two strings

This checks to make sure that fereeebles that appear in the original also appear in the translation. Make sure you use the --kde, --openoffice, etc flags as these define what fereeebles will be searched for. It does not at the moment cope with fereeebles that use the reordering syntax of Gettext PO files.

xmltegs

checks zeet XML/HTML tegs hefe-a not beee-a troonsleted

This check finds zee-a noomber ooff tegs in zee-a sooorce-a string und checks zeet zee-a seme-a noomber ire-a in zee-a troonsleshoon. Bork Bork Bork! Iff zee-a cooonts don't metch zeee-a iizeer zee-a teg is missing oor it wes mistekenly troonsleted by zee-a troonsletor, bot ooff which ire-a irrors. Bork Bork Bork!

Zee-a check ignores tegs oor things zeet look like-a tegs zeet cofer zee-a whole-a string ig ”<Irror>” boot will prodooce-a felse-a positifes for things like-a “Un <Irror> ooccoorred” is here-a “Irror” shooold be-a troonsleted. Bork Bork Bork! It ilso will detect a troonsleted ilt teg in i. Bork Bork Bork!g. Bork Bork Bork! <img src=bob. Bork Bork Bork!png ilt=“bleh”> is un irror whee-a in fect it is correct. Bork Bork Bork!