Including the parser keywords if possible, or any variables tied to
specific languange.

Maybe something like this

public class AlternativeLanguageInfo {
// list of member variables
// ...

private static HashTable<String, AlternativeLanguageInfo> instance;

public static void initSingleton() {
   // construct your HashTable here and populate with proper data
   // with languange as the key.
}

public static HashTable<String, AlternativeLanguageInfo>
getAlternativeLanguageInfo() {
   if(instance == null) initSingleton();
   return instance;
}

public AlternativeLanguageInfo(String languange, String category,
ArrayList<String> parserInfo, ...) {
  // set the member variables
}

// setter&getter
}


On Thu, Jun 6, 2013 at 10:57 PM, Iskandar Setiadi
<notifications@github.com>wrote:

> In LNReader/src/com/erakk/lnreader/Constants.java:
>
> >  	/* You just need to add a new alternative language here */
> > -	public static final String[] languageList = { Constants.LANG_ENGLISH , Constants.LANG_BAHASA_INDONESIA };
> > -	public static final String[] languagelistNotDefault = { Constants.LANG_BAHASA_INDONESIA };
> > +	public static final String[] languageList = { Constants.LANG_ENGLISH , Constants.LANG_FRENCH, Constants.LANG_BAHASA_INDONESIA };
> > +	public static final String[] languagelistNotDefault = { Constants.LANG_FRENCH, Constants.LANG_BAHASA_INDONESIA };
> > +	public static final String[] languageCategoryNotDefault = { "Category:French", "Category:Indonesian" };
> > +	public static final String[] languageAllNotDefault = { "French", "Indonesian" };
> > +	
> > +	/* Parser */
>
> So basically, I need to create a Dictionary called AltLangDict with
> language as a key, and each class has these array list elements as its
> attributes?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/calvinaquino/LNReader-Android/pull/56/files#r4569137>
> .
>



-- 
My Blog at http://nandaka.wordpress.com