View | Details | Raw Unified | Return to bug 26244
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-18 lines)
Lines 1774-1797 legend:hover { Link Here
1774
            });
1774
            });
1775
        });
1775
        });
1776
1776
1777
        var MSG_SEPARATOR = _("Separator must be / in field %s");
1778
        var MSG_INCORRECT_DAY = _("Invalid day entered in field %s");
1779
        var MSG_INCORRECT_MONTH = _("Invalid month entered in field %s");
1780
        var MSG_INCORRECT_YEAR = _("Invalid year entered in field %s");
1781
        var MSG_DUPLICATE_PATRON = _("Warning: Duplicate patron");
1782
        var MSG_DUPLICATE_ORGANIZATION = _("Warning: Duplicate organization");
1783
        var MSG_LATE_EXPIRY = _("Warning: Expiration date falls before enrollment date");
1784
        var MSG_DUPLICATE_SUSPICION = _("Please confirm whether this is a duplicate patron");
1785
        var MSG_MONTH = _("%s month")
1786
        var MSG_MONTHS = _("%s months")
1787
        var MSG_YEAR = _("%s year")
1788
        var MSG_YEARS = _("%s years")
1789
        var LABEL_CHANGE = _("Change");
1790
        var LABEL_SET_TO_PATRON = _("Set to patron");
1791
        var LABEL_AGE = _("Age");
1792
        var MSG_MESSAGING_DFEAULTS = _("Change messaging preferences to default for this category?");
1793
        var MSG_PASSWORD_LENGTH = _("Minimum password length: %s");
1794
1795
        [% IF quickadd && opadd  && !check_member %]
1777
        [% IF quickadd && opadd  && !check_member %]
1796
            $(document).ready(function () {
1778
            $(document).ready(function () {
1797
1779
(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-5 / +5 lines)
Lines 17-23 function check_form_borrowers(nav){ Link Here
17
    //patrons form to test if you checked no to the question of double
17
    //patrons form to test if you checked no to the question of double
18
    if (statut!=1 && document.form.check_member.value > 0 ) {
18
    if (statut!=1 && document.form.check_member.value > 0 ) {
19
        if (!(document.form.answernodouble.checked)){
19
        if (!(document.form.answernodouble.checked)){
20
            message_champ+= MSG_DUPLICATE_SUSPICION;
20
            message_champ += __("Please confirm whether this is a duplicate patron");
21
            statut=1;
21
            statut=1;
22
            document.form.nodouble.value=0;
22
            document.form.nodouble.value=0;
23
        } else {
23
        } else {
Lines 72-78 function update_category_code(category_code) { Link Here
72
    //Change password length hint
72
    //Change password length hint
73
    var hint = $("#password").siblings(".hint").first();
73
    var hint = $("#password").siblings(".hint").first();
74
    var min_length = $('select'+category_selector+' option:selected').data('pwdLength');
74
    var min_length = $('select'+category_selector+' option:selected').data('pwdLength');
75
    var hint_string = MSG_PASSWORD_LENGTH.format(min_length);
75
    var hint_string = __("Minimum password length: %s").format(min_length);
76
    hint.html(hint_string);
76
    hint.html(hint_string);
77
}
77
}
78
78
Lines 159-174 function write_age() { Link Here
159
159
160
    var age_string;
160
    var age_string;
161
    if (age.year || age.month) {
161
    if (age.year || age.month) {
162
        age_string = LABEL_AGE + ": ";
162
        age_string = __("Age") + ": ";
163
    }
163
    }
164
164
165
    if (age.year) {
165
    if (age.year) {
166
        age_string += age.year > 1 ? MSG_YEARS.format(age.year) : MSG_YEAR.format(age.year);
166
        age_string += age.year > 1 ? __("%s years").format(age.year) : __("%s year").format(age.year);
167
        age_string += " ";
167
        age_string += " ";
168
    }
168
    }
169
169
170
    if (age.month) {
170
    if (age.month) {
171
        age_string += age.month > 1 ? MSG_MONTHS.format(age.month) : MSG_MONTH.format(age.month);
171
        age_string += age.month > 1 ? __("%s months").format(age.month) : __("%s month").format(age.month);
172
    }
172
    }
173
173
174
    hint.html(age_string);
174
    hint.html(age_string);
(-)a/koha-tmpl/intranet-tmpl/prog/js/messaging-preference-form.js (-2 / +1 lines)
Lines 13-19 $(document).ready(function(){ Link Here
13
            messaging_prefs_loading.show();
13
            messaging_prefs_loading.show();
14
            var categorycode = $(this).val();
14
            var categorycode = $(this).val();
15
            if (message_prefs_dirty) {
15
            if (message_prefs_dirty) {
16
                if (!confirm( MSG_MESSAGING_DFEAULTS )) {
16
                if (!confirm( __("Change messaging preferences to default for this category?") )) {
17
                    // Not loading messaging defaults. Hide loading indicator
17
                    // Not loading messaging defaults. Hide loading indicator
18
                    messaging_prefs_loading.hide();
18
                    messaging_prefs_loading.hide();
19
                    return;
19
                    return;
20
- 

Return to bug 26244