Skip to content

Commit

Permalink
Add Russian translation
Browse files Browse the repository at this point in the history
- Thanks to @Klatch13 on GitHub!
- Bump version to 1.5.4
  • Loading branch information
fill1890 committed Aug 18, 2022
1 parent 4b86f43 commit 81e9452
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.14.8

# Mod Properties
mod_version = 1.5.3+1.19
mod_version = 1.5.4+1.19
maven_group = net.fill1890
archives_base_name = fabsit

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/fill1890/fabsit/util/Messages.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static Text getPoseStopMessage(ServerPlayerEntity player, Pose pose) {
if(ConfigManager.loadedPlayers.contains(player.networkHandler.connection.getAddress())) {
return Text.translatable(ACTION + "stop_" + pose, Text.keybind("key.sneak"));
} else {
return Text.of(ConfigManager.LANG.get(ACTION + "stop_" + pose).formatted("the sneak key"));
return Text.of(ConfigManager.LANG.get(ACTION + "stop_" + pose).formatted(ConfigManager.LANG.get("key.fabsit.sneak")));
}
}

Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/assets/fabsit/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@
"key.fabsit.category": "FabSit",
"key.fabsit.sit": "Sit down",
"key.fabsit.lay": "Lay down",
"key.fabsit.spin": "Spin"
"key.fabsit.spin": "Spin",

"key.fabsit.sneak": "the sneak key"
}
24 changes: 24 additions & 0 deletions src/main/resources/assets/fabsit/lang/ru_RU.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"action.fabsit.stop_spinning": "Нажмите %s чтобы прекратить вращаться",
"action.fabsit.stop_laying": "Нажмите %s чтобы встать",
"action.fabsit.stop_sitting": "Нажмите %s чтобы встать",

"chat.fabsit.sit_air_error": "§4Вы не можете сидеть в пустоте!",
"chat.fabsit.pose_air_error": "§4Вы не можете задать позу в пустоте!",
"chat.fabsit.sit_spectator_error": "§4Вы не можете сидеть в режиме спектатора",
"chat.fabsit.pose_spectator_error": "§4Вы не можете задать позу в режиме спектатора!",
"chat.fabsit.sit_state_error": "§4Сейчас нельзя сидеть!",
"chat.fabsit.pose_state_error": "§4Сейчас нельзя задать позу!",
"chat.fabsit.sit_block_occupied": "На этом блоке уже кто-то сидит!",
"chat.fabsit.pose_block_occupied": "На этом блоке уже кто-то задал позу!",

"chat.fabsit.reload_success": "Конфигурация перезагружена!",
"chat.fabsit.reload_error": "Ошибка при перезагрузки конфигурации. Проверьте консоль сервера!",

"key.fabsit.category": "FabSit",
"key.fabsit.sit": "Сидеть",
"key.fabsit.lay": "Ползать",
"key.fabsit.spin": "Крутиться",

"key.fabsit.sneak": "ключ скрытности"
}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
"id": "fabsit",
"version": "1.5.3+1.19",
"version": "1.5.4+1.19",

"name": "FabSit",
"description": "Sit in Fabric",
Expand Down

0 comments on commit 81e9452

Please sign in to comment.