Yelp

(The Help System)

l10n.direction

Determine the text direction for a language.

Parameters

lang

The locale to use to determine the text direction.

This template returns the text direction for the language lang. It returns "ltr" for left-to-right languages and "rtl" for right-to-left languages. If lang is not provided, it defaults to l10n.locale, the top-level locale of the document.

This template calls l10n.gettext with the string default:LTR in the domain yelp-xsl. The language is right-to-left if the string default:RTL is returned. Otherwise, it is left-to-right. (This particular string is used to match the string used in GTK+, enabling translation memory.)

Calls Templates

Calls Parameters