Can't find "solved by" string in the texts to translate


(Pad Pors) #1

I can’t find the string “Solved by” in the admin/customize/text panel:

while the fa-locale exists in the repository.

is it because the first line in the translation is fa rather than fa_IR?
or is there any other reason?

p.s.: the solved plugin has improved a lot, but I feel the translation file is not updated. should every string of the plugin exist in the yml file (so that they become translatable)?


(cpradio) #2

Seems to be at


(cpradio) #3

I think that is the primary reason. The fact it is using fa, instead of fa_IR.


(Pad Pors) #4

it’s been solved, as suggested. thanks.


(Pad Pors) #5

I couldn’t find the solved string in the suggested topics at the end of topic page, in the admin->text->customize as well:

can someone help me figure out how/where to find it?


(Sam Saffron) #6

It is here:

discourse-solved/config/locales at master · discourse/discourse-solved · GitHub

you need to submit a PR for it.


(Pad Pors) #7

sure :slight_smile: , but I can’t also find the string in the client.en.yml file!

here is the content of the client.en.yml file:

en:
  js:
    solved:
      title: "Solved"
      allow_accepted_answers: "Allow topic owner and staff to mark a reply as the solution"
      accept_answer: "This reply solves the problem"
      has_accepted_answer: "This topic has a solution"
      has_no_accepted_answer: "This topic has no solution"
      unaccept_answer: "This reply no longer solves the problem"
      accepted_answer: "Solution"
      solution: "Solution"
      solution_summary:
        one: "solution <i class='fa fa-check-square'></i>"
        other: "solutions <i class='fa fa-check-square'></i>"
      accepted_html: "<i class='fa-check-square fa accepted'></i> Solved <span class='by'>by <a href data-user-card='{{username_lower}}'>{{username}}</a></span> in <a href='{{post_path}}'>post #{{post_number}}</a>"
      accepted_notification: "<i title='accepted' class='fa fa-check-square'></i><p><span>{{username}}</span> {{description}}</p>"

there’s only one solved string which is related to accepted_html: solved by … in post # … .

I don’t know how to submit the pr for an string which I can’t locate in the English file :flushed:


(Mittineague) #8

If you’re talking about the green button circled in your screen capture, it’s the title.

If you are using fa_IR title and a few others are missing


(Pad Pors) #9

Aha! so the title that is the fourth line should be also translated.

thanks :+1: