Skip to content

Commit

Permalink
All refactored except issue with hosted_by (#1045)
Browse files Browse the repository at this point in the history
* All refactored except issue with hosted_by

* Changed Refactored String Causing Error

* Remove unneeded i18n keys

* Localize clear directions and simplify the CyclOSM attribution

* Remove blank space from attribution

---------

Co-authored-by: Andrew Tavis McAllister <[email protected]>
  • Loading branch information
akdave2003 and andrewtavis authored Dec 28, 2024
1 parent 829457d commit 4c5c22f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions frontend/components/media/MediaMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const routeProfileMap: RouteProfile[] = [
const walkingRouteProfileControl = `
<div
title="Change profile [p]"
title="${i18n.t("components.media_map.change_profile")}"
id=${routeProfileOptions.FOOT}
style="
background-image: url(${walkDirectionsIcon});
Expand All @@ -108,7 +108,7 @@ const walkingRouteProfileControl = `
const bikeRouteProfileControl = `
<div
title="Change profile [p]"
title="${i18n.t("components.media_map.change_profile")}"
id=${routeProfileOptions.BIKE}
style="
background-image: url(${bikeDirectionsIcon});
Expand Down Expand Up @@ -183,7 +183,7 @@ onMounted(() => {
],
tileSize: 256,
attribution:
'<a href="https://www.cyclosm.org" target="_blank">CyclOSM</a> hosted by <a href="https://openstreetmap.fr" target="_blank">OSM France</a>',
'<a href="https://www.cyclosm.org" target="_blank">CyclOSM</a>',
},
},
layers: [
Expand Down Expand Up @@ -396,7 +396,7 @@ onMounted(() => {
color: grey;
cursor: pointer"
>
Clear directions
${i18n.t("components.media_map.clear_directions")}
</div>
`;
Expand All @@ -409,7 +409,7 @@ onMounted(() => {
color: grey;
cursor: pointer;"
>
Clear directions [x]
${i18n.t("components.media_map.clear_directions")} [x]
</div>
`;
Expand Down
6 changes: 4 additions & 2 deletions frontend/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@
"components._global.upvote_application_aria_label": "Vote to support the organization joining activist",
"components._global.working_groups_subtext": "The following are working groups within {entity_name}",
"components.btn_road_map.aria_label": "Learn about the activist roadmap",
"components.btn_share_icon.url_copied": "URL copied",
"components.btn_share_icon.opening_signal": "Opening Signal",
"components.btn_share_icon.url_copied": "URL copied",
"components.card.about._global.full_text": "Click for full text",
"components.card.about._global.full_text_aria_label": "Click to view a popup with the full text",
"components.card.about._global.members_lower": "members",
Expand Down Expand Up @@ -142,13 +142,13 @@
"components.card_metrics_overview.new_organizations": "New orgs",
"components.card_org_application_vote.downvote_application_aria_label": "Vote to not support the organization joining activist",
"components.card_search_result.event_img_alt_text": "The event logo of",
"components.card_search_result.group_img_alt_text": "The group logo of",
"components.card_search_result.label": "stars",
"components.card_search_result.members": "Members",
"components.card_search_result.navigate_to_event_aria_label": "Navigate to the page for this event",
"components.card_search_result.navigate_to_organization_aria_label": "Navigate to the page for this organization",
"components.card_search_result.navigate_to_resource_aria_label": "Navigate to the page for this resource",
"components.card_search_result.navigate_to_user_aria_label": "Navigate to the page for this user",
"components.card_search_result.group_img_alt_text": "The group logo of",
"components.card_search_result.organization_img_alt_text": "The organization logo of",
"components.card_search_result.supporters_lower": "supporters",
"components.card_search_result.view_video": "View video",
Expand Down Expand Up @@ -259,6 +259,8 @@
"components.landing_tech_banner.open_source_text": "We're dedicated to working in the open to build trust with our partner organizations and fellow activists. All who want to help us build are welcome!",
"components.logo_activist.aria_label": "The activist logo that links to the home page",
"components.media_image_carousel.img_alt_text": "Image of the organization or their work.",
"components.media_map.change_profile": "Change profile [p]",
"components.media_map.clear_directions": "Clear directions",
"components.media_map.maplibre_gl_alert": "Your browser does not support our mapping service MapLibre GL, so we won't be able to display maps.",
"components.modal.edit._global.join_organization_link": "Join organization link",
"components.modal.edit._global.remember_https": "This is the URL that the join button will link to. Please include the full URL with https so the link works properly.",
Expand Down

0 comments on commit 4c5c22f

Please sign in to comment.