/*
 * Copyright 2014 Codenvy, S.A.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.codenvy.ide.ext.datasource.client.editdatasource;

import com.google.gwt.i18n.client.Messages;

public interface EditDatasourceMessages extends Messages {

    @DefaultMessage("Create Datasource")
    String createButtonText();

    @DefaultMessage("Edit Datasource")
    String editButtonText();

    @DefaultMessage("Delete Datasources")
    String deleteButtonText();

    @DefaultMessage("Close")
    String closeButtonText();

    @DefaultMessage("Manage Datasources")
    String editDatasourcesMenuText();

    @DefaultMessage("Create, edit and delete datasources")
    String editDatasourcesMenuDescription();

    @DefaultMessage("Manage datasources")
    String editDatasourcesDialogText();

    @DefaultMessage("Datasources")
    String datasourcesListLabel();

    @DefaultMessage("Cannot edit more than one datasource")
    String editMultipleSelectionMessage();

    @DefaultMessage("No datasource selected")
    String editOrDeleteNoSelectionMessage();

    @DefaultMessage("Confirm datasource deletion")
    String confirmDeleteDatasourcesTitle();

    @DefaultMessage("Delete {0} datasources")
    String confirmDeleteDatasources(int size);

    @DefaultMessage("No datasources configured")
    String emptyDatasourceList();
}

@@ -692,18 +692,226 @@
 ent.
-Messages;%0A
+LocalizableResource.DefaultLocale;%0Aimport com.google.gwt.i18n.client.Messages;%0A%0A/**%0A * Internationalizable messages for the %22Manage Datasource%22-related dialogs.%0A * %0A * @author %22Micka%C3%ABl Leduque%22%0A */%0A@DefaultLocale(%22en%22)
 %0Apub
@@ -1903,16 +1903,22 @@
 %22Delete 
+these 
 %7B0%7D data
@@ -1916,35 +1916,104 @@
  %7B0%7D datasources
+ ?
 %22)%0A
+    @AlternateMessage(%7B%22one%22, %22Delete the selected datasource ?%22%7D)%0A
     String confi
@@ -2036,16 +2036,30 @@
 ces(
-int size
+@PluralCount int count
 );%0A%0A

Use plural form in delete datasources confirmation dialog - Closes #144