Skip to content
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

Implement MiniMessage Velocity translations #1108

Open
wants to merge 7 commits into
base: dev/3.0.0
Choose a base branch
from

Conversation

4drian3d
Copy link
Contributor

image

resolves #720

@powercasgamer
Copy link
Contributor

Won't this break existing translations from the lang folder?

@4drian3d
Copy link
Contributor Author

4drian3d commented Nov 4, 2023

Won't this break existing translations from the lang folder?

Yes, I was also thinking of integrating a migration once #1111 is merged

@4drian3d
Copy link
Contributor Author

Won't this break existing translations from the lang folder?

Yes, I was also thinking of integrating a migration once #1111 is merged

Implemented a migration to the new format, this pull request is ready for another review

image

@electronicboy
Copy link
Member

This has my approval, and the prerequisite PR has been pulled, just need to figure out what to do regarding crowdin

@4drian3d 4drian3d added the type: feature New feature or request label Jan 19, 2024
# Conflicts:
#	proxy/src/main/java/com/velocitypowered/proxy/connection/client/ConnectedPlayer.java
#	proxy/src/main/java/com/velocitypowered/proxy/provider/ComponentLoggerProviderImpl.java
@R00tB33rMan
Copy link
Contributor

Only issue I have when testing is that tooltips appear not properly to parse from the messages.properties file properly

@R00tB33rMan
Copy link
Contributor

R00tB33rMan commented Apr 16, 2024

Managed to fix it with these changes. Thought this'd help speed up the state of this PR (ignore the messages.properties changes, except for the Plugins: one:
image
or GemstoneGG/Velocity-CTD@libdeflate@{1day}...libdeflate

@SpaceYoshi
Copy link

SpaceYoshi commented Aug 17, 2024

I just implemented this into my Paper plugin, and noticed that single quotes behave differently using the code in 'VelocityTranslationRegistry' as opposed to using 'TranslationRegistry.create()' directly.
Normally, MessageFormat converts double single quotes '' into '. Now, double single quotes are left unchanged, and a single ' gets removed. Not too big of a deal, but I still wanted to share. Can someone verify this? Notable: MessageFormat.toPattern().

Also: ' and '' are used interchangeably in the property files. Nice addition! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HEX/RGB color codes in "com\velocitypowered\proxy\l10n"
5 participants