edit translate and fixed "warning: suggest parentheses around '&&' withi...

...n '||' [-Wparentheses]"