Skip to content

Weblate's Translation Browser link template is invalid/(outdated?) #107930

Closed as not planned
@juliancoffee

Description

@juliancoffee

Tested versions

https://hosted.weblate.org/projects/godot-engine/

System information

I don't think that's needed

Issue description

Well, there's a feature in Weblate called Repository browser.
It's set per Component, but I see that two of your components are linked to Godot Properties (and I assume Godot Documentation lives somewhere else).

If you're on the component's page, go to Manage>Settings>Version Control and you'll find it.
I believe yours is set to something like:

https://github.com/godotengine/godot/blob/{{branch}}//{{filename}}#L{{line}}

It probably should be something along the lines of:

https://github.com/godotengine/godot/blob/{{branch}}/editor/translations/{{filename}}#L{{line}}

Although to be fair, I agree that it is a bit weird that Weblate can't properly specify the filename 🤔
Maybe it got kinda borked when components where moved around in the source, in which case it might be a Weblate bug.

Steps to reproduce

  1. Go to the unit's page, like this one: https://hosted.weblate.org/translate/godot-engine/godot/en/?q=
  2. Check out the last line in the String information, it's a clickable link (editor/editor/pot)
Image
  1. Click the link
  2. Observe Github's 404 page

Minimal reproduction project (MRP)

None, I was just randomly browsing projects on hosted Weblate, and found this 😅

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions