mirror of
https://github.com/minetest-mods/carpets.git
synced 2024-12-30 00:47:28 +01:00
Merge pull request #2 from louisroyer/mt5-translation
Add french translation
This commit is contained in:
commit
700d6a7028
@ -1,6 +1,6 @@
|
|||||||
# Carpets mod for minetest
|
# Carpets mod for minetest
|
||||||
|
|
||||||
This mod adds 15 colorized wool carpets to the minetest
|
This mod adds 15 colorized wool carpets to the minetest.
|
||||||
|
|
||||||
![](https://github.com/bell07/minetest-carpets/blob/master/screenshot.png)
|
![](https://github.com/bell07/minetest-carpets/blob/master/screenshot.png)
|
||||||
|
|
||||||
@ -10,6 +10,6 @@ License: LGPL-2.1+.
|
|||||||
|
|
||||||
The mod provides an api to register more carpets using template nodes
|
The mod provides an api to register more carpets using template nodes
|
||||||
Example:
|
Example:
|
||||||
```
|
```lua
|
||||||
carpets.register('default:dirt') -- registers carpet looks like dirt
|
carpets.register('default:dirt', {description=S('Carpet dirt')}) -- registers carpet looks like dirt
|
||||||
```
|
```
|
||||||
|
@ -1 +0,0 @@
|
|||||||
wool?
|
|
@ -1,8 +0,0 @@
|
|||||||
Carpets mod for minetest
|
|
||||||
|
|
||||||
This mod adds 15 colorized wool carpets to the minetest.
|
|
||||||
|
|
||||||
License: LGPL-2.1+
|
|
||||||
|
|
||||||
The mod provides an api to register more carpets using template nodes
|
|
||||||
Example: carpets.register('default:dirt') -- registers carpet looks like dirt
|
|
37
init.lua
37
init.lua
@ -1,25 +1,26 @@
|
|||||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||||
|
local S = minetest.get_translator("carpets")
|
||||||
dofile(modpath .. "/api.lua")
|
dofile(modpath .. "/api.lua")
|
||||||
|
|
||||||
if minetest.get_modpath("wool") then
|
if minetest.get_modpath("wool") then
|
||||||
local nodenames = {
|
local nodes = {
|
||||||
"wool:black",
|
{name="wool:black", description=S("Black Carpet")},
|
||||||
"wool:blue",
|
{name="wool:blue", description=S("Blue Carpet")},
|
||||||
"wool:brown",
|
{name="wool:brown", description=S("Brown Carpet")},
|
||||||
"wool:cyan",
|
{name="wool:cyan", description=S("Cyan Carpet")},
|
||||||
"wool:dark_green",
|
{name="wool:dark_green", description=S("Dark Green Carpet")},
|
||||||
"wool:dark_grey",
|
{name="wool:dark_grey", description=S("Dark Grey Carpet")},
|
||||||
"wool:green",
|
{name="wool:green", description=S("Green Carpet")},
|
||||||
"wool:grey",
|
{name="wool:grey", description=S("Grey Carpet")},
|
||||||
"wool:magenta",
|
{name="wool:magenta", description=S("Magenta Carpet")},
|
||||||
"wool:orange",
|
{name="wool:orange", description=S("Orange Carpet")},
|
||||||
"wool:pink",
|
{name="wool:pink", description=S("Pink Carpet")},
|
||||||
"wool:red",
|
{name="wool:red", description=S("Red Carpet")},
|
||||||
"wool:violet",
|
{name="wool:violet", description=S("Violet Carpet")},
|
||||||
"wool:white",
|
{name="wool:white", description=S("White Carpet")},
|
||||||
"wool:yellow",
|
{name="wool:yellow", description=S("Yellow Carpet")},
|
||||||
}
|
}
|
||||||
for _, nodename in ipairs(nodenames) do
|
for _, node in ipairs(nodes) do
|
||||||
carpets.register(nodename)
|
carpets.register(node.name, {description=node.description})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
20
locale/carpets.fr.tr
Normal file
20
locale/carpets.fr.tr
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# textdomain: carpets
|
||||||
|
|
||||||
|
|
||||||
|
### init.lua ###
|
||||||
|
|
||||||
|
Black Carpet=Tapis noir
|
||||||
|
Blue Carpet=Tapis bleu
|
||||||
|
Brown Carpet=Tapis marron
|
||||||
|
Cyan Carpet=Tapis cyan
|
||||||
|
Dark Green Carpet=Tapis vert foncé
|
||||||
|
Dark Grey Carpet=Tapis gris foncé
|
||||||
|
Green Carpet=Tapis vert
|
||||||
|
Grey Carpet=Tapis gris
|
||||||
|
Magenta Carpet=Tapis magenta
|
||||||
|
Orange Carpet=Tapis orange
|
||||||
|
Pink Carpet=Tapis rose
|
||||||
|
Red Carpet=Tapis rouge
|
||||||
|
Violet Carpet=Tapis violet
|
||||||
|
White Carpet=Tapis blanc
|
||||||
|
Yellow Carpet=Tapis jaune
|
20
locale/template.txt
Normal file
20
locale/template.txt
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
# textdomain: carpets
|
||||||
|
|
||||||
|
|
||||||
|
### init.lua ###
|
||||||
|
|
||||||
|
Black Carpet=
|
||||||
|
Blue Carpet=
|
||||||
|
Brown Carpet=
|
||||||
|
Cyan Carpet=
|
||||||
|
Dark Green Carpet=
|
||||||
|
Dark Grey Carpet=
|
||||||
|
Green Carpet=
|
||||||
|
Grey Carpet=
|
||||||
|
Magenta Carpet=
|
||||||
|
Orange Carpet=
|
||||||
|
Pink Carpet=
|
||||||
|
Red Carpet=
|
||||||
|
Violet Carpet=
|
||||||
|
White Carpet=
|
||||||
|
Yellow Carpet=
|
2
mod.conf
2
mod.conf
@ -1 +1,3 @@
|
|||||||
name = carpets
|
name = carpets
|
||||||
|
description = Adds 16 colorized wool carpets to the minetest.
|
||||||
|
optional_depends = wool
|
||||||
|
Loading…
Reference in New Issue
Block a user