I18N fixes.

* Make xgettext not output line numbers
* Remove line numbers from existing catalogs.
* Re-add missing localizations.
This commit is contained in:
Diego Martínez
2017-01-30 21:37:32 -03:00
parent 6cadc7cf26
commit ac9927d035
11 changed files with 2945 additions and 3080 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -11,6 +11,7 @@ xgettext --from-code=UTF-8 \
--keyword=NS:1,2 \ --keyword=NS:1,2 \
--keyword=N_ \ --keyword=N_ \
--add-comments='Translators:' \ --add-comments='Translators:' \
--add-location=file \
-o locale/template.pot \ -o locale/template.pot \
$(find .. -name '*.lua') $(find .. -name '*.lua')

@ -9,7 +9,7 @@ local armchair_cbox = {
} }
minetest.register_node("lrfurn:armchair", { minetest.register_node("lrfurn:armchair", {
description = "Armchair", description = S("Armchair"),
drawtype = "mesh", drawtype = "mesh",
mesh = "lrfurn_armchair.obj", mesh = "lrfurn_armchair.obj",
tiles = { tiles = {

@ -7,7 +7,7 @@ local longsofa_cbox = {
} }
minetest.register_node("lrfurn:longsofa", { minetest.register_node("lrfurn:longsofa", {
description = "Long Sofa", description = S("Long Sofa"),
drawtype = "mesh", drawtype = "mesh",
mesh = "lrfurn_sofa_long.obj", mesh = "lrfurn_sofa_long.obj",
tiles = { tiles = {
@ -32,7 +32,7 @@ minetest.register_node("lrfurn:longsofa", {
if lrfurn.check_forward(pos, fdir, true, placer) then if lrfurn.check_forward(pos, fdir, true, placer) then
itemstack:take_item() itemstack:take_item()
else else
minetest.chat_send_player(placer:get_player_name(), "No room to place the sofa!") minetest.chat_send_player(placer:get_player_name(), S("No room to place the sofa!"))
minetest.set_node(pos, { name = "air" }) minetest.set_node(pos, { name = "air" })
end end
return itemstack return itemstack

@ -7,7 +7,7 @@ local sofa_cbox = {
} }
minetest.register_node("lrfurn:sofa", { minetest.register_node("lrfurn:sofa", {
description = "Sofa", description = S("Sofa"),
drawtype = "mesh", drawtype = "mesh",
mesh = "lrfurn_sofa_short.obj", mesh = "lrfurn_sofa_short.obj",
tiles = { tiles = {
@ -32,7 +32,7 @@ minetest.register_node("lrfurn:sofa", {
if lrfurn.check_forward(pos, fdir, false, placer) then if lrfurn.check_forward(pos, fdir, false, placer) then
itemstack:take_item() itemstack:take_item()
else else
minetest.chat_send_player(placer:get_player_name(), "No room to place the sofa!") minetest.chat_send_player(placer:get_player_name(), S("No room to place the sofa!"))
minetest.set_node(pos, { name = "air" }) minetest.set_node(pos, { name = "air" })
end end
return itemstack return itemstack