-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support other languages/locales than English #32
Comments
I think it would be cool to use strace for detecting permission issues. It's still a heuristic, but it might be better. Example:
|
Good idea. |
Yeah, I looked through the pacman strace and there's really nothing useful there. I wonder how it knows that you are not root. In any case, another possibility is to check that the command starts with |
Is it repeats with 1.11+? |
To complete this issue. I suggest to translate the "fuck" alias. Indeed, for example, in french, "putain" can be a better alias. |
Currently thefuck actually supports other languages. Because it is executed in environment with LANG=C, that means it only has to detect English strings in multilingual environment. @AmarOk1412 It's quite simple, just add your own alias to your shell's configuration (e. g. |
@Dugucloud. Yeap I know. I was just thinking about an automatic alias based on the computer language :). But it's not a very good idea. |
@AmarOk1412 anyone can use use whatever they want for an alias. |
@nvbn What does this means? I didn't understood.
@Dugucloud Where did you found that? I have to change manually my locale back to english to make thefuck work |
@tuxayo I mean that you need to upgrade sudo pip install thefuck --upgrade |
I was searching why it was no giving a fuck when I was trying to use it.
Then I saw this PR:
https://github.com/nvbn/thefuck/pull/30/files
It seems that thefuck is checking for hard coded errors messages so obviously it can't work with other languages than English and the current approach can't allow it.
Any idea how to detect permission errors in a language agnostic way?
For git it should be possible to use the last line of the ouput which contains only the corrected command and nothing language specific.
The text was updated successfully, but these errors were encountered: