Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localize the types throughout the app #434

Closed
wbazant opened this issue Aug 4, 2024 · 4 comments
Closed

Localize the types throughout the app #434

wbazant opened this issue Aug 4, 2024 · 4 comments
Labels
enhancement New feature request
Milestone

Comments

@wbazant
Copy link
Collaborator

wbazant commented Aug 4, 2024

As part of #204 epic, localize the types in the app.

The proposed strategy for locations without common names in another language is to show just the scientific name. When displaying a scientific name, it should be italicised as is customary on science websites.

To test, set language to French. Make sure these show up in French in the app:

Main page:
http://localhost:3000/map/@55.8268950,-4.2611486,17z
types checkbox on the left
labels on the right

Location:
http://localhost:3000/locations/1989068/@55.8268950,-4.2611486,17z
location header in the side pane
location header in "report"

Edit location:
localhost:3000/locations/1989068/edit/@55.8268950,-4.2611486,17z
tags in the cloud
list in search

Mobile drawer:
http://localhost:3000/locations/1989712/@55.8268950,-4.2611486,17z

Mobile list view:
http://localhost:3000/list/@55.8260021,-4.2610245,17z

Mobile edit position:
localhost:3000/locations/1989068/edit/@55.8268950,-4.2611486,17z
go to position and back, check the labels are preserved

Also check with a location that doesn't have a common name in French e.g. http://localhost:3000/locations/1819648/@42.3910266,-72.5284893,14z

@ezwelty ezwelty added this to the Beta release milestone Aug 13, 2024
@ezwelty ezwelty added the enhancement New feature request label Aug 16, 2024
@wbazant
Copy link
Collaborator Author

wbazant commented Aug 29, 2024

Just looking at #416

Fall back to English if no common name found in selected language. Adjust layout when no common name.

I want to clarify, I've fell back to just the scientific name - the English names in e.g. Polish setting of fallingfruit.org feel quite janky, and give a feeling of a very incomplete translation - and think it's a better solution but we can change this!

@ezwelty
Copy link
Collaborator

ezwelty commented Aug 29, 2024 via email

@wbazant
Copy link
Collaborator Author

wbazant commented Sep 25, 2024

This is live and mostly working as I intended, if I understand you correctly, we're in agreement about the fallback being just the scientific name. The strategy of scraping the translations sounds like a reasonable plan to gradually improve the experience in other languages. I'm going to fail the QA on the extra white space that should be removed:

Screenshot from 2024-09-25 16-56-10

@ezwelty
Copy link
Collaborator

ezwelty commented Oct 8, 2024

I'm going to fail the QA on the extra white space that should be removed:

There is an open issue for that, so closing this one.
#473

@ezwelty ezwelty closed this as completed Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request
Projects
None yet
Development

No branches or pull requests

2 participants