Skip to content

Commit

Permalink
Merge pull request #2453 from half-duplex/translate-help
Browse files Browse the repository at this point in the history
translate: Make help more helpful about language :hints
  • Loading branch information
dgw authored Jun 4, 2023
2 parents ed726e6 + 831bdc2 commit 4ea258f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sopel/modules/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ def tr(bot, trigger):
@plugin.command('translate', 'tr')
@plugin.example('.tr :en :fr my dog',
'"mon chien" (en to fr, translate.google.com)',
online=True, vcr=True)
online=True, vcr=True, user_help=True)
@plugin.example('.tr מחשב',
'"computer" (iw to en, translate.google.com)',
online=True, vcr=True)
@plugin.example('.tr mon chien',
'"my dog" (fr to en, translate.google.com)',
online=True, vcr=True)
online=True, vcr=True, user_help=True)
@plugin.output_prefix(PLUGIN_OUTPUT_PREFIX)
def tr2(bot, trigger):
"""Translates a phrase, with an optional language hint."""
"""Translates a phrase, with an optional language :hint."""
command = trigger.group(2)

if not command:
Expand Down

0 comments on commit 4ea258f

Please sign in to comment.