def get_key_by_value(dictionary, search_value):
for key, value in dictionary.iteritems():<EOL><INDENT>if value == search_value:<EOL><INDENT>return ugettext(key)<EOL><DEDENT><DEDENT>
searchs a value in a dicionary and returns the key of the first occurrence

:param dictionary: dictionary to search in
:param search_value: value to search for