diff --git a/Doc/Plugins/Example Plugins/GoogleMaps/gmaps b/Doc/Plugins/Example Plugins/GoogleMaps/gmaps index e9aba1d..f0eb442 100755 --- a/Doc/Plugins/Example Plugins/GoogleMaps/gmaps +++ b/Doc/Plugins/Example Plugins/GoogleMaps/gmaps @@ -7,5 +7,5 @@ if echo "$1" |egrep "^http" >/dev/null 2>&1;then xdg-open "$1" & else - xdg-open http://"$1&hl=$LANG" & + xdg-open http://"$1&hl=$LANGUAGE" & fi diff --git a/Microphone/osd_server.py b/Microphone/osd_server.py index ccee469..347dc3a 100755 --- a/Microphone/osd_server.py +++ b/Microphone/osd_server.py @@ -17,8 +17,8 @@ def transText(text): with open(home+"/.palaver.d/UserInfo") as f: for each in f: line = each.replace('\n','') - if line.startswith("LANG="): - language = line.replace("LANG=","").replace(" ","") + if line.startswith("LANGUAGE="): + language = line.replace("LANGUAGE=","").replace(" ","") try: if language == "en": return text diff --git a/Recognition/config/BlankInfo b/Recognition/config/BlankInfo index 64541e9..f161493 100644 --- a/Recognition/config/BlankInfo +++ b/Recognition/config/BlankInfo @@ -1,4 +1,4 @@ FIRST= LAST= EMAIL= -LANG=en +LANGUAGE=en diff --git a/installDefault b/installDefault index bb669c7..7ca2849 100755 --- a/installDefault +++ b/installDefault @@ -73,12 +73,12 @@ def main(): return 0 if __name__ == "__main__": - res = subprocess.Popen("zenity --forms --add-entry='First Name' --add-entry='Last Name' --add-entry='Email' --add-entry='Language (en,es,pt)' --text='User Information' --title='Palaver User Configurationon'", shell=True, stdout=subprocess.PIPE).communicate()[0].replace('\n','') + res = subprocess.Popen("zenity --forms --add-entry='First Name' --add-entry='Last Name' --add-entry='Email' --add-entry='Language (en,es,fr,pt)' --text='User Information' --title='Palaver User Configuration'", shell=True, stdout=subprocess.PIPE).communicate()[0].replace('\n','') res = res.split("|") with open(home+"/.palaver.d/UserInfo",'w') as data: data.write("FIRST="+res[0]) data.write("\nLAST="+res[1]) data.write("\nEMAIL="+res[2]) - data.write("\nLANG="+res[3]) + data.write("\nLANGUAGE="+res[3]+"\n") EntryExample() main() diff --git a/send_speech b/send_speech index 95358cd..e78583b 100755 --- a/send_speech +++ b/send_speech @@ -5,7 +5,7 @@ # lang=es or something. # Multiple results #URL="http://www.google.com/speech-api/v1/recognize?lang=en&client=chromium&maxresults=6" -URL="https://www.google.com/speech-api/v1/recognize?lang=$LANG&client=chromium" +URL="https://www.google.com/speech-api/v1/recognize?lang=$LANGUAGE&client=chromium" if [ -z "$1" ];then echo ""