liquid_feedback_frontend
changeset 1791:4edec387855f
Better handling of translation strings with links
author | bsw |
---|---|
date | Wed Oct 20 16:04:30 2021 +0200 (2021-10-20) |
parents | 20c1c8cc28ba |
children | fe28be5403e2 |
files | app/main/area/_sidebar_whatcanido.lua locale/translations.de.lua locale/translations.el.lua locale/translations.es.lua locale/translations.fr.lua locale/translations.it.lua |
line diff
1.1 --- a/app/main/area/_sidebar_whatcanido.lua Wed Oct 20 15:48:51 2021 +0200 1.2 +++ b/app/main/area/_sidebar_whatcanido.lua Wed Oct 20 16:04:30 2021 +0200 1.3 @@ -71,13 +71,15 @@ 1.4 ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.5 ui.tag { tag = "li", content = function () 1.6 ui.tag { content = function () 1.7 - ui.tag{ content = _"Edit your global " } 1.8 + local text = _"Edit your global <link>notification settings</link> to receive updates by email." 1.9 + local text_pre, text_link, text_post = string.match(text, "([^<]*)<link>([^<]+)</link>([^<]*)") 1.10 + ui.tag{ content = text_pre } 1.11 ui.link { 1.12 module = "member", view = "settings_notification", 1.13 params = { return_to = "area", return_to_area_id = area.id }, 1.14 - text = _"notification settings" 1.15 + text = text_link 1.16 } 1.17 - ui.tag{ content = _" to receive updates by email" } 1.18 + ui.tag{ content = text_post } 1.19 end } 1.20 end } 1.21 end }
2.1 --- a/locale/translations.de.lua Wed Oct 20 15:48:51 2021 +0200 2.2 +++ b/locale/translations.de.lua Wed Oct 20 16:04:30 2021 +0200 2.3 @@ -2,7 +2,6 @@ 2.4 return { 2.5 [" + file_upload_id); html = html.replace("] = false; 2.6 [" + file_upload_id); var el = document.createElement("] = false; 2.7 -[" to receive updates by email"] = " bearbeiten um Aktualisierungen per E-Mail zu erhalten"; 2.8 ["#{closed_ago} ago"] = "vor #{closed_ago}"; 2.9 ["#{count} Neutral"] = "#{count} Enthaltung"; 2.10 ["#{count} No"] = "#{count} Nein"; 2.11 @@ -226,7 +225,7 @@ 2.12 ["Edit"] = "Bearbeiten"; 2.13 ["Edit again"] = "Nochmal bearbeiten"; 2.14 ["Edit voting comment"] = "Abstimmungskommentar bearbeiten"; 2.15 -["Edit your global "] = "Die globalen "; 2.16 +["Edit your global <link>notification settings</link> to receive updates by email."] = "Die globalen <link>Benachrichtigungseinstellungen</link> bearbeiten, um Aktualisierungen per E-Mail zu erhalten."; 2.17 ["Edit your profile data"] = "Profildaten bearbeiten"; 2.18 ["Eligible as winner"] = "Als Gewinner qualifiziert"; 2.19 ["Eligible members (#{count})"] = "Stimmberechtigte Teilnehmende (#{count})";
3.1 --- a/locale/translations.el.lua Wed Oct 20 15:48:51 2021 +0200 3.2 +++ b/locale/translations.el.lua Wed Oct 20 16:04:30 2021 +0200 3.3 @@ -2,7 +2,6 @@ 3.4 return { 3.5 [" + file_upload_id); html = html.replace("] = false; 3.6 [" + file_upload_id); var el = document.createElement("] = false; 3.7 -[" to receive updates by email"] = "λήψη ενημερώσεων μέσω email"; 3.8 ["#{closed_ago} ago"] = "#{closed_ago} πριν"; 3.9 ["#{count} Neutral"] = "#{count} Ουδέτεροι"; 3.10 ["#{count} No"] = "#{count} Όχι"; 3.11 @@ -226,7 +225,7 @@ 3.12 ["Edit"] = "Επεξεργασία"; 3.13 ["Edit again"] = "Επεξεργασία ξανά"; 3.14 ["Edit voting comment"] = "Επεξεργασία του σχολίου της ψήφου"; 3.15 -["Edit your global "] = "Επεξεργασία του ολικού"; 3.16 +["Edit your global <link>notification settings</link> to receive updates by email."] = "Επεξεργασία του ολικού <link>ρυθμίσεις ειδοποιήσης</link> λήψη ενημερώσεων μέσω email."; 3.17 ["Edit your profile data"] = "Επεξεργασία στοιχείων προφίλ"; 3.18 ["Eligible as winner"] = "Επιλέξιμος ως νικητής"; 3.19 ["Eligible members (#{count})"] = "Επιλέξιμα μέλη (#{count})";
4.1 --- a/locale/translations.es.lua Wed Oct 20 15:48:51 2021 +0200 4.2 +++ b/locale/translations.es.lua Wed Oct 20 16:04:30 2021 +0200 4.3 @@ -2,7 +2,6 @@ 4.4 return { 4.5 [" + file_upload_id); html = html.replace("] = false; 4.6 [" + file_upload_id); var el = document.createElement("] = false; 4.7 -[" to receive updates by email"] = false; 4.8 ["#{closed_ago} ago"] = "hace #{closed_ago}"; 4.9 ["#{count} Neutral"] = "#{count} Neutral"; 4.10 ["#{count} No"] = "#{count} No"; 4.11 @@ -214,7 +213,7 @@ 4.12 ["Edit"] = "Editar"; 4.13 ["Edit again"] = "Editar de nuevo"; 4.14 ["Edit voting comment"] = "Editar comentario de votación"; 4.15 -["Edit your global "] = "Edita tu global"; 4.16 +["Edit your<link>notification settings</link> to receive updates by email."] = false; 4.17 ["Edit your profile data"] = "Editar tus datos de perfil"; 4.18 ["Eligible as winner"] = "Elegible como ganador"; 4.19 ["Eligible members (#{count})"] = "Miembros elegibles (#{count})";
5.1 --- a/locale/translations.fr.lua Wed Oct 20 15:48:51 2021 +0200 5.2 +++ b/locale/translations.fr.lua Wed Oct 20 16:04:30 2021 +0200 5.3 @@ -2,7 +2,6 @@ 5.4 return { 5.5 [" + file_upload_id); html = html.replace("] = false; 5.6 [" + file_upload_id); var el = document.createElement("] = false; 5.7 -[" to receive updates by email"] = " pour recevoir les actualités par email"; 5.8 ["#{closed_ago} ago"] = "#{closed_ago} il y a"; 5.9 ["#{count} Neutral"] = "#{count} Neutre"; 5.10 ["#{count} No"] = "#{count} Non"; 5.11 @@ -226,7 +225,7 @@ 5.12 ["Edit"] = "Éditer"; 5.13 ["Edit again"] = "Éditer encore"; 5.14 ["Edit voting comment"] = "Éditer le commentaire du vote"; 5.15 -["Edit your global "] = "Éditer le tout"; 5.16 +["Edit your global <link>notification settings</link> to receive updates by email."] = "Éditer le tout <link>paramètres de notification</link> pour recevoir les actualités par email."; 5.17 ["Edit your profile data"] = "Éditer les données de votre profil"; 5.18 ["Eligible as winner"] = "Candidato all'approvazione"; 5.19 ["Eligible members (#{count})"] = "Membres éligibles (#{count})";
6.1 --- a/locale/translations.it.lua Wed Oct 20 15:48:51 2021 +0200 6.2 +++ b/locale/translations.it.lua Wed Oct 20 16:04:30 2021 +0200 6.3 @@ -1,6 +1,5 @@ 6.4 #!/usr/bin/env lua 6.5 return { 6.6 -[" to receive updates by email"] = " di ricevere aggiornamenti via email"; 6.7 ["#{closed_ago} ago"] = "#{closed_ago} fa"; 6.8 ["#{count} Neutral"] = "#{count} Neutrali"; 6.9 ["#{count} No"] = "#{count} No"; 6.10 @@ -231,7 +230,7 @@ 6.11 ["Edit"] = "Modifica"; 6.12 ["Edit again"] = "Modifica ancora"; 6.13 ["Edit voting comment"] = "Modifica il commento al voto"; 6.14 -["Edit your global "] = "Modifica le tue "; 6.15 +["Edit your global <link>notification settings</link> to receive updates by email."] = "Modifica le tue <link>impostazioni notifiche</link> di ricevere aggiornamenti via email."; 6.16 ["Edit your profile data"] = "Modifica i dati del tuo profilo"; 6.17 ["Eligible as winner"] = "Candidato all'approvazione"; 6.18 ["Eligible members (#{count})"] = "Utenti abilitati (#{count})";