/**
  * We want to de-emphasize time sensitive groups like news for 2009.
  * They can still exist in the system, but should not appear in front
  * of translators looking to do some useful work.
  *
  * @param MessageGroup|string $group Message group ID
  * @return string Message group priority
  * @since 2011-12-12
  */
 public static function getPriority($group)
 {
     if (!isset(self::$prioritycache)) {
         self::$prioritycache = array();
         // Abusing this table originally intented for other purposes
         $db = wfGetDB(DB_SLAVE);
         $table = 'translate_groupreviews';
         $fields = array('tgr_group', 'tgr_state');
         $conds = array('tgr_lang' => '*priority');
         $res = $db->select($table, $fields, $conds, __METHOD__);
         foreach ($res as $row) {
             self::$prioritycache[$row->tgr_group] = $row->tgr_state;
         }
     }
     if ($group instanceof MessageGroup) {
         $id = $group->getId();
     } else {
         $id = $group;
     }
     return isset(self::$prioritycache[$id]) ? self::$prioritycache[$id] : '';
 }