The WeeChat inout Translate script is a powerful tool designed to enhance your IRC experience by enabling real-time translation of messages for specified channels and servers. This plugin leverages the Google Translate API to provide seamless translation, making it easier to communicate with users from different linguistic backgrounds.
- Translate incoming and outgoing messages in real-time.
- Configure translation settings for specific channels and servers.
- Support for a wide range of languages.
- Ability to send translated messages with a simple command.
- Ensure you have WeeChat installed on your system.
- Place the
inout_translate.py
script in your WeeChat Python scripts directory (typically~/.weechat/python
). - Load the script in WeeChat using the command:
/script load inout_translate.py
Before using the plugin, you need to set your Google Translate API key:
- Obtain an API key from the Google Cloud Console.
- In WeeChat, set your API key using the command: /set plugins.var.python.weechat_inout_translate.api_key YOUR_API_KEY
The plugin introduces the /translate
command with several subcommands:
- list: Show all channels with translation settings.
- addin <target_lang>: Add a channel to translate incoming messages.
- addout <target_lang>: Add a channel to translate outgoing messages.
- delin : Remove a channel from translating incoming messages.
- delout : Remove a channel from translating outgoing messages.
- code: Show available language codes for translation.
- help: Show help information for the
/translate
command.
To send a translated message, prefix your message with @<target_lang>
. For example, to send a message in Spanish, type:
@es Your message here.
The plugin supports a wide range of languages. Use the /translate code
command to view all available language codes.
This script is released under the GPL license.
Jerzy Dabrowski (kofany) - j@dabrowski.biz