Skip to content
quarry History Of Ticket cfef2718e1ba1f49a8ff59d9e9f9948287b9379a
Login

History Of Ticket cfef2718e1ba1f49a8ff59d9e9f9948287b9379a

Artifacts Associated With Ticket cfef2718e1ba1f49a8ff59d9e9f9948287b9379a

  1. Ticket change [27b475233b] (rid 887) by dmestas on 2026-08-18 19:37:21:

    1. Untracked field cmimetype: "text/x-markdown"
    2. comment initialized to:
      Forgejo carries a language selector in its footer. quarry has the slot for one; what it does not have is anything to select between.
      
      ## What has to happen first
      
      Every visible string is currently a literal inside a Go template. Translation needs them extracted to a catalogue keyed by message id, with the templates calling a lookup. That is the bulk of the work and it is mechanical.
      
      ## Choosing a language, without JavaScript
      
      The theme switcher already establishes the pattern this should follow: a form POST to `/lang`, a cookie, and the choice resolved server-side before the first byte. That keeps the one-script rule and avoids a flash of the wrong language. `Accept-Language` supplies the default when no cookie is set, which is the "system" state of the same three-way shape.
      
      ## What must NOT be translated
      
      Repository content. Check-in comments, wiki pages, tickets and file names are the corpus, in whatever language their authors wrote. Only quarry chrome is translatable, and the boundary needs to be explicit or a translator will reasonably assume otherwise.
      
      ## Two things that will bite
      
      - Dates already go through a relative-time helper (`ago`), which is English-only and pluralises in English. It needs the catalogue too, and plural rules are not uniform across languages — this is the part that cannot be done by string substitution alone.
      - The layout is currently sized by English. German compounds and Japanese line-breaking will both find the places where a width was chosen by eye.
      
      Not urgent, but worth deciding before the string count grows much further: extraction gets more expensive per screen added.
      
    3. severity initialized to: "Minor"
    4. status initialized to: "Open"
    5. title initialized to:
      Localisation: a language selector and translatable interface strings
      
    6. type initialized to: "Feature_Request"
  2. Ticket change [04fffdf5c5] (rid 1067) by dmestas on 2026-08-19 11:04:30:

    1. priority changed to: "Zero"
    2. type changed to: "Feature_Request"
  3. Ticket change [22138cf2b2] (rid 1118) by dmestas on 2026-08-19 12:10:45:

    1. subsystem changed to: "web"
  4. Ticket change [107c12bcc8] (rid 7381) by zeitgeist on 2026-09-12 15:58:21:

    1. icomment:
      Needs dmestas's decision before implementation. Localisation decides whether quarry's copy is content or code. Every page in this codebase carries its reasoning in the markup and the copy is written as prose, not as keys; extracting it to a catalogue changes how every future page is written. It also interacts with the no-copy-pins test rule. Worth your call on whether the interface strings become a translatable surface at all.
      
      (Recorded as a comment because quarry's own tracker defines no assignee field — its schema carries title, type, status, severity, priority, subsystem and nothing else, while tcl's carries assignee, submitter, closer and closedate. Assigning here needs both halves: the field added to quarry's ticket schema, and #0eafaa19 so quarry can write any field a tracker defines rather than fossil's default list.)
      
    2. mimetype: "text/x-markdown"
  5. Ticket change [13185d27ec] (rid 12460) by zeitgeist on 2026-09-24 00:52:52:

    1. Untracked field number: "25"