# -*- 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, [ ("
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"'), ('', ''), ('', ''), ('placeholder="pelda@email.hu"', 'placeholder="you@example.com"'), ('', ''), ('', ''), ('', ''), ('', ''), ('', ''), ('', ''), ('', ''), ('', ''), ('', ''), ('', ''), ('placeholder="Írd le, miben segíthetünk..."', 'placeholder="Tell us how we can help..."'), ('', ''), ('', ''), ("Kattints ide vagy húzd ide a fájlokat", "Click here or drag your files here"), ('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")