mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 13:38:26 +02:00
make "captured by …" translatable; single line if possible
This commit is contained in:
@@ -104,6 +104,7 @@
|
||||
.photo-attribution span {
|
||||
padding: 4px 2px;
|
||||
color: #fff;
|
||||
text-wrap: nowrap;
|
||||
}
|
||||
|
||||
/* markers and sequences */
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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}));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user