diff options
author | Alexey Shchepin <alexey@process-one.net> | 2005-05-01 19:14:30 +0000 |
---|---|---|
committer | Alexey Shchepin <alexey@process-one.net> | 2005-05-01 19:14:30 +0000 |
commit | 58450aaaf2e64ccc8e1b6cc1f9398c8acd42eacc (patch) | |
tree | 6d10c201d8940ed0c5a2ce30c2d00bfb74ec4ed4 /contrib/extract_translations | |
parent | * src/msgs/sw.msg: New Swedish translation (thanks to (Magnus Henoch) (diff) |
* contrib/extract_translations/README: Better phrasing (thanks to
Sergei Golovan)
* contrib/extract_translations/extract_translations.erl: Fix to
avoid duplication of lines (thanks to Sergei Golovan)
SVN Revision: 334
Diffstat (limited to 'contrib/extract_translations')
-rw-r--r-- | contrib/extract_translations/README | 4 | ||||
-rw-r--r-- | contrib/extract_translations/extract_translations.erl | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/contrib/extract_translations/README b/contrib/extract_translations/README index e96cfb8cf..9278dd106 100644 --- a/contrib/extract_translations/README +++ b/contrib/extract_translations/README @@ -7,8 +7,8 @@ Building: Invoking 1: erl -noinput -s extract_translations -extra dirname message_file - where dirname is src dir of ejabberd source tree, message_file is a file - with translated messages (src/msgs/*.msg). + where dirname is the directory "src" in ejabberd's source tree root, + message_file is a file with translated messages (src/msgs/*.msg). Result is a list of messages from source files which aren't contained in message file. diff --git a/contrib/extract_translations/extract_translations.erl b/contrib/extract_translations/extract_translations.erl index 16aaa8871..6865528c1 100644 --- a/contrib/extract_translations/extract_translations.erl +++ b/contrib/extract_translations/extract_translations.erl @@ -3,7 +3,7 @@ %%% Author : Sergei Golovan <sgolovan@nes.ru> %%% Purpose : Auxiliary tool for interface/messages translators %%% Created : 23 Apr 2005 by Sergei Golovan <sgolovan@nes.ru> -%%% Id : $Id: extract_translations.erl +%%% Id : $Id$ %%%---------------------------------------------------------------------- -module(extract_translations). @@ -122,7 +122,8 @@ process_string(Dir, File, Str, Used) -> io:format("~n% ~s~n", [File]), ets:insert(files, {File}) end, - io:format("{~p, \"\"}.~n", [Str]); + io:format("{~p, \"\"}.~n", [Str]), + ets:insert(translations, {Str, ""}); _ -> ok end. |