Commit Graph

43 Commits

Author SHA1 Message Date
Zweihorn f2885bb57d include minetest.get_translator / correct deviations 2019-05-13 20:33:33 +02:00
Zweihorn 2d8d7f4b28 Introducing 'game_intllib' and S() for gettext
The new branch 'game_intllib' is aiming at MT internationalization.

Please note the about 400 lines of code changed in the Lua code of the
existing mods by addition of a S("string") enclosure for GNU gettext.
This is in compliance to the GNU gettext toolchain procedures.

'game_intllib' is an attempt at providing internationalization support
for the default game mods specifically. Hopefully, we may delay the
issue of an optimal translation for the MT server into the future.

There is no requirement to include the 'game_intllib' mod into the
game code basis if an alternative solution for a translation of
user-facing strings of the default mods inside the game is in place.
However, the 'game_intllib' and tools may be helpful in assisting the
task of translation of user-facing strings of the default mods prior
a new release of the game and after introduction of new game code.

Please consider to look at my contribution in the MT forum:
https://forum.minetest.net/viewtopic.php?f=11&t=4929&p=346791#p346791

This is up to deliberations of the MT developers and the MT game devs.

*****************

This is the new branch 'game_intllib' comprising the following:

  - changed:   README.txt
  - changed:   mods/beds/beds.lua
  - changed:   mods/beds/depends.txt
  - new file:  mods/beds/gintllib.lua
  - changed:   mods/binoculars/depends.txt
  - new file:  mods/binoculars/gintllib.lua
  - changed:   mods/binoculars/init.lua
  - changed:   mods/boats/depends.txt
  - new file:  mods/boats/gintllib.lua
  - changed:   mods/boats/init.lua
  - changed:   mods/bones/depends.txt
  - new file:  mods/bones/gintllib.lua
  - changed:   mods/bones/init.lua
  - changed:   mods/bucket/depends.txt
  - new file:  mods/bucket/gintllib.lua
  - changed:   mods/bucket/init.lua
  - changed:   mods/butterflies/depends.txt
  - new file:  mods/butterflies/gintllib.lua
  - changed:   mods/butterflies/init.lua
  - changed:   mods/carts/cart_entity.lua
  - changed:   mods/carts/depends.txt
  - new file:  mods/carts/gintllib.lua
  - changed:   mods/carts/rails.lua
  - changed:   mods/creative/depends.txt
  - new file:  mods/creative/gintllib.lua
  - changed:   mods/creative/init.lua
  - changed:   mods/creative/inventory.lua
  - changed:   mods/default/chests.lua
  - changed:   mods/default/craftitems.lua
  - changed:   mods/default/depends.txt
  - changed:   mods/default/furnace.lua
  - new file:  mods/default/gintllib.lua
  - changed:   mods/default/nodes.lua
  - changed:   mods/default/tools.lua
  - changed:   mods/default/torch.lua
  - changed:   mods/default/trees.lua
  - changed:   mods/doors/depends.txt
  - new file:  mods/doors/gintllib.lua
  - changed:   mods/doors/init.lua
  - changed:   mods/dye/depends.txt
  - new file:  mods/dye/gintllib.lua
  - changed:   mods/dye/init.lua
  - changed:   mods/farming/api.lua
  - changed:   mods/farming/depends.txt
  - new file:  mods/farming/gintllib.lua
  - changed:   mods/farming/hoes.lua
  - changed:   mods/farming/init.lua
  - changed:   mods/farming/nodes.lua
  - changed:   mods/fire/depends.txt
  - new file:  mods/fire/gintllib.lua
  - changed:   mods/fire/init.lua
  - changed:   mods/fireflies/depends.txt
  - new file:  mods/fireflies/gintllib.lua
  - changed:   mods/fireflies/init.lua
  - changed:   mods/flowers/depends.txt
  - new file:  mods/flowers/gintllib.lua
  - changed:   mods/flowers/init.lua
  - new file:  mods/game_commands/depends.txt
  - new file:  mods/game_commands/gintllib.lua
  - changed:   mods/game_commands/init.lua
  - new file:  mods/game_intllib/LICENSE.md
  - new file:  mods/game_intllib/README.md
  - new file:  mods/game_intllib/description.txt
  - new file:  mods/game_intllib/doc/developer.md
  - new file:  mods/game_intllib/doc/localefile.md
  - new file:  mods/game_intllib/doc/translator.md
  - new file:  mods/game_intllib/gettext.lua
  - new file:  mods/game_intllib/init.lua
  - new file:  mods/game_intllib/intltest/README.md
  - new file:  mods/game_intllib/intltest/depends.txt
  - new file:  mods/game_intllib/intltest/gintllib.lua
  - new file:  mods/game_intllib/intltest/init.lua
  - new file:  mods/game_intllib/intltest/locale/es.po
  - new file:  mods/game_intllib/intltest/locale/template.pot
  - new file:  mods/game_intllib/lib.lua
  - new file:  mods/game_intllib/lib/gintllib.lua
  - new file:  mods/game_intllib/license.txt
  - new file:  mods/game_intllib/locale/de.po
  - new file:  mods/game_intllib/locale/template.pot
  - new file:  mods/game_intllib/tools/findtext.lua
  - new file:  mods/game_intllib/tools/updatetext.lua
  - new file:  mods/game_intllib/tools/xgettext.bat
  - new file:  mods/game_intllib/tools/xgettext.sh
  - changed:   mods/map/depends.txt
  - new file:  mods/map/gintllib.lua
  - changed:   mods/map/init.lua
  - new file:  mods/screwdriver/depends.txt
  - new file:  mods/screwdriver/gintllib.lua
  - changed:   mods/screwdriver/init.lua
  - new file:  mods/sethome/depends.txt
  - new file:  mods/sethome/gintllib.lua
  - changed:   mods/sethome/init.lua
  - changed:   mods/stairs/depends.txt
  - new file:  mods/stairs/gintllib.lua
  - changed:   mods/stairs/init.lua
  - changed:   mods/tnt/depends.txt
  - new file:  mods/tnt/gintllib.lua
  - changed:   mods/tnt/init.lua
  - changed:   mods/vessels/depends.txt
  - new file:  mods/vessels/gintllib.lua
  - changed:   mods/vessels/init.lua
  - changed:   mods/walls/depends.txt
  - new file:  mods/walls/gintllib.lua
  - changed:   mods/walls/init.lua
  - changed:   mods/wool/depends.txt
  - new file:  mods/wool/gintllib.lua
  - changed:   mods/wool/init.lua
  - changed:   mods/xpanes/depends.txt
  - new file:  mods/xpanes/gintllib.lua
  - changed:   mods/xpanes/init.lua

*****************

The 'game_intllib' internal mod is specifially aimed at default mods
internal to the game in the 'minetest_game' folder.

The original 'intllib' is an attempt at providing internationalization
support for external mods (something Minetest currently lacks).

IMHO the 'intllib' mod is a reliable and helpful tool and I have found
it to be both robust and compliant to the GNU gettext tool chain.

I would like to thank all of the MT developers and certainly @kaeza.
[snoopy (Zweihorn)] 2019-05-13
2019-05-13 00:53:58 +02:00
Paramat 689f0c5478
README.txt files: Change 'LGPL 2.1' to 'LGPLv2.1+'. Remove 'WTFPL' 2018-08-22 01:23:00 +01:00
SmallJoker 255031fc91 Replace deprecated function calls 2018-07-01 20:44:03 +01:00
DTA7 a2d7678ffd Add nil checks for placer 2017-11-15 23:16:28 +00:00
paramat 3ae382c913 River water renewability: Add comments to nodes.lua and bucket mod 2017-11-11 21:37:27 +00:00
Fernando Carmona Varo 5b2a896180 Bucket: Allow buckets to trigger the on_punch of entities and nodes
The purpose of this is to allow mods to be able to interact (e.g. fill up)
an empty bucket when it is used to punch a node that's not a liquid source
or when punching a custom entity (e.g. milking a cow).
2016-11-02 12:39:56 +00:00
paramat 7b30c26a45 Bucket: Add optional 'force-renew' bool to registration
River water needs to be 'liquid_renewable = false' to avoid a mess caused by
spreading of sources, however picking it up with a bucket then creates
a hole in the river. Allow a 'force-renew' of the source node if it has a
source neighbour.
2016-10-12 04:11:36 +01:00
paramat 6171fb43f0 Change WTFPL to MIT (part 3)
Relicense WTFPL media to CC BY-SA 3.0.
Various corrections and edits.
2016-09-07 04:44:53 +01:00
paramat 7d70d25eeb Licenses: Change WTFPL to MIT (part 2)
Add license.txt files.
Update and improve README.txt files.
Corrections to part 1.
2016-09-06 04:45:23 +01:00
Tim 76211624ac Use minetest instead of core namespace, discourage via luacheck 2016-08-09 03:47:27 +01:00
Tim 4473627de0 Remove unused and clean up missused variable-value assignments.
* Unused variables
* Unused values (assigned to variables, but overwritten before use)
* Defining already defined variables instead of reassigning to them.
2016-07-15 21:58:49 +01:00
Tim 5644ab4bd3 Bucket: Allow liquid placed against unknown nodes instead of aborting abnormally 2016-07-07 19:22:13 +01:00
Tim fe450b4144 Bucket: Prevent crashing when placing liquid against a buildable node into an unknown node 2016-07-07 19:21:46 +01:00
tenplus1 21b457c9e1 Bucket: Correct liquid placing in protected areas
- Placing liquid inside a protected area no longer returns an empty bucket
- Remove on_place function, tidy up code, return proper itemstack
- Shorten code (changes from HybridDog/patch-35)
2016-07-05 18:15:35 +01:00
paramat 8e51f318b3 Rename to Minetest Game
Rename in game.conf and documentation
Update game_api.txt documentation for bucket API and tree functions
Fix tab, space and comment formatting in game_api.txt
Rename in mod READMEs
2015-09-30 23:33:12 +01:00
Wouters Dorian 0004c5e637 Better bucket textures 2015-09-14 06:58:19 +02:00
paramat c4fb5bd385 Bucket: Register river water bucket, add texture
Add groups to registration and use water_bucket group
2015-06-14 01:18:14 +01:00
ShadowNinja 794a436d86 Fix bucket code indentation 2015-03-07 21:26:55 -05:00
tenplus1 df35360372 Make empty buckets stackable 2015-02-28 22:15:46 +01:00
PilzAdam 957f94534b Remove remains of finite liquids from bucket mod
This reverts commit 79856c914d.
2014-12-06 20:58:03 +01:00
Diego Martínez e707ba3cf1 Fix leaked globals. 2014-11-29 18:03:18 +01:00
Zefram 263b6f2fdf Show filled buckets in creative inventory 2014-07-24 13:41:17 +02:00
David Gumberg e106fd51ca Compress all textures losslessly using optipng and advpng 2014-07-05 16:06:00 +02:00
ShadowNinja 1a9362afed Prevent bucket from replacing unloaded nodes 2013-12-22 18:51:28 -05:00
ShadowNinja 4ea001fa37 Shorten lines in bucket and support nil placers 2013-12-14 14:39:48 -05:00
Novatux e8bcfdcd0e Check for area protection in buckets 2013-12-14 13:51:07 -05:00
Zeg9 9bbde070a1 Call on_rightclick from buckets 2013-07-11 02:30:47 +02:00
Sfan5 c2ce3d032e Pngcrush all Textures 2013-05-25 16:20:35 +02:00
PilzAdam 31a74ede18 Replace minetest.env: with minetest. 2013-05-25 00:40:03 +02:00
PilzAdam fcf0816fa8 Move all common mods back to minetest_game 2013-05-18 16:05:16 +02:00
PilzAdam d6ec56811b Use common mods 2013-03-21 18:44:36 +01:00
PilzAdam 4e20ed6153 Add a description to buckets and use rightclick to place the liquids 2013-03-19 20:06:53 +01:00
ShadowNinja 79856c914d Allow buckets to pick up partially full liquid nodes when liquid_finite is enabled. 2013-03-19 20:04:50 +01:00
hdastwb 648a11263b Use replacements in furnace and replace lava bucket with empty bucket when used as fuel 2013-03-19 19:30:06 +01:00
PilzAdam 68020d2e93 Dont allow the bucket to replace nodes that are not buildable to 2012-11-09 15:25:21 +01:00
PilzAdam 30d582296b Follow the naming convention and make the first letter Bucket capitalized 2012-11-06 20:38:40 +01:00
khonkhortisan a399f648e7 Emtpy bucket
-> Empty bucket
2012-10-09 09:05:00 -07:00
Perttu Ahola cd4e86773f Add description to bucket to make it show in creative inventory 2012-07-25 18:28:21 +03:00
sfan5 8c8b4b005e Fix Lava Bucket as Fuel 2012-07-20 08:26:05 +02:00
Perttu Ahola 4e996ffa35 Update license in all READMEs (forgot to do that) 2012-06-09 13:33:05 +03:00
Perttu Ahola 1d4ae73e0d Move media author information to README.txt in mod directories 2012-03-30 11:15:01 +03:00
Perttu Ahola f9ab8cd018 Add initial content 2012-03-26 22:50:35 +03:00