OSDN Git Service

feat: add manualUpdate feature.
[delesterandomselector/DelesteRandomSelector.git] / src / com / ranfa / main / Messages.java
index 6d70ab5..78cfedc 100644 (file)
@@ -3,20 +3,51 @@ package com.ranfa.main;
 import java.util.Locale;
 import java.util.ResourceBundle;
 
+import org.slf4j.LoggerFactory;
+
 /*
  * ja_JPはUTF-16BE
  */
 public enum Messages {
 
        MSGCalcStart,
-       MSGDatabaseNotExist;
+       MSGDatabaseNotExist,
+       MSGAlbumTypeBeingCalculated,
+       MSGNarrowingDownSongs,
+       MSGTitle,
+       MSGSelectDifficulty,
+       MSGNonSelected,
+       MSGSongLevel,
+       MSGBelowSpecificLevel,
+       MSGOverSpecificLevel,
+       MSGLevelCheckboxInfo,
+       MSGUpdatingDatabase,
+       MSGCompleteNarrowDown,
+       MSGNumberOfSongs,
+       MSGThisPhrase,
+       MSGPlayPhrase,
+       MSGTwitterIntegration,
+       MSGUsingThisAppPhrase,
+       MSGNotPlayYet,
+       MSGTwitterPlayOtherwisePhrase,
+       MSGTwitterPlayOnlyPhrase,
+       MSGTwitterIntegrationConfirm,
+       MSGStringLength,
+       MSGCompletePost,
+       MSGTerminate,
+       MSGInternalYpdateNotDoneYet,
+       MSGNarrowDownProcedure,
+       MSGCurrentAlbumType,
+       MSGManualUpdate,
+       MSGManualUpdateNotCompleteYet;
+
 
        @Override
        public String toString() {
                try {
-                       return ResourceBundle.getBundle("com.ranfa.languages.List", Locale.getDefault()).getString(name());
+                       return ResourceBundle.getBundle("com.ranfa.languages.List", Locale.getDefault()).getString(this.name());
                } catch(Exception e) {
-                       e.printStackTrace();
+                       LoggerFactory.getLogger(Messages.class).error("Exception was thrown while processing automatic translation.", e);
                        System.exit(-1);
                        return null;
                }