You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"ca": "Inspira a altres usuaris aquest Novembre!",
22
+
}
23
+
titles['gl'] =titles['es']
24
+
25
+
translations= {
26
+
"en": {
27
+
"title": "Top contributors like you inspire us!",
28
+
"line1": "You are one of the <strong>top 100 users</strong> with the most activity on our platform.",
29
+
"line2": "This November, we’re hosting an <strong>Open Dialogue on citizen science</strong>, and we’d love for you to share your story in a short 5-min talk.",
"title": "¡Los contribuidores como tú nos inspiran!",
34
+
"line1": "Eres uno de los <strong>top 100 usuarios</strong> con más actividad en nuestra plataforma.",
35
+
"line2": "Este noviembre organizamos un <strong>Diálogo Abierto sobre ciencia ciudadana</strong>, y nos encantaría que compartieras tu historia en una charla corta de 5 minutos.",
36
+
"line3": 'Si estás interesado, por favor escribe a <a href="mailto:[email protected]?subject=Open%20Dialogue%20Lightning%20Talk">[email protected]</a>.'
37
+
},
38
+
"ca": {
39
+
"title": "Els contribuïdors com tu ens inspiren!",
40
+
"line1": "Ets un dels <strong>top 100 usuaris</strong> amb més activitat a la nostra plataforma.",
41
+
"line2": "Aquest novembre organitzem un <strong>Diàleg Obert sobre ciència ciutadana</strong>, i ens encantaria que compartissis la teva història en una xerrada curta de 5 minuts.",
42
+
"line3": 'Si hi estàs interessat, si us plau escriu a <a href="mailto:[email protected]?subject=Open%20Dialogue%20Lightning%20Talk">[email protected]</a>.'
43
+
}
44
+
}
45
+
translations['gl'] =translations['es']
46
+
47
+
html_template="""
48
+
<!DOCTYPE html>
49
+
<html>
50
+
<head>
51
+
<meta charset="utf-8" />
52
+
</head>
53
+
<body>
54
+
<div>
55
+
<h4>{title}</h4>
56
+
<p>{line1}</p>
57
+
<p>{line2}</p>
58
+
<p>{line3}</p>
59
+
</div>
60
+
</body>
61
+
</html>
62
+
"""
63
+
64
+
defgenerate_email(language="en"):
65
+
text=translations.get(language, translations["en"]) # fallback to English
0 commit comments