Commit Graph
18 Commits
Author SHA1 Message Date
Nachito 1f9a1e4a59 Add Spanish Language and Readme 2024-11-13 23:44:07 +01:00
altrisi a29b84ec0d Remove lightEngineMaxBatchSize rule (#1771) 2023-07-28 21:10:17 +02:00
Calvineries 4c134cc88a Create fr_fr.json (#1741) 2023-07-07 12:10:02 +02:00
altrisi 01bec472ea Fix syntax error in pt_br language file 2023-06-22 16:12:59 +02:00
FITFC 8f3c4352b9 Added pt_br translation (#1582) 2022-11-04 17:17:45 +01:00
altrisi 0a972d6c56 Settings rework and encapsulation (#1330)
* Settings rework and encapsulation

* Settings overhaul 3

Move everything in the new system to a new API package

Require rules using the new system to specify descriptions in their translation files

Implement temporary system on top of current translations to allow that to work properly

* Fix getRules fallback

* Final touches to settings refactor

* Mention that set shouldn't throw and remove comment

* Change translation keys to unify with translation PR

* Deprecate printAllRulesToLog to allow using any PrintStream

* Remove restriction of CarpetRules being Comparable

And fix overreaction in a deprecation message

* Bring back user input to rule observers

* Make Validator deprecation warning not spam on use

* Remove unneeded abstract methods in CarpetRule already inherited from CarpetRule

They literally do nothing, don't even force them to be implemented, and may be confusing as to why they're there or as if they are needed to be implemented

* Fix legacy SettingsManager field not being assigned correctly

* Finish fixing conflicts from future merge

* Actually fix remaining conflicts from future merge (missing imports)

* Import the newer rule in SettingsManager

* Refactor Validators

* Don't spam deprecation warnings on custom managers

* Get out the var

* Fix missing warning in old rule observers

* Update src/main/java/carpet/api/settings/Rule.java

* Remove `@ApiStatus.Experimental` annotations

* Fix incorrect `@deprecated` javadoc tags

By removing them given the class is deprecated anyway and else there's too much noise

* Add missing static import

* Remove TypedField and use a regular field

I liked that class tbh, but it's true that it wasn't really needed

* Move `field` assignment out of for removal

* Fix not following contract of `type()` returning boxed value

Previously handled by TypedField

* Fix few incorrect translation keys

* Remove resaving of comments when saving config files

Comments ignoring is still a thing when reading, so `locked` configs for example will keep comments

* Condense rule load messages in one

* Only print loaded settings message when at least one setting was changed

* Fix legacy validator detector

* Tweak and add more context to response to invalid values

* Fix strict validator not actually erroring on invalid input
2022-06-27 13:12:15 +02:00
ishland 8a7ca3a876 Feature: simulationDistance rule (#1280)
* simulationDistance rule

Closes gnembon/fabric-carpet#1200

* Update translation of zh_cn for simulationDistance
2022-01-30 20:12:14 +01:00
whats2000 c465976609 Update zh_tw.json
small fix
2021-05-02 23:35:23 +08:00
whats2000 6eee47ec14 Update zh_tw.json
Add new translation to support the latest version
2021-05-02 23:22:44 +08:00
whats2000 220d639c4e Update zh_tw.json (#413)
* Update zh_tw.json

Fix some translations

* Update zh_tw.json
2020-08-15 01:28:06 -03:00
Dianliang233 c7ce2945b8 Fixes and small tweaks for zh-cn translation (#410)
* fixes and small tweaks

* fix #410#discussion_r468369398

https://github.com/gnembon/fabric-carpet/pull/410#discussion_r468369398
2020-08-11 14:10:02 -03:00
Forgot-Dream 9d619f4797 update zh_cn.json and zh_tw.json (#385)
Translated by:Forgot-Dream and X-Green
Time:2020-7-18
2020-07-20 21:30:33 -03:00
Fallen_Breath 680acfdc8f zh_cn.json update (#343)
* qc激活->半连接激活

* Update zh_cn.json

* ui.rule_%(rule)s_not_set_restart

* added quotation marks to rule translation display
2020-06-22 09:11:03 -03:00
gnembon 04c91e7311 confirmation when rule removed from conf 2020-06-21 17:26:12 -03:00
whats2000 78e7d9618d Create zh_tw.json (#302)
* Create zh_tw.json

A traslate for traditonal Chinese

* Update zh_tw.json

Fixed some words is in wrong grammar

* Update CarpetSettings.java
2020-06-01 16:39:08 -03:00
Forgot-Dream ec6cb9fa7a update zh_cn.json and fix bugs in extra-finding process(by X-Green) (#300)
* Add files via upload

* fix extra-finding (by X-Green)

* update zh_cn
2020-05-31 03:21:03 -03:00
gnembon 74c62e5a13 simplified translations keys 2020-05-15 20:00:27 -03:00
X-Green 1f5b06daa2 Add Language Support For Carpet Settings (#267)
* Added language supports for carpet settings

use /set-carpet-language to set your language.

* Added zh_cn.json - in progress

Not accomplished yet, only translations for testing the language support.

* Create model_for_new_language.jsons.txt

* Rename model_for_new_language.jsons.txt to model_for_new_language.json

* Update model_for_new_language.json

* Update model_for_new_language.json

* Update and rename model_for_new_language.json to en_us.json

* Added setting CarpetLanguage

* Delete SetLanguageCommand.java

* Add files via upload

* Update SettingsManager.java

* Add files via upload

* Update LanguageUtils.java

* Update SettingsManager.java
2020-05-15 14:58:50 -03:00