# -*- coding: utf-8 -*- """/en/contact — the English twin of kapcsolat.html. Same form, same /api/contact, same ?tema= values; English subject labels go into the mail subject. The consent text is translated as it is (R-813 owns it).""" import sys sys.path.insert(0, __file__.rsplit("/", 1)[0]) from common import * from en_common import * s = en_head(read("kapcsolat.html"), "/kapcsolat", "/en/contact") s = tr(s, [ ("Kapcsolat — Kérj személyre szabott ajánlatot otthoni szerveredhez | Felhom.eu", "Contact — ask for a personal offer for your home server | Felhom.eu"), ('content="Írj nekünk és személyre szabott ajánlatot készítünk otthoni szerveredhez. Kérdésed van? Segítünk! Email: info@felhom.eu"', 'content="Write to us and we will make a personal offer for your home server in Hungary. A question? We help! E-mail: info@felhom.eu"'), ('content="kapcsolat, ajánlatkérés, otthoni szerver ajánlat, Felhom elérhetőség"', 'content="contact, request an offer, home server offer, Felhom contact"'), ('content="Kapcsolat — Felhom.eu"', 'content="Contact — Felhom.eu"', 2), ('content="Írj nekünk és személyre szabott ajánlatot készítünk otthoni szerveredhez."', 'content="Write to us and we will make a personal offer for your home server."'), ('content="Kérdésed van? Írj nekünk: info@felhom.eu"', 'content="A question? Write to us: info@felhom.eu"'), ("

Írj nekünk bátran!

", "

Write to us!

"), ("

Kérdésed van, vagy szeretnéd megbeszélni az igényeidet? Töltsd ki az űrlapot, és hamarosan válaszolunk.

", "

A question, or want to talk about what you need? Fill in the form and we will answer soon. We answer in English or Hungarian.

"), ('', ''), ('placeholder="Teljes neved"', 'placeholder="Your full name"'), ('
Kérlek, add meg a neved.
', '
Enter your name.
'), ('', ''), ('placeholder="pelda@email.hu"', 'placeholder="you@example.com"'), ('
Kérlek, adj meg egy érvényes email címet.
', '
Enter a valid e-mail address.
'), ('', ''), ('', ''), ('', ''), ('', ''), ('', ''), ('', ''), ('', ''), ('
Kérlek, válassz egy témát.
', '
Choose a topic.
'), ('', ''), ('placeholder="Írd le, miben segíthetünk..."', 'placeholder="Tell us how we can help..."'), ('
Kérlek, írd le az üzeneted.
', '
Write your message.
'), ('', ''), ("Kattints ide vagy húzd ide a fájlokat", "Click here or drag your files here"), ('
PDF, képek, dokumentumok · Max. 20 MB összesen
', '
PDF, images, documents · max. 20 MB in total
'), ("Elfogadom, hogy az űrlapon megadott adataimat a Felhom.eu a megkeresésem megválaszolásához felhasználja. Az adatokat harmadik félnek nem adjuk ki.", "I agree that Felhom.eu uses the details I give in this form to answer my enquiry. The details are not passed on to third parties."), ('>Az adatkezelési hozzájárulás szükséges.', '>Your consent to the use of your details is needed.'), ('Üzenet küldése →', 'Send message →'), ("Közvetlen email", "E-mail us directly"), ("

Ha inkább emailben írnál:

", "

If you would rather send an e-mail:

"), ("Válaszidő", "Reply time"), ('

Általában 24 órán belül válaszolunk munkanapokon.

', '

We usually answer within 24 hours on working days.

'), ("

Sürgős támogatási kérdés esetén jelezd a tárgyban.

", "

If a support question is urgent, say so in the subject.

"), ("Miben segíthetünk?", "How can we help?"), ("Szerver konfiguráció tanácsadás", "Advice on a server set-up"), ("Alkalmazás telepítés és beállítás", "Installing and setting up apps"), ("Biztonsági mentés kialakítás", "Setting up backups"), ("Távoli elérés beállítása", "Setting up remote access"), ("Meglévő szerver karbantartás", "Maintaining an existing server"), # --- the form script: every message the visitor can see ("// Preselect the subject from ?tema= (the „Zárt teszt\" CTA on the landing page\n // links here as /kapcsolat?tema=zart-teszt). Unknown values are ignored.", "// Preselect the subject from ?tema= (the closed-test CTA on the landing page\n // links here as /en/contact?tema=zart-teszt — the same values as the Hungarian page). Unknown values are ignored."), ("console.warn('[kapcsolat] unknown ?tema= value, ignoring:', wanted);", "console.warn('[contact] unknown ?tema= value, ignoring:', wanted);"), ('showStatus(`A "${file.name}" fájltípus nem engedélyezett.`, \'error-state\');', 'showStatus(`The file type of "${file.name}" is not allowed.`, \'error-state\');'), ('showStatus(`A "${file.name}" túl nagy (max. ${formatFileSize(CONFIG.maxSingleFileSize)} / fájl).`, \'error-state\');', 'showStatus(`"${file.name}" is too large (max. ${formatFileSize(CONFIG.maxSingleFileSize)} per file).`, \'error-state\');'), ("showStatus(`Maximum ${CONFIG.maxFiles} fájl csatolható.`, 'error-state');", "showStatus(`You can attach at most ${CONFIG.maxFiles} files.`, 'error-state');"), ("showStatus(`Összesített fájlméret meghaladja a ${formatFileSize(CONFIG.maxTotalFileSize)} limitet.`, 'error-state');", "showStatus(`The files together are over the ${formatFileSize(CONFIG.maxTotalFileSize)} limit.`, 'error-state');"), ('title="Eltávolítás"', 'title="Remove"'), ("missing.push('név');", "missing.push('name');"), ("missing.push('tárgy');", "missing.push('subject');"), ("missing.push('üzenet');", "missing.push('message');"), ("missing.push('adatkezelési hozzájárulás');", "missing.push('consent');"), ("missing[0] === 'adatkezelési hozzájárulás'", "missing[0] === 'consent'"), ("showStatus('Kérlek, fogadd el az adatkezelési hozzájárulást a küldéshez.', 'error-state');", "showStatus('Tick the consent box to send the form.', 'error-state');"), ("showStatus('Kérlek, töltsd ki az összes kötelező mezőt.', 'error-state');", "showStatus('Fill in every required field.', 'error-state');"), ("'zart-teszt': 'Jelentkezés — zárt teszt',", "'zart-teszt': 'Application — closed test (EN)',"), ("erdeklodes: 'Érdeklődés',", "erdeklodes: 'Interest (EN)',"), ("arajanlat: 'Árajánlat kérés',", "arajanlat: 'Quote request (EN)',"), ("tamogatas: 'Támogatás',", "tamogatas: 'Support (EN)',"), ("egyeb: 'Egyéb',", "egyeb: 'Other (EN)',"), ("showStatus('Üzeneted sikeresen elküldtük! Hamarosan válaszolunk.', 'success');", "showStatus('Your message has been sent. We will answer soon.', 'success');"), ("`Név: ${formData.name}`,", "`Name: ${formData.name}`,"), ("showStatus('Az email kliens megnyílt. A csatolt fájlokat kézzel kell hozzáadnod az emailhez, mert a mailto: link nem támogatja a mellékleteket.', 'error-state');", "showStatus('Your e-mail program has opened. Add the attached files to the e-mail by hand: a mailto: link cannot carry attachments.', 'error-state');"), ("showStatus('Az email kliens megnyílt az üzeneteddel. Küld el az emailt a kapcsolatfelvételhez!', 'success');", "showStatus('Your e-mail program has opened with your message. Send the e-mail to get in touch.', 'success');"), ("showStatus(`Hiba történt a küldés során. Kérlek, próbáld újra vagy írj közvetlenül az info@felhom.eu címre.`, 'error-state');", "showStatus(`Something went wrong while sending. Try again, or write to info@felhom.eu directly.`, 'error-state');"), ("// showSuccess: () => showStatus('Üzeneted sikeresen elküldtük!', 'success'),", "// showSuccess: () => showStatus('Your message has been sent.', 'success'),"), ("throw new Error(`Szerver hiba: ${response.status}`);", "throw new Error(`Server error: ${response.status}`);"), ("// showError: () => showStatus('Hiba történt.', 'error-state'),", "// showError: () => showStatus('Something went wrong.', 'error-state'),"), ]) s = finish_en(s, "/kapcsolat", "/en/contact", "/en/contact") write("en/contact.html", s) print("written en/contact.html")