]> granicus.if.org Git - ejabberd/commitdiff
* contrib/extract_translations/README: Better phrasing (thanks to
authorAlexey Shchepin <alexey@process-one.net>
Sun, 1 May 2005 19:14:30 +0000 (19:14 +0000)
committerAlexey Shchepin <alexey@process-one.net>
Sun, 1 May 2005 19:14:30 +0000 (19:14 +0000)
Sergei Golovan)

* contrib/extract_translations/extract_translations.erl: Fix to
avoid duplication of lines (thanks to Sergei Golovan)

SVN Revision: 334

ChangeLog
contrib/extract_translations/README
contrib/extract_translations/extract_translations.erl

index bbdb2f9dd226b9bb1734611ded75ae141a6cd3aa..038b1d3cc4e8fbdb86074a19ddad70da69872790 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
 2005-05-01  Alexey Shchepin  <alexey@sevcom.net>
 
-       * src/msgs/sw.msg: New Swedish translation (thanks to (Magnus Henoch)
+       * 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)
+
+       * src/msgs/sw.msg: New Swedish translation (thanks to (Magnus
+       Henoch)
 
        * src/msgs/pt.msg: New Portuguese translation (thanks to iceburn)
 
index e96cfb8cf17a7d6730f190db3f8c30b179ab49f2..9278dd1065d49959d3d425f9c164b40deb3d1e8e 100644 (file)
@@ -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.
index 16aaa88718fbc96b8b33289d01a2269aad7496a8..6865528c1f6515c2c1ba48af266ac6575026ce2c 100644 (file)
@@ -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.