summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2009-04-27 20:55:35 +0000
committerBadlop <badlop@process-one.net>2009-04-27 20:55:35 +0000
commit7c4e7dea4b7948852199d77f4f4b8bbaa71177de (patch)
tree0f28bce660ba9a2218e01271216cf361215a3b62 /src
parent* src/win32_dns.erl: Fix problem parsing some win32 dns (EJAB-927) (diff)
* src/translate.erl: Support additional files (EJAB-925)
* contrib/extract_translations/extract_translations.erl: Likewise * contrib/extract_translations/prepare-translation.sh: Likewise SVN Revision: 2044
Diffstat (limited to 'src')
-rw-r--r--src/translate.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/translate.erl b/src/translate.erl
index 616d8927..0488530f 100644
--- a/src/translate.erl
+++ b/src/translate.erl
@@ -67,8 +67,12 @@ load_dir(Dir) ->
end, Files),
lists:foreach(
fun(FN) ->
- L = ascii_tolower(
- string:substr(FN, 1, string:len(FN) - 4)),
+ LP = ascii_tolower(
+ string:substr(FN, 1, string:len(FN) - 4)),
+ L = case string:tokens(LP, ".") of
+ [Language] -> Language;
+ [Language, _Project] -> Language
+ end,
load_file(L, Dir ++ "/" ++ FN)
end, MsgFiles),
ok;