gbif / hp-colombian-biodiversity

https://biodiversidad.co
5 stars 13 forks source link

Danish/english translation #22

Closed MortenHofft closed 2 years ago

MortenHofft commented 2 years ago

I notice that you have english in the menu with available translations. But that it takes you to a danish stub. Do you plan to translate the site into english? If not, then let me know if you need help in removing the (danish) translation.

camiplata commented 2 years ago

Hi @MortenHofft we were aiming to have a landing page in english, but that will take more time so we prefer -at least for now- to have the portal only in spanish. For this I removed "en" from _data/languages.yml and _config.yml. But I get the following behavior:

Captura de Pantalla 2021-09-23 a la(s) 5 26 54 p  m Captura de Pantalla 2021-09-23 a la(s) 5 27 08 p  m

Then, yes please let me know how can I remove this doble "Español" option, I didn't want to remove the files of the "en" folder as we will eventually translate part of the portal to English.

camiplata commented 2 years ago

@MortenHofft I noticed you made a commit around this issue, but the double Spanish behavior is still there, I checked the other portals, SANBI has a similar need of only one language but does not show this funny behavior https://hp-sanbi.gbif-staging.org/resources-and-links

MortenHofft commented 2 years ago

yes, sorry. I never got around to finishing that. When building the site all markdown files with frontmatter will result in an html page. Including all the files in the en folder. And those are stating that they are a copy of the spanish content (using the lang-ref attribute). So the 4 pages that existed in the en folder appears as translated. We can choose between adding a list of excluded files using _config.yml or simply deleting the content we do not want. I opted for the later.

camiplata commented 2 years ago

I see, thanks for fixing the bug