Sha256: 26cebed55d7fbb4cb994afe56ea9227225127584ff027a94028494e6d1cc8010
Contents?: true
Size: 588 Bytes
Versions: 7
Compression:
Stored size: 588 Bytes
Contents
module LocalesHelpers # translate a string, useful in the feature descriptions, to a key to find # the complete message in the locale files def message_to_locale_key(msg) case msg.downcase when /the meeting is not running/ key = 'bigbluebutton_rails.rooms.errors.join.not_running' when /authentication failure/ key = 'bigbluebutton_rails.rooms.errors.join.failure' when /you don't have permissions to start this meeting/ key = 'bigbluebutton_rails.rooms.errors.join.cannot_create' else key = '' end end end World(LocalesHelpers)
Version data entries
7 entries across 7 versions & 1 rubygems