mirror of
https://codeberg.org/tenplus1/ambience.git
synced 2024-12-28 03:30:28 +01:00
esperanto translation added (thx JadedCtrl)
This commit is contained in:
parent
66e73ddf31
commit
0e444c726c
14
init.lua
14
init.lua
@ -12,6 +12,8 @@ local sound_sets = {} -- all the sounds and their settings
|
|||||||
local sound_set_order = {} -- needed because pairs loops randomly through tables
|
local sound_set_order = {} -- needed because pairs loops randomly through tables
|
||||||
local set_nodes = {} -- all the nodes needed for sets
|
local set_nodes = {} -- all the nodes needed for sets
|
||||||
|
|
||||||
|
-- translation
|
||||||
|
local S = minetest.get_translator("ambience")
|
||||||
|
|
||||||
-- add set to list
|
-- add set to list
|
||||||
ambience.add_set = function(set_name, def)
|
ambience.add_set = function(set_name, def)
|
||||||
@ -307,8 +309,8 @@ end)
|
|||||||
|
|
||||||
-- sound volume command
|
-- sound volume command
|
||||||
minetest.register_chatcommand("svol", {
|
minetest.register_chatcommand("svol", {
|
||||||
params = "<svol>",
|
params = S("<svol>"),
|
||||||
description = "set sound volume (0.1 to 1.0)",
|
description = S("set sound volume (0.1 to 1.0)"),
|
||||||
privs = {},
|
privs = {},
|
||||||
|
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
@ -325,15 +327,15 @@ minetest.register_chatcommand("svol", {
|
|||||||
|
|
||||||
playing[name].svol = svol
|
playing[name].svol = svol
|
||||||
|
|
||||||
return true, "Sound volume set to " .. svol
|
return true, S("Sound volume set to @1", svol)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
-- music volume command (0 stops music)
|
-- music volume command (0 stops music)
|
||||||
minetest.register_chatcommand("mvol", {
|
minetest.register_chatcommand("mvol", {
|
||||||
params = "<mvol>",
|
params = S("<mvol>"),
|
||||||
description = "set music volume (0.1 to 1.0, 0 to stop music)",
|
description = S("set music volume (0.1 to 1.0, 0 to stop music)"),
|
||||||
privs = {},
|
privs = {},
|
||||||
|
|
||||||
func = function(name, param)
|
func = function(name, param)
|
||||||
@ -359,7 +361,7 @@ minetest.register_chatcommand("mvol", {
|
|||||||
|
|
||||||
playing[name].mvol = mvol
|
playing[name].mvol = mvol
|
||||||
|
|
||||||
return true, "Music volume set to " .. mvol
|
return true, S("Music volume set to @1", mvol)
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
|
7
locale/ambience.eo.tr
Normal file
7
locale/ambience.eo.tr
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# textdomain: ambience
|
||||||
|
<svol>=<slaŭtec>
|
||||||
|
set sound volume (0.1 to 1.0)=agordi sonlaŭtecon (0.1 ĝis 1.0)
|
||||||
|
Sound volume set to @1=Sonlaŭteco agordita al @1
|
||||||
|
<mvol>=<mlaŭtec>
|
||||||
|
set music volume (0.1 to 1.0, 0 to stop music)=agordi muziklaŭtecon (0.1 ĝis 1.0; malŝalti muzikon per 0)
|
||||||
|
Music volume set to @1=Muziklaŭteco agordita al @1
|
7
locale/template.txt
Normal file
7
locale/template.txt
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# textdomain: ambience
|
||||||
|
<svol>=
|
||||||
|
set sound volume (0.1 to 1.0)=
|
||||||
|
Sound volume set to @1=
|
||||||
|
<mvol>=
|
||||||
|
set music volume (0.1 to 1.0, 0 to stop music)=
|
||||||
|
Music volume set to @1=
|
Loading…
Reference in New Issue
Block a user