From 106d703e20fefdb390fadcb46b53463f11c5405e Mon Sep 17 00:00:00 2001 From: onebeastchris Date: Thu, 19 Oct 2023 23:00:04 +0200 Subject: [PATCH] =?UTF-8?q?-=20fix=20=C2=A7=20sign=20not=20showing=20prope?= =?UTF-8?q?rly=20-=20add=20example=20for=20locale=20names=20in=20README.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +++++---- src/main/resources/en_US.properties | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index fff5df9..4b87934 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,10 @@ Download available in the releases tab. - Restart the server. ### Usage: -- Configure the ip/port in the config.yml. The file is located under /Geyser/extensions/PickPack/config.yml. +- Configure the ip/port in the config.yml. The file is located under `/Geyser-xxx/extensions/PickPack/config.yml`. These are needed so the automatic transfer packet works. -- Place packs that are applied by default go in the "defaultPacks" folder. (located in Geyser/extensions/PickPack/defaultPacks) -- Place packs that players can optionally turn on go in the "optionalPacks" folder. (located in Geyser/extensions/optionalPacks) +- Place packs that are applied by default go in the "DefaultPacks" folder. (located in `/Geyser-xxx/extensions/PickPack/DefaultPacks`) +- Place packs that players can optionally turn on go in the "OptionalPacks" folder. (located in `/Geyser-xxx/extensions/OptionalPacks`) - Reload the extension using `/pickpack reload`, or restart the server. ### Commands: @@ -41,5 +41,6 @@ These are needed so the automatic transfer packet works. - `/pickpack reload` - Reloads the config.yml and the packs. ### Languages: -This extension has multi-language support. However, the default language is English - to add more languages, copy the `en_US.properties` file from the /extensions/PickPack/translations folder, and translate the strings. +This extension has multi-language support. However, the default language is English - to add more languages, copy the `en_US.properties` file from the `/extensions/PickPack/translations` folder, and translate the strings. Then, save the file as e.g. `de_DE.properties` for German. You can select a default locale in the config.yml. Otherwise, all locales will be loaded & used automatically if a player's language matches. +To see all possible locales, check the Geyser locales [here](https://github.com/GeyserMC/languages/tree/master/texts). diff --git a/src/main/resources/en_US.properties b/src/main/resources/en_US.properties index d0115a5..4839c2a 100644 --- a/src/main/resources/en_US.properties +++ b/src/main/resources/en_US.properties @@ -15,6 +15,6 @@ pack.form.title=Choose your packs: pack.form.label=Showing %s no_packs.warning=You have no packs applied! -disconnect.message=§6 Join back to apply the changes! -reload.success=§6 Config reloaded! -reload.error=§c Config reload failed! \ No newline at end of file +disconnect.message=\u00A76 Join back to apply the changes! +reload.success=\u00A76 Config reloaded! +reload.error=\u00A7c Config reload failed! \ No newline at end of file