View Javadoc
1 /* 2 Bloof - visualize the evolution of your software project 3 Copyright ( C ) 2003 Lukasz Pekacki <lukasz@pekacki.de> 4 http://bloof.sf.net/ 5 6 This program is free software; you can redistribute it and/or modify it 7 under the terms of the GNU General Public License. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License along with 15 this program; if not, write to the Free Software Foundation, Inc., 16 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 18 $RCSfile: Text.java,v $ 19 Created on $Date: 2003/10/19 17:27:56 $ 20 */ 21 package net.sf.bloof.util.intl; 22 23 import java.util.ListResourceBundle; 24 25 /*** 26 * This class holds the keys of all Strings that can be presented to the 27 * user. It also holds all values of the keys in English language. 28 * @author Lukasz Pekacki <pekacki@users.sourceforge.net> 29 * @version $Id: Text.java,v 1.18 2003/10/19 17:27:56 pekacki Exp $ 30 */ 31 public class Text extends ListResourceBundle { 32 /*** 33 * @see java.util.ListResourceBundle#getContents( ) 34 */ 35 public final Object[][] getContents() { 36 return CONTENTS; 37 } 38 39 /*** 40 * These constants are used by the caller to identify what text is 41 * needed; which version of the text is actually returned is determined 42 * by the ResourceBundle mechanism. 43 * 44 * Using variable names which reflect the content clarifies the 45 * intent of the code in the user of this class. 46 */ 47 public static final TextKey BLOOF_NAME = new TextKey("BLOOF_NAME"), 48 ABOUT = new TextKey("ABOUT"), 49 BLOOF_SHORTNAME = new TextKey("BLOOF_SHORTNAME"), 50 BLOOF_COMMANDLINE = new TextKey("BLOOF_COMMANDLINE"), 51 COPYRIGHT = new TextKey("COPYRIGHT"), 52 COMMANDLINE_ARGUMENTS = new TextKey("COMMANDLINE_ARGUMENTS"), 53 COMMANDLINE_USAGE = new TextKey("CREATING_DATABASE"), 54 CONNECTING_DATABASE = new TextKey("CONNECTING_DATABASE"), 55 CONSTRUCTING_RESULT = new TextKey("CONSTRUCTING_RESULT"), 56 COULD_NOT_OPEN_DB = new TextKey("COULD_NOT_OPEN_DB"), 57 CREATING_DATABASE = new TextKey("COMMANDLINE_USAGE"), 58 DAILY_COLLAB = new TextKey("DAILY_COLLAB"), 59 DATE_FORMAT = new TextKey( "DATE_FORMAT" ), 60 DESCRIBE_SQL_METRIC = new TextKey("DESCRIBE_SQL_METRIC"), 61 DEVELOPER_GROUP = new TextKey("DEVELOPER_GROUP"), 62 ERROR = new TextKey("ERROR"), 63 EXECUTING_DB_QUERY = new TextKey("EXECUTING_DB_QUERY"), 64 FETCHING_VCS_DATA = new TextKey("FETCHING_VCS_DATA"), 65 FILE_AGE = new TextKey("FILE_AGE"), 66 FILE_GROUP = new TextKey("FILE_GROUP"), 67 FILE_COUNT = new TextKey("FILE_COUNT"), 68 FINISHED = new TextKey("FINISHED"), 69 GENERIC_SQL_METRIC = new TextKey("GENERIC_SQL_METRIC"), 70 IMPORT_FINISHED = new TextKey("IMPORT_FINISHED"), 71 IO_ERROR = new TextKey("IO_ERROR"), 72 LANGUAGE = new TextKey("LANGUAGE"), 73 LANGUAGE_ID = new TextKey("LANGUAGE_ID"), 74 LICENSE = new TextKey("LICENSE"), 75 LOC = new TextKey("LOC"), 76 NO_SUCH_DB = new TextKey("NO_SUCH_DB"), 77 POPULATE_DB = new TextKey("POPULATE_DB"), 78 PROPERTIES = new TextKey("PROPERTIES"), 79 READING_DATA = new TextKey("READING_DATA"), 80 SSH_SERVER = new TextKey("SSH_SERVER"), 81 SUMMARY = new TextKey("SUMMARY"), 82 TIMESTAMP_FORMAT = new TextKey("TIMESTAMP_FORMAT"), 83 TIMEINTERVAL_GROUP = new TextKey("TIMEINTERVAL_GROUP"), 84 UPDATE_FINISHED = new TextKey("UPDATE_FINISHED"), 85 VERSION = new TextKey("VERSION"), 86 WHOLE_TIMESPAN = new TextKey("WHOLE_TIMESPAN"); 87 88 /*** 89 * Mappings of keys and Strings 90 * */ 91 private static final Object[][] CONTENTS = { 92 { Text.UPDATE_FINISHED.getName(), "Update finished." }, 93 { Text.CONNECTING_DATABASE.getName(), "Connecting to the database." }, 94 { Text.FINISHED.getName(), "Finished." }, 95 { Text.CONSTRUCTING_RESULT.getName(), "Constructing result." }, 96 { Text.EXECUTING_DB_QUERY.getName(), "Executing database query." }, 97 { Text.DESCRIBE_SQL_METRIC.getName(), "Generic SQL metric. Specified by the user." }, 98 { Text.GENERIC_SQL_METRIC.getName(), "Generic SQL metric" }, 99 { Text.FILE_COUNT.getName(), "File count" }, 100 { Text.FILE_AGE.getName(), "File age" }, 101 { Text.DAILY_COLLAB.getName(), "Daily collaboration" }, 102 { Text.SUMMARY.getName(), "Summary" }, 103 { Text.LOC.getName(), "Lines of code" }, 104 { Text.POPULATE_DB.getName(), "Populating database." }, 105 { Text.FETCHING_VCS_DATA.getName(), "Fetching data from version control system." }, 106 { Text.CREATING_DATABASE.getName(), "Creating database." }, 107 { Text.NO_SUCH_DB.getName(), "No such Database access: " }, 108 { Text.COULD_NOT_OPEN_DB.getName(), "Could not open internal database." }, 109 { Text.IMPORT_FINISHED.getName(), "Import of project finished." }, { 110 Text.WHOLE_TIMESPAN.getName(), "Whole time span" }, 111 { Text.SSH_SERVER.getName(), "SSH server" }, 112 { Text.TIMESTAMP_FORMAT.getName(), "yyyy-MM-dd H:m:s" }, 113 { Text.PROPERTIES.getName(), "Properties" }, 114 { Text.LANGUAGE.getName(), "Language" }, 115 { Text.ABOUT.getName(), "About" }, 116 { Text.BLOOF_NAME.getName(), 117 "Bloof - visualize the evolution of your software project" }, 118 { Text.BLOOF_SHORTNAME.getName(), "Bloof" }, 119 { Text.BLOOF_COMMANDLINE.getName(), 120 "._ ._\n" 121 + "|_)| _ _ _|_ Version " + "1.0"+ ", (c) 2003 by L. Pekacki\n" 122 + "|_)|(_)(_) | visualize the evolution of your software project" 123 }, 124 { Text.VERSION.getName(), "1.0" }, 125 { Text.LICENSE.getName(), 126 "LICENSE This program is free software; you can redistribute it and/or modify it\n" 127 + "under the terms of the GNU General Public License as published by \n" 128 + "the Free Software Foundation; either version 2 of the License, \n" 129 + "or ( at your option ) any later version.\n" 130 + "\nThis program is distributed in the hope that it will be useful, \n" 131 + "but WITHOUT ANY WARRANTY; without even the implied warranty of \n" 132 + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n" 133 + "See the GNU General Public License for more details. \n\n" 134 + "You should have received a copy of the GNU General Public License \n" 135 + "along with this program; if not, write to the Free Software Foundation, \n" 136 + "Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA." }, 137 { Text.COPYRIGHT.getName(), 138 "Copyright (c) 2003 Lukasz Pekacki <pekacki@users.sourceforge.net>" }, 139 140 { Text.COMMANDLINE_ARGUMENTS.getName(), 141 "Valid command line arguments:\n" 142 + "[{-h,--help}] Show this information.\n" 143 + "[{-c,--conf} <file>] Use the specified configuration file.\n" 144 + "[{-v,--verbosity} <level>] Level of verbosity. Valid levels are \n" 145 + " silent, verbose or debug.\n" 146 + "[{-l,--license}] Show licence information.\n" 147 + " is: startapp.\n" }, 148 149 { Text.COMMANDLINE_USAGE.getName(), 150 "Usage: java -jar bloof.jar [options]\n" 151 + "use [{-h,--help}] for more information." }, 152 153 { Text.IO_ERROR.getName(), "IO Access failed." }, 154 { Text.ERROR.getName(), "Error" }, 155 { Text.FILE_GROUP.getName(), "File group" }, 156 { Text.DEVELOPER_GROUP.getName(), "Developer group" }, 157 {Text.DATE_FORMAT.getName( ), "yyyy-MM-dd"}, 158 { Text.TIMEINTERVAL_GROUP.getName(), "Timeinterval group" }, 159 { Text.READING_DATA.getName(), "Reading data." }, 160 { Text.LANGUAGE_ID.getName(), "English" } 161 }; 162 163 }

This page was automatically generated by Maven