Skip to content

Commit

Permalink
Added help file SQL generation to install process
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgammon committed Jun 14, 2011
1 parent d2d1242 commit af33928
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build_files_list.lua
Expand Up @@ -44,6 +44,8 @@ table.sort (files)

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

Expand Down
10 changes: 10 additions & 0 deletions localize.bat
@@ -1,10 +1,20 @@
cd \source\mushclient\

echo Converting documentation file ...
lua5.1.exe generate_documentation.lua

echo Creating documentation help.db file ...
del help.db
sqlite3 help.db < documentation_fixed.sql

echo Building list of files to process ...
lua5.1.exe build_files_list.lua

echo Generating internationalization files ...
xgettext -kTMessageBox -kTranslate -kTranslate_NoOp -o mushclient_static.po --files-from=all_files_list.txt
xgettext -kTFormat -o mushclient_formatted.po --files-from=all_files_list.txt
xgettext -kTranslateTime -o mushclient_time.po --files-from=all_files_list.txt
xgettext -kTranslateHeading -o mushclient_heading.po --files-from=all_files_list.txt

echo Running localize.lua ...
lua5.1.exe localize.lua

0 comments on commit af33928

Please sign in to comment.