HomeQuery commandsTesting the target formatTesting symbols
User Manual UDO > The UDO syntax > Miscellaneous > Query commands Index

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: Czech
danish: Danish
dutch: Dutch
english: English
french: French
german: German
italian: Italian
latvian: Latvian
polish: Polish
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 (Contact)
Last updated on May 19, 2014

HomeQuery commandsTesting the target formatTesting symbols