Comment 6 for bug 2016742

Revision history for this message
Stephanie Leary (stephanieleary) wrote :

This bug is the one that prompted me to ask for more guidance on localization strategies over the weekend at the conference. I've updated the branch to include the title and author, as discussed. However, this leads to an ugly mix of strings and display fields:

<caption id="caption{{index}}" *ngIf="summary.copies.length">
  <span i18n="Shelving locations table heading">{{summary.copies.length}} Shelving Locations</span>
  <span i18n="Shelving locations table heading preposition">for</span>
  <eg-bib-display-field [summary]="summary" field="title" [usePlaceholder]="true"></eg-bib-display-field>
  <span i18n="Shelving locations table heading separator">&nbsp;-&nbsp;</span>
  <eg-bib-display-field [summary]="summary" field="author" [usePlaceholder]="true"></eg-bib-display-field>
</caption>

That seems like it's going to cause problems for translators. I feel like there must be a better approach.