Skip to content

Commit af33928

Browse files
committed
Added help file SQL generation to install process
1 parent d2d1242 commit af33928

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

build_files_list.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ table.sort (files)
4444

4545
fo = assert (io.open ("all_files_list.txt", "w"))
4646
for _, name in ipairs (files) do
47+
name = string.gsub (name, "^C:\\source\\mushclient\\", "/cygdrive/c/source/mushclient/")
48+
name = string.gsub (name, "\\", "/")
4749
fo:write (name .. "\n")
4850
end -- for
4951

localize.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
cd \source\mushclient\
22

3+
echo Converting documentation file ...
4+
lua5.1.exe generate_documentation.lua
5+
6+
echo Creating documentation help.db file ...
7+
del help.db
8+
sqlite3 help.db < documentation_fixed.sql
9+
10+
echo Building list of files to process ...
311
lua5.1.exe build_files_list.lua
412

13+
echo Generating internationalization files ...
514
xgettext -kTMessageBox -kTranslate -kTranslate_NoOp -o mushclient_static.po --files-from=all_files_list.txt
615
xgettext -kTFormat -o mushclient_formatted.po --files-from=all_files_list.txt
716
xgettext -kTranslateTime -o mushclient_time.po --files-from=all_files_list.txt
817
xgettext -kTranslateHeading -o mushclient_heading.po --files-from=all_files_list.txt
918

19+
echo Running localize.lua ...
1020
lua5.1.exe localize.lua

0 commit comments

Comments
 (0)