Messages.js 2.64 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
/**
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you 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.
 */

define(['require'], function(require) {
    'use strict';

    var Messages = {
        defaultErrorMessage: "Something went wrong",
24
        addSuccessMessage: " created successfully",
25 26
        addErrorMessage: " could not be Created",
        removeTag: "Remove Classification Assignment",
27
        deleteSuccessMessage: " deleted successfully",
28
        deleteErrorMessage: " could not be deleted",
29
        removeSuccessMessage: " removed successfully",
30
        removeErrorMessage: " could not be removed",
31
        editSuccessMessage: " updated successfully",
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
        assignDeletedEntity: " is deleted, Classification cannot be assigned",
        assignTermDeletedEntity: " is deleted, Term cannot be assigned",
        conformation: {
            deleteMessage: "Are you sure you want to delete "
        },
        search: {
            noRecordForPage: "No record found at ",
            onSamePage: "You are on the same page!",
            notExists: "Invalid Expression or Classification/Type has been deleted.",
            favoriteSearch: {
                save: "Do you want to overwrite ",
                notSelectedFavoriteElement: "Please select any one favorite search",
                notSelectedSearchFilter: "Please select at least one filter"
            }
        },
        tag: {
            addAttributeSuccessMessage: "Classification attribute is added successfully",
            updateTagDescriptionMessage: "Classification description is updated successfully"
        },
        glossary: {
            removeTermfromCategory: "Remove Term Assignment",
            removeTermfromEntity: "Remove Term Assignment",
            removeCategoryfromTerm: "Remove Category Assignment"
55 56 57
        },
        getAbbreviationMsg: function(abbrev, type) {
            var msg = abbrev ? "s were" : " was";
58
            return msg + this[type];
59 60 61
        }
    };
    return Messages;
62
});