Permalink
Browse files

Fixed bug where localized resources in languages that appear earlier …

…than 'en' would be superceded by en.
  • Loading branch information...
1 parent 40069a1 commit 031a82a475862c55886588ca505f87c39c6e6808 Charles Jolley committed with Charles Jolley Mar 2, 2010
Showing with 6 additions and 2 deletions.
  1. +6 −2 buildtasks/manifest.rake
View
@@ -102,11 +102,15 @@ namespace :manifest do
entry.filename = entry.filename.sub(lang_dir, sub_str)
entry.build_path = entry.build_path.sub(lang_dir, sub_str)
entry.url = entry.url.sub(lang_dir, sub_str)
-
+
# if this is part of the current language, always include...
# hide any preferred_language entry...
if entry.language == MANIFEST.language
- seen[entry.filename].hide! if seen[entry.filename]
+ if seen[entry.filename]
+ seen[entry.filename].hide!
+ else
+ seen[entry.filename] = entry
+ end
# if this is a preferred_language, hide unless we've seen one
elsif entry.language == preferred_language

0 comments on commit 031a82a

Please sign in to comment.