jQuery(document).ready(function(){ jQuery('button[value="Upload"]').text('Wyślij plik'); jQuery('#edit-submit').text('Zapisz'); jQuery('.btn[value="Save"]').text('Zapisz'); jQuery('#edit-delete').text('Usuń'); jQuery('option[value="_none"]').text('- Brak -'); jQuery('.pane-node-form-publishing .pane-title').hide(); jQuery('.help-block').each(function(){ var strLess = jQuery(this).html(); var strLess2 = strLess.replace('Files must be less than ', 'Pliki muszą mieć mniej niż '); var strLess2 = strLess2.replace('Allowed file types: ', 'Dozwolone typy plików: '); var strLess2 = strLess2.replace('Images must be smaller than ', 'Ilość pikseli na obrazkach musi być mniejsza niż '); var strLess2 = strLess2.replace(' pixels.', ' pixeli.'); jQuery(this).html(strLess2); }); jQuery('a.browse').text('Przeglądaj'); jQuery('label[for^="edit-field-attachment-"], label[for^="edit-field-video-"]').text('Dodaj multimedia'); jQuery('a.link-edit-summary').text('Edytuj wstęp'); //------------------------------------------------------ // Strona dodawania nowego użytkownika //------------------------------------------------------ jQuery('.page-admin-people-create h1.page-header').text('Dodawanie nowego użytkownika'); jQuery('.page-admin-people-create #block-system-help').text('Na tej stronie możesz utworzyć konta dla nowych użytkowników. Adresy e-mail i nazwy użytkowników użytkowników muszą być unikalne.'); if ( jQuery('.page-admin-people-create label[for="edit-name"]').length ) { var strReplace = jQuery('.page-admin-people-create label[for="edit-name"]').html(); var strReplace2 = strReplace.replace('Username ','Nazwa użytkownika '); jQuery('.page-admin-people-create label[for="edit-name"]').html(strReplace2); }; jQuery('.page-admin-people-create .form-type-textfield.form-item-name').attr('data-original-title','Spacje są dozwolone; znaki interpunkcyjne zabronione, za wyjątkiem kropek, łączników, znaków podkreśleń i apostrof.'); if ( jQuery('.page-admin-people-create label[for="edit-mail"]').length ) { var strReplace = jQuery('.page-admin-people-create label[for="edit-mail"]').html(); var strReplace2 = strReplace.replace('E-mail address ','Adres e-mail '); jQuery('.page-admin-people-create label[for="edit-mail"]').html(strReplace2); }; jQuery('.page-admin-people-create #edit-account .help-block').text('Poprawny adres e-mail. Wszystkie wiadomości e-mail z systemu będą wysyłane na ten adres e-mail. Adres e-mail nie będzie widoczny publicznie, i będzie wykorzystywany wyłącznie w momencie przywracania hasła, bądź otrzymywania powiadomień z systemu'); if ( jQuery('.page-admin-people-create label[for="edit-pass-pass1"]').length ) { var strReplace = jQuery('.page-admin-people-create label[for="edit-pass-pass1"]').html(); var strReplace2 = strReplace.replace('Password ','Hasło '); jQuery('.page-admin-people-create label[for="edit-pass-pass1"]').html(strReplace2); }; if ( jQuery('.page-admin-people-create label[for="edit-pass-pass2"]').length ) { var strReplace = jQuery('.page-admin-people-create label[for="edit-pass-pass2"]').html(); var strReplace2 = strReplace.replace('Confirm password ','Potwierdź hasło '); jQuery('.page-admin-people-create label[for="edit-pass-pass2"]').html(strReplace2); }; jQuery('.page-admin-people-create .password-strength-title').text('Siła hasła: '); jQuery('.page-admin-people-create .form-type-password-confirm').attr('data-original-title','Wprowadź to samo hasło dla nowego konta w obu polach'); if ( jQuery('.page-admin-people-create #edit-pass-pass1').length ) { jQuery('.page-admin-people-create #edit-pass-pass1').focus(function(){ var strReplace = jQuery('.page-admin-people-create .password-suggestions.description').html(); var strReplace2 = strReplace.replace('To make your password stronger:','Aby uczynić hasło silniejszym:'); var strReplace2 = strReplace2.replace('Make it at least 6 characters','Niech zawiera minimum 6 znaków:'); var strReplace2 = strReplace2.replace('Add lowercase letters','Dodaj małe litery'); var strReplace2 = strReplace2.replace('Add uppercase letters','Dodaj duże litery'); var strReplace2 = strReplace2.replace('Add punctuation','Dodaj cyfry'); jQuery('.page-admin-people-create .password-suggestions.description').html(strReplace2); }); }; jQuery('.page-admin-people-create #edit-status label[for="edit-status-0"]').text('Zablokowany'); jQuery('.page-admin-people-create #edit-status label[for="edit-status-1"]').text('Aktywny'); jQuery('.page-admin-people-create label[for="edit-notify"]').text('Powiadom użytkownika o powstaniu konta '); jQuery('.page-admin-people-create #edit-locale .panel-title').text('Ustawienia języka'); if ( jQuery('.page-admin-people-create .messages.error ul li').length ) { jQuery('.page-admin-people-create .messages.error ul li').each(function(){ var strLess = jQuery(this).html(); var strLess2 = strLess.replace('Username field is required.', 'Pole Nazwa Użytkownika jest wymagane'); var strLess2 = strLess2.replace('E-mail address field is required.', 'Pole Adres e-mail jest wymagane'); var strLess2 = strLess2.replace('Password field is required.', 'Pole Hasło jest wymagane'); var strLess2 = strLess2.replace('The specified passwords do not match.', 'Zdefiniowane w polach hasła nie pasują do siebie'); var strLess2 = strLess2.replace('Imię field is required.', 'Pole Imię jest wymagane'); var strLess2 = strLess2.replace('Nazwisko field is required.', 'Pole Nazwisko jest wymagane'); var strLess2 = strLess2.replace('The e-mail address ', 'Adres e-mail'); var strLess2 = strLess2.replace(' is not valid.', 'nie jest poprawne'); jQuery(this).html(strLess2); }); }; //------------------------------------------------------ //Przypisanie zasobów do grupy //------------------------------------------------------ jQuery('.page-manage-assign-resources-to-group #edit-field-resource-categories-tid option[value="All"]').text('- Wszystkie -'); jQuery('.page-manage-assign-resources-to-group #edit-field-resource-type-tid option[value="All"]').text('- Wszystkie -'); //------------------------------------------------------ //Forum //------------------------------------------------------ if ( jQuery('.page-node-edit.node-type-forum-topic label[for="edit-title"]').length ) { var strReplace = jQuery('.page-node-edit.node-type-forum-topic label[for="edit-title"]').html(); var strReplace2 = strReplace.replace('Title ','Tytuł '); jQuery('.page-node-edit.node-type-forum-topic label[for="edit-title"]').html(strReplace2); }; //------------------------------------------------------ //Edycja taxonomy //------------------------------------------------------ if ( jQuery('.page-taxonomy-term-edit label[for="edit-name"]').length ) { var strReplace = jQuery('.page-taxonomy-term-edit label[for="edit-name"]').html(); var strReplace2 = strReplace.replace('Name ','Nazwa '); jQuery('.page-taxonomy-term-edit label[for="edit-name"]').html(strReplace2); }; if ( jQuery('.page-taxonomy-term-edit label[for="edit-description-value"]').length ) { var strReplace = jQuery('.page-taxonomy-term-edit label[for="edit-description-value"]').html(); var strReplace2 = strReplace.replace('Description ','Opis '); jQuery('.page-taxonomy-term-edit label[for="edit-description-value"]'); jQuery('.page-taxonomy-term-edit a[href="#edit-relations"]').text('Relacje'); }; jQuery('.page-taxonomy-term-edit label[for="edit-parent"]').text('Terminy nadrzędne'); if ( jQuery('.page-taxonomy-term-edit label[for="edit-weight"]').length ) { var strReplace = jQuery('.page-taxonomy-term-edit label[for="edit-weight"]').html(); var strReplace2 = strReplace.replace('Weight ','Waga '); jQuery('.page-taxonomy-term-edit label[for="edit-weight"]').html(strReplace2).html(strReplace2); }; jQuery('.page-taxonomy-term-edit .form-item-weight').attr('data-original-title','Terminy wyświetlane są są w kolejności rosnącej wagi.'); jQuery('.page-taxonomy-term-edit label[for="edit-field-icon-class-und-0-value"]').text('Klasa ikony'); jQuery('.page-taxonomy-term-edit label[for="edit-field-color-und-0-rgb"]').text('Kolor'); });