Skip to content

Commit 81265cf

Browse files
committed
Add Ukrainian localization
1 parent 837b886 commit 81265cf

4 files changed

Lines changed: 25 additions & 4 deletions

File tree

init.lua

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
local S = minetest.get_translator(core.get_current_modname())
12

23
local storage = minetest.get_mod_storage()
34

@@ -67,15 +68,15 @@ minetest.register_on_joinplayer(function(player)
6768
end)
6869

6970
minetest.register_chatcommand("hotbar", {
70-
params = "<size>",
71-
description = "Sets the size of your hotbar, from 1 to 32 slots. Default " .. hotbar_size_default,
71+
params = S("<size>"),
72+
description = S("Sets the size of your hotbar, from 1 to 32 slots. Default @1", hotbar_size_default),
7273
func = function(name, slots)
7374
local player = minetest.get_player_by_name(name)
7475
if not player then
75-
return false, "Player is not online."
76+
return false, S("Player is not online.")
7677
end
7778
local size = set_hotbar_size(player, slots)
78-
return true, "Hotbar size set to "..size
79+
return true, S("Hotbar size set to @1", size)
7980
end
8081
})
8182

locale/dreambuilder_hotbar.uk.tr

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# textdomain: dreambuilder_hotbar
2+
# Translated by FromKaniv
3+
4+
Dreambuilder Hotbar=Хотбар Будівельника Мрій
5+
6+
Sets the size of your hotbar, from 1 to 32 slots. Default @1=Встановлює розмір вашого хотбара, від 1 до 32 слотів. Типово: @1
7+
Hotbar size set to @1=Розмір хотбара встановлено на @1
8+
<size>=<розмір>
9+
10+
Player is not online.=Гравець офлайн.

locale/template.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# textdomain: dreambuilder_hotbar
2+
3+
Dreambuilder Hotbar=
4+
5+
Sets the size of your hotbar, from 1 to 32 slots. Default @1=
6+
Hotbar size set to @1=
7+
<size>=
8+
9+
Player is not online.=

mod.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
title=Dreambuilder Hotbar
12
name = dreambuilder_hotbar
23
min_minetest_version = 5.4.0
34
optional_depends = default, dreambuilder_theme_settings

0 commit comments

Comments
 (0)