Project

General

Profile

Revision ab94d85b

IDab94d85b64e724094e780648f2502a676dcb1b73
Parent cb1498ea
Child a6de10b5

Added by Patrick Plitzner almost 4 years ago

l10n for PresenceAbsenceTermDetailElement

View differences:

eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/messages.properties
115 115
DetailsViewPart_VIEWER_NAME=Details
116 116

  
117 117
AuthenticatedUserBar_LOGGED_IN_AS=Logged in as: %s         
118
AuthenticatedUserBar_NOT_LOGGED_IN=Not logged in              
118
AuthenticatedUserBar_NOT_LOGGED_IN=Not logged in   
119

  
120
PresenceAbsenceTermDetailElement_CHOOSE_COLOR=Choose color
121
PresenceAbsenceTermDetailElement_COLOR_NOT_SET=Color could not be set
122
PresenceAbsenceTermDetailElement_LABEL_COLOR=Color           
eu.etaxonomy.taxeditor.store/OSGI-INF/l10n/messages_de.properties
115 115
DetailsViewPart_VIEWER_NAME=Details
116 116

  
117 117
AuthenticatedUserBar_LOGGED_IN_AS=Angemeldet als: %s         
118
AuthenticatedUserBar_NOT_LOGGED_IN=Nicht angemeldet              
118
AuthenticatedUserBar_NOT_LOGGED_IN=Nicht angemeldet     
119
         
120
PresenceAbsenceTermDetailElement_CHOOSE_COLOR=Farbe w?hlen
121
PresenceAbsenceTermDetailElement_COLOR_NOT_SET=Farbe konnte nicht gespeichert werden
122
PresenceAbsenceTermDetailElement_LABEL_COLOR=Farbe
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/Messages.java
84 84
    public static String PasswordWizardPage_PASSWORD_MIN_CHARACTER;
85 85
    public static String PasswordWizardPage_PASSWORDS_DO_NOT_MATCH;
86 86
    public static String PasswordWizardPage_REPEAT_PASSWORD;
87
    public static String PresenceAbsenceTermDetailElement_CHOOSE_COLOR;
88
    public static String PresenceAbsenceTermDetailElement_COLOR_NOT_SET;
89
    public static String PresenceAbsenceTermDetailElement_LABEL_COLOR;
87 90
    public static String RemotingLoginDialog_CHOOSE_COMPATIBLE_CDM_SERVER;
88 91
	public static String RemotingLoginDialog_LABEL_ADVANCED;
89 92
	public static String RemotingLoginDialog_LABEL_CDM_INSTANCE;
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/PresenceAbsenceTermDetailElement.java
26 26

  
27 27
import eu.etaxonomy.cdm.model.common.TermVocabulary;
28 28
import eu.etaxonomy.cdm.model.description.PresenceAbsenceTerm;
29
import eu.etaxonomy.taxeditor.Messages;
29 30
import eu.etaxonomy.taxeditor.model.AbstractUtility;
30 31
import eu.etaxonomy.taxeditor.model.ImageResources;
31 32
import eu.etaxonomy.taxeditor.model.MessagingUtils;
......
58 59
	    super.createControls(formElement, entity, style);
59 60

  
60 61
	    Label colorTextLabel = new Label(getLayoutComposite(), style);
61
	    colorTextLabel.setText("Color");
62
	    colorTextLabel.setText(Messages.PresenceAbsenceTermDetailElement_LABEL_COLOR);
62 63
	    TableWrapData left = LayoutConstants.LEFT();
63 64
	    left.valign = TableWrapData.MIDDLE;
64 65
	    colorTextLabel.setLayoutData(left);
......
77 78
        String defaultColor = entity.getDefaultColor();
78 79
        if(defaultColor!=null){
79 80
            //TODO: Is there any utility method from SWT?
80
            java.awt.Color awtColor = java.awt.Color.decode("#"+defaultColor);
81
            java.awt.Color awtColor = java.awt.Color.decode("#"+defaultColor); //$NON-NLS-1$
81 82
            RGB rgb = new RGB(awtColor.getRed(), awtColor.getGreen(), awtColor.getBlue());
82 83
            color = new Color(AbstractUtility.getShell().getDisplay(), rgb);
83 84
            colorLabel.setBackground(color);
......
86 87
        //button
87 88
        btnColorChooser = formFactory.createButton(colorAndButton, "", SWT.NONE); //$NON-NLS-1$
88 89
        btnColorChooser.setImage(ImageResources.getImage(ImageResources.BROWSE_ICON));
89
        btnColorChooser.setToolTipText("Choose color");
90
        btnColorChooser.setToolTipText(Messages.PresenceAbsenceTermDetailElement_CHOOSE_COLOR);
90 91
        btnColorChooser.addSelectionListener(this);
91 92
	}
92 93

  
......
117 118
            color = new Color(AbstractUtility.getShell().getDisplay(), rgb);
118 119
            colorLabel.setBackground(color);
119 120
            try {
120
                String hexCode = String.format("%02x%02x%02x", rgb.red,rgb.green,rgb.blue);
121
                String hexCode = String.format("%02x%02x%02x", rgb.red,rgb.green,rgb.blue); //$NON-NLS-1$
121 122
                getEntity().setDefaultColor(hexCode);
122 123
            } catch (ParseException pe) {
123
                MessagingUtils.error(PresenceAbsenceTermDetailElement.class, "Color could not be set", pe);
124
                MessagingUtils.error(PresenceAbsenceTermDetailElement.class, Messages.PresenceAbsenceTermDetailElement_COLOR_NOT_SET, pe);
124 125
            }
125 126
        }
126 127
        firePropertyChangeEvent(new CdmPropertyChangeEvent(this, e));

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)