Avoid svg xml in locale strings
This commit is contained in:
parent
fa14f1dee6
commit
02db4c1340
|
@ -1,3 +1,3 @@
|
|||
{{#link-to 'userActivity.solved'}}
|
||||
{{user-stat value=model.solved_count label="solved.solution_summary"}}
|
||||
{{user-stat value=model.solved_count label="solved.solution_summary" icon="check-square"}}
|
||||
{{/link-to}}
|
||||
|
|
|
@ -6,6 +6,7 @@ import { withPluginApi } from "discourse/lib/plugin-api";
|
|||
import { ajax } from "discourse/lib/ajax";
|
||||
import PostCooked from "discourse/widgets/post-cooked";
|
||||
import { formatUsername } from "discourse/lib/utilities";
|
||||
import { iconHTML } from "discourse-common/lib/icon-library";
|
||||
|
||||
function clearAccepted(topic) {
|
||||
const posts = topic.get("postStream.posts");
|
||||
|
@ -201,6 +202,7 @@ export default {
|
|||
}
|
||||
|
||||
return I18n.t("solved.accepted_html", {
|
||||
icon: iconHTML('check-square'),
|
||||
username_lower: username.toLowerCase(),
|
||||
username: formatUsername(username),
|
||||
post_path: this.get("url") + "/" + postNumber,
|
||||
|
|
|
@ -15,7 +15,7 @@ en:
|
|||
accepted_answer: "Solution"
|
||||
solution: "Solution"
|
||||
solution_summary:
|
||||
one: "solution <svg class='fa d-icon d-icon-check-square svg-icon' aria-hidden='true'><use xlink:href='#check-square'></use></svg>"
|
||||
other: "solutions <svg class='fa d-icon d-icon-check-square svg-icon' aria-hidden='true'><use xlink:href='#check-square'></use></svg>"
|
||||
accepted_html: "<svg class='fa d-icon d-icon-check-square svg-icon' aria-hidden='true'><use xlink:href='#check-square'></use></svg> Solved <span class='by'>by <a href data-user-card='{{username_lower}}'>{{username}}</a></span> in <a href='{{post_path}}' class='back'>post #{{post_number}}</a>"
|
||||
one: "solution"
|
||||
other: "solutions"
|
||||
accepted_html: "{{icon}} Solved <span class='by'>by <a href data-user-card='{{username_lower}}'>{{username}}</a></span> in <a href='{{post_path}}' class='back'>post #{{post_number}}</a>"
|
||||
accepted_notification: "<p><span>{{username}}</span> {{description}}</p>"
|
||||
|
|
Loading…
Reference in New Issue