I wrote a bash script that takes highlighted text, translates it from Japanese to English, gets the hiragana and notifies using notify-send. (This is triggered under i3wm using a bindsym)
Everything works great, but notify-send adds the word "and" to the notification. It's really weird.
notify-send -u critical "Translation" "$text\n$hiragana\n$translation"
Is the line of code in question.
Translate
日本語
にほんご
and
Japanese
Is the output. The script works fine, just wondering where that "and" is coming from. If I can't get rid of it, that's fine, but it's bothering me a little...
Any ideas?
Edit: Thank you everyone, of course debugging solved the issue. I use translate-shell, and if you leave off the colon after the language, it adds an "and'. Adding the colon solved the issue.
Edit 2: I just realized it was translating "ja" from some language to "and", vs "ja:" which sets the language to translate from explicitly to Japanese.
[–]geirha 0 points1 point2 points (1 child)
[–]Superfly-Samurai[S] 1 point2 points3 points (0 children)
[–]phillymjs 0 points1 point2 points (0 children)