Ver código fonte

Merge remote-tracking branch 'origin/l10n_v2' into v2

shedaniel 5 anos atrás
pai
commit
96ce4d62bb
2 arquivos alterados com 14 adições e 73 exclusões
  1. 1 63
      README.md
  2. 13 10
      src/main/resources/assets/cloth-config2/lang/fr_fr.json

+ 1 - 63
README.md

@@ -1,66 +1,4 @@
 # Cloth Config [ ![Download](https://api.bintray.com/packages/shedaniel/cloth-config-2/config-2/images/download.svg) ](https://bintray.com/shedaniel/cloth-config-2/config-2/_latestVersion)
 [Help translate ClothConfig on Crowdin!](https://crowdin.com/project/cloth-config)
 
-## Maven
-```groovy
-repositories {
-    jcenter()
-}
-dependencies {
-    'me.shedaniel.cloth:config-2:ABC'
-}
-```
-
-## APIs
-#### Config Screen v2 API
-Start by using `ConfigBuilder.create`, inside it you can do `getOrCreateCategory` to get the category instance. Do `addEntry` with the category instance to add an option.
-```java
-ConfigBuilder builder = ConfigBuilder.create().setParentScreen(parentScreen).setTitle(screenTitleKey).set(setSavingRunnable);
-builder.getOrCreateCategory("text.category.key").addEntry(option);
-```
-
-To start adding fields, do `ConfigEntryBuilder.create()` to get the entry builder instance.
-Example to add a boolean field:
-```java
-ConfigEntryBuilder entryBuilder = ConfigEntryBuilder.create();
-category.addEntry(entryBuilder.startBooleanToggle("path.to.your.key", false).build());
-```
-
-All builtin entry builders can be found in ConfigEntryBuilder.
-
-Lastly, you can open the screen like this:
-```java
-MinecraftClient.getInstance().openScreen(builder.build());
-```
-
-#### Dropdown Menus
-Start by doing `entryBuilder.startDropdownMenu()`, the `SelectionTopCellElement` is the search bar, and `SelectionCellCreator` is the cells below.
-
-Create a `SelectionTopCellElement` with `DropdownMenuBuilder.TopCellElementBuilder.of()`, which takes three parameters:
-- `value`: The value of the field
-- `toObjectFunction`: The toObject function, turning String into T, returns null if error
-- `toStringFunction`: The toString function, which never returns null, affects the displayed text of your value.
-
-You can also use the premade `SelectionTopCellElement` for items and blocks.
-
-
-Create a `SelectionCellCreator` with `DropdownMenuBuilder.CellCreatorBuilder.of()`, which defines the cell height, the cell width, and how many cells are displayed at most.
-- `toStringFunction`: The toString function, which never returns null, affects the displayed text of the cell.
-
-You can also use the premade `SelectionCellCreator` for items and blocks as well.
-
-You should create your own cell creator extending the `DefaultSelectionCellCreator` to create custom cells.
-
-Do `.setSelections()` with your builder to specify the list of suggestions.
-
-This is what you should do if you got a config for items:
-```java
-entryBuilder.startDropdownMenu("Field Key", 
-    DropdownMenuBuilder.TopCellElementBuilder.ofItemObject(configItem), // This should contain your saved item instead of an apple as shown here 
-    DropdownMenuBuilder.CellCreatorBuilder.ofItemObject()
-)
-    .setDefaultValue(Items.APPLE) // You should define a default value here
-    .setSelections(Registry.ITEM.stream().collect(Collectors.toSet()))
-    .setSaveConsumer(item -> configItem = (Item) item) // You should save it here, cast the item because Java is "smart"
-    .build();
-```
+**[Read the wiki for API documentations](https://github.com/shedaniel/ClothConfig/wiki)**

+ 13 - 10
src/main/resources/assets/cloth-config2/lang/fr_fr.json

@@ -6,23 +6,26 @@
   "text.cloth-config.quit_discard": "Quitter quand même",
   "text.cloth-config.config": "Configuration",
   "text.cloth-config.multi_error": "Problèmes multiples!",
-  "text.cloth-config.not_editable": "Not Editable!",
+  "text.cloth-config.not_editable": "Non modifiable !",
   "text.cloth-config.error.not_valid_number_int": "Pas un entier valide! (Integer)",
   "text.cloth-config.error.not_valid_number_long": "Pas un nombre invalide! (Long)",
   "text.cloth-config.error.not_valid_number_float": "Pas un nombre invalide! (Float)",
   "text.cloth-config.error.not_valid_number_double": "Pas un nombre invalide! (Double)",
   "text.cloth-config.error.too_large": "Trop grand! (Maximum: %d)",
   "text.cloth-config.error.too_small": "Trop petit! (Minimum: %d)",
-  "text.cloth-config.list.add": "Insert New",
-  "text.cloth-config.list.remove": "Delete Selected",
+  "text.cloth-config.list.add": "Insérer nouveau",
+  "text.cloth-config.list.remove": "Supprimer la sélection",
   "text.cloth-config.error_cannot_save": "Erreur!",
   "text.cloth-config.reset_value": "Réinit.",
   "text.cloth.reset_value": "Réinit.",
-  "text.cloth-config.restart_required": "Restart Required",
-  "text.cloth-config.restart_required_sub": "One of your modified settings requires Minecraft to be restarted. Do you want to proceed?",
-  "text.cloth-config.exit_minecraft": "Exit Minecraft",
-  "text.cloth-config.ignore_restart": "Ignore Restart",
-  "text.cloth-config.boolean.value.true": "§aYes",
-  "text.cloth-config.boolean.value.false": "§cNo",
-  "text.cloth-config.dropdown.value.unknown": "§cNo suggestions"
+  "text.cloth-config.restart_required": "Redémarrage requis",
+  "text.cloth-config.restart_required_sub": "L'un de vos paramètres modifiés requiert le redémarrage de Minecraft. Voulez-vous continuer ?",
+  "text.cloth-config.exit_minecraft": "Quitter Minecraft",
+  "text.cloth-config.ignore_restart": "Ignorer le redémarrage",
+  "text.cloth-config.boolean.value.true": "§aOui",
+  "text.cloth-config.boolean.value.false": "§cNon",
+  "text.cloth-config.dropdown.value.unknown": "§cAucune suggestion",
+  "modifier.cloth-config.alt": "Alt + %s",
+  "modifier.cloth-config.ctrl": "Ctrl + %s",
+  "modifier.cloth-config.shift": "Maj. + %s"
 }