Skip to content

Commit

Permalink
Link email address in html instead of separate link
Browse files Browse the repository at this point in the history
Use mailto: anchor for email address, remove redundant "send email now"
link, remove unneeded line from translations.
  • Loading branch information
rowanthorpe committed Jul 14, 2017
1 parent 7e919e9 commit 9cf192e
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions code.gs
Expand Up @@ -176,7 +176,6 @@ var i18n = {
'version': 'εκδοχή',
'by': 'από τον', // τον=masculine,την=feminine (using the masculine, in one place, for now but may need more context in future)
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'στείλε email τώρα',
'Mobile phone': 'Κινητό',
'Work phone': 'Τηλέφωνο εργασίας',
'Home phone': 'Τηλέφωνο οικίας',
Expand All @@ -199,7 +198,6 @@ var i18n = {
'version': 'versión',
'by': 'por',
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'enviar mail ahora',
'Mobile phone': 'Celular',
'Work phone': 'Teléfono del trabajo',
'Home phone': 'Teléfono del hogar',
Expand All @@ -222,7 +220,6 @@ var i18n = {
'version': 'versione',
'by': 'by',
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'invia email ora',
'Mobile phone': 'Cellulare',
'Work phone': 'Telefono di lavoro',
'Home phone': 'Telefono di casa',
Expand All @@ -245,7 +242,6 @@ var i18n = {
'version': 'versi',
'by': 'oleh',
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'kirim email sekarang',
'Mobile phone': 'Telp. selular',
'Work phone': 'Telp. kantor',
'Home phone': 'Telp. rumah',
Expand All @@ -268,7 +264,6 @@ var i18n = {
'version': 'Version',
'by': 'von',
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'Jetzt eine E-Mail schicken',
'Mobile phone': 'Mobiltelefon',
'Work phone': 'Geschäftlich',
'Home phone': 'Privat',
Expand All @@ -291,7 +286,6 @@ var i18n = {
'version': 'wersja',
'by': 'od',
'dd-MM-yyyy': 'dd-MM-yyyy',
'send email now': 'Wyślij e-mail teraz',
'Mobile phone': 'Telefon komórkowy',
'Work phone': 'Telefon praca',
'Home phone': 'Telefon domowy',
Expand Down Expand Up @@ -649,7 +643,7 @@ var Contact = function (event, eventType) {
line.push(' (');
// Email address.
if (self.email !== '') {
line.push(self.email);
line.push('<a href="mailto:', self.email, '">', self.email, '</a>');
}
// Phone fields.
self.phoneFields.forEach(function (phoneField, i) {
Expand All @@ -665,10 +659,6 @@ var Contact = function (event, eventType) {
});
line.push(')');
}
// Mailto link.
if (self.email !== '') {
line.push(' <a href="mailto:', self.email, '">', _('send email now'), '</a>');
}
lines.push(line);
});
return lines.map(function (x) { return x.join(''); }).join('\n');
Expand Down

0 comments on commit 9cf192e

Please sign in to comment.