Skip to content

Commit

Permalink
Merge branch 'master' into translations_3b5aa4f3c755059914cfa23d7d2ed…
Browse files Browse the repository at this point in the history
…cde_tr
  • Loading branch information
farhatahmad authored Aug 6, 2024
2 parents 8d3cb23 + 92c6cf3 commit 80d8700
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 11 deletions.
25 changes: 19 additions & 6 deletions app/assets/locales/tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"report": "Bildir",
"share": "Paylaş",
"cancel": "İptal",
"reset": "Sıfırla",
"close": "Kapat",
"delete": "Sil",
"copy": "Kopyala",
Expand Down Expand Up @@ -163,6 +164,10 @@
"wrong_access_code": "Erişim kodu yanlış",
"generate_viewers_access_code": "İzleyiciler için erişim kodu oluştur",
"generate_mods_access_code": "Sorumlular için erişim kodu oluştur",
"server_tag": "Bu oda için bir sunucu türü seçin",
"default_tag_name": "Varsayılan",
"server_tag_desired": "İstenilen",
"server_tag_required": "Zorunlu",
"are_you_sure_delete_room": "Bu odayı silmek istediğinize emin misiniz?"
}
},
Expand Down Expand Up @@ -229,7 +234,8 @@
"empty_invited_users_subtext": "Durumu çağrılmış olarak değiştirilen kullanıcılar burada görüntülenir.",
"invited": {
"time_sent": "Gönderilme zamanı",
"valid": "Geçerli"
"valid": "Geçerli",
"revoke": "Geçersiz kıl"
}
},
"server_rooms": {
Expand Down Expand Up @@ -272,8 +278,8 @@
"administration": {
"administration": "Yönetim",
"terms": "Hüküm ve koşullar",
"privacy": "Gizlilik ilkesi",
"privacy_policy": "Gizlilik ilkesi",
"privacy": "Gizlilik bildirimi",
"privacy_policy": "Gizlilik bildirimi",
"change_term_links": "Sayfanın altında görüntülenecek koşullar bağlantısını değiştir",
"change_privacy_link": "Sayfanın altında görüntülenecek gizlilik bağlantısını değiştir",
"helpcenter": "Yardım merkezi",
Expand Down Expand Up @@ -301,7 +307,7 @@
"registration": {
"registration": "Hesap açma",
"role_mapping_by_email": "Roller e-postaya göre eşleştirilsin",
"role_mapping_by_email_description": "Kullanıcı rollerini e-postalarına göre belirler. rol1?e-posta1, rol2=e-posta2 biçiminde olmalıdır",
"role_mapping_by_email_description": "Kullanıcı rollerini e-postalarına göre belirler. rol1?e-posta1,rol2=e-posta2 biçiminde olmalıdır",
"enter_role_mapping_rule": "Bir rol eşleştirme kuralı yazın",
"resync_on_login": "Kullanıcı verileri her oturum açıldığında eşitlensin",
"resync_on_login_description": "Bir kullanıcının bilgilerini her oturum açtığından yeniden eşitleyerek, Greenlight üzerindeki bilgilerin her zaman dış kimlik doğrulama hizmeti sağlayıcısındakiler ile aynı olmasını sağlar",
Expand Down Expand Up @@ -411,7 +417,7 @@
"brand_color_updated": "Marka rengi güncellendi.",
"brand_image_updated": "Marka görseli güncellendi.",
"brand_image_deleted": "Marka görseli silindi.",
"privacy_policy_updated": "Gizlilik ilkesi güncellendi.",
"privacy_policy_updated": "Gizlilik bildirimi güncellendi.",
"helpcenter_updated": "Yardım merkezi bağlantısı güncellendi.",
"terms_of_service_updated": "Hizmet koşulları güncellendi.",
"maintenance_updated": "Bakım duyurusu güncellendi."
Expand All @@ -429,11 +435,13 @@
"role_permission_updated": "Rol yetkileri güncellendi."
},
"invitations": {
"invitation_sent": "Çağrı gönderildi"
"invitation_sent": "Çağrı gönderildi",
"invitation_revoked": "Bir çağrı geçersiz kılındı"
}
},
"error": {
"problem_completing_action": "Bu işlem yapılırken bir sorun çıktı.\nLütfen yeniden deneyin.",
"server_type_unavailable": "İstenilen sunucu türü kullanılamıyor. Lütfen oda ayarlarında başka bir tür seçin.",
"file_type_not_supported": "Dosya türü desteklenmiyor.",
"file_size_too_large": "Dosya boyutu çok büyük.",
"file_upload_error": "Dosya yüklenemedi.",
Expand Down Expand Up @@ -530,6 +538,11 @@
},
"url": {
"invalid": "Adres geçersiz"
},
"text_form": {
"value": {
"required": "Lütfen bir ileti yazın"
}
}
},
"room": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// You should have received a copy of the GNU Lesser General Public License along
// with Greenlight; if not, see <http://www.gnu.org/licenses/>.

import React, { useEffect } from 'react';
import React, { useCallback, useEffect, useRef } from 'react';
import PropTypes from 'prop-types';
import { Button } from 'react-bootstrap';
import { useTranslation } from 'react-i18next';
Expand All @@ -29,13 +29,28 @@ export default function LinksForm({ id, value, mutation: useUpdateSiteSettingsAP

const { methods, fields } = useLinksForm({ defaultValues: { value } });

const formText = useRef('');

useEffect(() => {
if (!methods) { return; }
methods.reset({ value });
if (methods) {
methods.reset({ value });
formText.current = value;
}
}, [methods, value]);

const handleSubmit = useCallback(
(formData) => {
if (formText.current !== formData[`${fields.value.hookForm.id}`]) {
formText.current = formData[`${fields.value.hookForm.id}`];
return updateSiteSettingsAPI.mutate(formData);
}
return null;
},
[updateSiteSettingsAPI.mutate],
);

return (
<Form id={id} methods={methods} onSubmit={updateSiteSettingsAPI.mutate}>
<Form id={id} methods={methods} onSubmit={handleSubmit}>
<FormControl
field={fields.value}
aria-describedby={`${id}-submit-btn`}
Expand Down
2 changes: 1 addition & 1 deletion config/locales/tr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ tr:
invitation_to_join: BigBlueButton çağrısı
you_have_been_invited: "%{name} tarafından bir BigBlueButton hesabı açmaya çağrıldınız."
get_started: Hesap açmak için aşağıdaki düğmeye tıklayın ve yönergeleri izleyin.
valid_invitation: Çağrı 7 gün süreyle geçerlidir.
valid_invitation: Çağrı 7 gün boyunca geçerlidir.
sign_up: Hesap aç
new_user_signup:
new_user: Yeni BigBlueButton kullanıcı hesabı açılışı
Expand Down

0 comments on commit 80d8700

Please sign in to comment.