示例#1
0
 /**
  * Get the translated user label for a given internal property ID.
  * Returns empty string for properties without a translation (these are
  * usually internal, generated by SMW but not shown to the user).
  *
  * @since 1.8 public
  * @param string $id
  * @return string
  */
 public static function findPropertyLabel($id)
 {
     SMWDIProperty::initPropertyRegistration();
     if (array_key_exists($id, SMWDIProperty::$m_prop_labels)) {
         return SMWDIProperty::$m_prop_labels[$id];
     } else {
         // incomplete translation (language bug) or deliberately invisible property
         return '';
     }
 }