add some (hackish!) attempt to make the po update routines scan .lua files...

...for strings, too

this is done by a) scanning for all .lua files additionally to all
.cfg files in FINDCFG and b) by adding the equivalent of a "commented
out" #textdomain DOMAIN declaration

next step: testing if it really does work as expected this should also
fix bug #15629 since the objectives are now *only* declared via some
lua magic
This commit is contained in:
Nils Kneuper 2010-03-15 20:22:28 +00:00
parent 25fc02a947
commit 0723abe7e3
28 changed files with 33 additions and 1 deletions

View file

@ -1,3 +1,4 @@
--! #textdomain wesnoth
return {

View file

@ -1,3 +1,5 @@
--! #textdomain wesnoth-low
local labels = {}
local wml_label

View file

@ -1,3 +1,5 @@
--! #textdomain wesnoth-low
local replace_map
replace_map = wesnoth.register_wml_action("replace_map",
function(cfg)

View file

@ -1,3 +1,5 @@
--! #textdomain wesnoth
local helper = {}
--! Interrupts the current execution and displays a chat message that looks like a WML error.

View file

@ -1,3 +1,5 @@
--! #textdomain wesnoth
local helper = wesnoth.require "lua/helper.lua"
local function trim(s)

View file

@ -1 +1,2 @@
find data/multiplayer -name '*.cfg' -print
find data/multiplayer -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/An_Orcish_Incursion -name '*.cfg' -print
find data/campaigns/An_Orcish_Incursion -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Descent_Into_Darkness -name '*.cfg' -print
find data/campaigns/Descent_Into_Darkness -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Delfadors_Memoirs -name '*.cfg' -print
find data/campaigns/Delfadors_Memoirs -name '*.lua' -print

View file

@ -1 +1,2 @@
find data -name '*.cfg' -print
find data -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Eastern_Invasion -name '*.cfg' -print
find data/campaigns/Eastern_Invasion -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Heir_To_The_Throne -name '*.cfg' -print
find data/campaigns/Heir_To_The_Throne -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Liberty -name '*.cfg' -print
find data/campaigns/Liberty -name '*.lua' -print

View file

@ -1 +1,2 @@
find data -name '*.cfg' -print
find data -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Legend_of_Wesmere -name '*.cfg' -print
find data/campaigns/Legend_of_Wesmere -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/multiplayer -name '*.cfg' -print
find data/multiplayer -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Northern_Rebirth -name '*.cfg' -print
find data/campaigns/Northern_Rebirth -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Sceptre_of_Fire -name '*.cfg' -print
find data/campaigns/Sceptre_of_Fire -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Son_Of_The_Black_Eye -name '*.cfg' -print
find data/campaigns/Son_Of_The_Black_Eye -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Two_Brothers -name '*.cfg' -print
find data/campaigns/Two_Brothers -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/test -name '*.cfg' -print
find data/test -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/The_Hammer_of_Thursagan -name '*.cfg' -print
find data/campaigns/The_Hammer_of_Thursagan -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/The_Rise_Of_Wesnoth -name '*.cfg' -print
find data/campaigns/The_Rise_Of_Wesnoth -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/The_South_Guard -name '*.cfg' -print
find data/campaigns/The_South_Guard -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/tutorial -name '*.cfg' -print
find data/campaigns/tutorial -name '*.lua' -print

View file

@ -1,2 +1,4 @@
find data/core/units -name '*.cfg' -print
find data/core/units -name '*.lua' -print
find data/campaigns/*/units -name '*.cfg' -print
find data/campaigns/*/units -name '*.lua' -print

View file

@ -1 +1,2 @@
find data/campaigns/Under_the_Burning_Suns -name '*.cfg' -print
find data/campaigns/Under_the_Burning_Suns -name '*.lua' -print

View file

@ -1,2 +1,2 @@
find data -name '*.cfg' -print
find data -name '*.lua' -print