// Path: src/com/hughes/android/dictionary/DictionaryInfo.java
// public static final class IndexInfo implements Serializable {
//     private static final long serialVersionUID = 6524751236198309438L;
// 
//     static final int NUM_CSV_FIELDS = 3;
// 
//     public final String shortName; // Often LangISO.
//     final int allTokenCount;
//     public final int mainTokenCount;
// 
//     public IndexInfo(String shortName, int allTokenCount, int mainTokenCount) {
//         this.shortName = shortName;
//         this.allTokenCount = allTokenCount;
//         this.mainTokenCount = mainTokenCount;
//     }
// 
//     void append(StringBuilder result) {
//         result.append(shortName);
//         result.append("\t").append(allTokenCount);
//         result.append("\t").append(mainTokenCount);
//     }
// 
//     public IndexInfo(final String[] fields, int i) {
//         shortName = fields[i++];
//         allTokenCount = Integer.parseInt(fields[i++]);
//         mainTokenCount = Integer.parseInt(fields[i++]);
//     }
// }
// 
// Path: src/com/hughes/android/dictionary/engine/Language.java
// public static final class LanguageResources {
//     final String englishName;
//     public final int nameId;
//     public final int flagId;
// 
//     public LanguageResources(final String englishName, int nameId, int flagId) {
//         this.englishName = englishName;
//         this.nameId = nameId;
//         this.flagId = flagId;
//     }
// 
//     public LanguageResources(final String englishName, int nameId) {
//         this(englishName, nameId, 0);
//     }
// }


import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.hughes.android.dictionary.DictionaryInfo.IndexInfo;
import com.hughes.android.dictionary.engine.Language.LanguageResources;
                               R.drawable.flag_of_sweden));
        isoCodeToResources.put("TL", new LanguageResources("Tagalog", R.string.TL));
        isoCodeToResources.put("TG", new LanguageResources("Tajik", R.string.TG,
                               R.drawable.flag_of_tajikistan));
        isoCodeToResources.put("TH", new LanguageResources("Thai", R.string.TH,
                               R.drawable.flag_of_thailand));
        isoCodeToResources.put("BO", new LanguageResources("Tibetan", R.string.BO));
        isoCodeToResources.put("TR", new LanguageResources("Turkish", R.string.TR,
                               R.drawable.flag_of_turkey));
        isoCodeToResources.put("UK", new LanguageResources("Ukrainian", R.string.UK,
                               R.drawable.flag_of_ukraine));
        isoCodeToResources.put("UR", new LanguageResources("Urdu", R.string.UR));
        isoCodeToResources.put("VI", new LanguageResources("Vietnamese", R.string.VI,
                               R.drawable.flag_of_vietnam));
        isoCodeToResources.put("CI", new LanguageResources("Welsh", R.string.CI,
                               R.drawable.flag_of_wales_2));
        isoCodeToResources.put("YI", new LanguageResources("Yiddish", R.string.YI));
        isoCodeToResources.put("ZU", new LanguageResources("Zulu", R.string.ZU));
        isoCodeToResources.put("AZ", new LanguageResources("Azeri", R.string.AZ,
                               R.drawable.flag_of_azerbaijan));
        isoCodeToResources.put("EU", new LanguageResources("Basque", R.string.EU,
                               R.drawable.flag_of_the_basque_country));
        isoCodeToResources.put("BR", new LanguageResources("Breton", R.string.BR));
        isoCodeToResources.put("MR", new LanguageResources("Marathi", R.string.MR));
        isoCodeToResources.put("FO", new LanguageResources("Faroese", R.string.FO));
        isoCodeToResources.put("GL", new LanguageResources("Galician", R.string.GL,
                               R.drawable.flag_of_galicia));
        isoCodeToResources.put("KA", new LanguageResources("Georgian", R.string.KA,
                               R.drawable.flag_of_georgia));
        isoCodeToResources.put("HT", new LanguageResources("Haitian Creole", R.string.HT,
// Path: src/com/hughes/android/dictionary/DictionaryInfo.java
// public static final class IndexInfo implements Serializable {
//     private static final long serialVersionUID = 6524751236198309438L;
// 
//     static final int NUM_CSV_FIELDS = 3;
// 
//     public final String shortName; // Often LangISO.
//     final int allTokenCount;
//     public final int mainTokenCount;
// 
//     public IndexInfo(String shortName, int allTokenCount, int mainTokenCount) {
//         this.shortName = shortName;
//         this.allTokenCount = allTokenCount;
//         this.mainTokenCount = mainTokenCount;
//     }
// 
//     void append(StringBuilder result) {
//         result.append(shortName);
//         result.append("\t").append(allTokenCount);
//         result.append("\t").append(mainTokenCount);
//     }
// 
//     public IndexInfo(final String[] fields, int i) {
//         shortName = fields[i++];
//         allTokenCount = Integer.parseInt(fields[i++]);
//         mainTokenCount = Integer.parseInt(fields[i++]);
//     }
// }
// 
// Path: src/com/hughes/android/dictionary/engine/Language.java
// public static final class LanguageResources {
//     final String englishName;
//     public final int nameId;
//     public final int flagId;
// 
//     public LanguageResources(final String englishName, int nameId, int flagId) {
//         this.englishName = englishName;
//         this.nameId = nameId;
//         this.flagId = flagId;
//     }
// 
//     public LanguageResources(final String englishName, int nameId) {
//         this(englishName, nameId, 0);
//     }
// }


// Path: src/com/hughes/android/dictionary/IsoUtils.java
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import android.content.Context;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.hughes.android.dictionary.DictionaryInfo.IndexInfo;
import com.hughes.android.dictionary.engine.Language.LanguageResources;

                               R.drawable.flag_of_sweden));
        isoCodeToResources.put("TL", new LanguageResources("Tagalog", R.string.TL));
        isoCodeToResources.put("TG", new LanguageResources("Tajik", R.string.TG,
                               R.drawable.flag_of_tajikistan));
        isoCodeToResources.put("TH", new LanguageResources("Thai", R.string.TH,
                               R.drawable.flag_of_thailand));
        isoCodeToResources.put("BO", new LanguageResources("Tibetan", R.string.BO));
        isoCodeToResources.put("TR", new LanguageResources("Turkish", R.string.TR,
                               R.drawable.flag_of_turkey));
        isoCodeToResources.put("UK", new LanguageResources("Ukrainian", R.string.UK,
                               R.drawable.flag_of_ukraine));
        isoCodeToResources.put("UR", new LanguageResources("Urdu", R.string.UR));
        isoCodeToResources.put("VI", new LanguageResources("Vietnamese", R.string.VI,
                               R.drawable.flag_of_vietnam));
        isoCodeToResources.put("CI", new LanguageResources("Welsh", R.string.CI,
                               R.drawable.flag_of_wales_2));
        isoCodeToResources.put("YI", new LanguageResources("Yiddish", R.string.YI));
        isoCodeToResources.put("ZU", new LanguageResources("Zulu", R.string.ZU));
        isoCodeToResources.put("AZ", new LanguageResources("Azeri", R.string.AZ,
                               R.drawable.flag_of_azerbaijan));
        isoCodeToResources.put("EU", new LanguageResources("Basque", R.string.EU,
                               R.drawable.flag_of_the_basque_country));
        isoCodeToResources.put("BR", new LanguageResources("Breton", R.string.BR));
        isoCodeToResources.put("MR", new LanguageResources("Marathi", R.string.MR));
        isoCodeToResources.put("FO", new LanguageResources("Faroese", R.string.FO));
        isoCodeToResources.put("GL", new LanguageResources("Galician", R.string.GL,
                               R.drawable.flag_of_galicia));
        isoCodeToResources.put("KA", new LanguageResources("Georgian", R.string.KA,
                               R.drawable.flag_of_georgia));
        isoCodeToResources.put("HT", new LanguageResources("Haitian Creole", R.string.HT,
                               R.drawable.flag_of_haiti));