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

Include active language in hrefs in navbar #60

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

carmenbianca
Copy link
Member

DO NOT MERGE

As-is:

  1. Activate a non-English language
  2. Click on FAQ in the navbar
  3. You get the English-language FAQ and have to switch language again

To-be:

  1. Activate a non-English language
  2. Click on FAQ in the navbar
  3. You get the selected non-English-language FAQ

However, this PR has one big problem:

If the FAQ is translated for your language, but the specification is not, then clicking on the specification results in a 404.

In general, the way translations work isn't perfect. This needs some workshopping.

Signed-off-by: Carmen Bianca BAKKER <carmenbianca@fsfe.org>
@mxmehl
Copy link
Member

mxmehl commented Feb 6, 2024

Yes, Hugo is bad with that. I know that the (old?) gitea.com website fills in missing languages with the EN language versions. This may help.

https://gitea.com/gitea/website/src/commit/faa280d3e6cef43190ab2f7fab186a013ad45a56/Makefile#L14-L16

Script: https://gitea.com/gitea/website/src/branch/main/scripts/trans-copy.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants