old_contents: #!/usr/bin/env python
  
  import dbmodule
  import os
  import sys
  import console
  import i18n
  import re
  
  banner ='\033[0;36m'+'''
    ================================================
      _   _  _____  _____                     _
     | \ | |/  ___||  ___|                   | |
     |  \| |\ `--. | |__    __ _  _ __   ___ | |__
     | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
     | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
     \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
    ================================================
     Version 0.3     |   @jjtibaquira
    ================================================
  '''+'\033[0m'
  
  def createBackUp():
    print i18n.t("setup.create_backup")
    scriptFile = open(dbmodule.filePath,'r')
    for line in scriptFile:
      script = open(dbmodule.fileBackup,'a')
      script.write(line,)
    if os.path.isfile(dbmodule.fileBackup):
      print "The Backup was created successfully"
      print i18n.t("setup.create_backup_ok")
      script.close()
      scriptFile.close()
    else:
      print i18n.t("setup.create_backup_error")
      print "The Backup was not created"
  
  
  def install():
    print banner
    dbmodule.initSetup()
    scriptFile = open(dbmodule.filePath,'r')
    for line in scriptFile:
      line = line.replace('Entry { filename = "',"").replace('", categories = { "',',"').replace('", } }','"').replace('", "','","')
      for i, j in enumerate(dbmodule.categories):
        line = line.replace('"'+j+'"',str(i+1))
      newarray = line.split(",")
      for key,value in enumerate(newarray):
        if value == newarray[0]:
          lastrowid = dbmodule.insertScript(value)
        else:
          dbmodule.insertScriptCategory(lastrowid,value)
    scriptFile.close()
    createBackUp()
  
  if __name__ == '__main__':
  
    currentLocale = re.sub('[_].*','',os.environ['LANG'])
    i18n.load_path.append('i18n')
    i18n.set('locale',currentLocale) if True else i18n.set('fallback','en')
  
    if not os.path.isfile(dbmodule.dbname):
      install()
    os.system("clear")
    console = console.Console()
    console.cmdloop()
new_contents: #!/usr/bin/env python
  
  import dbmodule
  import os
  import sys
  import console
  import i18n
  import re
  
  banner ='\033[0;36m'+'''
    ================================================
      _   _  _____  _____                     _
     | \ | |/  ___||  ___|                   | |
     |  \| |\ `--. | |__    __ _  _ __   ___ | |__
     | . ` | `--. \|  __|  / _` || '__| / __|| '_  |
     | |\  |/\__/ /| |___ | (_| || |   | (__ | | | |
     \_| \_/\____/ \____/  \__,_||_|    \___||_| |_|
    ================================================
     Version 0.3     |   @jjtibaquira
    ================================================
  '''+'\033[0m'
  
  def createBackUp():
    print i18n.t("setup.create_backup")
    scriptFile = open(dbmodule.filePath,'r')
    for line in scriptFile:
      script = open(dbmodule.fileBackup,'a')
      script.write(line,)
    if os.path.isfile(dbmodule.fileBackup):
      print i18n.t("setup.create_backup_ok")
      script.close()
      scriptFile.close()
    else:
      print i18n.t("setup.create_backup_error")
  
  
  def install():
    print banner
    dbmodule.initSetup()
    scriptFile = open(dbmodule.filePath,'r')
    for line in scriptFile:
      line = line.replace('Entry { filename = "',"").replace('", categories = { "',',"').replace('", } }','"').replace('", "','","')
      for i, j in enumerate(dbmodule.categories):
        line = line.replace('"'+j+'"',str(i+1))
      newarray = line.split(",")
      for key,value in enumerate(newarray):
        if value == newarray[0]:
          lastrowid = dbmodule.insertScript(value)
        else:
          dbmodule.insertScriptCategory(lastrowid,value)
    scriptFile.close()
    createBackUp()
  
  if __name__ == '__main__':
  
    currentLocale = re.sub('[_].*','',os.environ['LANG'])
    i18n.load_path.append('i18n')
    i18n.set('locale',currentLocale) if True else i18n.set('fallback','en')
  
    if not os.path.isfile(dbmodule.dbname):
      install()
    os.system("clear")
    console = console.Console()
    console.cmdloop()
subject: Add new i18n