Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-13246

Make references to strings from the database linkable through Weblate

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • Scripts

      The current references for source messages extracted from the database follows this format:

      DB:table/column:id

      While these information can be useful to developers, they are not enough to allow Weblate linking to the source string location which expects references to follow the gettext format:

      path/to/file:line_number

      A more useful way to fill this reference while following the gettext format would be to point to the webpage displaying the source message, for example:

      relationship/a3005666-a872-32c3-ad06-98af558e99b0

      and to configure the corresponding component in Weblate to use our website as a repository browser:

      https://beta.musicbrainz.org/{{filename}}

      If implemented, this approach would work as-is for countries, instruments, instrument descriptions, relationship attributes, relationship types. Languages and scripts would need to have their own webpage listing these with anchors. Statistics would have its messages extracted from code moved to a separate component or merged into the main Server component.

       

            Unassigned Unassigned
            yvanzo yvanzo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Version Package