Uploaded image for project: 'Statuspage'
  1. Statuspage
  2. STATUS-282

Certain <var> tags were added for Localize incorrectly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • Apps - Localize
    • None
    • 1
    • Severity 3 - Minor

      Issue Summary

      This particular phrase which is at the bottom of the /history page and reads "Show All 20 Incidents" has the variables specified in the opposite way than they should. The text part of the phrase is in variables but the # part is not. Here is the current HTML from the page:

      <div class="expand-incidents font-small border-color color-secondary"><span><var data-var="show-all">+ Show All</var> 20 <var data-var="incidents">Incidents</var></span></div>

      Instead it should be something like this:

      <div class="expand-incidents font-small border-color color-secondary"><span>+ Show All <var data-var="num-incidents">20</var> Incidents</span></div>

      Another instance of incorrect tags is in the main page (root of Statuspage site):

      Content: "100.0 % uptime"

      Current HTML:
      <div class="legend-item legend-item-uptime-value legend-item-3m4k95fllw7l">
      <span id="uptime-percent-3m4k95fllw7l">
      100.0
      </span>
      <var data-var="uptime-percent">% uptime</var>
      </div>

      Revised HTML:
      <div class="legend-item legend-item-uptime-value legend-item-3m4k95fllw7l">
      <span id="uptime-percent-3m4k95fllw7l">
      <var data-var="uptime-percent">
      100.0
      </var>
      </span>
      % uptime
      </div>

      • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        Uptime page (/uptime):

      Content: "November 2021 to January 2022"

      The variables in this phrase should be unique.

      Current HTML:
      <span class="current">
      <span>November</span><var data-var="year"> 2021</var> to <span>January</span><var data-var="year"> 2022</var>
      </span>

      Should be something like this:
      <span class="current">
      <span>November</span><var data-var="year1"> 2021</var> to <span>January</span><var data-var="year2"> 2022</var>
      </span>

      Steps to Reproduce

      1. See above

      Expected Results

      See above

      Actual Results

      See above

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

            Unassigned Unassigned
            photchkiss Parker Hotchkiss
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: