mirror of
https://github.com/minetest-mods/carpets.git
synced 2024-12-30 00:47:28 +01:00
Add french translation
Update api obsolete documentation in README.md.
This commit is contained in:
parent
b515f322ee
commit
7a7b915c66
@ -1,6 +1,6 @@
|
||||
# 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)
|
||||
|
||||
@ -10,6 +10,6 @@ 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
|
||||
```lua
|
||||
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 S = minetest.get_translator("carpets")
|
||||
dofile(modpath .. "/api.lua")
|
||||
|
||||
if minetest.get_modpath("wool") then
|
||||
local nodenames = {
|
||||
"wool:black",
|
||||
"wool:blue",
|
||||
"wool:brown",
|
||||
"wool:cyan",
|
||||
"wool:dark_green",
|
||||
"wool:dark_grey",
|
||||
"wool:green",
|
||||
"wool:grey",
|
||||
"wool:magenta",
|
||||
"wool:orange",
|
||||
"wool:pink",
|
||||
"wool:red",
|
||||
"wool:violet",
|
||||
"wool:white",
|
||||
"wool:yellow",
|
||||
local nodes = {
|
||||
{name="wool:black", description=S("Black Carpet")},
|
||||
{name="wool:blue", description=S("Blue Carpet")},
|
||||
{name="wool:brown", description=S("Brown Carpet")},
|
||||
{name="wool:cyan", description=S("Cyan Carpet")},
|
||||
{name="wool:dark_green", description=S("Dark Green Carpet")},
|
||||
{name="wool:dark_grey", description=S("Dark Grey Carpet")},
|
||||
{name="wool:green", description=S("Green Carpet")},
|
||||
{name="wool:grey", description=S("Grey Carpet")},
|
||||
{name="wool:magenta", description=S("Magenta Carpet")},
|
||||
{name="wool:orange", description=S("Orange Carpet")},
|
||||
{name="wool:pink", description=S("Pink Carpet")},
|
||||
{name="wool:red", description=S("Red Carpet")},
|
||||
{name="wool:violet", description=S("Violet Carpet")},
|
||||
{name="wool:white", description=S("White Carpet")},
|
||||
{name="wool:yellow", description=S("Yellow Carpet")},
|
||||
}
|
||||
for _, nodename in ipairs(nodenames) do
|
||||
carpets.register(nodename)
|
||||
for _, node in ipairs(nodes) do
|
||||
carpets.register(node.name, {description=node.description})
|
||||
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
|
||||
description = Adds 16 colorized wool carpets to the minetest.
|
||||
optional_depends = wool
|
||||
|
Loading…
Reference in New Issue
Block a user