tests/i18n_plugin/i18n.py
raw| 1 | # -*- coding=utf-8 -*- |
| 2 | from errbot import BotPlugin, botcmd |
| 3 | |
| 4 | |
| 5 | class I18nTest(BotPlugin): |
| 6 | """A Just a test plugin to see if it is picked up.""" |
| 7 | |
| 8 | @botcmd |
| 9 | def i18n_1(self, msg, args): |
| 10 | return "язы́к" |
| 11 | |
| 12 | @botcmd(name="ру́сский") |
| 13 | def i18n_2(self, msg, args): |
| 14 | return "OK" |
| 15 | |
| 16 | @botcmd(name="prefix_ру́сский") |
| 17 | def i18n_3(self, msg, args): |
| 18 | return "OK" |
| 19 | |
| 20 | @botcmd(name="ру́сский_suffix") |
| 21 | def i18n_4(self, msg, args): |
| 22 | return "OK" |