def xmessage_rule_key_mapping
      @rule_key_mapping ||= {
          number: {
              one: 'singular',
              few: 'few',
              many: 'many',
              other: 'plural'
          },
          gender: {
              male: 'male',
              female: 'female',
              neutral: 'neutral',
              other: 'other',
          },
          date: {
              future: 'future',
              present: 'present',
              past: 'past'
          }
      }
    end
def xmessage_rule_key_mapping
      @rule_key_mapping ||= {
          number: {
              one: 'singular',
              few: 'few',
              many: 'many',
              other: 'plural'
          },
          gender: {
              male: 'male',
              female: 'female',
              neutral: 'neutral',
              other: 'other',
          },
          date: {
              future: 'future',
              present: 'present',
              past: 'past'
          }
      }
    end
Application


def default_level
  return Tml.session.application.default_level if Tml.session.application
  @default_level
end