DevTools:SWORD

From CrossWire Bible Society
Revision as of 19:46, 18 August 2007 by Anonymous (talk)

Jump to: navigation, search

pig word punto 2005 mi evanescense fallen video recorder toshiba croazia hotel hp m415 audigy 4 mp3 creative muvo tx se 512mb commento alla sera racconti amatoriali v6 alfa romeo novaja zemlja video lettori dvd portatili discoteca felisia passeggino chicco trio s3 top rifasamento il motore di ricerca immobilare gomme 1 8 rally robiie williams ascolta gratis grand funk il barbero de sevilla case in affitto h battle www anti juve com inpdap cessione quinto fireball island sexi chat inglesina carrozzina gemellare pornographie maroc astraeus toshiba a80 131 www ls university com mp3 usb 1g ambasciata polonia ucelli giuliana inps pensioni tutte le domande di sonic controller sata raid patente europea del computer seat toledo 1.6 stella beavis and butthead il dopoguerra e la crisi volano chat dw come pensi che io assicurazione san donato milanese spy collection starship ranger racconto amatoriale soluzione seconda prova telecomunicazion hombres sexys tutte le cartine della francia monica naranjo mp3 www formen ragazzo trieste download gioco pc gratis jarrett whisper modello ise mp3 creative zen nano 512 quinny freestyle avp antivirus fidelity bolzano sunlight roig, montserrat www garante it kalima club azzurro bilancia professionale data prova esami gru iv serie speciale faron adventure limana civitanova marche ristorante la staffa the dragon zyxel omni hub 10 porte d-link enimem frozen ball versine del leone del lupo e della volpe buscar el juego de super mario land borromeo the loveless www aljazeera com worms 6600 yellowout flex online com avventure di un fotografo estudiantes sexis dzaoudzi vendita memorie ram icn navman 650 palmare telefono windows largo di mendelssohn colonna sonora padrino il banco dei gelati www hardcore vitara diesel adattatore auto usb accessori palmari dvd lettore usb lungo il fiume sex sex liu lu mercatu funkee green dogs vendita armadi ventole raffreddamento 120 calendario porcone di questo anno jeans dolce gabbana donna abbigliamento vigano san martino www wear com x files stagione lcd wireless lavatrice atlantic khriz y angel benne norah jones midi blue chi mi dice midi seximages microonde con forno a incasso cde 9843r oakley dartboard guitar software uscita usb eligeme de luis fonsi ddd compilation 2004 jetflash 128 crash tea jack 0 5mt plasmon it stampante hp 1300 pelosissima camping toscana lamoureux, charles sesso tra vecchi abbigliamento fitness photosmart r707 rex fi www com latinchat hp scanjet 3800 nero.2 xd picture card 512 mb fata maria o c orange countri o gorizia tu sei maledetta kodak easyshare p880 gioco piscina negras gostosas www videopornogratis it mini hi-fi rds roulette strategy gli appuntamenti nintendo per il nuovo anno red ligth il duomo assicurazioni nono d angelo je t aime ma non plus la luna splende ricetrasmettitore cb dhl taranto campione festival sanremo 2006 tucano neonato aggiornamento fotografico per wish morris system usb 10 100 bmw 320 touring 2000 bracciale topazio argento struktura polskich banko crazy in love prodotti per depilazione principe delle maree tenda finestra volkswagen golf 2.8 golden baby panda miele accessori per nikon d100 dolci italiani pakistan international airlines kosova one shot vol 1 cisal confederazione rubinetti i don t wanna kow kit pulizia strumenti musicali villarbasse giochi del 3000 coppie over 50 grasse giancarlo santi nokia 31 zingara romantici calendari uomini vip vlaska muzika it s been awile wisin portierato testo un emozione da poco di anna oxa altoparlanti altec lansing banca popolare ancona danza macabra - terrore hard disk usb2 fotos de gay = Documentation =

Locale file layout

Locales require a few things. Let's step thru the German locale:

excerpts from /sword/locales/de.conf:

[Meta]
Name=de
Description=German

The above information is used to define the locale. They should be fairly obvious. Name should be taken from a standard abbrev, probably returned from echo $LANG. Please understand that this, and all entries are case sensitive.

The following entries are translation strings for anything you might want. REQUIRED are the book names of the Bible. Other things might be option name, value, tip, translations, or any text returned from the engine. It may not work right now, but if it doesn't, please post a message that you found a constant string in the engine not being tranlated.

[Text]
Genesis=1. Mose
Exodus=2. Mose
Leviticus=3. Mose

# <snipped rest of book names>

[Book Abbrevs]
1 C=46
1 CHRONICLES=13
1 CORINTHIANS=46
1 JN=62

These are the abbreviations for each book and are REQUIRED for the locale to work correctly in the engine. They are actually more than just abbreviations; they tell the parser how to incrementally parse versekey text. Notice that 1 Chronicles would come, alphabetically before 1 corinthians. The above entries say: book 46 (1 Corinthians) has precidence up thru "1 C", any character beyond that will unabiguate the entry anyway, so the default 1 CHRONICLES or 1 CORINTHIANS entries would take over from there.

IMPORTANT:

1) There MUST be at least 1 abbreviation entry for each book name comprised of a toupper (uppercase function) of the entire string EXACTLY as you have translated it in the [Text] section.

2) The English abbreviation entries MUST remain in the locale. The precidence entries may be tweeked, especially if you find them interferring with your precidence entries, but the entire book name-- as stated in the first requirement above, must remain for English book names.

Following are the REQUIRED entries from our excerpt book names above.

GENESIS=1
EXODUS=2
LEVITICUS=3

# <snip rest of english abbrevs>

1. MOSE=1
2. MOSE=2
3. MOSE=3

That's it for requirements. Tuning your locale can be important for the user experience. Many [Book Abbrevs] entries may be added to assign precidence if, for example, you find you are getting taken to the wrong entries from text like: "Ma 1:1" (would be Malachi by default because of alphabetical precidence, but might want Matthew or Mark).

You can test your locale with the sword/tests/parsekey test program (this program is in the sword source along with several other programs that are used to validate the configuration files) and try different strings to see how they parse. --- Submissions should be sent to scribe@crosswire.org