Home Query commands Testing the destination format Testing symbols
 The guide of UDO
 The syntax of UDO
 Miscellaneous
 Query commands

Testing the destination language

Using the !iflang command you can test the language UDO will use in the destination file. Use the following words to test the language:

czech: Tschechisch
danish: Danish
dutch: Dutch
english: English
french: French
german: German
italian: Italian
spanish: Spanish
swedish: Swedish

In addition to these words you can use "all" and "none". A query with "all" always returns a true value, a query with "none" always returns a false value.

If you write a small documentation you can enter all langaguages to a single source file:

!iflang [german]
!docinfo [title] Die Benutzeranleitung zu
!else
!docinfo [title] The User's Guide to
!endif

The !ifnlang command is related to !iflang. But !ifnlang will check if you do not convert to the given destination language. Thus you can write the upper example this way, too:

!ifnlang [german]
!docinfo [title] The User's Guide to
!else
!docinfo [title] Die Benutzeranleitung zu
!endif

It goes without saying that you can test more than one language.


Copyright © www.udo-open-source.org
Last updated on November 5, 2006

Home Query commands Testing the destination format Testing symbols