קוד: |
http://translation.babylon.com/post_post.php |
קוד: |
mytextarea1=word&lpt=14&lps=0 |
אינשם : |
אבל הסקריפט שנכתב מקבל דף ריק בחזרה מהאתר. יכול להיות שהסקריפט כבר לא מעודכן בממשק מול האתר של babylon... |
קוד: |
http://info.babylon.com/cgi-bin/info.cgi?s=educaterra&lang=14&word=help |
קוד: |
http://translation.babylon-software.com/translate/babylon.php?v=1.0&q=מען משאבים אחיד עם הפרמטרים המתאימים לממשק החדש&langpair=14|0&callback=babylonTranslator.callback&context=babylon.0.14._babylon_api_response
& = & < = < > = > " = " ' = ' 0 = english 1 = french 2 = italian 3 = spanish 4 = dutch 5 = portuguese 6 = german 7 = russian 8 = japanese 9 = chinese (t) 10 = chinese (s) 11 = greek 12 = korean 13 = turkish 14 = hebrew 15 = arabic 16 = thai 29 = polish 30 = hungarian 31 = czech 39 = urdu 43 = danish 46 = norwegian 47 = romanian 48 = swedish 49 = ukrainian 51 = persian 60 = hindi 99 = catalan 344 = castilian |
קוד: |
sudo apt-get install libnotify-bin wget xsel |
קוד: |
#!/usr/bin/env bash notify-send --icon=info "$(xsel -o)" "$(wget -U "Mozilla/5.0" -qO - "http://translate.googleapis.com/translate_a/single?client=gtx&sl=auto&tl=he&dt=t&q=$(xsel -o | sed "s/[\"'<>]//g")" | sed "s/,,,0]],,.*//g" | awk -F'"' '{print $2, $6}')" |