-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Lyrics: Resurrect translations and refactor ReST and command line handling #5485
Open
snejus
wants to merge
5
commits into
lyrics-general-improvements
Choose a base branch
from
lyrics-translations
base: lyrics-general-improvements
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+521
−244
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
snejus
force-pushed
the
lyrics-translations
branch
3 times, most recently
from
October 29, 2024 21:14
5ec1cf8
to
99de0b1
Compare
snejus
force-pushed
the
lyrics-general-improvements
branch
from
October 30, 2024 19:24
cb559f0
to
95c954a
Compare
snejus
force-pushed
the
lyrics-translations
branch
2 times, most recently
from
October 30, 2024 21:37
abc5aef
to
55a79ec
Compare
snejus
force-pushed
the
lyrics-general-improvements
branch
from
November 22, 2024 07:45
95c954a
to
ebf136f
Compare
snejus
force-pushed
the
lyrics-translations
branch
from
November 22, 2024 07:50
55a79ec
to
2c4406b
Compare
snejus
force-pushed
the
lyrics-general-improvements
branch
from
December 7, 2024 16:59
ebf136f
to
09c0b9f
Compare
snejus
force-pushed
the
lyrics-translations
branch
from
December 7, 2024 16:59
2c4406b
to
13034c9
Compare
snejus
force-pushed
the
lyrics-general-improvements
branch
from
January 12, 2025 22:39
09c0b9f
to
83c125c
Compare
snejus
force-pushed
the
lyrics-translations
branch
2 times, most recently
from
January 12, 2025 23:12
952ba1e
to
1bf3e9f
Compare
snejus
force-pushed
the
lyrics-general-improvements
branch
from
January 12, 2025 23:12
83c125c
to
4531297
Compare
snejus
force-pushed
the
lyrics-translations
branch
2 times, most recently
from
January 13, 2025 22:55
035bee1
to
b792a84
Compare
snejus
force-pushed
the
lyrics-general-improvements
branch
2 times, most recently
from
January 19, 2025 01:10
2f068c4
to
112ddf9
Compare
snejus
force-pushed
the
lyrics-translations
branch
2 times, most recently
from
January 19, 2025 01:16
de0e0b5
to
e2b5078
Compare
snejus
force-pushed
the
lyrics-general-improvements
branch
from
January 19, 2025 01:16
112ddf9
to
fcd4d2b
Compare
snejus
force-pushed
the
lyrics-translations
branch
from
January 19, 2025 01:38
e2b5078
to
bc78084
Compare
snejus
force-pushed
the
lyrics-general-improvements
branch
from
January 19, 2025 01:38
fcd4d2b
to
23b7417
Compare
I found that the translator would sometimes replace the pipe character with another symbol (maybe it got confused thinking the character is part of the text?). Added spaces around the pipe to make it more clear that it's definitely the separator.
snejus
force-pushed
the
lyrics-general-improvements
branch
from
January 19, 2025 01:55
23b7417
to
80d1c9f
Compare
snejus
force-pushed
the
lyrics-translations
branch
from
January 19, 2025 01:55
bc78084
to
80a9a7e
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎵 The Refactoring Blues 🎵 by Claude
Verse 1:
Got those lyrics plugin blues
Cleaning up some messy code
Moving classes, fixing views
Making changes down the road
Chorus:
We're refactoring tonight
Making the codebase clean and bright
Translation's got a brand new home
And ReST files found their own
Verse 2:
Added Microsoft Translate
Keeping tokens safe and sound
Config options up-to-date
Better structure all around
Bridge:
Path operations simplified
Groups of artists, neat and tied
Error handling's looking fine
Comments clear along each line
Verse 3:
RestFiles in their own class now
Cleaning imports, showing how
Better typing makes it clear
What should go and what stays here
Final Chorus:
We're refactoring tonight
Making the codebase clean and bright
Translation's got a brand new home
And our code can stand alone!
— inspired by the diff
Technical Changes
Replaced deprecated and broken Bing translations by Microsoft Translator API
Translator
class.Created RestFiles class for ReST document handling
Improved command line options handling
Caching of translations
The plugin will not re-translate lyrics if translations already exist, see