I implemented a small hack that handles a pseudo-language called "bot" or
"none", by outputting system messages in the form {@[key]@} instead of trying to
translate them. This would greatly help scripts and bots that rely on parsing
system messages (apper's check-usage springs to mind, but there are many
others). The main problem is that a) those bots need to know *all* languages,
abd b) messages change frequently.
A few remarks about my patch:
- I'm aware that a "real" bot API would be preferrable. But there seems to be no
real solution for that in sight, so a quick-and-dirty hack would be an
improvement for now.
- Existing bots and scripts could be adopted to use this pseudo-language in a
matter of minutes. They'd become more reliable and stable that way.
- This patch is rather unintrusive: it just ads 5 lines. It would be cleaner to
do this by implementing a Language class, but that would mean more code, and
would also be slower.
Patch to follow in a minute.
Version: 1.6.x
Severity: enhancement