OSDN Git Service

feat: add manualUpdate feature.
[delesterandomselector/DelesteRandomSelector.git] / src / com / ranfa / main / Messages.java
1 package com.ranfa.main;
2
3 import java.util.Locale;
4 import java.util.ResourceBundle;
5
6 import org.slf4j.LoggerFactory;
7
8 /*
9  * ja_JPはUTF-16BE
10  */
11 public enum Messages {
12
13         MSGCalcStart,
14         MSGDatabaseNotExist,
15         MSGAlbumTypeBeingCalculated,
16         MSGNarrowingDownSongs,
17         MSGTitle,
18         MSGSelectDifficulty,
19         MSGNonSelected,
20         MSGSongLevel,
21         MSGBelowSpecificLevel,
22         MSGOverSpecificLevel,
23         MSGLevelCheckboxInfo,
24         MSGUpdatingDatabase,
25         MSGCompleteNarrowDown,
26         MSGNumberOfSongs,
27         MSGThisPhrase,
28         MSGPlayPhrase,
29         MSGTwitterIntegration,
30         MSGUsingThisAppPhrase,
31         MSGNotPlayYet,
32         MSGTwitterPlayOtherwisePhrase,
33         MSGTwitterPlayOnlyPhrase,
34         MSGTwitterIntegrationConfirm,
35         MSGStringLength,
36         MSGCompletePost,
37         MSGTerminate,
38         MSGInternalYpdateNotDoneYet,
39         MSGNarrowDownProcedure,
40         MSGCurrentAlbumType,
41         MSGManualUpdate,
42         MSGManualUpdateNotCompleteYet;
43
44
45         @Override
46         public String toString() {
47                 try {
48                         return ResourceBundle.getBundle("com.ranfa.languages.List", Locale.getDefault()).getString(this.name());
49                 } catch(Exception e) {
50                         LoggerFactory.getLogger(Messages.class).error("Exception was thrown while processing automatic translation.", e);
51                         System.exit(-1);
52                         return null;
53                 }
54         }
55
56 }