edit translate and fixed "warning: suggest parentheses around '&&' within '||' [-Wparentheses]"