Template:GetLang

From PC-BSD Wiki
Jump to: navigation, search


The idea is to obtain the language of the current page, verify it against those known codes, and default to nothing if none are provided/match. The trouble was, that some pages are "versioned" and some are not, while both versioned and non-versioned pages may have a translation. The verification against known codes improves upon the position check for the language code which might be second such as colophon/en, or third, such as handbook/10.1/en.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox