def setUpClass(cls):
     resource_loader.init_loaders()
     config.set('load_path', [os.path.join(RESOURCE_FOLDER, 'translations')])
     translations.add('foo.hi', 'Hello %{name} !')
     translations.add('foo.hello', 'Salut %{name} !', locale='fr')
     translations.add('foo.basic_plural', {
         'one': '1 elem',
         'other': '%{count} elems'
     })
     translations.add('foo.plural', {
         'zero': 'no mail',
         'one': '1 mail',
         'few': 'only %{count} mails',
         'other': '%{count} mails'
     })
     translations.add('foo.bad_plural', {
         'bar': 'foo elems'
     })
 def setUpClass(cls):
     resource_loader.init_loaders()
     config.set('load_path',
                [os.path.join(RESOURCE_FOLDER, 'translations')])
     translations.add('foo.hi', 'Hello %{name} !')
     translations.add('foo.hello', 'Salut %{name} !', locale='fr')
     translations.add('foo.basic_plural', {
         'one': '1 elem',
         'other': '%{count} elems'
     })
     translations.add(
         'foo.plural', {
             'zero': 'no mail',
             'one': '1 mail',
             'few': 'only %{count} mails',
             'other': '%{count} mails'
         })
     translations.add('foo.bad_plural', {'bar': 'foo elems'})
 def setUpClass(cls):
     resource_loader.init_loaders()
     reload(config)
     config.set('error_on_missing_placeholder', True)
     translations.add("try_formatter", "foo !name")
     translations.add('try_delimiter', "foo ^name")
 def setUpClass(cls):
     resource_loader.init_loaders()
     config.set('load_path', [os.path.join(RESOURCE_FOLDER, 'translations')])
     translations.add('foo.hi', 'Hello %{name} !')