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

Consider changing syntax for variables in l() strings and attributes in relationships

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Internationalization
    • Labels:
      None

      Description

      For example:
      TT string: "Edit #

      {id}

      ". Here, the translator should not translate "id".
      TT link: "Only

      {doc|auto-editors}

      can approve an edit.". Here, the translator should translator "auto-editors" but not "doc".

      That is not too difficult. However, the relationship attributes use a syntax which looks similar but functions differently:

      Given a string like "

      {partial}

      {live}

      {instrumental}

      {cover}

      performances", you first need to convert it to "

      {partial:partial}

      {live:live}

      {instrumental:instrumental}

      {cover:cover}

      performances" and then translate the bits after the colons.
      "

      {additional}

      {translated:translator|lyricist}

      " is another example. Here, the translator should translate "translator" and "lyricist".

      Splitting the .pot file up will help here, but we need to make it clearer how to translate attributes in relationships. Unifying the syntax would also be nice.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              nikki nikki
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package