1 package org.unicode.cldr.util; 2 3 public enum NotificationCategory { 4 /** 5 * There is a console-check error 6 */ 7 error('E', 8 "Error", 9 "The Survey Tool detected an error in the winning value."), 10 11 /** 12 * Given the users' coverage, some items are missing 13 */ 14 missingCoverage('M', 15 "Missing", 16 "Your current coverage level requires the item to be present. " 17 + "(During the vetting phase, this is informational: you can’t add new values.)"), 18 19 /** 20 * Provisional: there are not enough votes to be approved 21 */ 22 notApproved('P', 23 "Provisional", 24 "There are not enough votes for this item to be approved (and used)."), 25 26 /** 27 * There is a dispute. 28 */ 29 hasDispute('D', 30 "Disputed", 31 "Different organizations are choosing different values. Please review to approve or reach consensus."), 32 33 /** 34 * My choice is not the winning item 35 */ 36 weLost('L', 37 "Losing", 38 "The value that your organization chose (overall) is either not the winning value, or doesn’t have enough votes to be approved. " 39 + "This might be due to a dispute between members of your organization."), 40 41 /** 42 * There is a console-check warning 43 */ 44 warning('W', 45 "Warning", 46 "The Survey Tool detected a warning about the winning value."), 47 48 /** 49 * The English value for the path changed AFTER the current value for 50 * the locale. 51 */ 52 englishChanged('U', 53 "English Changed", 54 "The English value has changed in CLDR, but the corresponding value for your language has not. " 55 + "Check if any changes are needed in your language."), 56 57 /** 58 * The value changed from the baseline 59 */ 60 changedOldValue('C', 61 "Changed", 62 "The winning value was altered from the baseline value. (Informational)"), 63 64 /** 65 * You have abstained, or not yet voted for any value 66 */ 67 abstained('A', 68 "Abstained", 69 "You have abstained, or not yet voted for any value."), 70 ; 71 72 public final char abbreviation; 73 public final String buttonLabel; 74 public final String jsonLabel; 75 76 /** 77 * This human-readable description is used for Priority Items Summary, which still 78 * creates html on the back end. For Dashboard, identical descriptions are on the 79 * front end. When Priority Items Summary is modernized to be more like Dashboard, 80 * these descriptions on the back end should become unnecessary. 81 */ 82 public final String description; 83 NotificationCategory(char abbreviation, String label, String description)84 NotificationCategory(char abbreviation, String label, String description) { 85 this.abbreviation = abbreviation; 86 this.jsonLabel = label.replace(' ', '_'); 87 this.buttonLabel = TransliteratorUtilities.toHTML.transform(label); 88 this.description = TransliteratorUtilities.toHTML.transform(description); 89 } 90 } 91