OSDN Git Service

9235612eff39bb3c801d9cb64a0313cad4d0cac0
[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 /*
7  * ja_JPはUTF-16BE
8  */
9 public enum Messages {
10
11         MSGCalcStart,
12         MSGDatabaseNotExist,
13         MSGAlbumTypeBeingCalculated,
14         MSGNarrowingDownSongs,
15         MSGTitle,
16         MSGSelectDifficulty,
17         MSGNonSelected,
18         MSGAll,
19         MSGCute,
20         MSGCool,
21         MSGPassion,
22         MSGSongLevel,
23         MSGBelowSpecificLevel,
24         MSGOverSpecificLevel,
25         MSGLevelCheckboxInfo,
26         MSGUpdatingDatabase,
27         MSGCompleteNarrowDown,
28         MSGNumberOfSongs,
29         MSGThisPhrase,
30         MSGPlayPhrase,
31         MSGTwitterIntegration,
32         MSGUsingThisAppPhrase,
33         MSGNotPlayYet,
34         MSGTwitterPlayOtherwisePhrase,
35         MSGTwitterPlayOnlyPhrase,
36         MSGTwitterIntegrationConfirm,
37         MSGStringLength,
38         MSGCompletePost,
39         MSGTerminate,
40         MSGInternalYpdateNotDoneYet,
41         MSGNarrowDownProcedure,
42         MSGCurrentAlbumType;
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                         e.printStackTrace();
51                         System.exit(-1);
52                         return null;
53                 }
54         }
55
56 }