-
Notifications
You must be signed in to change notification settings - Fork 9
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
Better Language Indicator #7
Comments
Good idea! The badge API can only display around four characters, so right now it's just showing the beginning of the string, mainly as a reminder that something is set, but you're right that showing the locale with the highest qvalue would be more informative. Are you interested in fixing this? I'm totally open to pull requests. :) |
@callahad Yes, I can fix this if I can figure out how a pull request works. (I've written my own extensions.) It looks like I'm supposed for fork the project, update popup.js, and merge it back into this project? I don't understand how one merges modified code back into the project though. |
Awesome! No time like the present to learn how GitHub handles this stuff. :) Are you familiar with You've got the right idea on the workflow:
Once you've updated popup.js, GitHub should show you a big yellow banner with a button to create a pull request. When you do that, I'll get a notification and be able to review and incorporate your changes. If anything doesn't make sense, let me know. I'm happy to help, and even happier for this project to gain its first external contributor! |
@callahad I downloaded Git Bash and Visual Studio 2015 and created some special command line ID when I tried to contribute a Firefox patch for an issue that required trivial JavaScript changes to their codebase, but then gave up since I couldn't figure it out. I'm familiar with GitHub in a basic sense as I regularly submit bug reports and I created a pull request with tested changes at #8. It's a total file overwrite so the diff page doesn't look nice. Not sure how to do it correctly. I didn't see a yellow banner. I uploaded a file to the master, clicked a white "New pull request" button on the fork's main page then clicked a green pull request creation button afterward. And glad to help! |
So apparently I get the nice diff by using GitHub's file editor instead of doing a whole file overwrite. |
Overwriting the whole file should be fine -- git should be able to generate its own, minimal diff between the two versions -- but somehow that didn't happen this time. Weird. :) It might be worth checking out Microsoft's lighter-weight VSCode editor, which has a nice built-in Git client that should make it easier to see exactly what is being committed. I presume VS2015 has something similar, but I haven't used it. |
If I enter something like "eng;q=0,zho", this disallows English, but "eng" is nevertheless displayed over the icon when I'd expect "zho".
Seems like it'd be better to either determine the highest weighted languages and display the code for the highest weighted language or "mul" (an ISO 639-2 language code indicating multiple languages) if there are multiple highest weighted languages.
Alternatively, one could do no weighting at all and display something indicating multiple languages.
Also, I'm not sure if invalid input like "???" should be displaying anything. (It displays "???".)
The text was updated successfully, but these errors were encountered: