make "captured by …" translatable; single line if possible

This commit is contained in:
Martin Raifer
2024-07-29 15:36:40 +02:00
parent b492627689
commit df3b5a4440
3 changed files with 8 additions and 2 deletions
+1
View File
@@ -104,6 +104,7 @@
.photo-attribution span {
padding: 4px 2px;
color: #fff;
text-wrap: nowrap;
}
/* markers and sequences */
+1
View File
@@ -1438,6 +1438,7 @@ en:
title: Panoramax
tooltip: "Street-level photos from Panoramax"
report: "Report"
captured_by: "Captured by {username}"
hd: "High resolution"
street_side:
minzoom_tooltip: "Zoom in to see street-side photos"
+6 -2
View File
@@ -504,15 +504,19 @@ export default {
}
if (d.account_id) {
attribution
.append('span')
.text('|');
let line2 = attribution
.append('div')
.append('span')
.attr('class', 'attribution-row');
getUsername(d.account_id).then(function(username){
line2
.append('span')
.attr('class', 'captured_by')
.text('Captured by: ' + username);
.text(t('panoramax.captured_by', {username}));
});
}