Bugswriter / tuxi

Tuxi is a cli assistant. Get answers of your questions instantly.
GNU General Public License v3.0
1.33k stars 73 forks source link

Language problem #151

Closed Brutus11111 closed 3 years ago

Brutus11111 commented 3 years ago

I'd like to change the language option but it doesn't appear to be possible. It's messing with the results I'm getting.

For example:

The video on the github page shows that I can type "tuxi i love you in spanish". and that gives an output.

My result is: No Results

The problem is that it's looking up search results in the national version of Google, which is already an annoying issue when I try to find stuff online. Is there a way to get tuxi to use USA google instead?

Bugswriter commented 3 years ago

Try searching same thing on google as see if you are getting something? also are you using vpn? @Genghius Who did the language thing?

BeyondMagic commented 3 years ago

The problem is that it's looking up search results in the national version of Google, which is already an annoying issue when I try to find stuff online. Is there a way to get tuxi to use USA google instead?

Yes, the country that you live in affects Google UI. I don't think this will work, but try changing LANG=$(echo $LANG | sed 's/\..*//') in the script to LANG="en_US"

image

Brutus11111 commented 3 years ago

I'm sorry but where do you want me to change that?

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Thursday, February 25, 2021 7:12 PM, BeyondMagic notifications@github.com wrote:

The problem is that it's looking up search results in the national version of Google, which is already an annoying issue when I try to find stuff online. Is there a way to get tuxi to use USA google instead?

Yes, the country that you live in affects Google UI. I don't think this will work, but try changing LANG=$(echo $LANG | sed 's/..*//') in the script to LANG="en_US"

image

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

sudocanttype commented 3 years ago

In the tuxi file itself.

Brutus11111 commented 3 years ago

"try changingLANG=$(echo $LANG | sed 's/..*//')in the script toLANG="en_US""

I don't have LANG in there.

http://termbin.com/fuvtf

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Friday, February 26, 2021 3:45 PM, sudocanttype notifications@github.com wrote:

In the tuxi file itself.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

sudocanttype commented 3 years ago

Ah, it appears you are running on a old version of tuxi

BeyondMagic commented 3 years ago

Update it,

$ git clone https://github.com/Bugswriter/tuxi.git && cd tuxi/
$ make install
Brutus11111 commented 3 years ago

Last version the AUR

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Friday, February 26, 2021 4:54 PM, sudocanttype notifications@github.com wrote:

Ah, it appears you are running on a old version of tuxi

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

sudocanttype commented 3 years ago

Oh, I'm not sure how to update the AUR. @BeyondMagic Who's in charge of that?

BeyondMagic commented 3 years ago

@tdy ~, I don't have idea who that is in github, maybe this guy @tdy~ ? Anyway, he's the maintainer. I'm gonna flag the package for being out-dated.

@Brutus11111 please, install tuxi using the commands I told you.

Brutus11111 commented 3 years ago

Ok so tip, don't use sudo, it copies to a user directory. Doing that with sudo places the file in the /root/.local/bin directory instead.

That language trick is working so far! :D

Sent with ProtonMail Secure Email.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Friday, February 26, 2021 4:59 PM, sudocanttype notifications@github.com wrote:

Oh, I'm not sure how to update the AUR. @BeyondMagic Who's in charge of that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

sudocanttype commented 3 years ago

Niceeeeeeeee, can you close the issue?

BeyondMagic commented 3 years ago

Ok so tip, don't use sudo, it copies to a user directory. Doing that with sudo places the file in the /root/.local/bin directory instead.

Yeah, I don't know who put that in the README.md, I edited the comment.

PureArtistry commented 3 years ago

next update on the dev branch has the ability to set your language from the command line so you can change it on the fly (so to speak)

will be uploading soon

Genghius commented 3 years ago

image line 7 of the script has this constant, just put your language betwen the quotes and that is all.

why butcher my child like this?

The problem is that it's looking up search results in the national version of Google, which is already an annoying issue when I try to find stuff online. Is there a way to get tuxi to use USA google instead?

Yes, the country that you live in affects Google UI. I don't think this will work, but try changing LANG=$(echo $LANG | sed 's/\..*//') in the script to LANG="en_US"

image

BeyondMagic commented 3 years ago

image line 7 of the script has this constant, just put your language betwen the quotes and that is all.

"when you're on the top, there's only one way to go"

BeyondMagic commented 3 years ago

@Bugswriter this can be closed