Script used to gen the basic if-else block:
for a in `ls`; do echo "else if(locale.equals(\"`echo $a | cut -f2 -d.`\")) { tr = r.`echo $a | cut -f2 -d.`(); LANGUAGE = \"`echo $a | cut -f2 -d.`\"; }"; done
*/
if (locale.equals("bg")) {
tr = r.bg();
LANGUAGE = "bg";
}
else if (locale.equals("ca")) {
tr = r.cs();
LANGUAGE = "ca";