bfojcapell: Added LangAttributes? function

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42115 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-16 16:12:42 +00:00
parent 4ceb428cb5
commit e435705685

View File

@ -299,6 +299,13 @@ HTML;
}
}
/**
* Returns the xml:lang and lang attributes
*/
function LangAttributes() {
$lang = Translatable::current_lang();
return "xml:lang=\"$lang\" lang=\"$lang\"";
}
/**
* Throw an error to test the error system