Skip to content

Commit 9bb9497

Browse files
zlataovceStrokkur424
authored andcommitted
refactor: change docs.oracle.com links to Javadoc shortcuts
1 parent e55ff13 commit 9bb9497

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/docs/adventure/localization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ A `Translator` is a simple interface that provides two ways of translating conte
4444

4545
The first `translate` method provides the translation key and locale as an argument and expects a nullable `MessageFormat` in return.
4646
This system is comparable to Minecraft's built-in localization system, using the standard Java
47-
[message format](https://docs.oracle.com/javase/8/docs/api/java/text/MessageFormat.html) for arguments.
47+
[message format](jd:java:java.text.MessageFormat) for arguments.
4848

4949
If the first `translate` method returns `null`, the second method which provides the translatable component and locale as an argument can be used.
5050
This method allows for much richer customization of the translation process as you can return an entire component.
@@ -115,7 +115,7 @@ myStore.register("mytranslation.key", Locale.US, new MessageFormat("Hello %s!",
115115
GlobalTranslator.translator().addSource(myStore);
116116
```
117117

118-
There are additional methods on the message format translation store to bulk register from [resource bundles](https://docs.oracle.com/javase/8/docs/api/java/util/ResourceBundle.html).
118+
There are additional methods on the message format translation store to bulk register from [resource bundles](jd:java:java.util.ResourceBundle).
119119
You may also want to use Adventure's `UTF8ResourceBundleControl` utility class to create your bundle.
120120

121121
### Using MiniMessage for translations

0 commit comments

Comments
 (0)