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)
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.
%%% 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).
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.