Compare commits

...

10 Commits

Author SHA1 Message Date
Niklp
a2d5d22008
Add luacheck, repo cleanup (#6)
Some checks failed
luacheck / luacheck (push) Has been cancelled
2023-08-05 13:39:51 +02:00
FaceDeer
032f2774e7 switch to client-side translation 2020-02-28 14:57:25 -07:00
FaceDeer
cbc133fb18 switch to markdown 2018-05-27 12:29:54 -06:00
FaceDeer
b6503cff90 Merge pull request #4 from afmachado/master
Translation to Brazilian Portuguese
2017-08-30 09:15:21 -06:00
Free Educational Software for Mobile Devices - Translations to Brazilian Portuguese
61b5d03040 Rename pt.po to pt_br.po 2017-07-26 17:28:43 -03:00
Free Educational Software for Mobile Devices - Translations to Brazilian Portuguese
70dc5f6311 Translation to Brazilian Portuguese
Translation to Brazilian Portuguese
2017-06-29 13:02:12 -03:00
FaceDeer
a190dcfe14 Merge pull request #2 from CarlBarr/master
Add the translation to Spanish
2017-04-21 16:59:58 -06:00
Carlos Barraza
33199830fb Agrege la traduccion al español 2017-04-21 19:48:25 -03:00
FaceDeer
9be98b854e Merge pull request #1 from Thomas--S/patch-1
Change register_alias to register_alias_force
2017-03-26 11:30:02 -06:00
Thomas--S
366a8b5fe0 Change register_alias to register_alias_force
Avoids having three different nodes of straw when having castle, darkage and cottages installed
2017-03-26 18:39:07 +02:00
18 changed files with 47 additions and 168 deletions

17
.gitattributes vendored
View File

@ -1,17 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
* text=auto

10
.github/workflows/luacheck.yml vendored Normal file
View File

@ -0,0 +1,10 @@
name: luacheck
on: [push, pull_request]
jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Luacheck
uses: lunarmodules/luacheck@master

47
.gitignore vendored
View File

@ -1,47 +0,0 @@
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk
# =========================
# Operating System Files
# =========================
# OSX
# =========================
.DS_Store
.AppleDouble
.LSOverride
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

5
.luacheckrc Normal file
View File

@ -0,0 +1,5 @@
read_globals = {
"minetest",
"default",
"ItemStack"
}

View File

@ -1,14 +1,9 @@
=-=-=-=-=-=-=-=-=-=
## Castle farm products
Castles Mod
by: Philipbenr And DanDuncombe
=-=-=-=-=-=-=-=-=-=
B: Philipbenr, DanDuncombe, FaceDeer
Licence: MIT
see: LICENSE
=-=-=-=-=-=-=-=-=-=
Contains farm products useful for decorating a castle:
@ -16,5 +11,3 @@ Contains farm products useful for decorating a castle:
* Hide wall and floor coverings
* Bound straw bale
* Straw training dummy
=-=-=-=-=-=-=-=-=-=

View File

@ -1,6 +0,0 @@
default
farming
intllib?
wool
bucket
ropes?

View File

@ -1 +0,0 @@
Contains farming products useful for decorating a castle

View File

@ -1,6 +1,4 @@
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local S = minetest.get_translator(minetest.get_current_modname())
minetest.register_alias("castle:hides", "castle_farming:hides")

View File

@ -1,45 +0,0 @@
-- Fallback functions for when `intllib` is not installed.
-- Code released under Unlicense <http://unlicense.org>.
-- Get the latest version of this file at:
-- https://raw.githubusercontent.com/minetest-mods/intllib/master/lib/intllib.lua
local function format(str, ...)
local args = { ... }
local function repl(escape, open, num, close)
if escape == "" then
local replacement = tostring(args[tonumber(num)])
if open == "" then
replacement = replacement..close
end
return replacement
else
return "@"..open..num..close
end
end
return (str:gsub("(@?)@(%(?)(%d+)(%)?)", repl))
end
local gettext, ngettext
if minetest.get_modpath("intllib") then
if intllib.make_gettext_pair then
-- New method using gettext.
gettext, ngettext = intllib.make_gettext_pair()
else
-- Old method using text files.
gettext = intllib.Getter()
end
end
-- Fill in missing functions.
gettext = gettext or function(msgid, ...)
return format(msgid, ...)
end
ngettext = ngettext or function(msgid, msgid_plural, n, ...)
return format(n==1 and msgid or msgid_plural, ...)
end
return gettext, ngettext

View File

@ -0,0 +1,4 @@
# textdomain: castle_farming
Hides=Escondite
Bound Straw=Paja amarrada
Training Dummy=Maniqui de Entrenamiento

View File

@ -0,0 +1,4 @@
# textdomain: castle_farming
Hides=Esconde-se
Bound Straw=Palha Amarrada
Training Dummy=Vaca Parada de Madeira (para Laço)

View File

@ -1,30 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-27 00:59-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: hides.lua:9
msgid "Hides"
msgstr ""
#: straw.lua:13
msgid "Bound Straw"
msgstr ""
#: straw.lua:22
msgid "Training Dummy"
msgstr ""

4
locale/template.txt Normal file
View File

@ -0,0 +1,4 @@
# textdomain: castle_farming
Hides=
Bound Straw=
Training Dummy=

View File

@ -1 +1,4 @@
name = castle_farming
depends = default, farming, wool, bucket
optional_depends = ropes
description = Contains farming products useful for decorating a castle

View File

@ -1,13 +1,11 @@
minetest.register_alias("cottages:straw", "farming:straw")
minetest.register_alias("castle:straw", "farming:straw")
minetest.register_alias("darkage:straw", "farming:straw")
minetest.register_alias("cottages:straw_bale", "castle_farming:bound_straw")
minetest.register_alias("darkage:straw_bale", "castle_farming:bound_straw")
minetest.register_alias("castle:bound_straw", "castle_farming:bound_straw")
minetest.register_alias_force("cottages:straw", "farming:straw")
minetest.register_alias_force("castle:straw", "farming:straw")
minetest.register_alias_force("darkage:straw", "farming:straw")
minetest.register_alias_force("cottages:straw_bale", "castle_farming:bound_straw")
minetest.register_alias_force("darkage:straw_bale", "castle_farming:bound_straw")
minetest.register_alias_force("castle:bound_straw", "castle_farming:bound_straw")
-- internationalization boilerplate
local MP = minetest.get_modpath(minetest.get_current_modname())
local S, NS = dofile(MP.."/intllib.lua")
local S = minetest.get_translator(minetest.get_current_modname())
minetest.register_node("castle_farming:bound_straw", {
description = S("Bound Straw"),
@ -51,7 +49,11 @@ minetest.register_craft({
minetest.register_craft({
output = "castle_farming:bound_straw 6",
type = "shapeless",
recipe = {"farming:straw", "farming:straw", "farming:straw", "farming:straw", "farming:straw", "farming:straw", "ropes:ropesegment",}
recipe = {
"farming:straw", "farming:straw", "farming:straw",
"farming:straw", "farming:straw", "farming:straw",
"ropes:ropesegment"
}
})
minetest.register_craft({
@ -72,4 +74,4 @@ minetest.register_craft({
type = "fuel",
recipe = "castle_farming:straw_dummy",
burntime = 10*2 + 4*stick_burn_time
})
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 618 B

After

Width:  |  Height:  |  Size: 614 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 756 B

After

Width:  |  Height:  |  Size: 732 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 803 B

After

Width:  |  Height:  |  Size: 798 B