public static String getUploadText(PFile file, Settings settings) {
      String text = "";
      switch(settings.fileDescSource) {
        case 0: //usual desc
          text += settings.server.equals("commons.wikimedia.org") ?
                  getUploadTextCommons(file, settings) :
                  getUploadTextNormal(file, settings);
          break;

        case 1: //desc from file
          text += getUploadTextFile(file, settings);
          break;
      }
      return text;
    };