Merge pull request #223 from openclassify/fatih

Map added and language is fixed
This commit is contained in:
Fatih Alp 2020-01-10 20:51:50 +03:00 committed by GitHub
commit 70a0bf303e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 61 additions and 29 deletions

View File

@ -133,7 +133,9 @@ function haritaIslem() {
return true;
}
str = str.replace(/\(.+\)/g, "").replace(' ', ' ');
google.maps.event.addListener(map, 'click', function (event) {
placeMarker(event.latLng);
});
var geocoder = new google.maps.Geocoder();
geocoder.geocode({'address': str}, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
@ -149,9 +151,7 @@ function haritaIslem() {
}
if ($('select[name="'+neighborhoodSelectName+'"]').val() != "" && $('select[name="'+neighborhoodSelectName+'"]').val() != 0 && secildi == 0) {
secildi = 1;
google.maps.event.addListener(map, 'click', function (event) {
placeMarker(event.latLng);
});
}
});
}

View File

@ -249,5 +249,6 @@ return [
],
'yes' => [
'name' => 'نعم'
]
],
"no_location" => "لا يوجد موقع محدد"
];

View File

@ -249,5 +249,6 @@ return [
],
'yes' => [
'name' => 'Yes'
]
],
"no_location" => "No location is selected."
];

View File

@ -143,7 +143,7 @@ return [
'approve' => 'Approuver',
'passive' => "Passif",
'offered_by' => 'Offert par',
'more_ads_by' => 'Plus d\\'annonces par',
'more_ads_by' => 'Plus dannonces par',
'click_phone' => 'Afficher le numéro de téléphone',
'share' => 'Partager cette annonce',
'report' => 'Signaler cette annonce',
@ -155,12 +155,12 @@ return [
'secure_trading' => 'Trading sécurisé',
'24/7' => 'Assistance 24/7',
'easy_trading' => 'Trading facile',
'need_help' => 'Besoin d\\'aide pour?',
'need_help' => 'Besoin daide pour?',
'give_a_call' => 'Donner un appel sur',
'message_sent' => 'Message envoyé!',
'asap' => 'Message envoyé,
le vendeur vous contactera dès que possible.',
'ad_id' => 'ID d\\'annonce',
'ad_id' => 'ID dannonce',
'contact_with' => 'Contacter avec',
'create_adv' => 'Créer une publicité',
'edit_adv' => 'Modifier une annonce',
@ -184,7 +184,7 @@ return [
'is_get_adv' => [
'name' => 'OBTENIR'
],
'corporate_info' => 'Informations sur l\\'entreprise',
'corporate_info' => 'Informations sur lentreprise',
'featured_ads' => "Annonces en vedette",
'trending_ads' => 'Annonces Trendind',
'search_ads_result_message' => [
@ -199,9 +199,9 @@ return [
'list' => 'liste',
],
'advs_list_table_thead' => [
'name' => 'Nom de l\\'annonce',
'name' => 'Nom de lannonce',
'price' => 'Prix',
'publish_at' => 'Date de l\\'annonce',
'publish_at' => 'Date de lannonce',
'location_city' => 'Ville',
'location_country' => 'Pays',
],

View File

@ -121,7 +121,7 @@ return [
'search' => 'Ricerca',
'recommended' => 'Annunci consigliati per te',
'sort_by' => 'Ordina per',
'pick_option' => 'Scegli un\\'opzione',
'pick_option' => 'Scegli unopzione',
'pick_ordering' => 'Ordering',
'price_high' => 'Prezzo da alto a basso',
'price-low' => 'Prezzo da basso ad alto',
@ -131,7 +131,7 @@ return [
'location' => 'Posizione',
'send_message' => 'Invia messaggio',
'phone_gsm' => 'Telefono GSM',
'phone_office' => 'Telefono dell\\'ufficio',
'phone_office' => 'Telefono dellufficio',
'add_to_favorites' => "Aggiungi ai preferiti",
'send' => 'Inviare',
'search_name' => 'Cerca nome',
@ -199,9 +199,9 @@ return [
'list' => 'Elenco',
],
'advs_list_table_thead' => [
'name' => 'Nome dell\\'annuncio',
'name' => 'Nome dellannuncio',
'price' => 'Prezzo',
'publish_at' => 'Data dell\\'annuncio',
'publish_at' => 'Data dellannuncio',
'location_city' => 'Città',
'location_country' => 'Nazione',
],

View File

@ -107,7 +107,7 @@ return [
'name' => 'Açıklama'
],
'type' => [
'name' => 'tip'
'name' => 'Tip'
],
'parent_adv' => [
'name' => 'İlgili İlan'
@ -116,7 +116,7 @@ return [
'name' => 'değer'
],
'list' => 'List',
'home' => 'Ev',
'home' => 'Anasayfa',
'list-page' => 'Liste Sayfası',
'search' => 'Arama',
'recommended' => 'Sizin için Önerilen İlanlar',
@ -172,7 +172,7 @@ return [
'email' => 'E-Posta',
'phone' => 'Telefon',
'send_us_your_feedback' => 'Bize Görüşlerinizi Gönderin',
'online_shopping' => 'ALMAK',
'online_shopping' => 'Mağaza',
'approved' => 'Başarıyla Onaylandı',
'extended' => 'Extended Successfully',
'declined' => 'Başarıyla Reddedildi',
@ -203,7 +203,7 @@ return [
'name' => 'İlan Adı',
'price' => 'Fiyat',
'publish_at' => 'İlan Tarihi',
'location_city' => 'Kent',
'location_city' => 'Şehir',
'location_country' => 'ülke',
],
'show_list_view' => [
@ -229,27 +229,28 @@ return [
],
'edit_category' => 'Kategori Düzenle',
'max' => [
'name' => 'Max',
'name' => 'Maks',
],
'min' => [
'name' => 'Min',
],
'in_the_last_24_hours' => [
'name' => 'In The Last 24 Hours'
'name' => 'Son 24 saat'
],
'in_the_last_week' => [
'name' => 'In The Last Week'
'name' => 'Son 1 hafta'
],
'in_the_last_month' => [
'name' => 'In The Last Month'
'name' => 'Son 1 Ay'
],
'ads_with_photo' => [
'name' => 'Ads With Photo'
'name' => 'Fotoğraflı İlanlar'
],
'ads_with_video' => [
'name' => 'Ads With Video'
'name' => 'Videolu İlanlar'
],
'yes' => [
'name' => 'Yes'
]
'name' => 'Evet'
],
"no_location" => "Lokasyon eklenmemiş."
];

View File

@ -0,0 +1,29 @@
<p>
{% if(adv.map_Val == "") %}
{{ trans('visiosoft.module.advs::field.no_location') }}
{% else %}
{% set map_arr = adv.map_Val|split(',') %}
<div id="mapDiv" style="height: 500px; width: 100%; "></div>
<script>
var lat = parseFloat({{ map_arr[0] }});
var lng = parseFloat({{ map_arr[1] }});
var google_map_key = "{{ setting_value('visiosoft.module.advs::google_map_key') }}";
function initMap() {
var myLatLng = {lat: lat, lng: lng};
var map = new google.maps.Map(document.getElementById('mapDiv'), {
zoom: 16,
center: myLatLng
});
new google.maps.Marker({
position: myLatLng,
map: map
});
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key={{ setting_value('visiosoft.module.advs::google_map_key') }}&callback=initMap"
type="text/javascript"></script>
{% endif %}
</p>

View File

@ -9,7 +9,7 @@ return [
"login_error" => "تسجيل الدخول أو كلمة سر خاطئة.",
"login_noMail_old_user" => "لا يمكن العثور على عنوان البريد الإلكتروني الذي أدخلته.",
"login_noMail_old_user2" => "يرجى التحقق من عنوان البريد الإلكتروني والمحاولة مرة أخرى.",
"login_noMail_old_user3" => "إذا استمرت المشكلة ، يرجى الاتصال على \\'info@openclassify.com\\'.",
"login_noMail_old_user3" => "إذا استمرت المشكلة ، يرجى الاتصال على info@openclassify.co.",
"login_info_old_user" => "تم إرسال كلمة مرور جديدة إلى عنوان البريد الإلكتروني الخاص بك.",
"success" => "نجاح",
"notified_new_updates" => "أريد أن يتم إخباري بالتحديثات الجديدة",