Hi Carolyn,

Am 04.01.24 um 15:49 schrieb Carolyn Sullivan:
[…]
(1)How do I escape quotation marks?  I kept getting syntax errors when I tried putting this line in the en.json5 file: "submitinfo.step1.pt2": "Submit your thesis for your Thesis Supervisor's and Academic Unit's approval by using the service request "Approval of the final version of the thesis"",
Also tried:
"submitinfo.step1.pt2": "Submit your thesis for your Thesis Supervisor's and Academic Unit's approval by using the service request \"Approval of the final version of the thesis\"", (2)Is there a way to insert html tags into labels so that they're interpolated as html and not as plaintext when they go through {{label | translate}} ?  Example--

it is possible, but some work. Due to security reasons Angular does not render this in this way.
Principally spoken it works like this:

from

<h2>{{'submitinfo.step1.pt2' | translate}}</h2>

to

<h2 [innerHTML]="'submitinfo.step1.pt2' | translate"></h2>

This means changing the source code…


Or is it simply that ALL the plaintext between the html tags is going to need a translation label? Just wanted to ask before creating a thousand labels!

Same procedure like above; with [innerHTML] you can use &quot; e.g.

Hope it helps

Michael

--
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/8905100e-a318-46d4-9941-c2b293ce1d28%40bibliothek.uni-kassel.de.

Attachment: smime.p7s
Description: Kryptografische S/MIME-Signatur

Reply via email to