Skip to content

Add french translation #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions crafting.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
--CaveRealms crafting.lua

-- Translation support
local S = minetest.get_translator("caverealms")

--CRAFT ITEMS--

--mycena powder
minetest.register_craftitem("caverealms:mycena_powder", {
description = "Mycena Powder",
description = S("Mycena Powder"),
inventory_image = "caverealms_mycena_powder.png",
})

Expand Down Expand Up @@ -50,4 +53,4 @@ minetest.register_craft({
{"caverealms:coal_dust","caverealms:coal_dust","caverealms:coal_dust"},
{"caverealms:coal_dust","caverealms:coal_dust","caverealms:coal_dust"}
}
})
})
1 change: 0 additions & 1 deletion depends.txt

This file was deleted.

1 change: 0 additions & 1 deletion description.txt

This file was deleted.

11 changes: 7 additions & 4 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ caverealms = {} --create a container for functions and constants
--grab a shorthand for the filepath of the mod
local modpath = minetest.get_modpath(minetest.get_current_modname())

-- Translation support
local S = minetest.get_translator("caverealms")

--load companion lua files
dofile(modpath.."/config.lua") --configuration file; holds various constants
dofile(modpath.."/crafting.lua") --crafting recipes
Expand All @@ -19,7 +22,7 @@ dofile(modpath.."/abms.lua") --abm definitions

if caverealms.config.falling_icicles == true then
dofile(modpath.."/falling_ice.lua") --complicated function for falling icicles
print("[caverealms] falling icicles enabled.")
print(S("[caverealms] falling icicles enabled."))
end

local FORTRESSES = caverealms.config.fortresses --true | Should fortresses spawn?
Expand Down Expand Up @@ -106,7 +109,7 @@ minetest.register_on_generated(function(minp, maxp, seed)
local y0 = minp.y
local z0 = minp.z

print ("[caverealms] chunk minp ("..x0.." "..y0.." "..z0..")") --tell people you are generating a chunk
print (S("[caverealms] chunk minp (@1 @2 @3)", x0, y0, z0)) --tell people you are generating a chunk

local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
local area = VoxelArea:new{MinEdge=emin, MaxEdge=emax}
Expand Down Expand Up @@ -413,6 +416,6 @@ minetest.register_on_generated(function(minp, maxp, seed)
vm:write_to_map(data)

local chugent = math.ceil((os.clock() - t1) * 1000) --grab how long it took
print ("[caverealms] "..chugent.." ms") --tell people how long
print (S("[caverealms] @1 ms", chugent)) --tell people how long
end)
print("[caverealms] loaded!")
print(S("[caverealms] loaded!"))
38 changes: 38 additions & 0 deletions locale/caverealms.fr.tr
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# textdomain: caverealms
[caverealms] falling icicles enabled.=[caverealms] chute de stalagtite activée.
[caverealms] chunk minp (@1 @2 @3)=[caverealms] génération du chunk (@1 @2 @3)
[caverealms] @1 ms=[caverealms] @1 ms
[caverealms] loaded!=[cavrealms] chargé !

Mycena Powder=Poudre de mycène
Glow Crystal=Cristal brillant
Glow Emerald=Émeraude brillante
Mese Crystal Block=Bloc de cristal de Mese
Glow Ruby=Rubis brillant
Glow Amethyst=Améthyste brillante
Glow Crystal Ore=Minerai de cristal brillant
Glow Emerald Ore=Minerai d’émeraude brillante
Glow Ruby Ore=Minerai de rubis brillant
Glow Amethyst Ore=Minerai d’améthyste brillante
Thin Ice=Glace fine
Salt Crystal=Cristal de sel
Glow Gem=Gemme brillante
Salt Gem=Gemme de sel
Stone Spike=Pointe de pierre
Upward pointing Icicle=Stalagmite
Downward pointing Icicle=Stalagtite
Cave Stone with Moss=Roche de caverne avec de la mousse
Cave Stone with Lichen=Roche de caverne avec du lichen
Cave Stone with Algae=Roche de caverne avec des algues
Cave Stone with Salt=Roche de caverne avec du sel
Hot Cobble=Pavé chaud
Glowing Obsidian=Obsidienne brillante
Hot Glow Obsidian=Obsidienne brillante chaude
Coal Dust=Poussière de charbon
Glow Worms=Vers luisants
Glowing Fungus=Champignon lumineux
Mycena Mushroom=Champignon Mycène
Giant Mushroom Stem=Souche de champignon géant
Giant Mushroom Cap=Chapeau de champignon géant
Giant Mushroom Gills=Branchie de champignon géant
Trying to rob the bank before it's opened, eh?=On essaie de voler la banque avant que ça soit ouvert, hein ?
3 changes: 3 additions & 0 deletions mod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name = caverealms
description = A mod for Minetest to add underground realms.
depends = default
Loading