diff options
Diffstat (limited to 'modules/rdf/rdf.module')
-rw-r--r-- | modules/rdf/rdf.module | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/rdf/rdf.module b/modules/rdf/rdf.module index fb65a19f1..36d5b5b35 100644 --- a/modules/rdf/rdf.module +++ b/modules/rdf/rdf.module @@ -487,6 +487,15 @@ function rdf_preprocess_user_profile(&$variables) { * Implements MODULE_preprocess_HOOK(). */ function rdf_preprocess_username(&$variables) { + // Because xml:lang is set on the HTML element that wraps the page, the + // username inherits this language attribute. However, since the username + // might not be transliterated to the same language that the content is in, + // we do not want it to inherit the language attribute, so we set the + // attribute to an empty string. + if (empty($variables['attributes_array']['xml:lang'])) { + $variables['attributes_array']['xml:lang'] = ''; + } + // $variables['account'] is a pseudo account object, and as such, does not // contain the rdf mappings for the user; in the case of nodes and comments, // it contains the mappings for the node or comment object instead. However |