mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
* contrib/extract_translations/extract_translations.erl: Don't
report [] to be translated. Identify unusued strings. SVN Revision: 1022
This commit is contained in:
parent
2e1bb5f0e6
commit
c30ddd3a07
@ -1,3 +1,8 @@
|
|||||||
|
2007-12-05 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
|
* contrib/extract_translations/extract_translations.erl: Don't
|
||||||
|
report [] to be translated. Identify unusued strings.
|
||||||
|
|
||||||
2007-12-04 Badlop <badlop@process-one.net>
|
2007-12-04 Badlop <badlop@process-one.net>
|
||||||
|
|
||||||
* .gitignore: Removed (EJAB-441)
|
* .gitignore: Removed (EJAB-441)
|
||||||
|
@ -49,7 +49,7 @@ process(Dir, File, Used) ->
|
|||||||
case Used of
|
case Used of
|
||||||
unused ->
|
unused ->
|
||||||
ets:foldl(fun({Key, _}, _) ->
|
ets:foldl(fun({Key, _}, _) ->
|
||||||
io:format("~p~n", [Key])
|
io:format("Unused string: ~p~n", [Key])
|
||||||
end, ok, translations);
|
end, ok, translations);
|
||||||
_ ->
|
_ ->
|
||||||
ok
|
ok
|
||||||
@ -122,7 +122,10 @@ process_string(_Dir, File, Str, Used) ->
|
|||||||
io:format("~n% ~s~n", [File]),
|
io:format("~n% ~s~n", [File]),
|
||||||
ets:insert(files, {File})
|
ets:insert(files, {File})
|
||||||
end,
|
end,
|
||||||
io:format("{~p, \"\"}.~n", [Str]),
|
case Str of
|
||||||
|
[] -> ok;
|
||||||
|
_ -> io:format("{~p, \"\"}.~n", [Str])
|
||||||
|
end,
|
||||||
ets:insert(translations, {Str, ""});
|
ets:insert(translations, {Str, ""});
|
||||||
_ ->
|
_ ->
|
||||||
ok
|
ok
|
||||||
|
Loading…
Reference in New Issue
Block a user