def collect_glib_translations(prog):
 global _glib_translations
 if (_glib_translations is None):
  _glib_translations = collect_glib_share_files('locale')
 names = [((os.sep + prog) + '.mo'), ((os.sep + prog) + '.po')]
 namelen = len(names[0])
 return [(src, dst) for (src, dst) in _glib_translations if (src[(- namelen):] in names)]

def collect_glib_translations ( prog ) : global _glib_translations if ( _glib_translations is None ) : _glib_translations = collect_glib_share_files ( 'locale' ) names = [ ( ( os . sep + prog ) + '.mo' ) , ( ( os . sep + prog ) + '.po' ) ] namelen = len ( names [ 0 ] ) return [ ( src , dst ) for ( src , dst ) in _glib_translations if ( src [ ( - namelen ) : ] in names ) ]
return a list of translations in the system locale directory whose names equal prog .