def testLocalized(self):
    self.assertEqual(i18n.translate('en', self.msg_localized, fallback=True), u'test-localized EN')
    self.assertEqual(i18n.translate('nl', self.msg_localized, fallback=True), u'test-localized NL')
    self.assertEqual(i18n.translate('fy', self.msg_localized, fallback=True), u'test-localized FY')
def testLocalized(self):
    self.assertEqual(i18n.translate('en', self.msg_localized, fallback=True), u'test-localized EN')
    self.assertEqual(i18n.translate('nl', self.msg_localized, fallback=True), u'test-localized NL')
    self.assertEqual(i18n.translate('fy', self.msg_localized, fallback=True), u'test-localized FY')