             let nameComponents = UsbongXMLName(name: name, language: currentLanguage)
             if let taskNodeType = TaskNodeType(rawValue: nameComponents.type) {
                 // Translate text if current language is not base language
-//                let translatedText = currentLanguage != baseLanguage ? translateText(nameComponents.text) : nameComponents.text
+                let translatedText = currentLanguage != baseLanguage ? translateText(nameComponents.text) : nameComponents.text
                 
                 // Parse text
-                let finalText = parseText(nameComponents.text)
+                let finalText = parseText(translatedText)
                 
                 // Temporary transition info to be used by link and decision task nodes
                 var fetchedTransitionInfo = [String: String]()

    public var currentTargetTransitionName: String = "Any"
    public var transitionInfo: [String: String] = [String: String]()
    
    public init(treeRootURL: NSURL) {
        self.treeRootURL = treeRootURL
        
        let fileName = treeRootURL.URLByDeletingPathExtension?.lastPathComponent ?? ""
        xmlURL = treeRootURL.URLByAppendingPathComponent(fileName).URLByAppendingPathExtension("xml")
        
        wholeXML = SWXMLHash.parse(NSData(contentsOfURL: xmlURL) ?? NSData())
        processDefinition = wholeXML[UsbongXMLIdentifier.processDefinition]
        
        // Get language
        baseLanguage = processDefinition.element?.attributes[UsbongXMLIdentifier.lang] ?? baseLanguage
        
        // Set title to file name if file name is not blank or contains spaces only
        title = fileName.stringByReplacingOccurrencesOfString(" ", withString: "").characters.count == 0 ? title : fileName
        
        // Fetch starting task node
        if let element = processDefinition[UsbongXMLIdentifier.startState][UsbongXMLIdentifier.transition].element {

    case Link = "link"
}

private func languageCodeOfLanguage(language: String) -> String {
    switch language {
    case "English":
        return "en-EN"
    case "Czech":
        return "cs-CZ"
    case "Danish":
        return "da-DK"
    case "German":
        return "de-DE"
    case "Greek":
        return "el-GR"
    case "Spanish", "Bisaya", "Ilonggo", "Tagalog", "Filipino":
        return "es-ES"
    case "Finnish":
        return "fi-FI"
    case "French":
        return "fr-FR"
    case "Hindi":
        return "hi-IN"
    case "Hungarian":
        return "hu-HU"
    case "Indonesian":
        return "id-ID"
    case "Italian":
        return "it-IT"
    case "Japanese":
        return "ja-JP"
    case "Korean":
        return "ko-KR"
    case "Dutch":
        return "nl-BE"
    case "Norwegian":
        return "nb-NO"
    case "Polish":
        return "pl-PL"
    case "Portuguese":
        return "pt-PT"
    case "Romanian":
        return "ro-RO"
    case "Russian":
        return "ru-RU"
    case "Slovak":
        return "sk-SK"
    case "Swedish":
        return "sv-SE"
    case "Thai":
        return "th-TH"
    case "Turkish":
        return "tr-TR"
    case "Chinese":
        return "zh-CN"
    default:
        return "en-EN"
    }
}

public class UsbongTree {
    public let treeRootURL: NSURL
    public let xmlURL: NSURL
