-
Notifications
You must be signed in to change notification settings - Fork 120
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
i18n: Translator upgrades #3588
Conversation
Per this comment, |
Wow this is incredible and way beyond my expectations. Thank you for working on this! I will be testing this in the coming days, but one quick thing is, is it possible to remove requests to the Eye of Cloudflare? Like commit the lib in this repo (if maintainers are ok with it) or at least use a different hosting (decred.org perhaps)? To clarify, I will not be a heavy user of this tool and real translators might be ok with it, but asking just in case there is an easy solution. |
I'm ok with committing the lib in the repo. |
Let's add for context that we're talking about |
show all fields but gray out the previous string if it is equal to new string
- Move "copy original" button (V) before "save & next" (>) - Rename > and V to save & next and copy original
... place Deleted Entries as another radio button + list
+ switch to the list where the "next" item was selected (All/Untranslated/Changed), even if the user changed to a different list before hitting save & next + make the left-hand list area scrollable and span all visible vertical space + scroll the list to make the newly selected item visible
version info need to be located in JSON file under `meta.version`
… save on `save & next` action
21db6c3
to
32434c4
Compare
Allright, sorry for the wait. First round of testing. New features look great. This tool is much more powerful now. Bugs:
Tweaks (optional, can do in future PRs):
Performance (optional, can do in future PRs):
|
Diffing looks very helpful for translator's awareness and productivity, thanks for investigating! Noticed the page uses @alexlyp or maybe @matheusd any objections to committing the lib to this repo? |
+ cleanup merge errors, == and != and an unnecessary if block
@xaur, thanks for the review. I've pushed the fixes. |
Tested:
One more idea that crossed my mind is to load the translated string even on the Deleted list keys, to allow translators to recover and reuse any strings that will go away. This is optional, we can do this later. Otherwise, I see no functional bugs. Great work! |
Code-wise, good idea to add the uncompressed lib in case we'll ever need to tweak it. I see a big diff with upstream master (looks formatting only), which may complicate porting upstream changes. |
- use compressed diff_match_patch.js - jumpBackToSelectedList renamed to jumpToSelectedList
@bgptr the uncompressed version looked more future-proof in terms of maintenance, did you found a reason how the compressed one is better? |
@xaur I considered only the file size, but you're right. The uncompressed version could be more future-proof. I've updated it. |
@Insaf01 helped me verify that we have a common issue with bidirectional text, where a mix of Arabic and English is ordered incorrectly. For example, this is for key and this is how it shold look like: I hacked the While this PR is not merged, we can use it to fix this issue too. If my hack is good enough, we'll need to conditionally set the |
@xaur I've set the |
I also now see Arabic text flowing right-to-left and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working as intended. I also verified the imported diff_match_path.js matches the one from the original github repo.
Closes #3583
Notes and screenshots: