Compare commits
10 Commits
5fd41f624b
...
0187aa4040
Author | SHA1 | Date | |
---|---|---|---|
|
0187aa4040 | ||
|
0d1a6136f3 | ||
|
a93ad50712 | ||
|
86bc5be618 | ||
|
107e35acba | ||
|
1da945ebeb | ||
|
692373f590 | ||
|
e91ea1f95d | ||
|
99e045004c | ||
|
88b2045e24 |
@ -112,7 +112,7 @@ See `mods/rp_music` for details.
|
||||
The game is free software, released under the AGPLv3 (or later).
|
||||
Media files are released under CC BY-SA 4.0 or CC0, with one exception.
|
||||
|
||||
Note that individual mods are also licensed additionally under
|
||||
Note that individual files may *also* licensed additionally under
|
||||
more permissive licenses (LGPLv2.1 in most cases, see below).
|
||||
|
||||
### Full text
|
||||
|
@ -37,7 +37,7 @@ loc.num = function(numbr)
|
||||
--~ a negative number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the minus sign and decimal point with whatever is appropriate for your language.
|
||||
str = S("−@1.@2", pre, post)
|
||||
else
|
||||
--~ a positive number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
--~ a non-negative number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
str = S("@1.@2", pre, post)
|
||||
end
|
||||
elseif negative then
|
||||
|
@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Luanti textdomain rp_localize x.x.x\n"
|
||||
"Report-Msgid-Bugs-To: Wuzzy@disroot.org\n"
|
||||
"POT-Creation-Date: 2024-11-26 15:16+0100\n"
|
||||
"POT-Creation-Date: 2024-11-28 13:57+0100\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@ -28,7 +28,7 @@ msgstr "-@1"
|
||||
msgid "−@1.@2"
|
||||
msgstr "-@1.@2"
|
||||
|
||||
#. ~ a positive number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#. ~ a non-negative number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#: mods/rp_localize/init.lua:41
|
||||
msgid "@1.@2"
|
||||
msgstr "@1.@2"
|
||||
|
@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Luanti textdomain rp_localize x.x.x\n"
|
||||
"Report-Msgid-Bugs-To: Wuzzy@disroot.org\n"
|
||||
"POT-Creation-Date: 2024-11-26 15:16+0100\n"
|
||||
"POT-Creation-Date: 2024-11-28 13:57+0100\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@ -28,7 +28,7 @@ msgstr "−@1"
|
||||
msgid "−@1.@2"
|
||||
msgstr "−@1,@2"
|
||||
|
||||
#. ~ a positive number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#. ~ a non-negative number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#: mods/rp_localize/init.lua:41
|
||||
msgid "@1.@2"
|
||||
msgstr "@1,@2"
|
||||
|
@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Luanti textdomain rp_localize x.x.x\n"
|
||||
"Report-Msgid-Bugs-To: Wuzzy@disroot.org\n"
|
||||
"POT-Creation-Date: 2024-11-26 15:16+0100\n"
|
||||
"POT-Creation-Date: 2024-11-28 13:57+0100\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@ -28,7 +28,7 @@ msgstr ""
|
||||
msgid "−@1.@2"
|
||||
msgstr ""
|
||||
|
||||
#. ~ a positive number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#. ~ a non-negative number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#: mods/rp_localize/init.lua:41
|
||||
msgid "@1.@2"
|
||||
msgstr ""
|
||||
|
@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Luanti textdomain rp_localize x.x.x\n"
|
||||
"Report-Msgid-Bugs-To: Wuzzy@disroot.org\n"
|
||||
"POT-Creation-Date: 2024-11-26 15:16+0100\n"
|
||||
"POT-Creation-Date: 2024-11-28 13:57+0100\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@ -28,7 +28,7 @@ msgstr ""
|
||||
msgid "−@1.@2"
|
||||
msgstr ""
|
||||
|
||||
#. ~ a positive number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#. ~ a non-negative number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#: mods/rp_localize/init.lua:41
|
||||
msgid "@1.@2"
|
||||
msgstr ""
|
||||
|
@ -28,7 +28,7 @@ msgstr "−@1"
|
||||
msgid "−@1.@2"
|
||||
msgstr "−@1,@2"
|
||||
|
||||
#. ~ a positive number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#. ~ a non-negative number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#: mods/rp_localize/init.lua:41
|
||||
msgid "@1.@2"
|
||||
msgstr "@1,@2"
|
||||
|
@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Luanti textdomain rp_localize x.x.x\n"
|
||||
"Report-Msgid-Bugs-To: Wuzzy@disroot.org\n"
|
||||
"POT-Creation-Date: 2024-11-26 15:16+0100\n"
|
||||
"POT-Creation-Date: 2024-11-28 13:57+0100\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@ -28,7 +28,7 @@ msgstr ""
|
||||
msgid "−@1.@2"
|
||||
msgstr ""
|
||||
|
||||
#. ~ a positive number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#. ~ a non-negative number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#: mods/rp_localize/init.lua:41
|
||||
msgid "@1.@2"
|
||||
msgstr ""
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Repixture\n"
|
||||
"Report-Msgid-Bugs-To: Wuzzy@disroot.org\n"
|
||||
"POT-Creation-Date: 2024-11-26 15:16+0100\n"
|
||||
"POT-Creation-Date: 2024-11-28 13:57+0100\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"
|
||||
@ -32,7 +32,7 @@ msgstr ""
|
||||
msgid "−@1.@2"
|
||||
msgstr ""
|
||||
|
||||
#. ~ a positive number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#. ~ a non-negative number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#: mods/rp_localize/init.lua:41
|
||||
msgid "@1.@2"
|
||||
msgstr ""
|
@ -2,7 +2,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Luanti textdomain rp_localize x.x.x\n"
|
||||
"Report-Msgid-Bugs-To: Wuzzy@disroot.org\n"
|
||||
"POT-Creation-Date: 2024-11-26 15:16+0100\n"
|
||||
"POT-Creation-Date: 2024-11-28 13:57+0100\n"
|
||||
"PO-Revision-Date: \n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
@ -28,7 +28,7 @@ msgstr "-@1"
|
||||
msgid "−@1.@2"
|
||||
msgstr "-@1,@2"
|
||||
|
||||
#. ~ a positive number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#. ~ a non-negative number with some decimal places. @1 is the part before the decimal point, @2 is the part after it. Replace the decimal point with whatever is appropriate for your language.
|
||||
#: mods/rp_localize/init.lua:41
|
||||
msgid "@1.@2"
|
||||
msgstr "@1,@2"
|
||||
|
@ -63,9 +63,8 @@ minetest.register_craftitem(
|
||||
"rp_mobs_mobs:pork_raw",
|
||||
{
|
||||
description = S("Raw Porkchop"),
|
||||
_tt_food = true,
|
||||
_tt_food_hp = 4,
|
||||
_tt_food_satiation = 30,
|
||||
_rp_hunger_food = 4,
|
||||
_rp_hunger_sat = 30,
|
||||
inventory_image = "mobs_pork_raw.png",
|
||||
groups = { food = 2 },
|
||||
on_use = minetest.item_eat({hp = 4, sat = 30}),
|
||||
@ -77,9 +76,8 @@ minetest.register_craftitem(
|
||||
"rp_mobs_mobs:pork",
|
||||
{
|
||||
description = S("Cooked Porkchop"),
|
||||
_tt_food = true,
|
||||
_tt_food_hp = 8,
|
||||
_tt_food_satiation = 50,
|
||||
_rp_hunger_food = 8,
|
||||
_rp_hunger_sat = 50,
|
||||
inventory_image = "mobs_pork_cooked.png",
|
||||
groups = { food = 2 },
|
||||
on_use = minetest.item_eat({hp = 8, sat = 50}),
|
||||
|
@ -80,7 +80,13 @@ tt.register_snippet(function(itemstring)
|
||||
if def._tt_food then
|
||||
desc = S("Food item")
|
||||
if def._tt_food_hp then
|
||||
local msg = PS("+@1 food point", "+@1 food points", def._tt_food_hp, def._tt_food_hp)
|
||||
local msg
|
||||
if PS then
|
||||
msg = PS("+@1 food point", "+@1 food points", def._tt_food_hp, def._tt_food_hp)
|
||||
else
|
||||
-- fallback when plural forms are unavailable
|
||||
msg = S("+@1 food points", def._tt_food_hp)
|
||||
end
|
||||
desc = desc .. "\n" .. msg
|
||||
end
|
||||
end
|
||||
|
@ -1,6 +1,12 @@
|
||||
#!/usr/bin/env python3
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
##########################################################################
|
||||
##### PUBLIC DOMAIN ######################################################
|
||||
# This script is released into the public domain via the CC0 dedication.
|
||||
# See <https://creativecommons.org/publicdomain/zero/1.0/> for details.
|
||||
##########################################################################
|
||||
|
||||
##########################################################################
|
||||
##### ABOUT THIS SCRIPT ##################################################
|
||||
# This script updates the translation template files (*.pot) or
|
||||
@ -21,6 +27,8 @@
|
||||
MSGID_BUGS_ADDRESS = "Wuzzy@disroot.org"
|
||||
# name of the package
|
||||
PACKAGE_NAME = "Repixture"
|
||||
# version of the package (optional)
|
||||
PACKAGE_VERSION = None
|
||||
|
||||
import os
|
||||
import re
|
||||
@ -63,7 +71,11 @@ def invoke_xgettext(template_file, mod_folder, modname):
|
||||
|
||||
lua_search_string = " ".join(lua_files)
|
||||
|
||||
command = "xgettext -L lua -kS -kNS -kFS -kNFS -kPS:1,2 -kcore.translate:1c,2 -kcore.translate_n:1c,2,3 -d '"+modname+"' --add-comments='~' -o '"+template_file+"' --from-code=UTF-8 --msgid-bugs-address='"+MSGID_BUGS_ADDRESS+"' --package-name='"+PACKAGE_NAME+"' "+lua_search_string
|
||||
package_string = "--package-name='"+PACKAGE_NAME+"'"
|
||||
if PACKAGE_VERSION:
|
||||
package_string += " --package-version='"+PACKAGE_VERSION+"'"
|
||||
|
||||
command = "xgettext -L lua -kS -kNS -kFS -kNFS -kPS:1,2 -kcore.translate:1c,2 -kcore.translate_n:1c,2,3 -d '"+modname+"' --add-comments='~' -o '"+template_file+"' --from-code=UTF-8 --msgid-bugs-address='"+MSGID_BUGS_ADDRESS+"' "+package_string+" "+lua_search_string
|
||||
|
||||
return_value = os.system(command)
|
||||
if return_value != 0:
|
||||
|
Loading…
x
Reference in New Issue
Block a user