Skip to content

Commit

Permalink
Merge pull request #772 from mikopbx/develop
Browse files Browse the repository at this point in the history
Переносим правки
  • Loading branch information
boffart authored Jul 25, 2024
2 parents afbd5b5 + bf3b00a commit a31f548
Show file tree
Hide file tree
Showing 32 changed files with 238 additions and 250 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,47 @@ const generalSettingsModify = {
* @param {Object} response - The response from the server after the form is sent
*/
cbAfterSendForm(response) {
$("#error-messages").remove();
if (!response.success) {
Form.$submitButton.removeClass('disabled');
generalSettingsModify.generateErrorMessageHtml(response);
} else {
$('.password-validate').remove();
}
generalSettingsModify.checkDeleteAllConditions();
},

/**
* The function collects an information message about a data saving error
* @param response
*/
generateErrorMessageHtml(response) {
if (response.messages && response.messages.error) {
const $div = $('<div>', { class: 'ui negative message', id: 'error-messages' });
const $header = $('<div>', { class: 'header' }).text(globalTranslate.gs_ErrorSaveSettings);
$div.append($header);
const $ul = $('<ul>', { class: 'list' });
const messagesSet = new Set();
response.messages.error.forEach(errorArray => {
errorArray.forEach(error => {
let textContent ='';
if(globalTranslate[error.message] === undefined){
textContent = error.message;
}else{
textContent = globalTranslate[error.message];
}
if (messagesSet.has(textContent)) {
return;
}
messagesSet.add(error.message);
$ul.append($('<li>').text(textContent));
});
});
$div.append($ul);
$('#submitbutton').before($div);
}
},

/**
* Initialize the validation rules of the form
*/
Expand Down
2 changes: 2 additions & 0 deletions src/Common/Messages/az.php
Original file line number Diff line number Diff line change
Expand Up @@ -1279,4 +1279,6 @@
'nw_NATInfo6OR' => 'YA',
'nw_NATInfo2' => '1:1 NAT istifadə edilmirsə, marşrutlaşdırıcının parametrlərində aşağıdakı portları ictimai IP-dən PBX-in daxili IP ünvanına yönləndirin.',
'nw_PublicSIPPort' => 'SIP port nömrəsi daxili %SIP_PORT% PBX-ə yönləndirildi',
'gs_ErrorSaveSettings' => 'Parametrləri yadda saxlama xətası',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Göstərilən artırma nömrəsi artıq istifadə olunur',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/cs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo6OR' => 'NEBO',
'nw_PublicSIPPort' => 'Číslo SIP portu přesměrováno na interní %SIP_PORT% PBX',
'nw_PublicTLSPort' => 'Číslo portu SIP TLS přesměrováno na interní %TLS_PORT% PBX',
'gs_ErrorSaveSettings' => 'Při ukládání nastavení došlo k chybě',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Zadané číslo pobočky se již používá',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/da.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo2' => 'Hvis 1:1 NAT ikke bruges, skal du omdirigere følgende porte fra den offentlige IP til den interne IP-adresse på PBX\'en i dine routerindstillinger.',
'nw_NATInfo4' => '%RTP_PORT_FROM%-%RTP_PORT_TO% UDP',
'nw_NATInfo5' => 'Hvis et eksternt værtsnavn er angivet, vil det blive brugt frem for den eksterne IP-adresse.',
'gs_ErrorSaveSettings' => 'Fejl under lagring af indstillinger',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Det angivne lokalnummer er allerede i brug',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/de.php
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,6 @@
'nw_NATInfo1' => 'Wenn Ihr Netzwerk für die Unterstützung von 1:1-NAT konfiguriert ist (normalerweise die Standardeinstellung in Clouds), müssen Sie keine zusätzlichen Einstellungen an Ihrem Router vornehmen.',
'nw_NATInfo2' => 'Wenn 1:1 NAT nicht verwendet wird, leiten Sie in Ihren Router-Einstellungen die folgenden Ports von der öffentlichen IP auf die interne IP-Adresse der TK-Anlage um.',
'nw_PublicSIPPort' => 'SIP-Portnummer, die an die interne %SIP_PORT%-PBX weitergeleitet wird',
'gs_ErrorSaveSettings' => 'Fehler beim Speichern der Einstellungen',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Die angegebene Nebenstellennummer wird bereits verwendet',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/el.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo2' => 'Εάν δεν χρησιμοποιείται NAT 1:1, ανακατευθύνετε τις ακόλουθες θύρες από τη δημόσια IP στην εσωτερική διεύθυνση IP του PBX στις ρυθμίσεις του δρομολογητή σας.',
'nw_PublicSIPPort' => 'Ο αριθμός θύρας SIP προωθείται στο εσωτερικό PBX %SIP_PORT%',
'nw_PublicTLSPort' => 'Ο αριθμός θύρας SIP TLS προωθείται στο εσωτερικό PBX %TLS_PORT%',
'gs_ErrorSaveSettings' => 'Σφάλμα αποθήκευσης ρυθμίσεων',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Ο καθορισμένος αριθμός επέκτασης χρησιμοποιείται ήδη',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -1283,4 +1283,6 @@
'nw_NATInfo6OR' => 'OR',
'nw_PublicSIPPort' => 'SIP port number forwarded to internal %SIP_PORT% PBX',
'nw_PublicTLSPort' => 'SIP TLS port number forwarded to internal %TLS_PORT% PBX',
'gs_ErrorSaveSettings' => 'Error saving settings',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'The specified extension number is already in use',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/es.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo3' => '%SIP_PORT% TCP/UDP y %TLS_PORT% TCP',
'nw_NATInfo5' => 'Si se especifica un nombre de host externo, se utilizará con preferencia a la dirección IP externa.',
'nw_PublicTLSPort' => 'Número de puerto SIP TLS reenviado al PBX interno %TLS_PORT%',
'gs_ErrorSaveSettings' => 'Error al guardar la configuración',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'El número de extensión especificado ya está en uso',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo2' => 'Si le NAT 1:1 n\'est pas utilisé, redirigez les ports suivants de l\'adresse IP publique vers l\'adresse IP interne du PBX dans les paramètres de votre routeur.',
'nw_NATInfo3' => '%SIP_PORT% TCP/UDP et %TLS_PORT% TCP',
'nw_NATInfo4' => '%RTP_PORT_FROM%-%RTP_PORT_TO%UDP',
'gs_ErrorSaveSettings' => 'Erreur lors de l\'enregistrement des paramètres',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Le numéro de poste spécifié est déjà utilisé',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/it.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo6OR' => 'O',
'nw_PublicSIPPort' => 'Numero di porta SIP inoltrato al PBX interno %SIP_PORT%.',
'nw_PublicTLSPort' => 'Numero di porta SIP TLS inoltrato al PBX interno %TLS_PORT%.',
'gs_ErrorSaveSettings' => 'Errore durante il salvataggio delle impostazioni',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Il numero di interno specificato è già in uso',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/ja.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo2' => '1:1 NAT が使用されていない場合は、ルーター設定で次のポートをパブリック IP から PBX の内部 IP アドレスにリダイレクトします。',
'nw_NATInfo3' => '%SIP_PORT% TCP/UDP および %TLS_PORT% TCP',
'nw_PublicTLSPort' => '内部 %TLS_PORT% PBX に転送される SIP TLS ポート番号',
'mo_ThisNumberNotUniqueForExtensionsModels' => '指定された内線番号はすでに使用されています',
'gs_ErrorSaveSettings' => '設定の保存中にエラーが発生しました',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/ka.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo1' => 'თუ თქვენი ქსელი კონფიგურირებულია 1:1 NAT-ის მხარდასაჭერად (ჩვეულებრივ, ნაგულისხმევია ღრუბლებში), თქვენ არ გჭირდებათ რაიმე დამატებითი პარამეტრების გაკეთება თქვენს როუტერზე.',
'nw_NATInfo5' => 'თუ მითითებულია გარე ჰოსტის სახელი, ის გამოყენებული იქნება უპირატესად გარე IP მისამართის ნაცვლად.',
'nw_PublicSIPPort' => 'SIP პორტის ნომერი გადაგზავნილია შიდა %SIP_PORT% PBX-ში',
'gs_ErrorSaveSettings' => 'შეცდომა პარამეტრების შენახვისას',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'მითითებული გაფართოების ნომერი უკვე გამოიყენება',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/nl.php
Original file line number Diff line number Diff line change
Expand Up @@ -1279,4 +1279,6 @@
'nw_NATInfo6OR' => 'OF',
'nw_PublicSIPPort' => 'SIP-poortnummer doorgestuurd naar interne %SIP_PORT% PBX',
'nw_PublicTLSPort' => 'SIP TLS-poortnummer doorgestuurd naar interne %TLS_PORT% PBX',
'gs_ErrorSaveSettings' => 'Fout bij opslaan van instellingen',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Het opgegeven toestelnummer is al in gebruik',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/pl.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo5' => 'Jeśli określono zewnętrzną nazwę hosta, będzie ona używana zamiast zewnętrznego adresu IP.',
'nw_NATInfo6OR' => 'LUB',
'nw_PublicTLSPort' => 'Numer portu SIP TLS przekazywany do wewnętrznej centrali %TLS_PORT% PBX',
'gs_ErrorSaveSettings' => 'Błąd podczas zapisywania ustawień',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Podany numer wewnętrzny jest już zajęty',
];
10 changes: 6 additions & 4 deletions src/Common/Messages/pt.php
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@
'ex_Number' => 'Número do ramal',
'ex_Language' => 'Interface e linguagem de alerta',
'ex_ThisEmailAlreadyRegisteredForOtherUser' => 'O endereço digitado já está registrado para',
'ex_EmailAddress' => 'Endereço de email',
'ex_EmailAddress' => 'Endereço de e-mail',
'ex_Username' => 'Nome completo do usuário',
'ex_RoutingSettings' => 'Configurações de roteamento',
'ex_GeneralSettings' => 'Parâmetros-chave',
Expand Down Expand Up @@ -876,13 +876,13 @@
'November' => 'Novembro',
'October' => 'Outubro',
'September' => 'Setembro',
'August' => 'Agosto',
'August' => 'agosto',
'July' => 'Julho',
'June' => 'Junho',
'May' => 'Maio',
'April' => 'Abril',
'March' => 'Março',
'February' => 'Fevereiro',
'February' => 'fevereiro',
'gs_WebAdminLanguage' => 'Linguagem da interface da Web',
'lang_HelpWithTranslateIt' => 'Ajuda com a tradução do MikoPBX',
'topMenu_Support' => 'Suporte',
Expand Down Expand Up @@ -1109,7 +1109,7 @@
'mo_SystemExten_hangup' => 'Terminar chamada',
'mo_SystemExten_busy' => 'Reproduzir sinal de ocupado',
'mo_SystemExten_did2user' => 'Direto ao funcionário (correspondência por DID)',
'pr_FromUser_v2' => 'do utilizador',
'pr_FromUser_v2' => 'Usuário',
'pr_FromDomain_v2' => 'domínio',
'mo_SystemExten_voicemail' => 'Correio de voz',
'f2b_Jail_asterisk_v2' => 'Erros de autorização SIP',
Expand Down Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo6OR' => 'OU',
'nw_PublicSIPPort' => 'Número da porta SIP encaminhado para PBX interno %SIP_PORT%',
'nw_PublicTLSPort' => 'Número da porta SIP TLS encaminhado para PBX interno %TLS_PORT%',
'gs_ErrorSaveSettings' => 'Erro ao salvar as configurações',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'O número de ramal especificado já está em uso',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/pt_BR.php
Original file line number Diff line number Diff line change
Expand Up @@ -1279,4 +1279,6 @@
'nw_NATInfo5' => 'Se um nome de host externo for especificado, ele será usado preferencialmente ao endereço IP externo.',
'nw_NATInfo6OR' => 'OU',
'nw_PublicSIPPort' => 'Número da porta SIP encaminhado para PBX interno %SIP_PORT%',
'gs_ErrorSaveSettings' => 'Erro ao salvar as configurações',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'O número de ramal especificado já está em uso',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/ro.php
Original file line number Diff line number Diff line change
Expand Up @@ -1262,4 +1262,6 @@
'nw_NATInfo6OR' => 'SAU',
'nw_PublicSIPPort' => 'Numărul portului SIP redirecționat către PBX intern %SIP_PORT%.',
'nw_PublicTLSPort' => 'Numărul portului SIP TLS redirecționat către centrala internă %TLS_PORT%.',
'gs_ErrorSaveSettings' => 'Eroare la salvarea setărilor',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Numărul de extensie specificat este deja în uz',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/ru.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,8 @@
'gs_PBXRecordSavePeriodLabel' => 'Период хранения записей разговоров',
'gs_StoreAllPossibleRecords' => '',
'gs_DisableAllModules' => 'Отключить маркетплейс',
'gs_ErrorSaveSettings' => 'Ошибка сохранения настроек',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Указанный внутренний номер уже используется',
'pr_AddSIPProvider' => 'Подключить SIP',
'pr_AddIAXProvider' => 'Подключить IAX',
'pr_QualifyInstructionsIAX' => 'При включение этой опции Asterisk будет отправлять SIP Options пакеты. Это необходимо для поддержки NAT туннелирования на вашем маршрутизаторе.',
Expand Down
2 changes: 2 additions & 0 deletions src/Common/Messages/sv.php
Original file line number Diff line number Diff line change
Expand Up @@ -1246,4 +1246,6 @@
'nw_NATInfo6OR' => 'ELLER',
'nw_PublicSIPPort' => 'SIP-portnummer vidarebefordrat till intern %SIP_PORT% PBX',
'nw_PublicTLSPort' => 'SIP TLS-portnummer vidarebefordrat till intern %TLS_PORT% PBX',
'gs_ErrorSaveSettings' => 'Det gick inte att spara inställningar',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Det angivna anknytningsnumret används redan',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/th.php
Original file line number Diff line number Diff line change
Expand Up @@ -1244,4 +1244,6 @@
'nw_PublicTLSPort' => 'หมายเลขพอร์ต SIP TLS ส่งต่อไปยัง PBX ภายใน %TLS_PORT%',
'nw_NATInfo1' => 'หากเครือข่ายของคุณได้รับการกำหนดค่าให้รองรับ NAT 1:1 (โดยปกติจะเป็นค่าเริ่มต้นในระบบคลาวด์) คุณไม่จำเป็นต้องทำการตั้งค่าเพิ่มเติมใดๆ บนเราเตอร์ของคุณ',
'nw_NATInfo2' => 'หากไม่ได้ใช้ NAT 1:1 ให้เปลี่ยนเส้นทางพอร์ตต่อไปนี้จาก IP สาธารณะไปยังที่อยู่ IP ภายในของ PBX ในการตั้งค่าเราเตอร์ของคุณ',
'gs_ErrorSaveSettings' => 'เกิดข้อผิดพลาดในการบันทึกการตั้งค่า',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'หมายเลขต่อขยายที่ระบุมีการใช้งานแล้ว',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/tr.php
Original file line number Diff line number Diff line change
Expand Up @@ -1246,4 +1246,6 @@
'nw_NATInfo4' => '%RTP_PORT_FROM%-%RTP_PORT_TO% UDP',
'nw_NATInfo5' => 'Harici bir ana bilgisayar adı belirtilirse, harici IP adresi yerine bu ad kullanılacaktır.',
'nw_PublicSIPPort' => 'Dahili %SIP_PORT% PBX\'e iletilen SIP bağlantı noktası numarası',
'gs_ErrorSaveSettings' => 'Ayarlar kaydedilirken hata oluştu',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Belirtilen dahili numara zaten kullanımda',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/uk.php
Original file line number Diff line number Diff line change
Expand Up @@ -1280,4 +1280,6 @@
'nw_NATInfo5' => 'Якщо вказано зовнішнє ім\'я хоста, воно буде використовуватись у пріоритеті замість зовнішньої IP-адреси.',
'nw_PublicSIPPort' => 'Номер порту SIP перенаправленого на внутрішній %SIP_PORT% PBX',
'nw_PublicTLSPort' => 'Номер порту SIP TLS перенаправленого на внутрішній %TLS_PORT% PBX',
'gs_ErrorSaveSettings' => 'Помилка збереження налаштувань',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Вказаний внутрішній номер вже використовується',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/vi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1246,4 +1246,6 @@
'nw_NATInfo3' => '%SIP_PORT% TCP/UDP và %TLS_PORT% TCP',
'nw_NATInfo4' => '%RTP_PORT_FROM%-%RTP_PORT_TO% UDP',
'nw_NATInfo6OR' => 'HOẶC',
'gs_ErrorSaveSettings' => 'Lỗi lưu cài đặt',
'mo_ThisNumberNotUniqueForExtensionsModels' => 'Số máy nhánh được chỉ định đã được sử dụng',
];
2 changes: 2 additions & 0 deletions src/Common/Messages/zh_Hans.php
Original file line number Diff line number Diff line change
Expand Up @@ -1246,4 +1246,6 @@
'nw_NATInfo4' => '%RTP_PORT_FROM%-%RTP_PORT_TO% UDP',
'nw_NATInfo5' => '如果指定了外部主机名,则将优先使用外部主机名而不是外部 IP 地址。',
'nw_PublicTLSPort' => '转发到内部 %TLS_PORT% PBX 的 SIP TLS 端口号',
'gs_ErrorSaveSettings' => '保存设置时出错',
'mo_ThisNumberNotUniqueForExtensionsModels' => '指定的分机号码已被使用',
];
Loading

0 comments on commit a31f548

Please sign in to comment.