A platform for community discussion. Free, open, simple.
DEV: Move discourse-solved to core (#33749)
Jarek Radoszcc084bbbac7c
diff --git a/.github/labeler.yml b/.github/labeler.ymlindex 5e7c3d915b5..670353b0962 100644--- a/.github/labeler.yml+++ b/.github/labeler.yml@@ -126,6 +126,10 @@ discourse-affiliate:- changed-files:- any-glob-to-any-file: plugins/discourse-affiliate/**/*+discourse-solved:+ - changed-files:+ - any-glob-to-any-file: plugins/discourse-solved/**/*+footnote:- changed-files:- any-glob-to-any-file: plugins/footnote/**/*diff --git a/.gitignore b/.gitignoreindex f705082c10d..f06b0610d89 100644--- a/.gitignore+++ b/.gitignore@@ -74,6 +74,7 @@!/plugins/discourse-github!/plugins/discourse-adplugin!/plugins/discourse-affiliate+!/plugins/discourse-solved/plugins/*/auto_generated/spec/fixtures/plugins/my_plugin/auto_generateddiff --git a/plugins/discourse-solved/README.md b/plugins/discourse-solved/README.mdnew file mode 100644index 00000000000..d3d6c473fda--- /dev/null+++ b/plugins/discourse-solved/README.md@@ -0,0 +1,37 @@+## Discourse Solved++Provides a solved button on designated categories++## How to Install this Plugin++To install Discourse Plugin - https://meta.discourse.org/t/install-a-plugin/19157++## How to Check if Plugin is installed++Go to Admin > Plugins++You should now see:++++## What to expect if Plugin is installed++Inside the Plugins, you will have the following options:++++## How to enable it in your posts++New Categories - Check :white_check_mark: Allow topic owner and staff to mark a reply as the solution++++Old Categories - Go to that Category > Edit > Settings > Check :white_check_mark: Allow topic owner and staff to mark a reply as the solution++## BONUS: How to add badges to those who answered correctly++https://meta.discourse.org/t/discourse-solved-accepted-answer-plugin/30155++## License++MITdiff --git a/plugins/discourse-solved/about.json b/plugins/discourse-solved/about.jsonnew file mode 100644index 00000000000..17f1798aceb--- /dev/null+++ b/plugins/discourse-solved/about.json@@ -0,0 +1,7 @@+{+ "tests": {+ "requiredPlugins": [+ "discourse-assign"+ ]+ }+}diff --git a/plugins/discourse-solved/app/controllers/discourse_solved/answer_controller.rb b/plugins/discourse-solved/app/controllers/discourse_solved/answer_controller.rbnew file mode 100644index 00000000000..0ca76546cf9--- /dev/null+++ b/plugins/discourse-solved/app/controllers/discourse_solved/answer_controller.rb@@ -0,0 +1,48 @@+# frozen_string_literal: true++class DiscourseSolved::AnswerController < ::ApplicationController+ requires_plugin DiscourseSolved::PLUGIN_NAME++ def accept+ limit_accepts++ post = Post.find(params[:id].to_i)++ topic = post.topic+ topic ||= Topic.with_deleted.find(post.topic_id) if guardian.is_staff?++ guardian.ensure_can_accept_answer!(topic, post)++ DiscourseSolved.accept_answer!(post, current_user, topic: topic)++ render json: success_json+ end++ def unaccept+ limit_accepts++ post = Post.find(params[:id].to_i)++ topic = post.topic+ topic ||= Topic.with_deleted.find(post.topic_id) if guardian.is_staff?++ guardian.ensure_can_accept_answer!(topic, post)++ DiscourseSolved.unaccept_answer!(post, topic: topic)++ render json: success_json+ end++ def limit_accepts+ return if current_user.staff?+ run_rate_limiter =+ DiscoursePluginRegistry.apply_modifier(+ :solved_answers_controller_run_rate_limiter,+ true,+ current_user,+ )+ return if !run_rate_limiter+ RateLimiter.new(nil, "accept-hr-#{current_user.id}", 20, 1.hour).performed!+ RateLimiter.new(nil, "accept-min-#{current_user.id}", 4, 30.seconds).performed!+ end+enddiff --git a/plugins/discourse-solved/app/controllers/discourse_solved/solved_topics_controller.rb b/plugins/discourse-solved/app/controllers/discourse_solved/solved_topics_controller.rbnew file mode 100644index 00000000000..8b6dcd4af89--- /dev/null+++ b/plugins/discourse-solved/app/controllers/discourse_solved/solved_topics_controller.rb@@ -0,0 +1,39 @@+# frozen_string_literal: true++class DiscourseSolved::SolvedTopicsController < ::ApplicationController+ requires_plugin DiscourseSolved::PLUGIN_NAME++ def by_user+ params.require(:username)+ user =+ fetch_user_from_params(+ include_inactive:+ current_user.try(:staff?) || (current_user && SiteSetting.show_inactive_accounts),+ )+ raise Discourse::NotFound unless guardian.public_can_see_profiles?+ raise Discourse::NotFound unless guardian.can_see_profile?(user)++ offset = [0, params[:offset].to_i].max+ limit = params.fetch(:limit, 30).to_i++ posts =+ Post+ .joins(+ "INNER JOIN discourse_solved_solved_topics ON discourse_solved_solved_topics.answer_post_id = posts.id",+ )+ .joins(:topic)+ .joins("LEFT JOIN categories ON categories.id = topics.category_id")+ .where(user_id: user.id, deleted_at: nil)+ .where(topics: { archetype: Archetype.default, deleted_at: nil })+ .where(+ "topics.category_id IS NULL OR NOT categories.read_restricted OR topics.category_id IN (:secure_category_ids)",+ secure_category_ids: guardian.secure_category_ids,+ )+ .includes(:user, topic: %i[category tags])+ .order("discourse_solved_solved_topics.created_at DESC")+ .offset(offset)+ .limit(limit)++ render_serialized(posts, DiscourseSolved::SolvedPostSerializer, root: "user_solved_posts")+ end+enddiff --git a/plugins/discourse-solved/app/models/discourse_solved/solved_topic.rb b/plugins/discourse-solved/app/models/discourse_solved/solved_topic.rbnew file mode 100644index 00000000000..1b9dd352b6e--- /dev/null+++ b/plugins/discourse-solved/app/models/discourse_solved/solved_topic.rb@@ -0,0 +1,34 @@+# frozen_string_literal: true++module DiscourseSolved+ class SolvedTopic < ActiveRecord::Base+ self.table_name = "discourse_solved_solved_topics"++ belongs_to :topic, class_name: "Topic"+ belongs_to :answer_post, class_name: "Post", foreign_key: "answer_post_id"+ belongs_to :accepter, class_name: "User", foreign_key: "accepter_user_id"+ belongs_to :topic_timer, dependent: :destroy++ validates :topic_id, presence: true+ validates :answer_post_id, presence: true+ validates :accepter_user_id, presence: true+ end+end++# == Schema Information+#+# Table name: discourse_solved_solved_topics+#+# id :bigint not null, primary key+# topic_id :integer not null+# answer_post_id :integer not null+# accepter_user_id :integer not null+# topic_timer_id :integer+# created_at :datetime not null+# updated_at :datetime not null+#+# Indexes+#+# index_discourse_solved_solved_topics_on_answer_post_id (answer_post_id) UNIQUE+# index_discourse_solved_solved_topics_on_topic_id (topic_id) UNIQUE+#diff --git a/plugins/discourse-solved/app/serializers/concerns/discourse_solved/topic_answer_mixin.rb b/plugins/discourse-solved/app/serializers/concerns/discourse_solved/topic_answer_mixin.rbnew file mode 100644index 00000000000..ebff49c1913--- /dev/null+++ b/plugins/discourse-solved/app/serializers/concerns/discourse_solved/topic_answer_mixin.rb@@ -0,0 +1,27 @@+# frozen_string_literal: true++module DiscourseSolved+ module TopicAnswerMixin+ def self.included(klass)+ klass.attributes :has_accepted_answer, :can_have_answer+ end++ def has_accepted_answer+ object&.solved.present?+ end++ def include_has_accepted_answer?+ SiteSetting.solved_enabled+ end++ def can_have_answer+ return true if SiteSetting.allow_solved_on_all_topics+ return false if object.closed || object.archived+ scope.allow_accepted_answers?(object.category_id, object.tags.map(&:name))+ end++ def include_can_have_answer?+ SiteSetting.solved_enabled && SiteSetting.empty_box_on_unsolved+ end+ end+enddiff --git a/plugins/discourse-solved/app/serializers/discourse_solved/solved_post_serializer.rb b/plugins/discourse-solved/app/serializers/discourse_solved/solved_post_serializer.rbnew file mode 100644index 00000000000..b19a7c9aec9--- /dev/null+++ b/plugins/discourse-solved/app/serializers/discourse_solved/solved_post_serializer.rb@@ -0,0 +1,87 @@+# frozen_string_literal: true++class DiscourseSolved::SolvedPostSerializer < ApplicationSerializer+ attributes :created_at,+ :archived,+ :avatar_template,+ :category_id,+ :closed,+ :cooked,+ :excerpt,+ :name,+ :post_id,+ :post_number,+ :post_type,+ :raw,+ :slug,+ :topic_id,+ :topic_title,+ :truncated,+ :url,+ :user_id,+ :username++ def archived+ object.topic.archived+ end++ def avatar_template+ object.user&.avatar_template+ end++ def category_id+ object.topic.category_id+ end++ def closed+ object.topic.closed+ end++ def excerpt+ @excerpt ||= PrettyText.excerpt(cooked, 300, keep_emoji_images: true)+ end++ def name+ object.user&.name+ end++ def include_name?+ SiteSetting.enable_names?+ end++ def post_id+ object.id+ end++ def slug+ Slug.for(object.topic.title)+ end++ def include_slug?+ object.topic.title.present?+ end++ def topic_title+ object.topic.title+ end++ def truncated+ true+ end++ def include_truncated?+ cooked.length > 300+ end++ def url+ "#{Discourse.base_url}#{object.url}"+ end++ def user_id+ object.user_id+ end++ def username+ object.user&.username+ end+enddiff --git a/plugins/discourse-solved/assets/javascripts/discourse/components/solved-accept-answer-button.gjs b/plugins/discourse-solved/assets/javascripts/discourse/components/solved-accept-answer-button.gjsnew file mode 100644index 00000000000..d402a6b56d8--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/components/solved-accept-answer-button.gjs@@ -0,0 +1,84 @@+import Component from "@glimmer/component";+import { action } from "@ember/object";+import { service } from "@ember/service";+import DButton from "discourse/components/d-button";+import { ajax } from "discourse/lib/ajax";+import { popupAjaxError } from "discourse/lib/ajax-error";++export default class SolvedAcceptAnswerButton extends Component {+ static hidden(args) {+ return args.post.topic_accepted_answer;+ }++ @service appEvents;+ @service currentUser;++ get showLabel() {+ return this.currentUser?.id === this.args.post.topicCreatedById;+ }++ @action+ acceptAnswer() {+ const post = this.args.post;++ acceptPost(post, this.currentUser);++ this.appEvents.trigger("discourse-solved:solution-toggled", post);++ post.get("topic.postStream.posts").forEach((p) => {+ p.set("topic_accepted_answer", true);+ this.appEvents.trigger("post-stream:refresh", { id: p.id });+ });+ }++ <template>+ <DButton+ class="post-action-menu__solved-unaccepted unaccepted"+ ...attributes+ @action={{this.acceptAnswer}}+ @icon="far-square-check"+ @label={{if this.showLabel "solved.solution"}}+ @title="solved.accept_answer"+ />+ </template>+}++function acceptPost(post, acceptingUser) {+ const topic = post.topic;++ clearAccepted(topic);++ post.setProperties({+ can_unaccept_answer: true,+ can_accept_answer: false,+ accepted_answer: true,+ });++ topic.set("accepted_answer", {+ username: post.username,+ name: post.name,+ post_number: post.post_number,+ excerpt: post.cooked,+ accepter_username: acceptingUser.username,+ accepter_name: acceptingUser.name,+ });++ ajax("/solution/accept", {+ type: "POST",+ data: { id: post.id },+ }).catch(popupAjaxError);+}++function clearAccepted(topic) {+ const posts = topic.get("postStream.posts");+ posts.forEach((post) => {+ if (post.get("post_number") > 1) {+ post.setProperties({+ accepted_answer: false,+ can_accept_answer: true,+ can_unaccept_answer: false,+ topic_accepted_answer: false,+ });+ }+ });+}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/components/solved-accepted-answer.gjs b/plugins/discourse-solved/assets/javascripts/discourse/components/solved-accepted-answer.gjsnew file mode 100644index 00000000000..31ed2b00c7b--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/components/solved-accepted-answer.gjs@@ -0,0 +1,169 @@+import Component from "@glimmer/component";+import { tracked } from "@glimmer/tracking";+import { on } from "@ember/modifier";+import { action } from "@ember/object";+import { service } from "@ember/service";+import { htmlSafe } from "@ember/template";+import AsyncContent from "discourse/components/async-content";+import PostCookedHtml from "discourse/components/post/cooked-html";+import concatClass from "discourse/helpers/concat-class";+import icon from "discourse/helpers/d-icon";+import { ajax } from "discourse/lib/ajax";+import { iconHTML } from "discourse/lib/icon-library";+import { formatUsername } from "discourse/lib/utilities";+import { i18n } from "discourse-i18n";++export default class SolvedAcceptedAnswer extends Component {+ @service siteSettings;+ @service store;++ @tracked expanded = false;++ get acceptedAnswer() {+ return this.topic.accepted_answer;+ }++ get quoteId() {+ return `accepted-answer-${this.topic.id}-${this.acceptedAnswer.post_number}`;+ }++ get topic() {+ return this.args.post.topic;+ }++ get hasExcerpt() {+ return !!this.acceptedAnswer.excerpt;+ }++ get htmlAccepter() {+ const username = this.acceptedAnswer.accepter_username;+ const name = this.acceptedAnswer.accepter_name;++ if (!this.siteSettings.show_who_marked_solved) {+ return;+ }++ const formattedUsername =+ this.siteSettings.display_name_on_posts && name+ ? name+ : formatUsername(username);++ return htmlSafe(+ i18n("solved.marked_solved_by", {+ username: formattedUsername,+ username_lower: username.toLowerCase(),+ })+ );+ }++ get htmlSolvedBy() {+ const username = this.acceptedAnswer.username;+ const name = this.acceptedAnswer.name;+ const postNumber = this.acceptedAnswer.post_number;++ if (!username || !postNumber) {+ return;+ }++ const displayedUser =+ this.siteSettings.display_name_on_posts && name+ ? name+ : formatUsername(username);++ const data = {+ icon: iconHTML("square-check", { class: "accepted" }),+ username_lower: username.toLowerCase(),+ username: displayedUser,+ post_path: `${this.topic.url}/${postNumber}`,+ post_number: postNumber,+ user_path: this.store.createRecord("user", { username }).path,+ };++ return htmlSafe(i18n("solved.accepted_html", data));+ }++ @action+ toggleExpandedPost() {+ if (!this.hasExcerpt) {+ return;+ }++ this.expanded = !this.expanded;+ }++ @action+ async loadExpandedAcceptedAnswer(postNumber) {+ const acceptedAnswer = await ajax(+ `/posts/by_number/${this.topic.id}/${postNumber}`+ );++ return this.store.createRecord("post", acceptedAnswer);+ }++ <template>+ <aside+ class="quote accepted-answer"+ data-post={{this.acceptedAnswer.post_number}}+ data-topic={{this.topic.id}}+ data-expanded={{this.expanded}}+ >+ {{! template-lint-disable no-invalid-interactive }}+ <div+ class={{concatClass+ "title"+ (unless this.hasExcerpt "title-only")+ (if this.hasExcerpt "quote__title--can-toggle-content")+ }}+ {{on "click" this.toggleExpandedPost}}+ >+ <div class="accepted-answer--solver-accepter">+ <div class="accepted-answer--solver">+ {{this.htmlSolvedBy}}+ </div>+ <div class="accepted-answer--accepter">+ {{this.htmlAccepter}}+ </div>+ </div>+ {{#if this.hasExcerpt}}+ <div class="quote-controls">+ <button+ aria-controls={{this.quoteId}}+ aria-expanded={{if this.expanded "true" "false"}}+ class="quote-toggle btn-flat"+ type="button"+ aria-label={{if+ this.expanded+ (i18n "post.collapse")+ (i18n "expand")+ }}+ title={{if this.expanded (i18n "post.collapse") (i18n "expand")}}+ >+ {{icon (if this.expanded "chevron-up" "chevron-down")}}+ </button>+ </div>+ {{/if}}+ </div>+ {{#if this.hasExcerpt}}+ <blockquote id={{this.quoteId}}>+ {{#if this.expanded}}+ <AsyncContent+ @asyncData={{this.loadExpandedAcceptedAnswer}}+ @context={{this.acceptedAnswer.post_number}}+ >+ <:content as |expandedAnswer|>+ <div class="expanded-quote" data-post-id={{expandedAnswer.id}}>+ <PostCookedHtml+ @post={{expandedAnswer}}+ @streamElement={{false}}+ />+ </div>+ </:content>+ </AsyncContent>+ {{else}}+ {{htmlSafe this.acceptedAnswer.excerpt}}+ {{/if}}+ </blockquote>+ {{/if}}+ </aside>+ </template>+}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/components/solved-unaccept-answer-button.gjs b/plugins/discourse-solved/assets/javascripts/discourse/components/solved-unaccept-answer-button.gjsnew file mode 100644index 00000000000..3c47156ec88--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/components/solved-unaccept-answer-button.gjs@@ -0,0 +1,112 @@+import Component from "@glimmer/component";+import { action } from "@ember/object";+import { service } from "@ember/service";+import { htmlSafe } from "@ember/template";+import DButton from "discourse/components/d-button";+import icon from "discourse/helpers/d-icon";+import { ajax } from "discourse/lib/ajax";+import { popupAjaxError } from "discourse/lib/ajax-error";+import { formatUsername } from "discourse/lib/utilities";+import { i18n } from "discourse-i18n";+import DTooltip from "float-kit/components/d-tooltip";++function unacceptPost(post) {+ if (!post.can_unaccept_answer) {+ return;+ }+ const topic = post.topic;++ post.setProperties({+ can_accept_answer: true,+ can_unaccept_answer: false,+ accepted_answer: false,+ });++ topic.set("accepted_answer", undefined);++ ajax("/solution/unaccept", {+ type: "POST",+ data: { id: post.id },+ }).catch(popupAjaxError);+}++export default class SolvedUnacceptAnswerButton extends Component {+ @service appEvents;+ @service siteSettings;++ @action+ unacceptAnswer() {+ const post = this.args.post;++ unacceptPost(post);++ this.appEvents.trigger("discourse-solved:solution-toggled", post);++ post.get("topic.postStream.posts").forEach((p) => {+ p.set("topic_accepted_answer", false);+ this.appEvents.trigger("post-stream:refresh", { id: p.id });+ });+ }++ get solvedBy() {+ if (!this.siteSettings.show_who_marked_solved) {+ return;+ }++ const username = this.args.post.topic.accepted_answer.accepter_username;+ const name = this.args.post.topic.accepted_answer.accepter_name;+ const displayedName =+ this.siteSettings.display_name_on_posts && name+ ? name+ : formatUsername(username);+ if (this.args.post.topic.accepted_answer.accepter_username) {+ return i18n("solved.marked_solved_by", {+ username: displayedName,+ username_lower: username,+ });+ }+ }++ <template>+ <span class="extra-buttons">+ {{#if @post.can_unaccept_answer}}+ {{#if this.solvedBy}}+ <DTooltip @identifier="post-action-menu__solved-accepted-tooltip">+ <:trigger>+ <DButton+ class="post-action-menu__solved-accepted accepted fade-out"+ ...attributes+ @action={{this.unacceptAnswer}}+ @icon="square-check"+ @label="solved.solution"+ @title="solved.unaccept_answer"+ />+ </:trigger>+ <:content>+ {{htmlSafe this.solvedBy}}+ </:content>+ </DTooltip>+ {{else}}+ <DButton+ class="post-action-menu__solved-accepted accepted fade-out"+ ...attributes+ @action={{this.unacceptAnswer}}+ @icon="square-check"+ @label="solved.solution"+ @title="solved.unaccept_answer"+ />+ {{/if}}+ {{else}}+ <span+ class="accepted-text"+ title={{i18n "solved.accepted_description"}}+ >+ <span>{{icon "check"}}</span>+ <span class="accepted-label">+ {{i18n "solved.solution"}}+ </span>+ </span>+ {{/if}}+ </span>+ </template>+}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/connectors/after-topic-status/solved-status.gjs b/plugins/discourse-solved/assets/javascripts/discourse/connectors/after-topic-status/solved-status.gjsnew file mode 100644index 00000000000..805ecdc3d02--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/connectors/after-topic-status/solved-status.gjs@@ -0,0 +1,25 @@+import { and, eq, or } from "truth-helpers";+import icon from "discourse/helpers/d-icon";+import { i18n } from "discourse-i18n";++const SolvedStatus = <template>+ {{~#if+ (or @outletArgs.topic.has_accepted_answer @outletArgs.topic.accepted_answer)+ ~}}+ <span+ title={{i18n "topic_statuses.solved.help"}}+ class="topic-status solved"+ >{{icon "far-square-check"}}</span>+ {{~else if+ (and+ @outletArgs.topic.can_have_answer (eq @outletArgs.context "topic-list")+ )+ ~}}+ <span+ title={{i18n "solved.has_no_accepted_answer"}}+ class="topic-status"+ >{{icon "far-square"}}</span>+ {{~/if~}}+</template>;++export default SolvedStatus;diff --git a/plugins/discourse-solved/assets/javascripts/discourse/connectors/bread-crumbs-right/solved-status-filter.gjs b/plugins/discourse-solved/assets/javascripts/discourse/connectors/bread-crumbs-right/solved-status-filter.gjsnew file mode 100644index 00000000000..ca8ba5bd066--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/connectors/bread-crumbs-right/solved-status-filter.gjs@@ -0,0 +1,77 @@+import Component from "@glimmer/component";+import { hash } from "@ember/helper";+import { action } from "@ember/object";+import { service } from "@ember/service";+import { i18n } from "discourse-i18n";+import ComboBox from "select-kit/components/combo-box";++const QUERY_PARAM_VALUES = {+ solved: "yes",+ unsolved: "no",+ all: null,+};++const UX_VALUES = {+ yes: "solved",+ no: "unsolved",+};++export default class SolvedStatusFilter extends Component {+ static shouldRender(args, context, owner) {+ const router = owner.lookup("service:router");++ if (+ !context.siteSettings.show_filter_by_solved_status ||+ router.currentRouteName === "discovery.categories" ||+ args.editingCategory+ ) {+ return false;+ } else if (+ context.siteSettings.allow_solved_on_all_topics ||+ router.currentRouteName === "tag.show"+ ) {+ return true;+ } else {+ return args.currentCategory?.enable_accepted_answers;+ }+ }++ @service router;+ @service siteSettings;++ get statuses() {+ return ["all", "solved", "unsolved"].map((status) => {+ return {+ name: i18n(`solved.topic_status_filter.${status}`),+ value: status,+ };+ });+ }++ get status() {+ const queryParamValue = this.router.currentRoute.queryParams?.solved;+ return UX_VALUES[queryParamValue] || "all";+ }++ @action+ changeStatus(newStatus) {+ this.router.transitionTo({+ queryParams: { solved: QUERY_PARAM_VALUES[newStatus] },+ });+ }++ <template>+ {{#if this.siteSettings.solved_enabled}}+ <li>+ <ComboBox+ @content={{this.statuses}}+ @value={{this.status}}+ @valueProperty="value"+ @options={{hash caretDownIcon="caret-right" caretUpIcon="caret-down"}}+ @onChange={{this.changeStatus}}+ class="solved-status-filter"+ />+ </li>+ {{/if}}+ </template>+}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/connectors/category-custom-settings/solved-settings.gjs b/plugins/discourse-solved/assets/javascripts/discourse/connectors/category-custom-settings/solved-settings.gjsnew file mode 100644index 00000000000..89325d3b812--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/connectors/category-custom-settings/solved-settings.gjs@@ -0,0 +1,57 @@+import Component from "@ember/component";+import { on } from "@ember/modifier";+import { action } from "@ember/object";+import { classNames, tagName } from "@ember-decorators/component";+import { i18n } from "discourse-i18n";++@tagName("")+@classNames("category-custom-settings-outlet", "solved-settings")+export default class SolvedSettings extends Component {+ @action+ onChangeSetting(value) {+ this.set(+ "category.custom_fields.enable_accepted_answers",+ value ? "true" : "false"+ );+ }++ <template>+ <h3>{{i18n "solved.title"}}</h3>++ {{#unless this.siteSettings.allow_solved_on_all_topics}}+ <section class="field">+ <div class="enable-accepted-answer">+ <label class="checkbox-label">+ <input+ {{! template-lint-disable no-action }}+ {{on "change" (action "onChangeSetting" value="target.checked")}}+ checked={{this.category.enable_accepted_answers}}+ type="checkbox"+ />+ {{i18n "solved.allow_accepted_answers"}}+ </label>+ </div>+ </section>+ {{/unless}}++ <section class="field auto-close-solved-topics">+ <label for="auto-close-solved-topics">+ {{i18n "solved.solved_topics_auto_close_hours"}}+ </label>+ <input+ {{! template-lint-disable no-action }}+ {{on+ "input"+ (action+ (mut this.category.custom_fields.solved_topics_auto_close_hours)+ value="target.value"+ )+ }}+ value={{this.category.custom_fields.solved_topics_auto_close_hours}}+ type="number"+ min="0"+ id="auto-close-solved-topics"+ />+ </section>+ </template>+}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/connectors/topic-navigation/no-answer.gjs b/plugins/discourse-solved/assets/javascripts/discourse/connectors/topic-navigation/no-answer.gjsnew file mode 100644index 00000000000..e33aecf2c90--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/connectors/topic-navigation/no-answer.gjs@@ -0,0 +1,63 @@+import Component from "@ember/component";+import { later } from "@ember/runloop";+import { classNames, tagName } from "@ember-decorators/component";+import TopicNavigationPopup from "discourse/components/topic-navigation-popup";+import { isTesting } from "discourse/lib/environment";+import { i18n } from "discourse-i18n";++const ONE_WEEK = 7 * 24 * 60 * 60 * 1000; // milliseconds+const MAX_DURATION_WITH_NO_ANSWER = ONE_WEEK;+const DISPLAY_DELAY = isTesting() ? 0 : 2000;++@tagName("div")+@classNames("topic-navigation-outlet", "no-answer")+export default class NoAnswer extends Component {+ static shouldRender(args, context) {+ return !context.site.mobileView;+ }++ init() {+ super.init(...arguments);+ this.set("show", false);+ this.setProperties({+ oneWeek: ONE_WEEK,+ show: false,+ });+ later(() => {+ if (!this.element || this.isDestroying || this.isDestroyed) {+ return;+ }+ const topic = this.topic;+ const currentUser = this.currentUser;++ // show notice if:+ // - user can accept answer+ // - it does not have an accepted answer+ // - topic is old+ // - topic has at least one reply from another user that can be accepted+ if (+ !topic.accepted_answer &&+ currentUser &&+ topic.user_id === currentUser.id &&+ moment() - moment(topic.created_at) > MAX_DURATION_WITH_NO_ANSWER &&+ topic.postStream.posts.some(+ (post) => post.user_id !== currentUser.id && post.can_accept_answer+ )+ ) {+ this.set("show", true);+ }+ }, DISPLAY_DELAY);+ }++ <template>+ {{#if this.show}}+ <TopicNavigationPopup+ @popupId="solved-notice"+ @dismissDuration={{this.oneWeek}}+ >+ <h3>{{i18n "solved.no_answer.title"}}</h3>+ <p>{{i18n "solved.no_answer.description"}}</p>+ </TopicNavigationPopup>+ {{/if}}+ </template>+}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-activity-bottom/solved-list.gjs b/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-activity-bottom/solved-list.gjsnew file mode 100644index 00000000000..62abd992232--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-activity-bottom/solved-list.gjs@@ -0,0 +1,20 @@+import Component from "@glimmer/component";+import { LinkTo } from "@ember/routing";+import { service } from "@ember/service";+import icon from "discourse/helpers/d-icon";+import { i18n } from "discourse-i18n";++export default class SolvedList extends Component {+ @service siteSettings;++ <template>+ {{#if this.siteSettings.solved_enabled}}+ <li class="user-activity-bottom-outlet solved-list">+ <LinkTo @route="userActivity.solved">+ {{icon "square-check"}}+ {{i18n "solved.title"}}+ </LinkTo>+ </li>+ {{/if}}+ </template>+}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-card-metadata/accepted-answers.gjs b/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-card-metadata/accepted-answers.gjsnew file mode 100644index 00000000000..62020e685f9--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-card-metadata/accepted-answers.gjs@@ -0,0 +1,14 @@+import Component from "@ember/component";+import { classNames, tagName } from "@ember-decorators/component";+import { i18n } from "discourse-i18n";++@tagName("div")+@classNames("user-card-metadata-outlet", "accepted-answers")+export default class AcceptedAnswers extends Component {+ <template>+ {{#if this.user.accepted_answers}}+ <span class="desc">{{i18n "solutions"}}</span>+ <span>{{this.user.accepted_answers}}</span>+ {{/if}}+ </template>+}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-summary-stat/solved-count.gjs b/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-summary-stat/solved-count.gjsnew file mode 100644index 00000000000..fe20292299e--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/connectors/user-summary-stat/solved-count.gjs@@ -0,0 +1,25 @@+import Component from "@glimmer/component";+import { LinkTo } from "@ember/routing";+import { service } from "@ember/service";+import { and } from "truth-helpers";+import UserStat from "discourse/components/user-stat";++export default class SolvedCount extends Component {+ @service siteSettings;++ <template>+ {{#if+ (and this.siteSettings.solved_enabled @outletArgs.model.solved_count)+ }}+ <li class="user-summary-stat-outlet solved-count linked-stat">+ <LinkTo @route="userActivity.solved">+ <UserStat+ @value={{@outletArgs.model.solved_count}}+ @label="solved.solution_summary"+ @icon="square-check"+ />+ </LinkTo>+ </li>+ {{/if}}+ </template>+}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/initializers/add-topic-list-class.js b/plugins/discourse-solved/assets/javascripts/discourse/initializers/add-topic-list-class.jsnew file mode 100644index 00000000000..d857f7a9090--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/initializers/add-topic-list-class.js@@ -0,0 +1,19 @@+import { withPluginApi } from "discourse/lib/plugin-api";++export default {+ name: "add-topic-list-class",++ initialize() {+ withPluginApi("1.39.0", (api) => {+ api.registerValueTransformer(+ "topic-list-item-class",+ ({ value, context }) => {+ if (context.topic.get("has_accepted_answer")) {+ value.push("status-solved");+ }+ return value;+ }+ );+ });+ },+};diff --git a/plugins/discourse-solved/assets/javascripts/discourse/initializers/extend-for-solved-button.gjs b/plugins/discourse-solved/assets/javascripts/discourse/initializers/extend-for-solved-button.gjsnew file mode 100644index 00000000000..cd732e11ce8--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/initializers/extend-for-solved-button.gjs@@ -0,0 +1,130 @@+import Component from "@glimmer/component";+import { withSilencedDeprecations } from "discourse/lib/deprecated";+import { withPluginApi } from "discourse/lib/plugin-api";+import RenderGlimmer from "discourse/widgets/render-glimmer";+import { i18n } from "discourse-i18n";+import SolvedAcceptAnswerButton from "../components/solved-accept-answer-button";+import SolvedAcceptedAnswer from "../components/solved-accepted-answer";+import SolvedUnacceptAnswerButton from "../components/solved-unaccept-answer-button";++function initializeWithApi(api) {+ customizePost(api);+ customizePostMenu(api);++ if (api.addDiscoveryQueryParam) {+ api.addDiscoveryQueryParam("solved", { replace: true, refreshModel: true });+ }+}++function customizePost(api) {+ api.addTrackedPostProperties(+ "can_accept_answer",+ "can_unaccept_answer",+ "accepted_answer",+ "topic_accepted_answer"+ );++ api.renderAfterWrapperOutlet(+ "post-content-cooked-html",+ class extends Component {+ static shouldRender(args) {+ return args.post.post_number === 1 && args.post.topic.accepted_answer;+ }++ <template><SolvedAcceptedAnswer @post={{@outletArgs.post}} /></template>+ }+ );++ withSilencedDeprecations("discourse.post-stream-widget-overrides", () =>+ customizeWidgetPost(api)+ );+}++function customizeWidgetPost(api) {+ api.decorateWidget("post-contents:after-cooked", (helper) => {+ let post = helper.getModel();++ if (helper.attrs.post_number === 1 && post?.topic?.accepted_answer) {+ return new RenderGlimmer(+ helper.widget,+ "div",+ <template><SolvedAcceptedAnswer @post={{@data.post}} /></template>,+ { post }+ );+ }+ });+}++function customizePostMenu(api) {+ api.registerValueTransformer(+ "post-menu-buttons",+ ({+ value: dag,+ context: {+ post,+ firstButtonKey,+ secondLastHiddenButtonKey,+ lastHiddenButtonKey,+ },+ }) => {+ let solvedButton;++ if (post.can_accept_answer) {+ solvedButton = SolvedAcceptAnswerButton;+ } else if (post.accepted_answer) {+ solvedButton = SolvedUnacceptAnswerButton;+ }++ solvedButton &&+ dag.add(+ "solved",+ solvedButton,+ post.topic_accepted_answer && !post.accepted_answer+ ? {+ before: lastHiddenButtonKey,+ after: secondLastHiddenButtonKey,+ }+ : {+ before: [+ "assign", // button added by the assign plugin+ firstButtonKey,+ ],+ }+ );+ }+ );+}++export default {+ name: "extend-for-solved-button",+ initialize() {+ withPluginApi("1.34.0", initializeWithApi);++ withPluginApi("0.8.10", (api) => {+ api.replaceIcon(+ "notification.solved.accepted_notification",+ "square-check"+ );+ });++ withPluginApi("0.11.0", (api) => {+ api.addAdvancedSearchOptions({+ statusOptions: [+ {+ name: i18n("search.advanced.statuses.solved"),+ value: "solved",+ },+ {+ name: i18n("search.advanced.statuses.unsolved"),+ value: "unsolved",+ },+ ],+ });+ });++ withPluginApi("0.11.7", (api) => {+ api.addSearchSuggestion("status:solved");+ api.addSearchSuggestion("status:unsolved");+ });+ },+};diff --git a/plugins/discourse-solved/assets/javascripts/discourse/pre-initializers/extend-category-for-solved.js b/plugins/discourse-solved/assets/javascripts/discourse/pre-initializers/extend-category-for-solved.jsnew file mode 100644index 00000000000..eadbbf07b93--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/pre-initializers/extend-category-for-solved.js@@ -0,0 +1,21 @@+import { computed, get } from "@ember/object";+import Category from "discourse/models/category";++export default {+ name: "extend-category-for-solved",++ before: "inject-discourse-objects",++ initialize() {+ Category.reopen({+ enable_accepted_answers: computed(+ "custom_fields.enable_accepted_answers",+ {+ get(fieldName) {+ return get(this.custom_fields, fieldName) === "true";+ },+ }+ ),+ });+ },+};diff --git a/plugins/discourse-solved/assets/javascripts/discourse/routes/user-activity-solved.js b/plugins/discourse-solved/assets/javascripts/discourse/routes/user-activity-solved.jsnew file mode 100644index 00000000000..62783a81584--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/routes/user-activity-solved.js@@ -0,0 +1,119 @@+import { tracked } from "@glimmer/tracking";+import EmberObject from "@ember/object";+import { service } from "@ember/service";+import { Promise } from "rsvp";+import { ajax } from "discourse/lib/ajax";+import DiscourseRoute from "discourse/routes/discourse";+import { i18n } from "discourse-i18n";++class SolvedPostsStream {+ @tracked content = [];+ @tracked loading = false;+ @tracked loaded = false;+ @tracked itemsLoaded = 0;+ @tracked canLoadMore = true;++ constructor({ username, siteCategories }) {+ this.username = username;+ this.siteCategories = siteCategories;+ }++ get noContent() {+ return this.loaded && this.content.length === 0;+ }++ findItems() {+ if (this.loading || !this.canLoadMore) {+ return Promise.resolve();+ }++ this.loading = true;++ const limit = 20;+ return ajax(+ `/solution/by_user.json?username=${this.username}&offset=${this.itemsLoaded}&limit=${limit}`+ )+ .then((result) => {+ const userSolvedPosts = result.user_solved_posts || [];++ if (userSolvedPosts.length === 0) {+ this.canLoadMore = false;+ return;+ }++ const posts = userSolvedPosts.map((p) => {+ const post = EmberObject.create(p);+ post.set("titleHtml", post.topic_title);+ post.set("postUrl", post.url);++ if (post.category_id && this.siteCategories) {+ post.set(+ "category",+ this.siteCategories.find((c) => c.id === post.category_id)+ );+ }+ return post;+ });++ this.content = [...this.content, ...posts];+ this.itemsLoaded = this.itemsLoaded + userSolvedPosts.length;++ if (userSolvedPosts.length < limit) {+ this.canLoadMore = false;+ }+ })+ .finally(() => {+ this.loaded = true;+ this.loading = false;+ });+ }+}++export default class UserActivitySolved extends DiscourseRoute {+ @service site;+ @service currentUser;++ model() {+ const user = this.modelFor("user");++ const stream = new SolvedPostsStream({+ username: user.username,+ siteCategories: this.site.categories,+ });++ return stream.findItems().then(() => {+ return {+ stream,+ emptyState: this.emptyState(),+ };+ });+ }++ setupController(controller, model) {+ controller.setProperties({+ model,+ emptyState: this.emptyState(),+ });+ }++ renderTemplate() {+ this.render("user-activity-solved");+ }++ emptyState() {+ const user = this.modelFor("user");++ let title, body;+ if (this.currentUser && user.id === this.currentUser.id) {+ title = i18n("solved.no_solved_topics_title");+ body = i18n("solved.no_solved_topics_body");+ } else {+ title = i18n("solved.no_solved_topics_title_others", {+ username: user.username,+ });+ body = "";+ }++ return { title, body };+ }+}diff --git a/plugins/discourse-solved/assets/javascripts/discourse/solved-route-map.js b/plugins/discourse-solved/assets/javascripts/discourse/solved-route-map.jsnew file mode 100644index 00000000000..1bf72aafbba--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/solved-route-map.js@@ -0,0 +1,7 @@+export default {+ resource: "user.userActivity",++ map() {+ this.route("solved");+ },+};diff --git a/plugins/discourse-solved/assets/javascripts/discourse/templates/user-activity-solved.gjs b/plugins/discourse-solved/assets/javascripts/discourse/templates/user-activity-solved.gjsnew file mode 100644index 00000000000..a94eb8473b7--- /dev/null+++ b/plugins/discourse-solved/assets/javascripts/discourse/templates/user-activity-solved.gjs@@ -0,0 +1,16 @@+import RouteTemplate from "ember-route-template";+import EmptyState from "discourse/components/empty-state";+import UserStream from "discourse/components/user-stream";++export default RouteTemplate(+ <template>+ {{#if @controller.model.stream.noContent}}+ <EmptyState+ @title={{@controller.model.emptyState.title}}+ @body={{@controller.model.emptyState.body}}+ />+ {{else}}+ <UserStream @stream={{@controller.model.stream}} />+ {{/if}}+ </template>+);diff --git a/plugins/discourse-solved/assets/stylesheets/mobile/solutions.scss b/plugins/discourse-solved/assets/stylesheets/mobile/solutions.scssnew file mode 100644index 00000000000..772ddccaf85--- /dev/null+++ b/plugins/discourse-solved/assets/stylesheets/mobile/solutions.scss@@ -0,0 +1,27 @@+#topic-title .d-icon-far-square-check {+ margin-top: 0.25em;+}++.topic-post {+ nav.post-controls {+ .extra-buttons {+ button {+ max-width: unset;+ white-space: nowrap;+ }+ }++ &.expanded {+ .accepted,+ .unaccepted {+ .d-button-label {+ display: none;+ }+ }+ }+ }+}++li.solved-status-filter {+ margin: 0 3px 5px 3px; // matches core styles+}diff --git a/plugins/discourse-solved/assets/stylesheets/solutions.scss b/plugins/discourse-solved/assets/stylesheets/solutions.scssnew file mode 100644index 00000000000..484bec8ebd7--- /dev/null+++ b/plugins/discourse-solved/assets/stylesheets/solutions.scss@@ -0,0 +1,104 @@+$solved-color: var(--success);++.select-kit {+ &.solved-status-filter {+ min-width: auto;+ margin-right: 0.5em;++ .select-kit-header {+ color: var(--primary-high);+ }+ }+}++.fa.accepted {+ color: $solved-color;+}++.post-controls .extra-buttons {+ // anon text+ .accepted-text {+ white-space: nowrap;++ .d-icon,+ .accepted-label {+ color: $solved-color;+ }+ }++ // logged in button+ .accepted {+ .d-icon,+ .d-button-label {+ color: $solved-color;+ }+ }+}++.post-controls span.accepted-text {+ display: inline-flex;+ align-items: center;+ gap: 0.25em;+ padding: 0 0.5rem;+ font-size: var(--font-up-1);+ height: 100%;+}++.mobile-view .solved-panel {+ margin-bottom: 15px;+}++.solved-panel {+ .by {+ display: none;+ }+ margin-top: 20px;+ margin-bottom: 0;+ font-size: 13px;+}++aside.quote.accepted-answer {+ > .title {+ display: flex;+ justify-content: space-between;+ align-items: flex-start;++ &.quote__title--can-toggle-content {+ cursor: pointer;+ }+ }++ .accepted-answer--solver-accepter {+ display: flex;+ flex-wrap: wrap;+ flex: 1;+ min-width: 0;+ gap: 0.25em;+ }++ .accepted-answer--solver {+ margin-right: auto;+ }++ .accepted-answer--accepter {+ font-size: var(--font-down-1);+ width: 100%;+ flex-basis: auto;+ margin-top: auto;+ margin-bottom: auto;+ margin-right: 0.25em;++ @media (width >= 480px) {+ width: auto;+ }+ }+}++.user-card-metadata-outlet.accepted-answers {+ display: inline-block;+}++.post-action-menu__solved-accepted-tooltip-content+ .fk-d-tooltip__inner-content {+ display: block;+}diff --git a/plugins/discourse-solved/config/locales/client.ar.yml b/plugins/discourse-solved/config/locales/client.ar.ymlnew file mode 100644index 00000000000..0e3be1cc234--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.ar.yml@@ -0,0 +1,81 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ar:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "حل بواسطة Discourse"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "تم القبول"+ solutions: "الحلول"+ solved:+ title: "تم الحل"+ allow_accepted_answers: "السماح لصاحب الموضوع وفريق العمل بوضع علامة على أحد الردود على أنه الحل"+ solved_topics_auto_close_hours: "إغلاق الموضوع تلقائيًا بعد مرور (n) من الساعات على آخر رد بمجرد وضع علامة على الموضوع على أنه محلول."+ accept_answer: "التحديد إذا كان هذا الرد يحل المشكلة"+ accepted_description: "هذا هو الحل المقبول لهذا الموضوع"+ has_no_accepted_answer: "لا يوجد حل لهذا الموضوع"+ unaccept_answer: "إلغاء التحديد إذا كان هذا الرد لم يعُد يحل المشكلة"+ accepted_answer: "الحل"+ solution: "الحل"+ solution_summary:+ zero: "حل"+ one: "حل واحد"+ two: "حلَّان"+ few: "حلول"+ many: "حلًا"+ other: "حل"+ accepted_html: "%{icon} تم الحل <span class='by'>من قِبل <a href data-user-card='%{username_lower}'>%{username}</a></span> في <a href='%{post_path}' class='back'>المنشور #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "الكل"+ solved: "محلول"+ unsolved: "غير محلول"+ no_solved_topics_title: "لم تحل أي موضوعات بعد"+ no_solved_topics_title_others: "لم يحل %{username} أي موضوعات حتى الآن"+ no_solved_topics_body: "عندما تقدِّم ردًا مفيدًا على أحد الموضوعات، فقد يحدِّد مالك الموضوع أو فريق العمل ردك على أنه الحل."+ no_answer:+ title: هل تمت الإجابة على سؤالك؟+ description: "ميِّز الإجابة وساعد الآخرين عن طريق استخدام زر الحل أسفل الرد الصحيح."+ notification:+ title: "تم وضع علامة \"حل\" على منشورك"+ topic_statuses:+ solved:+ help: "هناك حل لهذا الموضوع"+ search:+ advanced:+ statuses:+ solved: "محلولة"+ unsolved: "غير محلولة"+ admin:+ web_hooks:+ solved_event:+ group_name: "حدث تم حله"+ accepted_solution: "عندما يضع مستخدم علامة على أحد المنشورات على أنه الإجابة المقبولة"+ unaccepted_solution: "عندما يضع مستخدم علامة على أحد المنشورات على أنه الإجابة غير المقبولة"+ api:+ scopes:+ descriptions:+ solved:+ answer: قبول/عدم قبول حل.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < مستوى الثقة 1+ tl2: < مستوى الثقة 2+ tl3: < مستوى الثقة 3+ tl4: < مستوى الثقة 4+ any: أي+ fields:+ maximum_trust_level:+ label: مستوى الثقة+ description: سيقوم المستخدمون تحت مستوى الثقة هذا بتشغيل هذه الأتمتةdiff --git a/plugins/discourse-solved/config/locales/client.be.yml b/plugins/discourse-solved/config/locales/client.be.ymlnew file mode 100644index 00000000000..94714072912--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.be.yml@@ -0,0 +1,17 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++be:+ js:+ solved:+ topic_status_filter:+ all: "усе"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: узровень даверуdiff --git a/plugins/discourse-solved/config/locales/client.bg.yml b/plugins/discourse-solved/config/locales/client.bg.ymlnew file mode 100644index 00000000000..0cb4670c68f--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.bg.yml@@ -0,0 +1,23 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++bg:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "прието"+ solved:+ accepted_answer: "Решение"+ solution: "Решение"+ topic_status_filter:+ all: "всички подкатегории"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Ниво на Довериеdiff --git a/plugins/discourse-solved/config/locales/client.bs_BA.yml b/plugins/discourse-solved/config/locales/client.bs_BA.ymlnew file mode 100644index 00000000000..365d2715be5--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.bs_BA.yml@@ -0,0 +1,38 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++bs_BA:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "prihvaćeno"+ solved:+ title: "Riješeno"+ allow_accepted_answers: "Dopustite vlasniku teme i osoblju da označe odgovor kao rješenje"+ accept_answer: "Odaberite ako ovaj odgovor rješava problem"+ accepted_description: "Ovo je prihvaćeno rješenje za ovu temu"+ has_no_accepted_answer: "Ova tema nema rešenje"+ unaccept_answer: "Poništite odabir ako ovaj odgovor više ne rješava problem"+ accepted_answer: "Rešenje"+ solution: "Rešenje"+ solution_summary:+ one: "riješenje"+ few: "riješenja"+ other: "riješenja"+ topic_status_filter:+ all: "sve"+ solved: "riješeno"+ unsolved: "nije riješeno"+ topic_statuses:+ solved:+ help: "Ova tema ima riješenje"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Trust Leveldiff --git a/plugins/discourse-solved/config/locales/client.ca.yml b/plugins/discourse-solved/config/locales/client.ca.ymlnew file mode 100644index 00000000000..9230d143590--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.ca.yml@@ -0,0 +1,39 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ca:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "acceptat"+ solved:+ title: "Solucionat"+ allow_accepted_answers: "Permet que el propietari del tema i l'equip responsable marquin una resposta com a solució"+ accept_answer: "Seleccioneu aquesta resposta si resol el problema"+ accepted_description: "Aquesta és la solució acceptada per a aquest tema."+ has_no_accepted_answer: "Aquest tema no té cap solució"+ unaccept_answer: "Desseleccioneu aquesta resposta si ja no resol el problema"+ accepted_answer: "Solució"+ solution: "Solució"+ solution_summary:+ one: "solució"+ other: "solucions"+ accepted_html: "%{icon} Resolt <span class='by'>per <a href data-user-card='%{username_lower}'>%{username}</a></span> en <a href='%{post_path}' class='back'>la publicació núm. %{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "tots"+ solved: "resolt"+ unsolved: "no resolt"+ topic_statuses:+ solved:+ help: "Aquest tema té una solució"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Nivell de confiançadiff --git a/plugins/discourse-solved/config/locales/client.cs.yml b/plugins/discourse-solved/config/locales/client.cs.ymlnew file mode 100644index 00000000000..b10a9e4e771--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.cs.yml@@ -0,0 +1,80 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++cs:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse Solved"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "přijato"+ solutions: "Řešení"+ solved:+ title: "Vyřešeno"+ allow_accepted_answers: "Povolit vlastníkovi tématu a správcům označit odpověď jako řešení"+ solved_topics_auto_close_hours: "Automaticky uzavřít téma po (n) hodinách od poslední odpovědi, jakmile téma bylo označeno za vyřešené."+ accept_answer: "Vyberte, pokud tato odpověď řeší váš problém"+ accepted_description: "Toto je přijaté řešení tohoto tématu"+ has_no_accepted_answer: "Toto téma nemá žádné řešení"+ unaccept_answer: "Tato odpověď již neřeší tento problém"+ accepted_answer: "Řešení"+ solution: "Řešení"+ solution_summary:+ one: "řešení"+ few: "řešení"+ many: "řešení"+ other: "řešení"+ accepted_html: "%{icon} Vyřešil/a<span class='by'> <a href data-user-card='%{username_lower}'>%{username}</a></span> v <a href='%{post_path}' class='back'>příspěvku #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "vše"+ solved: "vyřešeno"+ unsolved: "nevyřešeno"+ no_solved_topics_title: "Zatím jste nevyřešili žádná témata"+ no_solved_topics_title_others: "%{username} zatím nevyřešil/a žádná témata"+ no_solved_topics_body: "Pokud na téma poskytnete užitečnou odpověď, vaše odpověď může být zvolena jako řešení vlastníkem tématu nebo redakcí."+ marked_solved_by: "<a href data-user-card='%{username_lower}'>%{username}</a></span> označil/a jako vyřešené"+ no_answer:+ title: Byla vaše otázka zodpovězena?+ description: "Pomozte ostatním tím, že zvýrazníte odpověď použitím tlačítka Řešení pod správnou odpovědí."+ notification:+ title: "váš příspěvek byl označen jako řešení"+ topic_statuses:+ solved:+ help: "Toto téma má řešení"+ search:+ advanced:+ statuses:+ solved: "jsou vyřešeny"+ unsolved: "nejsou vyřešeny"+ admin:+ web_hooks:+ solved_event:+ group_name: "Vyřešená událost"+ accepted_solution: "Když uživatel/ka označí příspěvek jako přijatou odpověď"+ unaccepted_solution: "Když uživatel/ka označí příspěvek jako nepřijatou odpověď"+ api:+ scopes:+ descriptions:+ solved:+ answer: Přijmout/nepřijmout řešení.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < TL1+ tl2: < TL2+ tl3: < TL3+ tl4: < TL4+ any: Jakákoliv+ fields:+ maximum_trust_level:+ label: Věrohodnost+ description: Tuto automatizaci spustí uživatelé pod touto úrovní důvěryhodnostidiff --git a/plugins/discourse-solved/config/locales/client.da.yml b/plugins/discourse-solved/config/locales/client.da.ymlnew file mode 100644index 00000000000..e52864897f9--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.da.yml@@ -0,0 +1,27 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++da:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "accepteret"+ solved:+ allow_accepted_answers: "Tillad ejer af emne og stab at markere svar som en løsning"+ accepted_answer: "Løsning"+ solution: "Løsning"+ topic_status_filter:+ all: "alle"+ topic_statuses:+ solved:+ help: "Dette svar har en løsning"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Tillidsniveaudiff --git a/plugins/discourse-solved/config/locales/client.de.yml b/plugins/discourse-solved/config/locales/client.de.ymlnew file mode 100644index 00000000000..c408d4e43f2--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.de.yml@@ -0,0 +1,78 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++de:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse – Gelöst"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "akzeptiert"+ solutions: "Lösungen"+ solved:+ title: "Gelöst"+ allow_accepted_answers: "Erlaube dem Ersteller des Themas und Team-Mitgliedern, eine Antwort als Lösung zu markieren"+ solved_topics_auto_close_hours: "Thema automatisch (n) Stunden nach der letzten Antwort schließen, sobald das Thema als gelöst markiert wurde."+ accept_answer: "Auswählen, wenn diese Antwort das Problem löst"+ accepted_description: "Dies ist die für dieses Thema akzeptierte Lösung"+ has_no_accepted_answer: "Dieses Thema hat keine Lösung"+ unaccept_answer: "Abwählen, wenn diese Antwort das Problem nicht mehr löst"+ accepted_answer: "Lösung"+ solution: "Lösung"+ solution_summary:+ one: "Lösung"+ other: "Lösungen"+ accepted_html: "%{icon} Gelöst <span class='by'>von <a href data-user-card='%{username_lower}'>%{username}</a></span> in <a href='%{post_path}' class='back'>Beitrag #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "alle"+ solved: "gelöst"+ unsolved: "ungelöst"+ no_solved_topics_title: "Du hast noch keine Themen gelöst"+ no_solved_topics_title_others: "%{username} hat noch keine Themen gelöst"+ no_solved_topics_body: "Wenn du eine hilfreiche Antwort auf ein Thema gibst, kann es sein, dass deine Antwort vom Themenersteller oder einem Team-Mitglied als Lösung ausgewählt wird."+ marked_solved_by: "Als gelöst markiert von <a href data-user-card='%{username_lower}'>%{username}</a></span>"+ no_answer:+ title: Wurde deine Frage beantwortet?+ description: "Hebe die Antwort hervor und hilf anderen, indem du die Lösungsschaltfläche unter der richtigen Antwort verwendest."+ notification:+ title: "dein Beitrag wurde als Lösung markiert"+ topic_statuses:+ solved:+ help: "Dieses Thema hat eine Lösung"+ search:+ advanced:+ statuses:+ solved: "sind gelöst"+ unsolved: "sind ungelöst"+ admin:+ web_hooks:+ solved_event:+ group_name: "Gelöstes Ereignis"+ accepted_solution: "Wenn ein Benutzer einen Beitrag als akzeptierte Antwort markiert"+ unaccepted_solution: "Wenn ein Benutzer einen Beitrag als nicht akzeptierte Antwort markiert"+ api:+ scopes:+ descriptions:+ solved:+ answer: Eine Lösung akzeptieren/nicht mehr akzeptieren.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < VS1+ tl2: < VS2+ tl3: < VS3+ tl4: < VS4+ any: Beliebig+ fields:+ maximum_trust_level:+ label: Vertrauensstufe+ description: Benutzer unter dieser Vertrauensstufe lösen diese Automatisierung ausdiff --git a/plugins/discourse-solved/config/locales/client.el.yml b/plugins/discourse-solved/config/locales/client.el.ymlnew file mode 100644index 00000000000..e2329f7efb9--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.el.yml@@ -0,0 +1,64 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++el:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "αποδεκτό"+ solutions: "Λύσεις"+ solved:+ title: "Λύθηκε"+ allow_accepted_answers: "Επιτρέψτε στον κάτοχο και το προσωπικό να επισημάνει μια απάντηση ως λύση"+ solved_topics_auto_close_hours: "Αυτόματο κλείσιμο θέματος (n) ώρες μετά την τελευταία απάντηση μόλις το θέμα επισημανθεί ως επιλυμένο."+ accept_answer: "Επιλέξτε αν αυτή η απάντηση λύνει το πρόβλημα"+ accepted_description: "Αυτή είναι η αποδεκτή λύση σε αυτό το θέμα"+ has_no_accepted_answer: "Αυτό το θέμα δεν έχει καμία λύση"+ unaccept_answer: "Απενεργοποιήστε την επιλογή αν αυτή η απάντηση δεν λύνει πλέον το πρόβλημα"+ accepted_answer: "Λύση"+ solution: "Λύση"+ solution_summary:+ one: "λύση"+ other: "λύση"+ accepted_html: "%{icon} Λύθηκε <span class='by'>από <a href data-user-card='%{username_lower}'>%{username}</a></span> σε <a href='%{post_path}' class='back'>θέση #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "όλα"+ solved: "λύθηκε"+ unsolved: "άλυτο"+ no_solved_topics_title: "Δεν έχετε λύσει κανένα θέμα ακόμα"+ no_solved_topics_title_others: "Ο χρήστης %{username} δεν έχει λύσει κανένα θέμα ακόμα"+ no_answer:+ title: Έχει απαντηθεί η ερώτηση σας;+ description: "Επισημάνετε την απάντηση και βοηθήστε άλλους χρησιμοποιώντας το κουμπί λύσης κάτω από τη σωστή απάντηση."+ notification:+ title: "η ανάρτηση σας επισημάνθηκε ως λύση"+ topic_statuses:+ solved:+ help: "Αυτό το θέμα έχει μια λύση"+ search:+ advanced:+ statuses:+ solved: "έχουν επιλυθεί"+ unsolved: "δεν έχουν επιλυθεί"+ admin:+ web_hooks:+ solved_event:+ group_name: "Επιλύθηκε γεγονός"+ api:+ scopes:+ descriptions:+ solved:+ answer: Αποδοχή/Απόρριψη μίας λύσης.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ any: Οποιοδήποτε+ fields:+ maximum_trust_level:+ label: Επίπεδο Εμπιστοσύνηςdiff --git a/plugins/discourse-solved/config/locales/client.en.yml b/plugins/discourse-solved/config/locales/client.en.ymlnew file mode 100644index 00000000000..f1c36b83400--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.en.yml@@ -0,0 +1,78 @@+en:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse Solved"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "accepted"+ solutions: "Solutions"++ solved:+ title: "Solved"+ allow_accepted_answers: "Allow topic owner and staff to mark a reply as the solution"+ solved_topics_auto_close_hours: "Auto close topic (n) hours after the last reply once the topic has been marked as solved."+ accept_answer: "Select if this reply solves the problem"+ accepted_description: "This is the accepted solution to this topic"+ has_no_accepted_answer: "This topic has no solution"+ unaccept_answer: "Unselect if this reply no longer solves the problem"+ accepted_answer: "Solution"+ solution: "Solution"+ solution_summary:+ 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>"+ topic_status_filter:+ all: "all"+ solved: "solved"+ unsolved: "unsolved"+ no_solved_topics_title: "You haven’t solved any topics yet"+ no_solved_topics_title_others: "%{username} has not solved any topics yet"+ no_solved_topics_body: "When you provide a helpful reply to a topic, your reply might be selected as the solution by the topic owner or staff."+ marked_solved_by: "Marked as solved by <a href data-user-card='%{username_lower}'>%{username}</a></span>"++ no_answer:+ title: Has your question been answered?+ description: "Highlight the answer and help others by using the solution button below the correct reply."+ notification:+ title: "your post was marked as solution"++ topic_statuses:+ solved:+ help: "This topic has a solution"++ search:+ advanced:+ statuses:+ solved: "are solved"+ unsolved: "are unsolved"++ admin:+ web_hooks:+ solved_event:+ group_name: "Solved Event"+ accepted_solution: "When an user marks a post as the accepted answer"+ unaccepted_solution: "When an user marks a post as the unaccepted answer"+ api:+ scopes:+ descriptions:+ solved:+ answer: Accept/Unaccept a solution.++ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < TL1+ tl2: < TL2+ tl3: < TL3+ tl4: < TL4+ any: Any+ fields:+ maximum_trust_level:+ label: Trust Level+ description: Users under this Trust Level will trigger this automationdiff --git a/plugins/discourse-solved/config/locales/client.en_GB.yml b/plugins/discourse-solved/config/locales/client.en_GB.ymlnew file mode 100644index 00000000000..2d4fa180ec7--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.en_GB.yml@@ -0,0 +1,7 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++en_GB:diff --git a/plugins/discourse-solved/config/locales/client.es.yml b/plugins/discourse-solved/config/locales/client.es.ymlnew file mode 100644index 00000000000..312bbb8655c--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.es.yml@@ -0,0 +1,77 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++es:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse resuelto"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "aceptado"+ solutions: "Soluciones"+ solved:+ title: "Solucionado"+ allow_accepted_answers: "Permitir al propietario del tema y al staff marcar una respuesta como la solución"+ solved_topics_auto_close_hours: "Cierre automático del tema (n) horas después de la última respuesta una vez que el tema se haya marcado como solucionado."+ accept_answer: "Seleccionar si esta respuesta soluciona el problema"+ accepted_description: "Esta es la solución aceptada para este tema"+ has_no_accepted_answer: "Este tema no tiene una solución"+ unaccept_answer: "Deseleccionar si esta respuesta ya no resuelve el problema"+ accepted_answer: "Solución"+ solution: "Solución"+ solution_summary:+ one: "solución"+ other: "soluciones"+ accepted_html: "%{icon} Resuelto <span class='by'>por <a href data-user-card='%{username_lower}'>%{username}</a></span> en la <a href='%{post_path}' class='back'>publicación n° %{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "todos"+ solved: "solucionado"+ unsolved: "sin solución"+ no_solved_topics_title: "Todavía no has resuelto ningún tema"+ no_solved_topics_title_others: "%{username} no ha resuelto ningún tema todavía"+ no_solved_topics_body: "Cuando proporcionas una respuesta útil a un tema, el propietario del tema o el personal pueden seleccionar tu respuesta como la solución."+ no_answer:+ title: '¿Se ha respondido a tu pregunta?'+ description: "Destaca la respuesta y ayuda a los demás utilizando el botón de solución que hay debajo de la respuesta correcta."+ notification:+ title: "tu publicación se ha marcado como solución"+ topic_statuses:+ solved:+ help: "Este tema tiene una solución"+ search:+ advanced:+ statuses:+ solved: "están resueltos"+ unsolved: "están sin resolver"+ admin:+ web_hooks:+ solved_event:+ group_name: "Evento resuelto"+ accepted_solution: "Cuando un usuario marca una publicación como la respuesta aceptada"+ unaccepted_solution: "Cuando un usuario marca una publicación como la respuesta no aceptada"+ api:+ scopes:+ descriptions:+ solved:+ answer: Aceptar/No aceptar una solución.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < NC1+ tl2: < NC2+ tl3: < NC3+ tl4: < NC4+ any: Cualquiera+ fields:+ maximum_trust_level:+ label: Nivel de confianza+ description: Los usuarios bajo este Nivel de confianza activarán esta automatizacióndiff --git a/plugins/discourse-solved/config/locales/client.et.yml b/plugins/discourse-solved/config/locales/client.et.ymlnew file mode 100644index 00000000000..27dcfeb30bd--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.et.yml@@ -0,0 +1,32 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++et:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "aktsepteeritud"+ solved:+ title: "Lahendatud"+ has_no_accepted_answer: "Sellel teemal pole lahendust"+ accepted_answer: "Lahendus"+ solution: "Lahendus"+ solution_summary:+ one: "lahendus"+ other: "lahendused"+ topic_status_filter:+ all: "kõik"+ solved: "lahendatud"+ topic_statuses:+ solved:+ help: "ellel teemal on lahendus"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Usaldustasediff --git a/plugins/discourse-solved/config/locales/client.fa_IR.yml b/plugins/discourse-solved/config/locales/client.fa_IR.ymlnew file mode 100644index 00000000000..7b10bfb5a72--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.fa_IR.yml@@ -0,0 +1,53 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fa_IR:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "تایید شده"+ solutions: "راهحلها"+ solved:+ title: "حل شده"+ allow_accepted_answers: "به صاحب عنوان و مدیران اجازه انتخاب یک پاسخ را به عنوان راه حل بده."+ accept_answer: "اگر این پاسخ مشکل را حل میکند، آن را انتخاب کنید"+ has_no_accepted_answer: "این موضوع هیچ راه حلی ندارد"+ accepted_answer: "راه حل مورد قبول"+ solution: "راه حل"+ solution_summary:+ one: "راه حل"+ other: "راه حل ها"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "همه"+ solved: "حل شده"+ unsolved: "حل نشده"+ no_solved_topics_title_others: "%{username} هنوز هیچ موضوعی را حل نکرده است"+ notification:+ title: "نوشته شما به عنوان راه حل مشخص شد"+ topic_statuses:+ solved:+ help: "این موضوع راه حلی دارد"+ search:+ advanced:+ statuses:+ solved: "حل شدهاند"+ admin:+ web_hooks:+ solved_event:+ group_name: "رویداد حل شده"+ api:+ scopes:+ descriptions:+ solved:+ answer: تایید/رد کردن یک راهحل+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: سطحاعتمادdiff --git a/plugins/discourse-solved/config/locales/client.fi.yml b/plugins/discourse-solved/config/locales/client.fi.ymlnew file mode 100644index 00000000000..944ebceb4a8--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.fi.yml@@ -0,0 +1,77 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fi:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discoursen ratkaistu"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "hyväksytty"+ solutions: "Ratkaisut"+ solved:+ title: "Ratkaistu"+ allow_accepted_answers: "Salli ketjun omistajan ja henkilökunnan merkitä viesti ratkaisuksi"+ solved_topics_auto_close_hours: "Sulje ketju automaattisesti (n) tunnin kuluttua viimeisestä vastauksesta, kun ketjun on ratkaistu."+ accept_answer: "Valitse, jos tämä vastaus ratkaisee ongelman"+ accepted_description: "Tämä on ketjun hyväksytty ratkaisu"+ has_no_accepted_answer: "Tässä ketjussa ei ole ratkaisua"+ unaccept_answer: "Kumoa valinta, jos tämä vastaus ei enää ratkaise ongelmaa"+ accepted_answer: "Ratkaisu"+ solution: "Ratkaisu"+ solution_summary:+ one: "ratkaisu"+ other: "ratkaisua"+ accepted_html: "%{icon} <span class='by'><a href data-user-card='%{username_lower}'>%{username}</a></span> ratkaisi <a href='%{post_path}' class='back'>viestissä %{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "kaikki"+ solved: "ratkaistu"+ unsolved: "ratkaisematon"+ no_solved_topics_title: "Et ole vielä ratkaissut ketjuja"+ no_solved_topics_title_others: "%{username} ei ole vielä ratkaissut ketjuja"+ no_solved_topics_body: "Kun annat hyödyllisen vastauksen ketjuun, aiheen omistaja tai henkilökunta saattaa valita vastauksesi ratkaisuksi."+ no_answer:+ title: Onko kysymykseesi vastattu?+ description: "Korosta vastaus ja auta muita käyttämällä oikean vastauksen alla olevaa ratkaisupainiketta."+ notification:+ title: "viestisi merkittiin ratkaisuksi"+ topic_statuses:+ solved:+ help: "Tämä ketju on ratkaistu"+ search:+ advanced:+ statuses:+ solved: "ovat ratkaistu"+ unsolved: "ovat ratkaisemattomia"+ admin:+ web_hooks:+ solved_event:+ group_name: "Ratkaistu-tapahtuma"+ accepted_solution: "Kun käyttäjä merkitsee viestin hyväksytyksi vastaukseksi"+ unaccepted_solution: "Kun käyttäjä merkitsee viestin hyväksymättömäksi vastaukseksi"+ api:+ scopes:+ descriptions:+ solved:+ answer: Hyväksy tai hylkää ratkaisu.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < LT1+ tl2: < LT2+ tl3: < LT3+ tl4: < LT4+ any: Mikä tahansa+ fields:+ maximum_trust_level:+ label: Luottamustaso+ description: Tämän luottamustason alittavat käyttäjät laukaisevat tämän automaationdiff --git a/plugins/discourse-solved/config/locales/client.fr.yml b/plugins/discourse-solved/config/locales/client.fr.ymlnew file mode 100644index 00000000000..12699688acd--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.fr.yml@@ -0,0 +1,77 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fr:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse résolu"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "accepté"+ solutions: "Solutions"+ solved:+ title: "Résolus"+ allow_accepted_answers: "Autoriser l'auteur du sujet et les responsables à marquer une réponse comme solution"+ solved_topics_auto_close_hours: "Fermer automatiquement le sujet (n) heures après la dernière réponse, une fois que le sujet a été marqué comme résolu."+ accept_answer: "Sélectionnez si cette réponse résout le problème"+ accepted_description: "C'est la solution acceptée à ce sujet"+ has_no_accepted_answer: "Ce sujet n'a pas de solution"+ unaccept_answer: "Annulez la sélection si cette réponse ne résout plus le problème"+ accepted_answer: "Solution"+ solution: "Solution"+ solution_summary:+ one: "solution"+ other: "solutions"+ accepted_html: "%{icon} Résolu <span class='by'>par <a href data-user-card='%{username_lower}'>%{username}</a></span> dans le <a href='%{post_path}' class='back'>message #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "tous"+ solved: "résolu"+ unsolved: "non résolu"+ no_solved_topics_title: "Vous n'avez encore résolu aucun sujet"+ no_solved_topics_title_others: "%{username} n'a encore résolu aucun sujet."+ no_solved_topics_body: "Lorsque vous fournissez une réponse utile à un sujet, votre réponse peut être sélectionnée comme solution par le ou la propriétaire ou responsable du sujet."+ no_answer:+ title: Votre question a-t-elle reçu une réponse ?+ description: "Mettez la réponse en surbrillance et aidez les autres utilisateurs en utilisant le bouton de solution sous la réponse adéquate."+ notification:+ title: "votre message a été marqué comme solution"+ topic_statuses:+ solved:+ help: "Ce sujet a une solution"+ search:+ advanced:+ statuses:+ solved: "sont résolus"+ unsolved: "ne sont pas résolus"+ admin:+ web_hooks:+ solved_event:+ group_name: "Événement résolu"+ accepted_solution: "Lorsqu'un utilisateur marque un message comme la réponse acceptée"+ unaccepted_solution: "Lorsqu'un utilisateur marque un message comme la réponse non acceptée"+ api:+ scopes:+ descriptions:+ solved:+ answer: Accepter/refuser une solution.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < NC1+ tl2: < NC2+ tl3: < NC3+ tl4: < NC4+ any: Tous+ fields:+ maximum_trust_level:+ label: Niveau de confiance+ description: Les utilisateurs dont le niveau de confiance est inférieur à celui-ci déclencheront cette automatisationdiff --git a/plugins/discourse-solved/config/locales/client.gl.yml b/plugins/discourse-solved/config/locales/client.gl.ymlnew file mode 100644index 00000000000..fd7e7e44610--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.gl.yml@@ -0,0 +1,21 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++gl:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "aceptado"+ solved:+ topic_status_filter:+ all: "todo"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Nivel de confianzadiff --git a/plugins/discourse-solved/config/locales/client.he.yml b/plugins/discourse-solved/config/locales/client.he.ymlnew file mode 100644index 00000000000..aa3f58ec7cc--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.he.yml@@ -0,0 +1,80 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++he:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse נפתר"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "התקבל"+ solutions: "פתרונות"+ solved:+ title: "נפתר"+ allow_accepted_answers: "לאפשר למשתמשים לאשר תשובות"+ solved_topics_auto_close_hours: "לסגור נושא אוטומטית (n) שעות לאחר התגובה האחרונה כאשר הנושא סומן כפתור."+ accept_answer: "יש לבחור בזה אם התגובה הזאת פותרת את הבעיה"+ accepted_description: "זה הפתרון המקובל לנושא זה"+ has_no_accepted_answer: "לנושא הזה אין פתרון"+ unaccept_answer: "יש לבטל את הסימון אם התגובה הזו אינה פותרת עוד את הבעיה."+ accepted_answer: "פתרון"+ solution: "פתרון"+ solution_summary:+ one: "פתרון"+ two: "פתרונות"+ many: "פתרונות"+ other: "פתרונות"+ accepted_html: "%{icon} נפתר <span class='by'>על ידי <a href data-user-card='%{username_lower}'>%{username}</a></span> ב<a href='%{post_path}' class='back'>פוסט מס׳ %{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "הכול"+ solved: "נפתר"+ unsolved: "בלתי פתור"+ no_solved_topics_title: "עדיין לא פתרת אף נושא"+ no_solved_topics_title_others: "אין נושאים שנפתרו על ידי %{username} עדיין"+ no_solved_topics_body: "לאחר שכתבת תגובה מועילה לנושא, התגובה שלך עשויה להיבחר כפתרון על ידי בעלי הנושא או הסגל."+ marked_solved_by: "סומן כפתור על ידי <a href data-user-card='%{username_lower}'>%{username}</a></span>"+ no_answer:+ title: התשובה שלך נענתה?+ description: "ניתן להדגיש את התשובה ולסייע לאחרים על ידי לחיצה על כפתור הפתרון שלהלן מתחת לתגובה הנכונה."+ notification:+ title: "הפוסט שלך סומן כפתרון"+ topic_statuses:+ solved:+ help: "נושא זה נפתר"+ search:+ advanced:+ statuses:+ solved: "נפתרו"+ unsolved: "לא נפתרו"+ admin:+ web_hooks:+ solved_event:+ group_name: "אירוע שנפתר"+ accepted_solution: "כשמשתמש מסמן פוסט כתשובה מקובלת"+ unaccepted_solution: "כשמשתמש מסמן פוסט כתשובה בלתי מקובלת"+ api:+ scopes:+ descriptions:+ solved:+ answer: קבלת/דחיית פתרון.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < דרגת אמון 1+ tl2: < דרגת אמון 2+ tl3: < דרגת אמון 3+ tl4: < דרגת אמון 4+ any: כלשהו+ fields:+ maximum_trust_level:+ label: דרגת אמון+ description: משתמשים מתחת לדרגת אמון זו יקפיצו אוטומציה זוdiff --git a/plugins/discourse-solved/config/locales/client.hr.yml b/plugins/discourse-solved/config/locales/client.hr.ymlnew file mode 100644index 00000000000..a111bd8ff2b--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.hr.yml@@ -0,0 +1,30 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hr:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "prihvaćen"+ solved:+ title: "Riješeno"+ allow_accepted_answers: "Dopusti vlasniku teme i osoblju da označi odgovor kao rješenje"+ accept_answer: "Odaberite ¸ako ovaj odgovor rješava problem"+ accepted_description: "Ovo je prihvaćeno rješenje za ovu temu"+ has_no_accepted_answer: "Ova tema nema rješenje"+ unaccept_answer: "Poništite odabir ako ovaj odgovor više ne rješava problem"+ accepted_answer: "Riješenje"+ solution: "Riješenje"+ topic_status_filter:+ all: "sve"+ solved: "riješeno"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Razina povjerenjadiff --git a/plugins/discourse-solved/config/locales/client.hu.yml b/plugins/discourse-solved/config/locales/client.hu.ymlnew file mode 100644index 00000000000..b8baf20afe1--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.hu.yml@@ -0,0 +1,77 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hu:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse Megoldott"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "elfogadva"+ solutions: "Megoldások"+ solved:+ title: "Megoldott"+ allow_accepted_answers: "Engedélyezi a téma tulajdonosának és a stábnak, hogy megoldásként jelöljenek meg egy bejegyzést"+ solved_topics_auto_close_hours: "Automatikusan zárja le a témát (n) órával az utolsó válasz után, miután a témát megoldották."+ accept_answer: "Válassza ezt, ha ez a válasz megoldja a problémát"+ accepted_description: "Ez a téma elfogadott megoldása"+ has_no_accepted_answer: "Ez a téma nem tartalmaz megoldást"+ unaccept_answer: "Válaszd ki ha ez a válasz már nem oldja meg a problémát"+ accepted_answer: "Megoldás"+ solution: "Megoldás"+ solution_summary:+ one: "megoldás"+ other: "megoldás"+ accepted_html: "%{icon} <span class='by'><a href data-user-card='%{username_lower}'>%{username}</a></span> megoldotta a(z) <a href='%{post_path}' class='back'>%{post_number}. bejegyzéssel</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "Összes"+ solved: "megoldott"+ unsolved: "megoldatlan"+ no_solved_topics_title: "Még egy témát sem oldott meg"+ no_solved_topics_title_others: "%{username} még nem oldott meg témát"+ no_solved_topics_body: "Ha hasznos választ ad egy témára, előfordulhat, hogy a téma tulajdonosa vagy a stáb az Ön válaszát választják megoldásként."+ no_answer:+ title: Megválaszolták a kérdését?+ description: "Emelje ki a választ, és segítsen másoknak is a helyes válasz alatti megoldás gomb segítségével."+ notification:+ title: "hozzászólásod megoldásként lett megjelölve"+ topic_statuses:+ solved:+ help: "Ez a téma tartalmaz egy megoldást"+ search:+ advanced:+ statuses:+ solved: "megoldott"+ unsolved: "megoldatlan"+ admin:+ web_hooks:+ solved_event:+ group_name: "Megoldott esemény"+ accepted_solution: "Amikor egy felhasználó egy hozzászólást elfogadott válaszként jelöl meg"+ unaccepted_solution: "Amikor egy felhasználó egy hozzászólást nem elfogadott válaszként jelöl meg"+ api:+ scopes:+ descriptions:+ solved:+ answer: Megoldás elfogadása/elutasítása.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < BSZ1+ tl2: < BSZ2+ tl3: < BSZ3+ tl4: < BSZ4+ any: Bármely+ fields:+ maximum_trust_level:+ label: Bizalmi szint+ description: Az ezen a bizalmi szint alatti felhasználók aktiválják ezt az automatizálástdiff --git a/plugins/discourse-solved/config/locales/client.hy.yml b/plugins/discourse-solved/config/locales/client.hy.ymlnew file mode 100644index 00000000000..f51a86ac756--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.hy.yml@@ -0,0 +1,36 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hy:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "ընդունված"+ solved:+ title: "Լուծված է"+ allow_accepted_answers: "Թույլատրել թեմայի սեփականատիրոջը և անձնակազմին՝ նշել պատասխանը որպես լուծում"+ accept_answer: "Ընտրեք, թե արդյոք այս պատասխանը լուծում է խնդիրը"+ has_no_accepted_answer: "Այս թեման լուծում չունի"+ unaccept_answer: "Ընտրությունից հանել, եթե այս պատասխանը այլևս չի լուծում խնդիրը"+ accepted_answer: "Լուծում"+ solution: "Լուծում"+ solution_summary:+ one: "լուծում"+ other: "լուծում"+ topic_status_filter:+ all: "բոլոր"+ solved: "լուծված"+ unsolved: "չլուծված"+ topic_statuses:+ solved:+ help: "Այս թեման ունի լուծում:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Վստահության Մակարդակdiff --git a/plugins/discourse-solved/config/locales/client.id.yml b/plugins/discourse-solved/config/locales/client.id.ymlnew file mode 100644index 00000000000..96b54687b96--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.id.yml@@ -0,0 +1,31 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++id:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "Diterima"+ solved:+ allow_accepted_answers: "Izinkan pemilik topik dan staf untuk menandai balasan sebagai solusi"+ accept_answer: "Pilih jika balasan ini menyelesaikan masalah"+ has_no_accepted_answer: "Topik ini tidak memiliki solusi"+ accepted_answer: "Solusi"+ solution: "Solusi"+ solution_summary:+ other: "Solusi"+ topic_status_filter:+ all: "Semua"+ topic_statuses:+ solved:+ help: "Topik ini memiliki solusi"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Level Kepercayaandiff --git a/plugins/discourse-solved/config/locales/client.it.yml b/plugins/discourse-solved/config/locales/client.it.ymlnew file mode 100644index 00000000000..5b2f59febce--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.it.yml@@ -0,0 +1,77 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++it:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Risoluzione Discourse"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "accettata"+ solutions: "Soluzioni"+ solved:+ title: "Risolti"+ allow_accepted_answers: "Consenti al proprietario dell'argomento e allo staff di contrassegnare una risposta come soluzione"+ solved_topics_auto_close_hours: "Chiudi automaticamente l'argomento (n) ore dopo l'ultima risposta una volta che l'argomento è stato contrassegnato come risolto."+ accept_answer: "Selezionare se questa risposta risolve il problema"+ accepted_description: "Questa è la soluzione accettata per questo argomento"+ has_no_accepted_answer: "Questo argomento non ha soluzioni"+ unaccept_answer: "Deselezionare se questa risposta non risolve più il problema"+ accepted_answer: "Soluzione"+ solution: "Soluzione"+ solution_summary:+ one: "soluzione"+ other: "soluzioni"+ accepted_html: "%{icon} Risolto <span class='by'>da <a href data-user-card='%{username_lower}'>%{username}</a></span> nel <a href='%{post_path}' class='back'>messaggio #%{post_number}</a>"+ accepted_notification: "<p> <span>%{username}</span> %{description} </p>"+ topic_status_filter:+ all: "tutti"+ solved: "risolto"+ unsolved: "non risolto"+ no_solved_topics_title: "Non hai ancora risolto nessun argomento"+ no_solved_topics_title_others: "%{username} non ha ancora risolto nessun argomento"+ no_solved_topics_body: "Quando fornisci una risposta utile a un argomento, la tua risposta potrà essere selezionata come soluzione dal proprietario dell'argomento o dallo staff."+ no_answer:+ title: La tua domanda ha avuto risposta?+ description: "Evidenzia la risposta e aiuta gli altri utilizzando il pulsante della soluzione sotto la risposta corretta."+ notification:+ title: "il tuo messaggio è stato contrassegnato come soluzione"+ topic_statuses:+ solved:+ help: "Questo argomento ha una soluzione"+ search:+ advanced:+ statuses:+ solved: "sono risolti"+ unsolved: "non sono risolti"+ admin:+ web_hooks:+ solved_event:+ group_name: "Evento risolto"+ accepted_solution: "Quando un utente contrassegna un messaggio come risposta accettata"+ unaccepted_solution: "Quando un utente contrassegna un messaggio come risposta non accettata"+ api:+ scopes:+ descriptions:+ solved:+ answer: Accetta/Rifiuta una soluzione.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < TL1+ tl2: < TL2+ tl3: < TL3+ tl4: < TL4+ any: Qualsiasi+ fields:+ maximum_trust_level:+ label: Livello di attendibilità+ description: Gli utenti sotto questo livello di attendibilità attiveranno questa automazionediff --git a/plugins/discourse-solved/config/locales/client.ja.yml b/plugins/discourse-solved/config/locales/client.ja.ymlnew file mode 100644index 00000000000..cda555bb6aa--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.ja.yml@@ -0,0 +1,76 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ja:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse 解決済み"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "受け入れられました"+ solutions: "解決策"+ solved:+ title: "解決済み"+ allow_accepted_answers: "トピックオーナーとスタッフが返信を解決策としてマークすることを許可する"+ solved_topics_auto_close_hours: "トピックが解決済みとマークされたら、最後の返信から (n) 時間後にトピックを自動クローズします。"+ accept_answer: "この返信が問題を解決したか選択してください"+ accepted_description: "これは、このトピックについて受け入れられた解決策です。"+ has_no_accepted_answer: "このトピックには解決策がありません"+ unaccept_answer: "この返信が問題を解決できなくなった場合は選択を解除してください"+ accepted_answer: "解決策"+ solution: "解決策"+ solution_summary:+ other: "解決策"+ accepted_html: "%{icon} <a href='%{post_path}' class='back'>投稿 #%{post_number}</a> で <span class='by'><a href data-user-card='%{username_lower}'>%{username}</a></span> が解決"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "すべて"+ solved: "解決済み"+ unsolved: "未解決"+ no_solved_topics_title: "まだトピックを解決していません。"+ no_solved_topics_title_others: "%{username} はまだトピックを解決していません"+ no_solved_topics_body: "トピックに有益な返信を提供すると、その返信がトピックオーナーまたはスタッフによって解決策として選択される場合があります。"+ no_answer:+ title: 質問の回答は得られましたか?+ description: "適切な返信の下にある解決策ボタンを使って回答をハイライトし、他のユーザーを助けましょう。"+ notification:+ title: "あなたの投稿が解決策としてマークされました"+ topic_statuses:+ solved:+ help: "このトピックには解決策があります"+ search:+ advanced:+ statuses:+ solved: "解決済み"+ unsolved: "未解決"+ admin:+ web_hooks:+ solved_event:+ group_name: "解決済みイベント"+ accepted_solution: "ユーザーが投稿を受け入れられる回答としてマークしたとき"+ unaccepted_solution: "ユーザーが投稿を受け入れられない回答としてマークしたとき"+ api:+ scopes:+ descriptions:+ solved:+ answer: 解決策に同意/非同意します。+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < TL1+ tl2: < TL2+ tl3: < TL3+ tl4: < TL4+ any: すべて+ fields:+ maximum_trust_level:+ label: 信頼レベル+ description: この信頼レベルより低いユーザーは、この自動化をトリガーするdiff --git a/plugins/discourse-solved/config/locales/client.ko.yml b/plugins/discourse-solved/config/locales/client.ko.ymlnew file mode 100644index 00000000000..64a38a89ca4--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.ko.yml@@ -0,0 +1,44 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ko:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "승인됨"+ solved:+ title: "해결됨"+ allow_accepted_answers: "토픽 소유자 및 스태프가 해결책으로 답글을 표시하도록 허용"+ accept_answer: "이 답변이 문제를 해결할 경우 선택하십시오"+ accepted_description: "이것이이 주제에 대한 해결책입니다."+ has_no_accepted_answer: "이 토픽에는 해결책이 없습니다"+ unaccept_answer: "이 답변으로 더 이상 문제가 해결되지 않으면 선택 취소"+ accepted_answer: "해결책"+ solution: "해결책"+ solution_summary:+ other: "해결책"+ topic_status_filter:+ all: "모두"+ solved: "해결됨"+ unsolved: "미해결"+ topic_statuses:+ solved:+ help: "이 토픽에는 해결책이 있습니다"+ search:+ advanced:+ statuses:+ solved: "해결되다"+ admin:+ web_hooks:+ solved_event:+ group_name: "해결 된 이벤트"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: 회원 레벨diff --git a/plugins/discourse-solved/config/locales/client.lt.yml b/plugins/discourse-solved/config/locales/client.lt.ymlnew file mode 100644index 00000000000..1f4c65117ec--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.lt.yml@@ -0,0 +1,23 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++lt:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "patvirtinta"+ solved:+ title: "Išspresta"+ topic_status_filter:+ all: "visi"+ solved: "išspresta"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Patikimumo lygisdiff --git a/plugins/discourse-solved/config/locales/client.lv.yml b/plugins/discourse-solved/config/locales/client.lv.ymlnew file mode 100644index 00000000000..63fbf9d5337--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.lv.yml@@ -0,0 +1,21 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++lv:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "apstiprināts"+ solved:+ topic_status_filter:+ all: "Viss"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Uzticības līmenisdiff --git a/plugins/discourse-solved/config/locales/client.nb_NO.yml b/plugins/discourse-solved/config/locales/client.nb_NO.ymlnew file mode 100644index 00000000000..03a6b2102b9--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.nb_NO.yml@@ -0,0 +1,33 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++nb_NO:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "godtatt"+ solved:+ title: "Løst"+ allow_accepted_answers: "Tillat enmeeier og personale å markere et svar som løsning"+ solved_topics_auto_close_hours: "Lukk emnet automatisk (n) timer etter siste svar når det har blitt merket som løst."+ accept_answer: "Velg hvis dette svaret løser problemet"+ has_no_accepted_answer: "Dette emnet har ingen løsning"+ unaccept_answer: "Fravelg dette hvis svaret ikke lenger løser problemet"+ accepted_answer: "Løsning"+ solution: "Løsning"+ topic_status_filter:+ all: "alle"+ solved: "løst"+ topic_statuses:+ solved:+ help: "Dette emnet har en løsning"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Tillitsnivådiff --git a/plugins/discourse-solved/config/locales/client.nl.yml b/plugins/discourse-solved/config/locales/client.nl.ymlnew file mode 100644index 00000000000..658bb7becf4--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.nl.yml@@ -0,0 +1,77 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++nl:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse opgelost"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "geaccepteerd"+ solutions: "Oplossingen"+ solved:+ title: "Opgelost"+ allow_accepted_answers: "Topiceigenaar en medewerkers toestaan een antwoord als oplossing te markeren"+ solved_topics_auto_close_hours: "Topic (n) uur na het laatste antwoord automatisch sluiten zodra het topic als opgelost is gemarkeerd."+ accept_answer: "Selecteer als dit antwoord het probleem oplost"+ accepted_description: "Dit is de geaccepteerde oplossing voor dit topic"+ has_no_accepted_answer: "Dit topic heeft geen oplossing"+ unaccept_answer: "Deselecteer als dit antwoord het probleem niet meer oplost"+ accepted_answer: "Oplossing"+ solution: "Oplossing"+ solution_summary:+ one: "oplossing"+ other: "oplossingen"+ accepted_html: "%{icon} Opgelost <span class='by'>door <a href data-user-card='%{username_lower}'>%{username}</a></span> in <a href='%{post_path}' class='back'>bericht %{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "alle"+ solved: "opgelost"+ unsolved: "onopgelost"+ no_solved_topics_title: "Je hebt nog geen topics opgelost"+ no_solved_topics_title_others: "%{username} heeft nog geen topics opgelost"+ no_solved_topics_body: "Als je een nuttig antwoord geeft op een topic, kan je antwoord door de eigenaar van het topic of door een medewerker als oplossing worden gekozen."+ no_answer:+ title: Is je vraag beantwoord?+ description: "Markeer het antwoord en help anderen door de oplossingsknop onder het juiste antwoord te gebruiken."+ notification:+ title: "Je bericht is gemarkeerd als oplossing"+ topic_statuses:+ solved:+ help: "Dit topic heeft een oplossing"+ search:+ advanced:+ statuses:+ solved: "zijn opgelost"+ unsolved: "zijn onopgelost"+ admin:+ web_hooks:+ solved_event:+ group_name: "Oplossingsgebeurtenis"+ accepted_solution: "Wanneer een gebruiker een bericht als geaccepteerd antwoord markeert"+ unaccepted_solution: "Wanneer een gebruiker een bericht als niet-geaccepteerd antwoord markeert"+ api:+ scopes:+ descriptions:+ solved:+ answer: Accepteer/deaccepteer een oplossing.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < TL1+ tl2: < TL2+ tl3: < TL3+ tl4: < TL4+ any: Alle+ fields:+ maximum_trust_level:+ label: Vertrouwensniveau+ description: Gebruikers onder dit vertrouwensniveau activeren deze automatiseringdiff --git a/plugins/discourse-solved/config/locales/client.pl_PL.yml b/plugins/discourse-solved/config/locales/client.pl_PL.ymlnew file mode 100644index 00000000000..77a4ab94bd0--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.pl_PL.yml@@ -0,0 +1,72 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pl_PL:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "przyjęty"+ solutions: "Rozwiązania"+ solved:+ title: "Rozwiązany"+ allow_accepted_answers: "Pozwól użytkownikom na akceptowanie rozwiązań"+ solved_topics_auto_close_hours: "Zamknij temat automatycznie po (n) godzinach od ostatniej odpowiedzi, gdy temat został oznaczony jako rozwiązany."+ accept_answer: "Zaznacz, jeśli ta odpowiedź rozwiązuje Twój problem"+ accepted_description: "To zaakceptowane rozwiązanie tego tematu."+ has_no_accepted_answer: "Ten temat nie ma rozwiązania"+ unaccept_answer: "Odznacz jeśli ta odpowiedź nie rozwiązuje już problemu"+ accepted_answer: "Zaakceptowana odpowiedź"+ solution: "Rozwiązanie"+ solution_summary:+ one: "rozwiązanie"+ few: "rozwiązania"+ many: "rozwiązania"+ other: "rozwiązania"+ accepted_html: "%{icon} Rozwiązany <span class='by'>przez <a href data-user-card='%{username_lower}'>%{username}</a></span> w <a href='%{post_path}' class='back'>poście #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "wszystkie"+ solved: "rozwiązano"+ unsolved: "nierozwiązano"+ no_solved_topics_title: "Nie rozwiązałeś jeszcze żadnych tematów"+ no_solved_topics_title_others: "%{username} nie rozwiązał jeszcze żadnych tematów"+ no_solved_topics_body: "Gdy udzielisz pomocnej odpowiedzi na dany temat, Twoja odpowiedź może zostać wybrana jako rozwiązanie przez właściciela tematu lub personel."+ no_answer:+ title: Czy odpowiedź na twoje pytanie została udzielona?+ description: "Podświetl odpowiedź i pomóż innym, korzystając z przycisku rozwiązania pod prawidłową odpowiedzią."+ notification:+ title: "twój post został oznaczony jako rozwiązanie"+ topic_statuses:+ solved:+ help: "Ten temat ma zaakceptowane rozwiązanie"+ search:+ advanced:+ statuses:+ solved: "są rozwiązane"+ unsolved: "są nierozwiązane"+ admin:+ web_hooks:+ solved_event:+ group_name: "Zdarzenie rozwiązania"+ api:+ scopes:+ descriptions:+ solved:+ answer: Zaakceptuj/Odrzuć rozwiązanie.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < TL1+ tl2: < TL2+ tl3: < TL3+ tl4: < TL4+ any: Dowolny+ fields:+ maximum_trust_level:+ label: Poziom zaufania+ description: Użytkownicy poniżej tego poziomu zaufania uruchomią tę automatyzacjędiff --git a/plugins/discourse-solved/config/locales/client.pt.yml b/plugins/discourse-solved/config/locales/client.pt.ymlnew file mode 100644index 00000000000..38fae5d8ae4--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.pt.yml@@ -0,0 +1,38 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pt:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "aceite"+ solved:+ title: "Resolvido"+ allow_accepted_answers: "Permitir que o autor do tópico e a equipa marquem uma resposta como solução"+ solved_topics_auto_close_hours: "Fechar automaticamente o tópico (n) horas depois do tópico ser marcado como solução."+ accept_answer: "Selecionar se esta resposta resolver o problema"+ has_no_accepted_answer: "Este tópico não tem solução"+ unaccept_answer: "Desselecionar se esta resposta já não resolver o problema"+ accepted_answer: "Solução"+ solution: "Solução"+ solution_summary:+ one: "solução"+ other: "soluções"+ accepted_html: "%{icon} Resolvido <span class='by'>por <a href data-user-card='%{username_lower}'>%{username}</a></span> na <a href='%{post_path}' class='back'>mensagem #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "todos"+ solved: "resolvido"+ topic_statuses:+ solved:+ help: "Este tópico tem uma solução"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Nível de Confiançadiff --git a/plugins/discourse-solved/config/locales/client.pt_BR.yml b/plugins/discourse-solved/config/locales/client.pt_BR.ymlnew file mode 100644index 00000000000..c9404f9135b--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.pt_BR.yml@@ -0,0 +1,77 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pt_BR:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Solucionado no Discourse"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "aceito"+ solutions: "Soluções"+ solved:+ title: "Resolvido"+ allow_accepted_answers: "Permitir que o(a) proprietário(a) do tópico e a equipe marquem uma resposta como a solução"+ solved_topics_auto_close_hours: "Fechar tópico automaticamente (n) horas após a última resposta quando o tópico tiver sido marcado como resolvido."+ accept_answer: "Selecione se esta resposta resolve o problema"+ accepted_description: "Esta é a solução aceita para este tópico"+ has_no_accepted_answer: "Este tópico não tem solução"+ unaccept_answer: "Desmarque se esta resposta não resolve mais o problema"+ accepted_answer: "Solução"+ solution: "Solução"+ solution_summary:+ one: "solução"+ other: "soluções"+ accepted_html: "%{icon} resolvido <span class='by'>por <a href data-user-card='%{username_lower}'>%{username}</a></span> em <a href='%{post_path}' class='back'>postagem #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "tudo"+ solved: "solucionados"+ unsolved: "não solucionados"+ no_solved_topics_title: "Você ainda não solucionou nenhum tópico"+ no_solved_topics_title_others: "%{username} ainda não respondeu a nenhum tópico"+ no_solved_topics_body: "Quando você fornecer uma resposta útil a um tópico, ela poderá ser selecionada como uma solução pelo(a) proprietário(a) ou equipe do tópico."+ no_answer:+ title: Sua pergunta foi respondida?+ description: "Destaque a resposta e ajude as outras pessoas ao usar o botão de solução abaixo para responder corretamente."+ notification:+ title: "sua postagem foi marcada como uma solução"+ topic_statuses:+ solved:+ help: "Este tópico tem uma solução"+ search:+ advanced:+ statuses:+ solved: "foram solucionados"+ unsolved: "não foram solucionados"+ admin:+ web_hooks:+ solved_event:+ group_name: "Evento solucionado"+ accepted_solution: "Quando um(a) usuário(a) marca uma postagem como resposta aceita"+ unaccepted_solution: "Quando um(a) usuário(a) marca uma postagem como resposta não aceita"+ api:+ scopes:+ descriptions:+ solved:+ answer: Aceitar/não aceitar uma solução.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < TL1+ tl2: < TL2+ tl3: < TL3+ tl4: < TL4+ any: Qualquer+ fields:+ maximum_trust_level:+ label: Nível de confiança+ description: Os(as) usuários(as) com este nível de confiança ativarão esta automaçãodiff --git a/plugins/discourse-solved/config/locales/client.ro.yml b/plugins/discourse-solved/config/locales/client.ro.ymlnew file mode 100644index 00000000000..9848ea6fdb8--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.ro.yml@@ -0,0 +1,50 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ro:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "acceptat"+ solved:+ title: "Rezolvat"+ allow_accepted_answers: "Permite inițiatorului subiectului și personalului să marcheze un răspuns ca soluție"+ solved_topics_auto_close_hours: "Închide subiectul automat la (n) ore după ultimul răspuns după ce subiectul a fost marcat ca rezolvat."+ accept_answer: "Selectează acest mesaj dacă rezolvă problema"+ accepted_description: "Aceasta este soluţia acceptată pentru acest subiect"+ has_no_accepted_answer: "Acest subiect nu are nicio soluție"+ unaccept_answer: "Deselectați dacă acest răspuns nu mai rezolvă problema"+ accepted_answer: "Soluție"+ solution: "Soluție"+ solution_summary:+ one: "soluţie"+ few: "soluţii"+ other: "soluţii"+ accepted_html: "%{icon} Rezolvat <span class='by'>de <a href data-user-card='%{username_lower}'>%{username}</a></span> în <a href='%{post_path}' class='back'>post #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "tot"+ solved: "rezolvat"+ unsolved: "nerezolvat"+ topic_statuses:+ solved:+ help: "Acest subiect are o soluție"+ search:+ advanced:+ statuses:+ solved: "sunt rezolvate"+ unsolved: "sunt nerezolvate"+ admin:+ web_hooks:+ solved_event:+ group_name: "Eveniment rezolvat"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Nivel de încrederediff --git a/plugins/discourse-solved/config/locales/client.ru.yml b/plugins/discourse-solved/config/locales/client.ru.ymlnew file mode 100644index 00000000000..b7075d86ce0--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.ru.yml@@ -0,0 +1,79 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ru:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Плагин «Решённые» для Discourse"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "принято"+ solutions: "Решения"+ solved:+ title: "Решённые"+ allow_accepted_answers: "Разрешать автору темы и модераторам помечать ответ статусом 'Вопрос решён'"+ solved_topics_auto_close_hours: "Автоматически закрывать тему через указанное здесь количество часов после того, как тема была отмечена как решенная."+ accept_answer: "Выберите, если этот ответ решает проблему"+ accepted_description: "Этот ответ решает вопрос, обсуждаемый в этой теме"+ has_no_accepted_answer: "Тема не содержит решения вопроса"+ unaccept_answer: "Отмените выбор, если этот ответ не решает проблему"+ accepted_answer: "Решение вопроса"+ solution: "Вопрос решён"+ solution_summary:+ one: "вопрос решён"+ few: "вопроса решены"+ many: "вопросов решены"+ other: "вопросов решены"+ accepted_html: "%{icon} Вопрос решён пользователем <span class='by'> <a href data-user-card='%{username_lower}'>%{username}</a></span> в <a href='%{post_path}' class='back'>сообщении #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "все"+ solved: "Решённые"+ unsolved: "Нерешённые"+ no_solved_topics_title: "У вас пока нет решённых тем"+ no_solved_topics_title_others: "У пользователя %{username} ещё нет тем, содержащих решённые вопросы"+ no_solved_topics_body: "Когда вы даете в теме полезный ответ, он может быть отмечен в качестве решения владельцем темы или сотрудниками."+ no_answer:+ title: Вопрос был решён?+ description: "Выделите ответ и помогите другим пользователям, нажав на кнопку 'Вопрос решён' под правильным ответом."+ notification:+ title: "ваша запись отмечена как решение"+ topic_statuses:+ solved:+ help: "Тема содержит решение вопроса"+ search:+ advanced:+ statuses:+ solved: "Решённые"+ unsolved: "Нерешённые"+ admin:+ web_hooks:+ solved_event:+ group_name: "Событие решения вопроса"+ accepted_solution: "Когда пользователь отмечает публикацию как принятый ответ"+ unaccepted_solution: "Когда пользователь отмечает публикацию как непринятый ответ"+ api:+ scopes:+ descriptions:+ solved:+ answer: Принять решение (отменить принятие).+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < ур. 1+ tl2: < ур. 2+ tl3: < ур. 3+ tl4: < ур. 4+ any: Любой+ fields:+ maximum_trust_level:+ label: Уровень доверия+ description: Пользователи с этим уровнем доверия будут запускать этот скриптdiff --git a/plugins/discourse-solved/config/locales/client.sk.yml b/plugins/discourse-solved/config/locales/client.sk.ymlnew file mode 100644index 00000000000..8c502644e11--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.sk.yml@@ -0,0 +1,21 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sk:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "prijať"+ solved:+ topic_status_filter:+ all: "všetko"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Stupeň dôverydiff --git a/plugins/discourse-solved/config/locales/client.sl.yml b/plugins/discourse-solved/config/locales/client.sl.ymlnew file mode 100644index 00000000000..bc85f522b0e--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.sl.yml@@ -0,0 +1,72 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sl:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "sprejeto"+ solutions: "Rešitve"+ solved:+ title: "Rešeno"+ allow_accepted_answers: "Lastniku teme in osebju dovolite, da odgovor označijo kot rešitev"+ solved_topics_auto_close_hours: "Samodejno zapiranje teme (n) ur po zadnjem odgovoru, ko je tema označena kot rešena."+ accept_answer: "Izberite, če ta odgovor reši problem"+ accepted_description: "To je sprejeta rešitev te teme"+ has_no_accepted_answer: "Ta tema nima rešitve"+ unaccept_answer: "Odstrani izbor, če ta odgovor več ne reši problema"+ accepted_answer: "Rešitev"+ solution: "Rešitev"+ solution_summary:+ one: "rešitev"+ two: "rešitvi"+ few: "rešitve"+ other: "rešitev"+ accepted_html: "%{icon} <span class='by'>Rešil <a href data-user-card='%{username_lower}'>%{username}</a></span> v <a href='%{post_path}' class='back'>objavi #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "vse"+ solved: "rešeno"+ unsolved: "nerešeno"+ no_solved_topics_title: "Rešili niste še nobene teme"+ no_solved_topics_title_others: "%{username} še ni rešil nobene teme"+ no_solved_topics_body: "Ko podate koristen odgovor na temo, lahko lastnik teme ali osebje izbere vaš odgovor kot rešitev."+ no_answer:+ title: Ste dobili odgovor na vaše vprašanje?+ description: "Z izbiro gumba za potrditev pod ustrezno objavo izpostavite odgovor in s tem pomagajte drugim."+ notification:+ title: "vaša objava je bila označena kot rešitev"+ topic_statuses:+ solved:+ help: "Ta tema ima rešitev"+ search:+ advanced:+ statuses:+ solved: "so rešene"+ unsolved: "so nerešene"+ admin:+ web_hooks:+ solved_event:+ group_name: "Rešen dogodek"+ api:+ scopes:+ descriptions:+ solved:+ answer: Sprejmi/prekliči rešitev.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < TL1+ tl2: < TL2+ tl3: < TL3+ tl4: < TL4+ any: Katerikoli+ fields:+ maximum_trust_level:+ label: Nivo zaupanja+ description: Uporabniki pod to ravnjo zaupanja bodo sprožili to avtomatizacijo.diff --git a/plugins/discourse-solved/config/locales/client.sq.yml b/plugins/discourse-solved/config/locales/client.sq.ymlnew file mode 100644index 00000000000..fb5d15e39d4--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.sq.yml@@ -0,0 +1,17 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sq:+ js:+ solved:+ topic_status_filter:+ all: "të gjitha"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Niveli i besimitdiff --git a/plugins/discourse-solved/config/locales/client.sr.yml b/plugins/discourse-solved/config/locales/client.sr.ymlnew file mode 100644index 00000000000..741fa6c4366--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.sr.yml@@ -0,0 +1,21 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sr:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "prihvaćen"+ solved:+ topic_status_filter:+ all: "sve"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Nivo poverenjadiff --git a/plugins/discourse-solved/config/locales/client.sv.yml b/plugins/discourse-solved/config/locales/client.sv.ymlnew file mode 100644index 00000000000..7450d95acf6--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.sv.yml@@ -0,0 +1,63 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sv:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "accepterad"+ solutions: "Lösningar"+ solved:+ title: "Löst"+ allow_accepted_answers: "Låt ämnesägare och personal markera ett svar som lösningen"+ solved_topics_auto_close_hours: "Stäng automatiskt ämnet (n) timmar efter det senaste svaret när ämnet har markerats som löst."+ accept_answer: "Välj om det här svaret löser problemet"+ accepted_description: "Detta är den accepterade lösningen för detta ämne"+ has_no_accepted_answer: "Detta ämne har ingen lösning"+ unaccept_answer: "Avmarkera om detta svar inte längre löser problemet"+ accepted_answer: "Lösning"+ solution: "Lösning"+ solution_summary:+ one: "lösning"+ other: "lösningar"+ accepted_html: "%{icon} Löst <span class='by'>av <a href data-user-card='%{username_lower}'>%{username}</a></span> i <a href='%{post_path}' class='back'>inlägg #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span>%{description}</p>"+ topic_status_filter:+ all: "alla"+ solved: "lösta"+ unsolved: "olösta"+ no_solved_topics_title: "Du har inte löst några ämnen än"+ no_solved_topics_title_others: "%{username} har inte löst några ämnen ännu"+ no_solved_topics_body: "När du ger ett användbart svar på ett ämne kan ditt svar väljas som lösningen av ämnesägaren eller personalen."+ no_answer:+ title: Har din fråga besvarats?+ description: "Markera svaret och hjälp andra genom att använda lösningsknappen under det korrekta svaret."+ topic_statuses:+ solved:+ help: "Detta ämne har en lösning"+ search:+ advanced:+ statuses:+ solved: "är lösta"+ unsolved: "är olösta"+ admin:+ web_hooks:+ solved_event:+ group_name: "Löst händelse"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < TL1+ tl2: < TL2+ tl3: < TL3+ tl4: < TL4+ any: Valfri+ fields:+ maximum_trust_level:+ label: Förtroendenivå+ description: Användare under denna förtroendenivå kommer att utlösa denna automatiseringdiff --git a/plugins/discourse-solved/config/locales/client.sw.yml b/plugins/discourse-solved/config/locales/client.sw.ymlnew file mode 100644index 00000000000..7f349fa12ff--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.sw.yml@@ -0,0 +1,32 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sw:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "imeruhusiwa"+ solved:+ title: "Imetatuliwa"+ allow_accepted_answers: "Ruhusu Muanzilishi wa Mada na Wasaidizi kuchagua jibu kama Suluhisho"+ accept_answer: "Chagua kama jibu limetatua tatizo"+ has_no_accepted_answer: "Hii mada haina suluhisho"+ unaccept_answer: "Ondoa chaguo kama jibu halijatatua tatizo"+ accepted_answer: "Jibu"+ solution: "Suluhisho"+ topic_status_filter:+ all: "Zote"+ solved: "imetatuliwa"+ topic_statuses:+ solved:+ help: "Hii mada ina suluhisho"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Kiwango cha Uaminifudiff --git a/plugins/discourse-solved/config/locales/client.te.yml b/plugins/discourse-solved/config/locales/client.te.ymlnew file mode 100644index 00000000000..8a027724455--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.te.yml@@ -0,0 +1,21 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++te:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "ఆమోదించబడిన"+ solved:+ topic_status_filter:+ all: "అన్నీ"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: నమ్మకం స్థాయిdiff --git a/plugins/discourse-solved/config/locales/client.th.yml b/plugins/discourse-solved/config/locales/client.th.ymlnew file mode 100644index 00000000000..3f949d95c02--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.th.yml@@ -0,0 +1,32 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++th:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "ยอมรับแล้ว"+ solved:+ title: "แก้ไขแล้ว"+ allow_accepted_answers: "อนุญาตให้เจ้าของกระทู้และทีมงานทำเครื่องหมายการตอบกลับว่าเป็นวิธีแก้ปัญหา"+ accept_answer: "เลือกถ้าการตอบกลับนี้ช่วยแก้ปัญหาได้"+ accepted_description: "นี่เป็นวิธีแก้ปัญหาที่ได้รับการยอมรับสำหรับหัวข้อนี้"+ has_no_accepted_answer: "หัวข้อนี้ไม่มีวิธีแก้ปัญหา"+ unaccept_answer: "ยกเลิกการเลือกหากการตอบกลับนี้ไม่สามารถแก้ปัญหาได้อีกต่อไป"+ accepted_answer: "วิธีแก้ปัญหา"+ solution: "วิธีแก้ปัญหา"+ solution_summary:+ other: "การแก้ปัญหา"+ topic_status_filter:+ all: "ทั้งหมด"+ solved: "แก้ไขแล้ว"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: ระดับความไว้ใจdiff --git a/plugins/discourse-solved/config/locales/client.tr_TR.yml b/plugins/discourse-solved/config/locales/client.tr_TR.ymlnew file mode 100644index 00000000000..8311f6166a5--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.tr_TR.yml@@ -0,0 +1,77 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++tr_TR:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse Çözüldü"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "kabul edildi"+ solutions: "Çözümler"+ solved:+ title: "Çözüldü"+ allow_accepted_answers: "Konu sahibinin ve personelin bir yanıtı çözüm olarak işaretlemesine izin verin"+ solved_topics_auto_close_hours: "Konu çözüldü olarak işaretlendiğinde, son yanıttan (n) saat sonra otomatik olarak kapatılsın."+ accept_answer: "Bu yanıtın sorunu çözüp çözmediğini seçin"+ accepted_description: "Bu, bu konu için kabul edilen çözümdür"+ has_no_accepted_answer: "Bu konunun çözümü yok"+ unaccept_answer: "Bu yanıt artık sorunu çözmüyorsa seçimi kaldırın"+ accepted_answer: "Çözüm"+ solution: "Çözüm"+ solution_summary:+ one: "çözüm"+ other: "çözüm"+ accepted_html: "%{icon} Çözüldü; <span class='by'> <a href data-user-card='%{username_lower}'>%{username}</a></span> tarafından, <a href='%{post_path}' class='back'>%{post_number}. gönderide</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "tümü"+ solved: "çözüldü"+ unsolved: "çözülmedi"+ no_solved_topics_title: "Henüz hiçbir konuyu çözmediniz"+ no_solved_topics_title_others: "%{username} henüz hiçbir konuyu çözmedi"+ no_solved_topics_body: "Bir konuya yararlı bir yanıt verdiğinizde, yanıtınız konu sahibi veya personel tarafından çözüm olarak seçilebilir."+ no_answer:+ title: Sorunuz yanıtlandı mı?+ description: "Yanıtı vurgulayın ve doğru cevabın altındaki çözüm düğmesini kullanarak başkalarına yardımcı olun."+ notification:+ title: "gönderiniz çözüm olarak işaretlendi"+ topic_statuses:+ solved:+ help: "Bu konunun bir çözümü var"+ search:+ advanced:+ statuses:+ solved: "çözüldü"+ unsolved: "çözülmedi"+ admin:+ web_hooks:+ solved_event:+ group_name: "Çözülmüş Olay"+ accepted_solution: "Bir kullanıcı bir gönderiyi kabul edilen yanıt olarak işaretlediğinde"+ unaccepted_solution: "Bir kullanıcı bir gönderiyi kabul edilmeyen yanıt olarak işaretlediğinde"+ api:+ scopes:+ descriptions:+ solved:+ answer: Bir çözümü kabul edin/kabulünü kaldırın.+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < GS1+ tl2: < GS2+ tl3: < GS3+ tl4: < GS4+ any: Herhangi biri+ fields:+ maximum_trust_level:+ label: Güven Seviyesi+ description: Bu Güven Seviyesi altındaki kullanıcılar bu otomasyonu tetiklerdiff --git a/plugins/discourse-solved/config/locales/client.ug.yml b/plugins/discourse-solved/config/locales/client.ug.ymlnew file mode 100644index 00000000000..16a4376363a--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.ug.yml@@ -0,0 +1,21 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ug:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "قوشۇلدى"+ solved:+ topic_status_filter:+ all: "ھەممىسى"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: ئىشەنچ دەرىجىسىdiff --git a/plugins/discourse-solved/config/locales/client.uk.yml b/plugins/discourse-solved/config/locales/client.uk.ymlnew file mode 100644index 00000000000..4d16d87855f--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.uk.yml@@ -0,0 +1,40 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++uk:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "схвалено"+ solved:+ title: "Вирішено"+ allow_accepted_answers: "Дозвольте власнику теми та персоналу позначити відповідь як рішення"+ solved_topics_auto_close_hours: "Автоматично закрити тему (n) годин після останньої відповіді, як тільки тема позначена як вирішена."+ accept_answer: "Виберіть, чи вирішує ця відповідь проблему"+ accepted_description: "Це прийняте рішення цієї теми"+ has_no_accepted_answer: "Ця тема не має рішення"+ unaccept_answer: "Зніміть вибір, якщо ця відповідь більше не вирішує проблему"+ accepted_answer: "Рішення"+ solution: "Рішення"+ solution_summary:+ one: "рішення"+ few: "рішення"+ many: "рішення"+ other: "рішення"+ topic_status_filter:+ all: "всі"+ solved: "вирішено"+ unsolved: "невирішено"+ topic_statuses:+ solved:+ help: "Ця тема має рішення"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Рівень довіриdiff --git a/plugins/discourse-solved/config/locales/client.ur.yml b/plugins/discourse-solved/config/locales/client.ur.ymlnew file mode 100644index 00000000000..d4e7f198218--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.ur.yml@@ -0,0 +1,38 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ur:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "منظور"+ solved:+ title: "حل شدہ"+ allow_accepted_answers: "ٹاپک کے مالک اور اسٹاف کو حل کے طور پر ایک جواب کو نشان زد کرنے کی اجازت دیں"+ solved_topics_auto_close_hours: "ایک بار ٹاپک کو حل شدہ کے طور پر نشان زد کر دیا جائے تو آخری جواب کے (ن) گھنٹوں بعد خود کار انداز سے ٹاپک بند کر دیا جائے."+ accept_answer: "منتخب کریں اگر یہ جواب مسئلہ کو حل کردیتا ہے"+ accepted_description: "یہ اِس ٹاپک کا قبول شدہ حل ہے"+ has_no_accepted_answer: "اِس ٹاپک کا کوئی حل نہیں ہے"+ unaccept_answer: "غیر منتخب کریں اگر یہ جواب اب مسئلہ کو حل نہیں کرتا"+ accepted_answer: "حل"+ solution: "حل"+ solution_summary:+ one: "حل"+ other: "حل"+ topic_status_filter:+ all: "تمام"+ solved: "حل شدہ"+ unsolved: "غیر حل شدہ"+ topic_statuses:+ solved:+ help: "اِس ٹاپک کا حل ہے"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: ٹرسٹ لَیولdiff --git a/plugins/discourse-solved/config/locales/client.vi.yml b/plugins/discourse-solved/config/locales/client.vi.ymlnew file mode 100644index 00000000000..a98d758b628--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.vi.yml@@ -0,0 +1,23 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++vi:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "đã chấp nhận"+ solved:+ title: "Đã xử lý"+ topic_status_filter:+ all: "Tất cả"+ solved: "đã xử lý"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ fields:+ maximum_trust_level:+ label: Bậc tin tưởngdiff --git a/plugins/discourse-solved/config/locales/client.zh_CN.yml b/plugins/discourse-solved/config/locales/client.zh_CN.ymlnew file mode 100644index 00000000000..cac332005f9--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.zh_CN.yml@@ -0,0 +1,76 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++zh_CN:+ admin_js:+ admin:+ site_settings:+ categories:+ discourse_solved: "Discourse Solved"+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "已被接受"+ solutions: "解决方案"+ solved:+ title: "已解决"+ allow_accepted_answers: "允许话题所有者和管理人员将回复标记为解决方案"+ solved_topics_auto_close_hours: "当话题被标记为已解决后,在最后回复 (n) 小时后自动关闭话题。"+ accept_answer: "如果此回复解决了问题,请选择"+ accepted_description: "这是此话题被接受的解决方案"+ has_no_accepted_answer: "此话题尚无解决方案"+ unaccept_answer: "如果此回复不再解决问题,请取消选择"+ accepted_answer: "解决方案"+ solution: "解决方案"+ solution_summary:+ other: "解决方案"+ accepted_html: "已由 <span class='by'><a href data-user-card='%{username_lower}'>%{username}</a></span> 在<a href='%{post_path}' class='back'>帖子 #%{post_number}</a> 中解决 %{icon}"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "所有"+ solved: "已解决"+ unsolved: "未解决"+ no_solved_topics_title: "您尚未解决任何话题"+ no_solved_topics_title_others: "%{username} 还没有解决任何话题"+ no_solved_topics_body: "当您对某个话题提供有用的回复时,您的回复可能会被话题所有者或管理人员选为解决方案。"+ no_answer:+ title: 您的问题是否已被解答?+ description: "在正确回复下方使用解决方案按钮突出显示回答并帮助他人。"+ notification:+ title: "您的帖子已被标记为解决方案"+ topic_statuses:+ solved:+ help: "此话题已有解决方案"+ search:+ advanced:+ statuses:+ solved: "已被解决"+ unsolved: "尚未解决"+ admin:+ web_hooks:+ solved_event:+ group_name: "已解决的事件"+ accepted_solution: "当用户将帖子标记为被接受的回答时"+ unaccepted_solution: "当用户将帖子标记为遭拒的回答时"+ api:+ scopes:+ descriptions:+ solved:+ answer: 接受/不接受解决方案。+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: 信任级别 < 1+ tl2: 信任级别 < 2+ tl3: 信任级别 < 3+ tl4: 信任级别 < 4+ any: 任何+ fields:+ maximum_trust_level:+ label: 信任级别+ description: 此信任级别下的用户将触发此自动化diff --git a/plugins/discourse-solved/config/locales/client.zh_TW.yml b/plugins/discourse-solved/config/locales/client.zh_TW.ymlnew file mode 100644index 00000000000..40366dcb85d--- /dev/null+++ b/plugins/discourse-solved/config/locales/client.zh_TW.yml@@ -0,0 +1,61 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++zh_TW:+ js:+ notifications:+ alt:+ solved:+ accepted_notification: "已接受"+ solutions: "解決方案"+ solved:+ title: "已解決"+ allow_accepted_answers: "允許主題擁有者與管理員標示回覆為解決方式"+ accept_answer: "選擇此回覆是否解決了問題"+ accepted_description: "這是本主題被接受的答案"+ has_no_accepted_answer: "這個主題沒有解決方式"+ unaccept_answer: "如果此回覆已不能解決問題,請取消選取"+ accepted_answer: "解決方式"+ solution: "解決方式"+ solution_summary:+ other: "解決方案"+ accepted_html: "%{icon} 解決了 <span class='by'>通過 <a href data-user-card='%{username_lower}'>%{username}</a></span> 在 <a href='%{post_path}' class='back'>貼文 #%{post_number}</a>"+ accepted_notification: "<p><span>%{username}</span> %{description}</p>"+ topic_status_filter:+ all: "全部"+ solved: "已解決"+ unsolved: "未解答"+ no_solved_topics_title: "您還沒有解決過任何主題"+ no_solved_topics_title_others: "%{username} 尚未解決任何主題"+ no_solved_topics_body: "當您對某個主題提供有用的回覆時,主題擁有者或工作人員可能會選取您的回覆作為解決方案。"+ no_answer:+ title: 您的問題已得到解答嗎?+ description: "在正確的回覆下方按下解答按鈕以突顯解決方案來幫助他人。"+ topic_statuses:+ solved:+ help: "這個主題有解決方式"+ search:+ advanced:+ statuses:+ solved: "解決了"+ unsolved: "未解決的"+ admin:+ web_hooks:+ solved_event:+ group_name: "已解決的事件"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ max_trust_level:+ tl1: < TL1+ tl2: < TL2+ tl3: < TL3+ tl4: < TL4+ any: 任何+ fields:+ maximum_trust_level:+ label: 信任等級+ description: 此信任等級下的使用者將觸發此自動化操作diff --git a/plugins/discourse-solved/config/locales/server.ar.yml b/plugins/discourse-solved/config/locales/server.ar.ymlnew file mode 100644index 00000000000..a9a59508fd1--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.ar.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ar:+ accepted_answer: "الإجابة المقبولة"+ site_settings:+ solved_enabled: "تفعيل المكوِّن الإضافي للحل السماح للمستخدمين باختيار حلول لمواضيعهم"+ allow_solved_on_all_topics: "السماح للمستخدمين بتحديد الحلول في جميع الموضوعات (عند إلغاء التحديد، يمكن تفعيل الحلول لكل فئة أو وسم)"+ accept_all_solutions_trust_level: "الحد الأدنى من مستوى الثقة المطلوب لقبول الحلول في أي موضوع (حتى لو لم يكن الناشر الأصلي)"+ accept_all_solutions_allowed_groups: "المجموعات المسموح لها بقبول الحلول في أي موضوع (حتى لو لم تكن الناشر الأصلي). مسموح للمسؤولين والمشرفين بقبول الحلول دائمًا."+ empty_box_on_unsolved: "عرض مربع فارغ بجوار الموضوعات غير المحلولة"+ solved_quote_length: "عدد الأحرف التي يجب اقتباسها عند عرض الحل تحت المنشور الأول"+ solved_topics_auto_close_hours: "إغلاق الموضوع تلقائيًا بعد مرور (n) من الساعات على آخر رد بمجرد وضع علامة على الموضوع على أنه محلول. اضبط القيمة على 0 لإيقاف الإغلاق التلقائي."+ show_filter_by_solved_status: "عرض قائمة منسدلة لتصفية قائمة الموضوعات حسب حالة الحل"+ notify_on_staff_accept_solved: "إرسال إشعار إلى منشئ الموضوع عندما يتم وضع علامة على أحد المنشورات من قِبل فريق العمل على أنه الحل."+ ignore_solved_topics_in_assigned_reminder: "منع تذكيرات المهام المعيَّنة من تضمين الموضوعات التي تم حلها. ذات صلة فقط عند استخدام المكوِّن الإضافي discourse-assign."+ assignment_status_on_solve: "عندما يتم حل موضوع ما، قم بتحديث جميع المهام المعيَّنة إلى هذه الحالة"+ assignment_status_on_unsolve: "عندما لا يتم حل موضوع ما، قم بتحديث جميع المهام المعيَّنة إلى هذه الحالة"+ disable_solved_education_message: "إيقاف رسالة الإعلام للموضوعات المحلولة"+ accept_solutions_topic_author: "السماح لكاتب الموضوع بقبول حل"+ solved_add_schema_markup: "إضافة علامات مخطط Qapage إلى HTML"+ enable_solved_tags: "الوسوم التي ستسمح للمستخدمين بتحديد الحلول"+ prioritize_solved_topics_in_search: "منح الأولوية للموضوعات التي تم حلها في نتائج البحث."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "الحلول المقبولة"+ xaxis: "اليوم"+ yaxis: "الإجمالي"+ solved:+ no_solutions:+ self: "ليس لديك أي حلول مقبولة حتى الآن."+ others: "لا توجد حلول مقبولة."+ badges:+ solved_1:+ name: "تم الحل!"+ description: "وضع علامة \"حل\" على أحد الردود"+ long_description: "يتم منح هذه الشارة عند وضع علامة \"حل\" على أحد ردودك في أحد الموضوعات. :white_check_mark: أحسنت. :+1:"+ solved_2:+ name: "مستشار التوجيه"+ description: "وضع علامة \"حل\" على 10 من ردودك"+ long_description: "يتم منح هذه الشارة عند وضع علامة \"حل\" على 10 من ردودك على الموضوعات. :white_check_mark: أنت تمثِّل قيمة مضافة حقيقة لزملائك من أعضاء المجتمع."+ solved_3:+ name: "تعرف كل شيء"+ description: "وضع علامة \"حل\" على 50 من ردودك"+ long_description: "يتم منح هذه الشارة عند وضع علامة \"حل\" على 50 من ردودك على الموضوعات. :white_check_mark: أنت تتمتَّع حقًا ببعض المعرفة. :clap:"+ solved_4:+ name: "مؤسسة تقديم الحلول"+ description: "وضع علامة \"حل\" على 150 من ردودك"+ long_description: "يتم منح هذه الشارة عند وضع علامة \"حل\" على 150 من ردودك على الموضوعات. :white_check_mark: عمل رائع. :slightly_smiling_face: لقد أصبحت رسميًا مؤسسةً لتقديم الحلول. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: أول حل مقبول+ doc: يتم تشغيله عند قبول حل من أحد المستخدمين للمرة الأولى.+ education:+ topic_is_solved: |+ ### تم حل هذا الموضوع++ لا ترد هنا إلا إذا كان:++ - لديك تفاصيل إضافية++ - الحل لا يناسبك++ إذا كانت لديك مشكلة غير ذات صلة، يُرجى [إنشاء موضوع جديد] (%{base_url}/new-topic) بدلًا من ذلك.diff --git a/plugins/discourse-solved/config/locales/server.be.yml b/plugins/discourse-solved/config/locales/server.be.ymlnew file mode 100644index 00000000000..79fed611136--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.be.yml@@ -0,0 +1,11 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++be:+ reports:+ accepted_solutions:+ xaxis: "дзень"+ yaxis: "агульны"diff --git a/plugins/discourse-solved/config/locales/server.bg.yml b/plugins/discourse-solved/config/locales/server.bg.ymlnew file mode 100644index 00000000000..c0f05c17ffa--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.bg.yml@@ -0,0 +1,11 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++bg:+ reports:+ accepted_solutions:+ xaxis: "Ден"+ yaxis: "Общо"diff --git a/plugins/discourse-solved/config/locales/server.bs_BA.yml b/plugins/discourse-solved/config/locales/server.bs_BA.ymlnew file mode 100644index 00000000000..7ab667a59a1--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.bs_BA.yml@@ -0,0 +1,14 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++bs_BA:+ reports:+ accepted_solutions:+ xaxis: "Day"+ yaxis: "Suma"+ badges:+ solved_1:+ name: "Riješeno!"diff --git a/plugins/discourse-solved/config/locales/server.ca.yml b/plugins/discourse-solved/config/locales/server.ca.ymlnew file mode 100644index 00000000000..1b0c23add35--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.ca.yml@@ -0,0 +1,25 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ca:+ site_settings:+ solved_enabled: "Activa el connector de resolts. Permet als usuaris seleccionar solucions per als temes."+ accept_all_solutions_trust_level: "Nivell mínim de confiança necessari per a acceptar solucions sobre qualsevol tema (encara que no sigui OP)"+ empty_box_on_unsolved: "Mostra un quadre buit al costat dels temes no resolts"+ solved_quote_length: "Nombre de caràcters que se citen quan es mostri la solució sota la primera publicació"+ show_filter_by_solved_status: "Mostra un menú desplegable per a filtrar una llista de temes per estat de resolució."+ reports:+ accepted_solutions:+ title: "Solucions acceptades"+ xaxis: "Dia"+ yaxis: "Total"+ solved:+ no_solutions:+ self: "Encara no teniu solucions acceptades."+ others: "No hi ha solucions acceptades."+ badges:+ solved_1:+ name: "Solucionat!"diff --git a/plugins/discourse-solved/config/locales/server.cs.yml b/plugins/discourse-solved/config/locales/server.cs.ymlnew file mode 100644index 00000000000..2452738822a--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.cs.yml@@ -0,0 +1,71 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++cs:+ accepted_answer: "Přijatá odpověď"+ site_settings:+ solved_enabled: "Zapnout plugin \"vyřešeno\", povolit uživatelům zvolit řešení témat"+ allow_solved_on_all_topics: "Povolit uživatelům výběr řešení pro všechna témata (pokud není zaškrtnuto, lze povolit řešení pro jednotlivé kategorie nebo štítky)."+ accept_all_solutions_trust_level: "Minimální důvěryhodnost požadovaná pro schválení řešení jakéhokoliv tématu (i když není OP)"+ accept_all_solutions_allowed_groups: "Skupiny, které mohou přijímat řešení na jakékoli téma (i když nejsou OP). Správci a moderátoři jsou vždy povoleni."+ empty_box_on_unsolved: "Zobrazit prázdný box vedle nevyřešených témat"+ solved_quote_length: "Počet citovaných znaků daného řešení tématu pod prvním příspěvkem"+ solved_topics_auto_close_hours: "Automaticky zavřít téma (n) hodin po poslední odpovědi, jakmile bylo téma označeno jako vyřešené. Nastavením na 0 deaktivujete automatické zavírání."+ show_filter_by_solved_status: "Zobrazit rozevírací seznam pro filtrování seznamu témat podle statusu vyřešení."+ notify_on_staff_accept_solved: "Odeslání oznámení tvůrci tématu, když je příspěvek označen jako řešení zaměstnancem."+ ignore_solved_topics_in_assigned_reminder: "Zabránit tomu, aby připomenutí úkolů zahrnovala vyřešená témata. Relevantní pouze při použití pluginu discourse-assign."+ assignment_status_on_solve: "Když je téma vyřešeno, aktualizujte všechny úkoly na tento stav."+ assignment_status_on_unsolve: "Když je téma nevyřešené, aktualizujte všechna přiřazení na tento stav"+ disable_solved_education_message: "Zakázat vzdělávací zprávu pro řešení témat."+ accept_solutions_topic_author: "Povolit autorovi tématu přijmout řešení."+ solved_add_schema_markup: "Přidání do HTML značky schématu QAPage."+ enable_solved_tags: "Štítky, které umožní uživatelům vybrat řešení."+ prioritize_solved_topics_in_search: "Upřednostnit ve výsledcích vyhledávání vyřešená témata."+ show_who_marked_solved: "Zobrazit, kdo označil téma jako vyřešené. Toto je uvedeno v prvním příspěvku tématu a v bublině u příspěvku s odpovědí."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Přijatá řešení"+ xaxis: "Den"+ yaxis: "Celkem"+ solved:+ no_solutions:+ self: "Nemáte zatím žádná akceptovaná řešení."+ others: "Žádná akceptovaná řešení."+ badges:+ solved_1:+ name: "Vyřešeno!"+ description: "Má odpověď označenu jako řešení"+ long_description: "Tento odznak se uděluje za označení odpovědi jako Řešení tématu. :white_check_mark: Dobrá práce.: +1:"+ solved_2:+ name: "Poradce"+ description: "Má 10 odpovědí označeno jako řešení"+ long_description: "Tento odznak je udělen za to, že 10 z vašich odpovědí bylo označeno jako řešení témat. :white_check_mark: Pro své kolegy z komunity jste opravdovým přínosem."+ solved_3:+ name: "Všechno ví"+ description: "Má 50 odpovědí označeno jako řešení"+ long_description: "Tento odznak je udělen za 50 vašich odpovědí označených jako řešení témat. :white_check_mark: Opravdu se vyznáte. :clap:"+ solved_4:+ name: "Továrna na řešení"+ description: "Má 150 odpovědí označeno jako řešení"+ long_description: "Tento odznak je udělen za 150 vašich odpovědí označených jako řešení témat. :white_check_mark: Vynikající práce. :slightly_smiling_face: Jste oficiálně továrnou na řešení. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: První přijaté řešení+ doc: Spustí se, když bylo uživateli poprvé přijato řešení.+ education:+ topic_is_solved: |+ ### Toto téma bylo vyřešeno++ Odpovídejte pouze pokud:++ - Máte další podrobnosti++ - Řešení pro vás nefunguje++ Pokud máte nesouvisející problém, založte místo toho [nové téma](%{base_url}/new-topic).diff --git a/plugins/discourse-solved/config/locales/server.da.yml b/plugins/discourse-solved/config/locales/server.da.ymlnew file mode 100644index 00000000000..9e049329cee--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.da.yml@@ -0,0 +1,11 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++da:+ reports:+ accepted_solutions:+ xaxis: "Dag"+ yaxis: "Total"diff --git a/plugins/discourse-solved/config/locales/server.de.yml b/plugins/discourse-solved/config/locales/server.de.ymlnew file mode 100644index 00000000000..62a5a6c1309--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.de.yml@@ -0,0 +1,71 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++de:+ accepted_answer: "Akzeptierte Antwort"+ site_settings:+ solved_enabled: "Aktiviere das solved-Plug-in; erlaubt Benutzern, Lösungen für Themen auszuwählen"+ allow_solved_on_all_topics: "Benutzern erlauben, Lösungen für alle Themen auszuwählen (wenn diese Option nicht aktiviert ist, können Lösungen nach Kategorie oder Schlagwort aktiviert werden)"+ accept_all_solutions_trust_level: "Minimale Vertrauensstufe, die das Akzeptieren von Lösungen in jedem Thema erlaubt (auch wenn nicht selbst erstellt)"+ accept_all_solutions_allowed_groups: "Gruppen, die Lösungen zu jedem Thema akzeptieren dürfen (auch wenn sie nicht Ersteller des Themas sind). Administratoren und Moderatoren haben diese Befugnis grundsätzlich."+ empty_box_on_unsolved: "Zeige eine leere Box neben ungelösten Themen"+ solved_quote_length: "Anzahl der Zeichen, die zitiert werden, wenn die Lösung unterhalb des ersten Beitrags angezeigt wird"+ solved_topics_auto_close_hours: "Thema automatisch (n) Stunden nach der letzten Antwort schließen, sobald das Thema als gelöst markiert wurde. Auf 0 setzen, um automatisches Schließen zu deaktivieren."+ show_filter_by_solved_status: "Zeige eine Drop-down-Liste, um eine Themenliste nach „Gelöst“-Status zu filtern."+ notify_on_staff_accept_solved: "Benachrichtigung an den Themenersteller senden, wenn ein Beitrag von einem Team-Mitglied als Lösung markiert wird."+ ignore_solved_topics_in_assigned_reminder: "Verhindere, dass Erinnerungen für Zuordnungen gelöste Themen betreffen. Nur relevant, wenn das Plugin discourse-assign verwendet wird."+ assignment_status_on_solve: "Wenn ein Thema als gelöst markiert wird, aktualisiere alle Zuordnungen auf diesen Status"+ assignment_status_on_unsolve: "Wenn ein Thema als ungelöst markiert wird, aktualisiere alle Zuordnungen auf diesen Status"+ disable_solved_education_message: "Deaktiviert den Hinweis für gelöste Themen."+ accept_solutions_topic_author: "Erlaube dem Themenverfasser, eine Lösung zu akzeptieren."+ solved_add_schema_markup: "Füge QAPage-Schema-Mark-up zu HTML hinzu."+ enable_solved_tags: "Schlagwörter, die es Benutzern ermöglichen, Lösungen auszuwählen."+ prioritize_solved_topics_in_search: "Gelöste Themen in den Suchergebnissen priorisieren."+ show_who_marked_solved: "Zeige, wer das Thema als gelöst markiert hat. Dies wird im ersten Beitrag des Themas und im Antwortbeitrag in einem Tooltip angezeigt."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Akzeptierte Lösungen"+ xaxis: "Tag"+ yaxis: "Gesamt"+ solved:+ no_solutions:+ self: "Du hast noch keine akzeptierte Lösung."+ others: "Keine akzeptierten Lösungen."+ badges:+ solved_1:+ name: "Gelöst!"+ description: "Eine Antwort wurde als Lösung markiert"+ long_description: "Dieses Abzeichen bekommst du, wenn deine Antwort als Lösung für ein Thema markiert wurde :white_check_mark: Gute Arbeit :+1:"+ solved_2:+ name: "Berater"+ description: "10 Antworten wurden als Lösungen markiert"+ long_description: "Dieses Abzeichen bekommst du, wenn 10 deiner Antworten als Lösungen für Themen markiert wurden :white_check_mark: Du bist wahrlich eine Bereicherung für die Mitglieder deiner Community."+ solved_3:+ name: "Kluges Köpfchen"+ description: "50 Antworten wurden als Lösungen markiert"+ long_description: "Dieses Abzeichen bekommst du, wenn 50 deiner Antworten als Lösungen für Themen markiert wurden :white_check_mark: Du weißt echt, wovon du sprichst :clap:"+ solved_4:+ name: "Anlaufstelle für Lösungen"+ description: "150 Antworten wurden als Lösungen markiert"+ long_description: "Dieses Abzeichen bekommst du, wenn 150 deiner Antworten als Lösungen für Themen markiert wurden :white_check_mark: Ausgezeichnete Arbeit :slightly_smiling_face: Du bist offiziell eine Anlaufstelle für Lösungen :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Erste akzeptierte Lösung+ doc: Wird ausgelöst, wenn für einen Benutzer zum ersten Mal eine Lösung akzeptiert wird.+ education:+ topic_is_solved: |+ ### Dieses Thema wurde gelöst++ Antworte hier nur, wenn:++ - du zusätzliche Details hast.++ - die Lösung für dich nicht funktioniert.++ Wenn du ein anderes Problem hast, erstelle bitte stattdessen [ein neues Thema](%{base_url}/new-topic).diff --git a/plugins/discourse-solved/config/locales/server.el.yml b/plugins/discourse-solved/config/locales/server.el.ymlnew file mode 100644index 00000000000..ce6994754d0--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.el.yml@@ -0,0 +1,30 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++el:+ accepted_answer: "Αποδεκτή Απάντηση"+ site_settings:+ solved_enabled: "Ενεργοποιήστε το πρόσθετο solved, επιτρέψτε στους χρήστες να επιλέγουν λύσεις για θέματα"+ accept_all_solutions_trust_level: "Απαιτείται ελάχιστο επίπεδο εμπιστοσύνης για αποδοχή λύσεων σε οποιοδήποτε θέμα (ακόμα και όταν δεν είναι OP)"+ empty_box_on_unsolved: "Εμφάνιση ενός κενού πλαισίου δίπλα στα άλυτα θέματα"+ solved_quote_length: "Αριθμός χαρακτήρων προς παράθεση κατά την εμφάνιση της λύσης στην πρώτη ανάρτηση"+ show_filter_by_solved_status: "Εμφάνιση μιας αναπτυσσόμενης λίστας για να φιλτράρετε μια λίστα θεμάτων κατά κατάσταση επίλυσης."+ reports:+ accepted_solutions:+ title: "Αποδεκτές λύσεις"+ xaxis: "Ημέρα"+ yaxis: "Σύνολο"+ solved:+ no_solutions:+ self: "Δεν έχετε αποδεχτεί ακόμη λύσεις."+ others: "Καμία αποδεκτή λύση."+ badges:+ solved_1:+ name: "Λύθηκε!"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Πρώτη αποδεκτή λύσηdiff --git a/plugins/discourse-solved/config/locales/server.en.yml b/plugins/discourse-solved/config/locales/server.en.ymlnew file mode 100644index 00000000000..93b707d93cc--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.en.yml@@ -0,0 +1,71 @@+en:+ accepted_answer: "Accepted Answer"++ site_settings:+ solved_enabled: "Enable solved plugin, allow users to select solutions for topics"+ allow_solved_on_all_topics: "Allow users to select solutions on all topics (when unchecked, solutions can be enabled per category or tag)"+ accept_all_solutions_trust_level: "Minimum trust level required to accept solutions on any topic (even when not OP)"+ accept_all_solutions_allowed_groups: "Groups that are allowed to accept solutions on any topic (even when not OP). Admins and moderators are always allowed."+ empty_box_on_unsolved: "Display an empty box next to unsolved topics"+ solved_quote_length: "Number of characters to quote when displaying the solution under the first post"+ solved_topics_auto_close_hours: "Auto close topic (n) hours after the last reply once the topic has been marked as solved. Set to 0 to disable auto closing."+ show_filter_by_solved_status: "Show a dropdown to filter a topic list by solved status."+ notify_on_staff_accept_solved: "Send notification to the topic creator when a post is marked as solution by a staff."+ ignore_solved_topics_in_assigned_reminder: "Prevent reminders for assignments from including solved topics. Only relevant when using the discourse-assign plugin."+ assignment_status_on_solve: "When a topic is solved update all assignments to this status"+ assignment_status_on_unsolve: "When a topic is unsolved update all assignments to this status"+ disable_solved_education_message: "Disable education message for solved topics."+ accept_solutions_topic_author: "Allow the topic author to accept a solution."+ solved_add_schema_markup: "Add QAPage schema markup to HTML."+ enable_solved_tags: "Tags that will allow users to select solutions."+ prioritize_solved_topics_in_search: "Prioritize solved topics in search results."+ show_who_marked_solved: "Show who marked the topic as solved. This is indicated in the topic's first post, and the answer post in a tooltip."++ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"++ reports:+ accepted_solutions:+ title: "Accepted solutions"+ xaxis: "Day"+ yaxis: "Total"+ solved:+ no_solutions:+ self: "You have no accepted solutions yet."+ others: "No accepted solutions."++ badges:+ solved_1:+ name: "Solved!"+ description: "Have a reply marked as a Solution"+ long_description: "This badge is granted for having a reply marked as a Solution to a topic. :white_check_mark: Nice job. :+1:"+ solved_2:+ name: "Guidance Counsellor"+ description: "Have 10 replies marked as Solutions"+ long_description: "This badge is granted for having 10 of your replies marked as Solutions to topics. :white_check_mark: You are a true asset to your fellow community members."+ solved_3:+ name: "Know-it-All"+ description: "Have 50 replies marked as Solutions"+ long_description: "This badge is granted for having 50 of your replies marked as Solutions to topics. :white_check_mark: You really know your stuff. :clap:"+ solved_4:+ name: "Solution Institution"+ description: "Have 150 replies marked as Solutions"+ long_description: "This badge is granted for having 150 of your replies marked as Solutions to topics. :white_check_mark: Excellent work. :slightly_smiling_face: You are officially a Solution Institution. :brain:"++ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: First accepted solution+ doc: Triggers when a user got a solution accepted for the first time.++ education:+ topic_is_solved: |+ ### This topic has been solved++ Only reply here if:++ - You have additional details++ - The solution doesn't work for you++ If you have an unrelated issue, please [start a new topic](%{base_url}/new-topic) instead.diff --git a/plugins/discourse-solved/config/locales/server.en_GB.yml b/plugins/discourse-solved/config/locales/server.en_GB.ymlnew file mode 100644index 00000000000..2d4fa180ec7--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.en_GB.yml@@ -0,0 +1,7 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++en_GB:diff --git a/plugins/discourse-solved/config/locales/server.es.yml b/plugins/discourse-solved/config/locales/server.es.ymlnew file mode 100644index 00000000000..f6f10b0751e--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.es.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++es:+ accepted_answer: "Respuesta aceptada"+ site_settings:+ solved_enabled: "Activar el complemento de solución, que permite a los usuarios seleccionar soluciones para temas"+ allow_solved_on_all_topics: "Permitir que los usuarios seleccionen soluciones en todos los temas (si no lo marcas, puedes activarlo individualmente por categoría o etiqueta)"+ accept_all_solutions_trust_level: "Nivel de confianza mínimo requerido para aceptar soluciones en cualquier tema (incluso cuando no sea el publicador original)"+ accept_all_solutions_allowed_groups: "Grupos que pueden aceptar soluciones sobre cualquier tema (aunque no sean PO). Los administradores y moderadores siempre están autorizados."+ empty_box_on_unsolved: "Mostrar un cuadro vacío junto a los temas sin solución"+ solved_quote_length: "Número de caracteres que se citan al mostrar la solución debajo de la primera publicación"+ solved_topics_auto_close_hours: "Cerrar automáticamente el tema (n) horas después de la última respuesta una vez que el tema se ha marcado como resuelto. Establecer a 0 para deshabilitar el cierre automático."+ show_filter_by_solved_status: "Mostrar un menú desplegable para filtrar una lista de temas por estado de solución."+ notify_on_staff_accept_solved: "Enviar una notificación al creador del tema cuando alguien del personal marque una publicación como solución."+ ignore_solved_topics_in_assigned_reminder: "Evita que los recordatorios de asignaciones incluyan temas resueltos. Solo es relevante cuando se utiliza el plugin de asignación de Discourse."+ assignment_status_on_solve: "Cuando se resuelve un tema actualiza todas las asignaciones a este estado"+ assignment_status_on_unsolve: "Cuando un tema está sin resolver actualiza todas las asignaciones a este estado"+ disable_solved_education_message: "Desactivar mensajes informativos en los temas resueltos."+ accept_solutions_topic_author: "Permitir que el autor de un tema marque una respuesta como la solución."+ solved_add_schema_markup: "Añade el marcado del esquema de QAPage al HTML."+ enable_solved_tags: "Etiquetas que permitirán a los usuarios seleccionar soluciones."+ prioritize_solved_topics_in_search: "Prioriza los temas resueltos en los resultados de búsqueda."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Soluciones aceptadas"+ xaxis: "Día"+ yaxis: "Total"+ solved:+ no_solutions:+ self: "Todavía no te han marcado ninguna respuesta como solución."+ others: "No hay soluciones aceptadas."+ badges:+ solved_1:+ name: "¡Solucionado!"+ description: "Tener una respuesta marcada como Solución"+ long_description: "Esta insignia se concede por tener una respuesta marcada como Solución a un tema :white_check_mark: Buen trabajo :+1:"+ solved_2:+ name: "Orientador"+ description: "Tener 10 respuestas marcadas como Soluciones"+ long_description: "Esta insignia se concede por tener 10 de tus respuestas marcadas como Soluciones a temas :white_check_mark: Eres un verdadero activo para tus compañeros de la comunidad."+ solved_3:+ name: "Sabelotodo"+ description: "Tener 50 respuestas marcadas como Soluciones"+ long_description: "Esta insignia se concede por tener 50 de tus respuestas marcadas como Soluciones a temas :white_check_mark: Realmente sabes lo que haces :clap:"+ solved_4:+ name: "Institución de soluciones"+ description: "Tener 150 respuestas marcadas como Soluciones"+ long_description: "Esta insignia se concede por tener 150 de tus respuestas marcadas como Soluciones a temas :white_check_mark: Excelente trabajo :slightly_smiling_face: Eres oficialmente una Institución de Soluciones :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Primera solución aceptada+ doc: Se activa cuando un usuario obtiene una solución aceptada por primera vez.+ education:+ topic_is_solved: |+ ### Este tema está resuelto++ Responde solo si:++ - Puedes aportar más detalles++ - La solución no te ha funcionado++ Si tienes otro problema, [empieza un nuevo tema](%{base_url}/new-topic) en vez de responder aquí.diff --git a/plugins/discourse-solved/config/locales/server.et.yml b/plugins/discourse-solved/config/locales/server.et.ymlnew file mode 100644index 00000000000..b8d7fba6eb9--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.et.yml@@ -0,0 +1,18 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++et:+ reports:+ accepted_solutions:+ title: "Aktsepteeritud lahendused"+ xaxis: "Päev"+ yaxis: "Kokku"+ solved:+ no_solutions:+ others: "Aktsepteeritud lahendusi pole."+ badges:+ solved_1:+ name: "Lahendatud!"diff --git a/plugins/discourse-solved/config/locales/server.fa_IR.yml b/plugins/discourse-solved/config/locales/server.fa_IR.ymlnew file mode 100644index 00000000000..11d6adf5a17--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.fa_IR.yml@@ -0,0 +1,22 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fa_IR:+ accepted_answer: "پاسخ پذیرفته شد"+ site_settings:+ prioritize_solved_topics_in_search: "اولویتبندی موضوعات حل شده در نتایج جستجو"+ reports:+ accepted_solutions:+ title: "راه حل مورد قبول"+ xaxis: "روز"+ yaxis: "مجموع"+ solved:+ no_solutions:+ others: "هیچ راه حل پذیرفته ای وجود ندارد"+ badges:+ solved_1:+ name: "حل شده!"+ description: "یک پاسخ به عنوان راه حل علامت گذاری شده است"diff --git a/plugins/discourse-solved/config/locales/server.fi.yml b/plugins/discourse-solved/config/locales/server.fi.ymlnew file mode 100644index 00000000000..49cbadc9287--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.fi.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fi:+ accepted_answer: "Hyväksytty vastaus"+ site_settings:+ solved_enabled: "Ota käyttöön Solved-lisäosa, salii käyttäjän merkitä ratkaisuja ketjuille"+ allow_solved_on_all_topics: "Salli käyttäjien valita ratkaisuja kaikissa ketjuissa (jos tätä ei ole valittu, ratkaisut voidaan ottaa käyttöön alue- tai tunnistekohtaisesti)"+ accept_all_solutions_trust_level: "Luottamustaso joka vaaditaan, jotta voi merkitä ratkaisuksi (vaikkei olisikaan itse kysyjä)"+ accept_all_solutions_allowed_groups: "Ryhmät, jotka voivat hyväksyä ratkaisuja missä tahansa ketjussa (vaikka ei eivät olisi alkuperäisen viestin kirjoittajia). Ylläpitäjät ja valvojat voivat aina hyväksyä ratkaisuja."+ empty_box_on_unsolved: "Näytä tyhjä laatikko ratkaisemattomien ketjujen yhteydessä"+ solved_quote_length: "Kuinka monta merkkiä näytetään, kun lainataan ratkaisua ketjun avausviestin alapuolella"+ solved_topics_auto_close_hours: "Sulje ketju automaattisesti (n) tunnin kuluttua viimeisestä vastauksesta, kun aihe on merkitty ratkaistuksi. Poista automaattinen sulkeminen käytöstä asettamalla arvoksi 0."+ show_filter_by_solved_status: "Näytä pudotusvalikko, jolla voi suodattaa ketjuluetteloa ratkaisun tilan mukaan."+ notify_on_staff_accept_solved: "Lähetä ilmoitus ketjun luojalle, kun henkilökunta merkitsee viestin ratkaisuksi."+ ignore_solved_topics_in_assigned_reminder: "Estä osoitusten muistutuksia sisällyttämästä ratkaistuja ketjuja. Olennainen vain käytettäessä discourse-assign-lisäosaa."+ assignment_status_on_solve: "Kun ketju on ratkaistu, päivitä kaikki osoitukset tähän tilaan"+ assignment_status_on_unsolve: "Kun ketju on ratkaisematon, päivitä kaikki osoitukset tähän tilaan"+ disable_solved_education_message: "Poista koulutusviesti käytöstä ratkaistuissa ketjuissa."+ accept_solutions_topic_author: "Salli ketjun luojan hyväksyä ratkaisu."+ solved_add_schema_markup: "Lisää QAPage-skeemamerkintä HTML:ään."+ enable_solved_tags: "Tunnisteet, joilla käyttäjät voivat valita ratkaisuja."+ prioritize_solved_topics_in_search: "Priorisoi ratkaistut ketjut hakutuloksissa."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Hyväksytyt ratkaisut"+ xaxis: "Päivä"+ yaxis: "Yhteensä"+ solved:+ no_solutions:+ self: "Viestejäsi ei ole vielä hyväksytty ratkaisuiksi."+ others: "Ei hyväksyttyjä ratkaisuja."+ badges:+ solved_1:+ name: "Ratkaistu!"+ description: "Vastauksesi on merkitty ratkaisuksi"+ long_description: "Tämä kunniamerkki myönnetään vastauksesta, joka on merkitty ketjun ratkaisuksi. :white_check_mark: Hyvää työtä. :+1:"+ solved_2:+ name: "Opinto-ohjaaja"+ description: "10 vastaustasi on merkitty ratkaisuksi"+ long_description: "Tämä kunniamerkki myönnetään siitä, että 10 vastauksistasi on merkitty ketjujen ratkaisuiksi. :white_check_mark: Olet todellinen voimavara yhteisön jäsenille."+ solved_3:+ name: "Kaikkitietävä"+ description: "50 vastaustasi on merkitty ratkaisuksi"+ long_description: "Tämä kunniamerkki myönnetään siitä, että 50 vastauksistasi on merkitty ketjujen ratkaisuiksi. :white_check_mark: Tiedät todellakin, mistä puhut. :clap:"+ solved_4:+ name: "Ratkaisulaitos"+ description: "150 vastaustasi on merkitty ratkaisuksi"+ long_description: "Tämä kunniamerkki myönnetään siitä, että 150 vastauksistasi on merkitty ketjujen ratkaisuiksi. :white_check_mark: Erinomaista työtä. :slightly_smiling_face: Olet virallisesti ratkaisulaitos. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Ensimmäinen hyväksytty ratkaisu+ doc: Laukaistaan, kun käyttäjän ratkaisu hyväksytään ensimmäisen kerran.+ education:+ topic_is_solved: |+ ### Tämä ketju on ratkaistu++ Vastaa tähän vain, jos:++ – sinulla on lisätietoja++ – ratkaisu ei toimi sinulle++ Jos sinulla on asiaan liittymätön ongelma, [aloita uusi ketju](%{base_url}/new-topic).diff --git a/plugins/discourse-solved/config/locales/server.fr.yml b/plugins/discourse-solved/config/locales/server.fr.ymlnew file mode 100644index 00000000000..819c8d5b46a--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.fr.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++fr:+ accepted_answer: "Réponse acceptée"+ site_settings:+ solved_enabled: "Activer l'extension permettant aux utilisateurs de sélectionner des solutions aux sujets"+ allow_solved_on_all_topics: "Autoriser les utilisateurs à sélectionner des solutions sur tous les sujets (lorsque cette option n'est pas activée, les solutions peuvent être activées par catégorie ou étiquette)"+ accept_all_solutions_trust_level: "Niveau de confiance minimal requis pour accepter des solutions sur n'importe quel sujet (même sans en être l'auteur)"+ accept_all_solutions_allowed_groups: "Groupes autorisés à accepter des solutions sur n'importe quel sujet (même s'il n'est pas OP). Les administrateurs et modérateurs sont toujours autorisés."+ empty_box_on_unsolved: "Afficher une case vide à côté des sujets non résolus"+ solved_quote_length: "Nombre de caractères à citer lors de l'affichage de la solution sous le premier message"+ solved_topics_auto_close_hours: "Fermer automatiquement le sujet (n) heures après la dernière réponse, une fois que le sujet a été marqué comme résolu. Mettre à 0 pour désactiver la fermeture automatique."+ show_filter_by_solved_status: "Afficher une liste déroulante pour filtrer les sujets par état de résolution."+ notify_on_staff_accept_solved: "Envoyer une notification au créateur du sujet lorsqu'un message est marqué comme une solution par un responsable."+ ignore_solved_topics_in_assigned_reminder: "Empêcher les rappels pour les attributions d'inclure des sujets résolus. Ne s'applique que lorsque vous utilisez l'extension discourse-assign."+ assignment_status_on_solve: "Lorsqu'un sujet est résolu, mettre à jour toutes les attributions ayant ce statut"+ assignment_status_on_unsolve: "Lorsqu'un sujet n'est pas résolu, mettre à jour toutes les attributions ayant ce statut"+ disable_solved_education_message: "Désactiver les messages éducatifs pour les sujets résolus."+ accept_solutions_topic_author: "Permettre à l'auteur du sujet d'accepter une solution."+ solved_add_schema_markup: "Ajouter le marquage du schéma QAPage au code HTML."+ enable_solved_tags: "Étiquettes qui permettront aux utilisateurs de sélectionner des solutions."+ prioritize_solved_topics_in_search: "Prioriser les sujets résolus dans les résultats de recherche."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Solutions acceptées"+ xaxis: "Jour"+ yaxis: "Total"+ solved:+ no_solutions:+ self: "Vous n'avez pas encore de solutions acceptées."+ others: "Aucune solution acceptée."+ badges:+ solved_1:+ name: "Résolu !"+ description: "Faire marquer une réponse comme solution"+ long_description: "Ce badge est accordé lorsqu'une réponse est marquée comme solution à un sujet. :white_check_mark: Bon travail. :+1:"+ solved_2:+ name: "Conseiller d'orientation"+ description: "Faites marquer 10 réponses comme solutions"+ long_description: "Ce badge est accordé lorsque 10 de vos réponses sont marquées comme des solutions à des sujets. :white_check_mark: Vous êtes un véritable atout pour les autres membres de votre communauté."+ solved_3:+ name: "Personne-ressource"+ description: "Faites marquer 50 réponses comme solutions"+ long_description: "Ce badge est accordé lorsque 50 de vos réponses sont marquées comme des solutions à des sujets. :white_check_mark: Vous vous y connaissez. :clap:"+ solved_4:+ name: "Institution de solution"+ description: "Faites marquer 150 réponses comme solutions"+ long_description: "Ce badge est accordé lorsque 150 de vos réponses sont marquées comme des solutions à des sujets. :white_check_mark: Excellent travail. :slightly_smiling_face: Vous êtes officiellement une institution de solutions. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Première solution acceptée+ doc: Se déclenche lorsqu'une solution est acceptée pour la première fois par un utilisateur.+ education:+ topic_is_solved: |+ ### Ce sujet a été résolu++ Répondez uniquement si :++ - Vous avez des informations supplémentaires++ - La solution ne fonctionne pas pour vous++ Si vous avez un problème sans lien avec le sujet, veuillez [créer un nouveau sujet](%{base_url}/nouveau- sujet) à la place.diff --git a/plugins/discourse-solved/config/locales/server.gl.yml b/plugins/discourse-solved/config/locales/server.gl.ymlnew file mode 100644index 00000000000..7490bbd1053--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.gl.yml@@ -0,0 +1,11 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++gl:+ reports:+ accepted_solutions:+ xaxis: "Día"+ yaxis: "Total"diff --git a/plugins/discourse-solved/config/locales/server.he.yml b/plugins/discourse-solved/config/locales/server.he.ymlnew file mode 100644index 00000000000..c6a9f5bc1da--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.he.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++he:+ accepted_answer: "תשובה שקיבלה אישור"+ site_settings:+ solved_enabled: "הפעלת תוסף הפתרונות, מאפשר למשתמשים לבחור פתרונות לנושאים"+ allow_solved_on_all_topics: "לאפשר למשתמשים לבחור פתרונות בכל הנושאים (כשלא מסומן, ניתן להפעיל פתרונות לפי קטגוריה או תגית)"+ accept_all_solutions_trust_level: "רמת האמון המזערית שנדרשת לקבלת פתרונות בכל נושא שהוא (אפילו לא בתור המפרסם המקורי)"+ accept_all_solutions_allowed_groups: "קבוצות שמורשות לקבל פתרונות בכל נושא (גם כשלא משתתפיה פרסמו אותו). מנהלים ומפקחים מורשים תמיד."+ empty_box_on_unsolved: "להציג תיבה ריקה ליד הנושאים שלא נפתרו"+ solved_quote_length: "מספר התווים לציטוט בעת הצגת הפתרון תחת הפוסט הראשון"+ solved_topics_auto_close_hours: "לסגור נושא אוטומטית (n) שעות לאחר התגובה האחרונה כאשר הנושא סומן כפתור. יש להגדיר כ־0 להשבתת הסגירה האוטומטית."+ show_filter_by_solved_status: "הצגת רשימה נגללת כדי לסנן רשימת נושאים לפי מצב פתרון."+ notify_on_staff_accept_solved: "לשלוח הודעה ליוצר הנושא כאשר פוסט מסומן כפתרון על ידי הסגל."+ ignore_solved_topics_in_assigned_reminder: "למנוע מתזכורות למשימות לכלול נושאים פתורים. תקף רק בעת שימוש בתוסף discourse-assign."+ assignment_status_on_solve: "כאשר נושא נפתר לעדכן את כל ההקצאות למצב הזה"+ assignment_status_on_unsolve: "כאשר נושא סומן כלא פתור לעדכן את כל ההקצאות למצב הזה"+ disable_solved_education_message: "השבתת הודעת חינוך לנושאים שנפתרו."+ accept_solutions_topic_author: "לאפשר ליוצר הנושא לאשר פתרון."+ solved_add_schema_markup: "להוסיף סימון סכמת QAPage ל־HTML."+ enable_solved_tags: "תגיות שיאפשרו למשתמשים לבחור פתרונות."+ prioritize_solved_topics_in_search: "תעדוף נושאים שנפתרו בתוצאות החיפוש."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level (דרגת אמון לקבלת כל הפתרונות)"+ reports:+ accepted_solutions:+ title: "פתרונות מקובלים"+ xaxis: "יום"+ yaxis: "סך הכל"+ solved:+ no_solutions:+ self: "אין לך פתרונות מקובלים עדיין."+ others: "אין פתרונות מקובלים."+ badges:+ solved_1:+ name: "נפתר!"+ description: "סימון תגובה כפתרון"+ long_description: "עיטור זה מוענק על תגובה שסומנה כפתרון לנושא. :white_check_mark: כל הכבוד. :+1:"+ solved_2:+ name: "יעוץ הדרכה"+ description: "10 תגובות שלך סומנו כפתרונות"+ long_description: "עיטור זה מוענק על כך ש־10 מהתגובות שלך סומנו כפתרונות לנושאים. :white_check_mark: המעורבות שלך היא נכס שלא יסולא בפז לחברי הקהילה."+ solved_3:+ name: "חכמולוג"+ description: "50 תגובות שלך סומנו כפתרונות"+ long_description: "עיטור זה מוענק על כך ש־50 מהתגובות שלך סומנו כפתרונות לנושאים. :white_check_mark: נראה שיש לך מושג בדבר או שניים. :clap:"+ solved_4:+ name: "מכון הפתרונות"+ description: "150 תגובות שלך סומנו כפתרונות"+ long_description: "עיטור זה מוענק על כך ש־150 מהתגובות שלך סומנו כפתרונות לנושאים. :white_check_mark: עבודה מצוינת. :slightly_smiling_face: אפשר להכתיר אותך בתור מכון פתרונות. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: הפתרון הראשון שהתקבל+ doc: מקפיץ כאשר אושר פתרון של משתמש לראשונה.+ education:+ topic_is_solved: |+ ### נושא זה נפתר++ יש להגיב כאן רק אם:++ - יש לך פרטים נוספים++ - הפתרון לא עובד עבורך++ אם יש לך בעיה שלא קשורה, נא [לפתוח נושא חדש] (%{base_url}/new-topic) במקום.diff --git a/plugins/discourse-solved/config/locales/server.hr.yml b/plugins/discourse-solved/config/locales/server.hr.ymlnew file mode 100644index 00000000000..71bbef99844--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.hr.yml@@ -0,0 +1,14 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hr:+ reports:+ accepted_solutions:+ xaxis: "Dan"+ yaxis: "Ukupno"+ badges:+ solved_1:+ name: "Riješeno!"diff --git a/plugins/discourse-solved/config/locales/server.hu.yml b/plugins/discourse-solved/config/locales/server.hu.ymlnew file mode 100644index 00000000000..e0b4a680422--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.hu.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hu:+ accepted_answer: "Elfogadott válasz"+ site_settings:+ solved_enabled: "Solved plugin engedélyezése, hogy a felhasználók kiválaszthassák a megoldást a témához"+ allow_solved_on_all_topics: "A felhasználók kiválaszthatják a megoldásokat az összes témában (ha nincs bejelölve, akkor a megoldások kategóriánként vagy címkénként kapcsolhatók be)"+ accept_all_solutions_trust_level: "Szükséges minimum bizalmi szint a megoldások elfogadásához bármelyik témában (even when not OP)"+ accept_all_solutions_allowed_groups: "Csoportok, amelyek bármilyen témában elfogadhatnak megoldásokat (még akkor is, ha nem OP). Adminok és moderátorok mindig engedélyezettek."+ empty_box_on_unsolved: "Egy üres doboz megjelenítése a megoldatlan témák mellett"+ solved_quote_length: "Idézett karakterek száma amikor a megoldás megjelenik az első bejegyzés alatt"+ solved_topics_auto_close_hours: "Automatikusan zárja le a témát (n) órával az utolsó válasz után, miután a témát megoldották. Állítsa 0-ra az automatikus lezárás letiltásához."+ show_filter_by_solved_status: "Legördülő menü megjelenítése a témalista megoldási állapot szerinti szűréséhez."+ notify_on_staff_accept_solved: "Értesítés küldése a téma létrehozójának, ha egy bejegyzést a stáb megoldásként jelöl meg."+ ignore_solved_topics_in_assigned_reminder: "Megakadályozhatja, hogy a feladatokra vonatkozó emlékeztetők megoldott témákat is tartalmazzanak. Csak a discourse-assign plugin használata esetén releváns."+ assignment_status_on_solve: "Ha egy téma megoldódott, frissítse az összes hozzárendelést erre az állapotra."+ assignment_status_on_unsolve: "Ha egy téma megoldatlan, frissítse az összes hozzárendelést erre az állapotra."+ disable_solved_education_message: "Oktatási üzenet letiltása a megoldott témáknál."+ accept_solutions_topic_author: "Engedélyezés, hogy a téma szerzője elfogadjon egy megoldást."+ solved_add_schema_markup: "QAPage sémaleíró hozzáadása a HTML-hez."+ enable_solved_tags: "Címkék, amelyek lehetővé teszik a felhasználók számára a megoldások kiválasztását."+ prioritize_solved_topics_in_search: "A megoldott témák rangsorolása a keresési eredményekben."+ keywords:+ accept_all_solutions_allowed_groups: "minden_bizalmiszint_megoldas_elfogadasa"+ reports:+ accepted_solutions:+ title: "Elfogadott megoldások"+ xaxis: "Nap"+ yaxis: "Összesen"+ solved:+ no_solutions:+ self: "Még nincs elfogadott megoldásod."+ others: "Nincs elfogadott megoldás."+ badges:+ solved_1:+ name: "Megoldott!"+ description: "Megoldásként megjelölt válasz"+ long_description: "Ez a jelvény akkor jár, ha a válasz egy téma megoldásaként van megjelölve. :white_check_mark: Szép munka. :+1:"+ solved_2:+ name: "Tájékoztatási tanácsadó"+ description: "10 válasz van Megoldásokként megjelölve"+ long_description: "Ez a jelvény azért jár, mert 10 válaszod megjelölték megoldásként. :white_check_mark: Valódi érték a közösség tagjai számára."+ solved_3:+ name: "Mindentudó"+ description: "50 válasz legyen Megoldásként megjelölve"+ long_description: "Ez a jelvény azért ját, mert 50 válaszod megjelölték megoldásként. :white_check_mark: Te tényleg tudod a dolgod. :clap:"+ solved_4:+ name: "Megoldó Intézmény"+ description: "150 válasz legyen Megoldásként megjelölve"+ long_description: "Ez a jelvény azért jár, mert már 150 válaszod meg van jelölve megoldásként. :white_check_mark: Kiváló munka. :slightly_smiling_face: Te hivatalosan is egy Megoldó intézmény vagy. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Első elfogadott megoldás+ doc: Akkor aktiválódik, amikor a felhasználó megoldását először fogadják el.+ education:+ topic_is_solved: |+ ### Ezt a témát sikerült megoldani++ Csak akkor válaszoljon ide, ha:++ - További információi vannak++ - A megoldás nem működik az Ön számára++ Ha nem kapcsolódó problémája van, inkább [indítson új témát](%{base_url}/new-topic).diff --git a/plugins/discourse-solved/config/locales/server.hy.yml b/plugins/discourse-solved/config/locales/server.hy.ymlnew file mode 100644index 00000000000..72262629566--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.hy.yml@@ -0,0 +1,25 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++hy:+ site_settings:+ solved_enabled: "Միացնել լուծված պլագինը, թույլատրել օգտատերերին ընտրել լուծումներ թեմաների համար"+ accept_all_solutions_trust_level: "Վստահության նվազագույն մակարդակը, որը պահանջվում է ցանկացած թեմայի լուծումը ընդունելու համար (նույնիսկ եթե OP չէ)"+ empty_box_on_unsolved: "Ցուցադրել դատարկ արկղ չլուծված թեմաների կողքին"+ solved_quote_length: "Մեջբերվող սիմվոլների քանակը՝ առաջին գրառմնա տակ լուծումը ցուցադրելիս"+ show_filter_by_solved_status: "Ցուցադրել բացվող ցուցակ՝ թեմաների ցանկը ըստ լուծման կարգավիճակի ֆիլտրելու համար:"+ reports:+ accepted_solutions:+ title: "Ընդունված լուծումներ"+ xaxis: "Օր"+ yaxis: "Ամբողջ"+ solved:+ no_solutions:+ self: "Դուք դեռևս չունեք ընդունված լուծումներ:"+ others: "Ընդունված լուծումներ չկան"+ badges:+ solved_1:+ name: "Լուծված է!"diff --git a/plugins/discourse-solved/config/locales/server.id.yml b/plugins/discourse-solved/config/locales/server.id.ymlnew file mode 100644index 00000000000..e4d0710c26b--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.id.yml@@ -0,0 +1,19 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++id:+ site_settings:+ solved_enabled: "Aktifkan plugin yang terpecahkan, inzinkan pengguna memilih solusi untuk topik"+ notify_on_staff_accept_solved: "Kirim notifikasi ke pembuat topik saat postingan ditandai sebagai solusi oleh staf."+ reports:+ accepted_solutions:+ title: "Solusi yang diterima"+ xaxis: "Hari"+ yaxis: "Jumlah"+ solved:+ no_solutions:+ self: "Anda belum memiliki solusi yang diterima."+ others: "Tidak ada solusi yang diterima."diff --git a/plugins/discourse-solved/config/locales/server.it.yml b/plugins/discourse-solved/config/locales/server.it.ymlnew file mode 100644index 00000000000..9046db32719--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.it.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++it:+ accepted_answer: "Risposta accettata"+ site_settings:+ solved_enabled: "Attiva il plugin 'solved', che consente agli autenti di selezionare soluzioni negli argomenti"+ allow_solved_on_all_topics: "Consenti agli utenti di selezionare soluzioni su tutti gli argomenti (se l'opzione è deselezionata, le soluzioni possono essere abilitate per categoria o etichetta)"+ accept_all_solutions_trust_level: "Livello di attendibilità minimo richiesto per poter accettare soluzioni su qualsiasi argomento (anche quando non si è l'autore dell'argomento stesso)"+ accept_all_solutions_allowed_groups: "Gruppi a cui è consentito accettare soluzioni su qualsiasi argomento (anche quando non OP). Sono sempre ammessi amministratori e moderatori."+ empty_box_on_unsolved: "Mostra una casella vuota accanto agli argomenti non risolti"+ solved_quote_length: "Numero di caratteri da citare quando si visualizza la soluzione sotto il primo messaggio"+ solved_topics_auto_close_hours: "Chiudi automaticamente l'argomento (n) ore dopo l'ultima risposta una volta che l'argomento è stato contrassegnato come risolto. Impostare a 0 per disabilitare la chiusura automatica."+ show_filter_by_solved_status: "Mostra un menu a discesa per filtrare un elenco di argomenti in base allo stato risolto."+ notify_on_staff_accept_solved: "Invia una notifica al creatore dell'argomento quando un messaggio viene contrassegnato come soluzione da uno staff."+ ignore_solved_topics_in_assigned_reminder: "Evita che i promemoria per le assegnazioni includano argomenti risolti. Rilevante solo quando si utilizza il plug-in discourse-assign."+ assignment_status_on_solve: "Quando un argomento viene risolto, aggiorna tutte le assegnazioni a questo stato"+ assignment_status_on_unsolve: "Quando la risoluzione di un argomento viene annullata, aggiorna tutte le assegnazioni a questo stato"+ disable_solved_education_message: "Disabilita il messaggio formativo per gli argomenti risolti."+ accept_solutions_topic_author: "Consenti all'autore dell'argomento di accettare una soluzione."+ solved_add_schema_markup: "Aggiungi il markup dello schema QAPage all'HTML."+ enable_solved_tags: "Etichette che consentiranno agli utenti di selezionare soluzioni."+ prioritize_solved_topics_in_search: "Dai la priorità agli argomenti risolti nei risultati di ricerca."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Soluzioni accettate"+ xaxis: "Giorno"+ yaxis: "Totale"+ solved:+ no_solutions:+ self: "Non hai ancora soluzioni accettate."+ others: "Nessuna soluzione accettata."+ badges:+ solved_1:+ name: "Risolto!"+ description: "Avere una risposta contrassegnata come Soluzione"+ long_description: "Questo distintivo viene assegnato per avere una risposta contrassegnata come Soluzione a un argomento. :white_check_mark: Ottimo lavoro. :+1:"+ solved_2:+ name: "Consulente"+ description: "Avere 10 risposte contrassegnate come Soluzioni"+ long_description: "Questo distintivo viene assegnato se 10 delle tue risposte sono contrassegnate come soluzioni agli argomenti. :white_check_mark: Sei una vera risorsa per gli altri membri della community."+ solved_3:+ name: "Saputello"+ description: "Avere 50 risposte contrassegnate come Soluzioni"+ long_description: "Questo distintivo viene assegnato se 50 delle tue risposte sono contrassegnate come soluzioni agli argomenti. :white_check_mark: Sai davvero il fatto tuo. :clap:"+ solved_4:+ name: "Risolutore di problemi"+ description: "Avere 150 risposte contrassegnate come Soluzioni"+ long_description: "Questo distintivo viene assegnato se 150 delle tue risposte sono contrassegnate come soluzioni agli argomenti. :white_check_mark: Ottimo lavoro. :slightly_smiling_face: Sei ufficialmente un Risolutore di problemi. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Prima soluzione accettata+ doc: Si attiva quando la soluzione di un utente è accettata per la prima volta.+ education:+ topic_is_solved: |+ ### Questo argomento è stato risolto++ Rispondi qui solo se:++ - Hai ulteriori dettagli++ - La soluzione non funziona per te++ Se hai un problema non collegato a questo, [inizia un nuovo argomento](%{base_url}/new- argomento).diff --git a/plugins/discourse-solved/config/locales/server.ja.yml b/plugins/discourse-solved/config/locales/server.ja.ymlnew file mode 100644index 00000000000..50921436a1b--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.ja.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ja:+ accepted_answer: "受け入れられた回答"+ site_settings:+ solved_enabled: "解決済みプラグインを有効にし、ユーザーがトピックの解決策を選択できるようにする"+ allow_solved_on_all_topics: "すべてのトピックでユーザーが解決策を選択することを許可する(オフの場合、解決策はカテゴリごとまたはタグごとに有効にできます)"+ accept_all_solutions_trust_level: "すべてのトピックで解決策を受け入れるために必要な最低信頼レベル(OP でない場合でも)"+ accept_all_solutions_allowed_groups: "(OP でない場合でも) すべてのトピックで解決策を受け入れることが許可されているグループ。管理者とモデレーターは常に許可されます。"+ empty_box_on_unsolved: "未解決のトピックの横に空のボックスを表示する"+ solved_quote_length: "最初の投稿の下に解決策を表示する場合に引用する文字数"+ solved_topics_auto_close_hours: "トピックが解決済みとマークされたら、最後の返信から(n)時間後にトピックを自動クローズします。自動クローズを無効にする場合は 0 に設定します。"+ show_filter_by_solved_status: "ドロップダウンを表示し、解決済みのステータスでトピックリストをフィルターします。"+ notify_on_staff_accept_solved: "スタッフによって投稿が解決策としてマークされたら、トピック作成者に通知を送信します。"+ ignore_solved_topics_in_assigned_reminder: "割り当てのリマインダーに解決済みのトピックが含まれないようにします。discourse-assign プラグインを使用している場合にのみ関連します。"+ assignment_status_on_solve: "トピックが解決したら、すべての割り当てをこのステータスに更新する"+ assignment_status_on_unsolve: "トピックが未解決の場合、すべての割り当てを子のステータスに更新する"+ disable_solved_education_message: "解決済みトピックの教育メッセージを無効にします。"+ accept_solutions_topic_author: "トピック作成者が解決策を受け入れることを許可します。"+ solved_add_schema_markup: "QAPage スキーママークアップを HTML に追加します。"+ enable_solved_tags: "ユーザーが解決策を選択できるようにするタグ。"+ prioritize_solved_topics_in_search: "検索結果では解決済みのトピックが優先されます。"+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "受け入れられた解決策"+ xaxis: "日"+ yaxis: "合計"+ solved:+ no_solutions:+ self: "受け入れられた解決策はありません。"+ others: "受け入れられた解決策はありません。"+ badges:+ solved_1:+ name: "解決済み!"+ description: "1 件の返信が解決策としてマークされた"+ long_description: "このバッジは返信がトピックの解決策としてマークされた場合に付与されます。:white_check_mark: よくできました。:+1:"+ solved_2:+ name: "ガイダンスカウンセラー"+ description: "10 件の返信が解決策としてマークされた"+ long_description: "このバッジは、10 件の返信がトピックの解決策としてマークされた場合に付与されます。:white_check_mark: あなたは他のコミュニティーメンバーにとって貴重なアセットです。"+ solved_3:+ name: "なんでも知ってる"+ description: "50 件の返信が解決策としてマークされた"+ long_description: "このバッジは、50 件の返信がトピックの解決策としてマークされた場合に付与されます。:white_check_mark: あなたは本当に物知りです。:clap:"+ solved_4:+ name: "解決策の宝庫"+ description: "150 件の返信が解決策としてマークされた"+ long_description: "このバッジは、150 件の返信がトピックの解決策としてマークされた場合に付与されます。:white_check_mark: 優秀です。:slightly_smiling_face: あなたは誰もが認める解決策の宝庫です。:brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: 最初に受け入れられた解決策+ doc: ユーザーの解決策が初めて受け入れられたときにトリガーされます。+ education:+ topic_is_solved: |+ ### このトピックは解決しました++ 以下に該当する場合にのみここに返信してください:++ - 追加の詳細情報がある場合++ - 解決策が機能しなかった場合++ 無関係の問題については、[新しいトピックを開始](%{base_url}/new-topic)してください。diff --git a/plugins/discourse-solved/config/locales/server.ko.yml b/plugins/discourse-solved/config/locales/server.ko.ymlnew file mode 100644index 00000000000..a3df5b0eb45--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.ko.yml@@ -0,0 +1,25 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ko:+ site_settings:+ solved_enabled: "해결 된 플러그인 사용, 사용자가 주제에 대한 솔루션을 선택할 수 있도록 허용"+ accept_all_solutions_trust_level: "모든 주제에 대한 솔루션을 수락하는 데 필요한 최소 신뢰 수준 (OP가 아닌 경우에도)"+ empty_box_on_unsolved: "해결되지 않은 주제 옆에 빈 상자 표시"+ solved_quote_length: "첫 번째 게시물 아래에 솔루션을 표시 할 때 인용 할 문자 수"+ show_filter_by_solved_status: "해결 된 상태별로 주제 목록을 필터링하는 드롭 다운을 표시하십시오."+ reports:+ accepted_solutions:+ title: "허용되는 솔루션"+ xaxis: "일"+ yaxis: "총"+ solved:+ no_solutions:+ self: "아직 수락 된 솔루션이 없습니다."+ others: "허용되는 솔루션이 없습니다."+ badges:+ solved_1:+ name: "해결됨!"diff --git a/plugins/discourse-solved/config/locales/server.lt.yml b/plugins/discourse-solved/config/locales/server.lt.ymlnew file mode 100644index 00000000000..a8a09301fa2--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.lt.yml@@ -0,0 +1,14 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++lt:+ reports:+ accepted_solutions:+ xaxis: "Diena"+ yaxis: "Viso"+ badges:+ solved_1:+ name: "Išspresta!"diff --git a/plugins/discourse-solved/config/locales/server.lv.yml b/plugins/discourse-solved/config/locales/server.lv.ymlnew file mode 100644index 00000000000..56c6938a1ed--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.lv.yml@@ -0,0 +1,11 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++lv:+ reports:+ accepted_solutions:+ xaxis: "Diena"+ yaxis: "Kopā"diff --git a/plugins/discourse-solved/config/locales/server.nb_NO.yml b/plugins/discourse-solved/config/locales/server.nb_NO.ymlnew file mode 100644index 00000000000..5fb54fdc3fe--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.nb_NO.yml@@ -0,0 +1,24 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++nb_NO:+ site_settings:+ solved_enabled: "Skru på løsnings-programtillegget, tillat brukere å velge løsninger på emner"+ accept_all_solutions_trust_level: "Laveste tilltisnivå som kreves for å godta løsninger for ethvert emne (selv når du ikke er OP)"+ empty_box_on_unsolved: "Vis en tom boks ved siden av uløste emner"+ solved_quote_length: "Antall tegn som skal siteres når løsning vises under første innlegg"+ reports:+ accepted_solutions:+ title: "Godtatte løsninger"+ xaxis: "Dag"+ yaxis: "Totalt"+ solved:+ no_solutions:+ self: "Du har ingen godtatte løsninger enda."+ others: "Ingen godtatte løsninger."+ badges:+ solved_1:+ name: "Løst!"diff --git a/plugins/discourse-solved/config/locales/server.nl.yml b/plugins/discourse-solved/config/locales/server.nl.ymlnew file mode 100644index 00000000000..95d7c3f1ccd--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.nl.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++nl:+ accepted_answer: "Geaccepteerd antwoord"+ site_settings:+ solved_enabled: "Solved-plug-in inschakelen, gebruikers kunnen oplossingen voor topics selecteren"+ allow_solved_on_all_topics: "Sta gebruikers toe om oplossingen te selecteren voor alle topics (indien niet aangevinkt, kunnen oplossingen per categorie of tag worden ingeschakeld)"+ accept_all_solutions_trust_level: "Minimaal vertrouwensniveau dat vereist is om oplossingen te accepteren bij een topic (ook indien niet de oorspronkelijke auteur)"+ accept_all_solutions_allowed_groups: "Groepen die oplossingen kunnen accepteren voor elk topic (ook als ze niet de oorspronkelijke plaatser zijn). Beheerders en moderators kunnen dit altijd."+ empty_box_on_unsolved: "Leeg vak weergeven naast onopgeloste topics"+ solved_quote_length: "Aantal te citeren tekens bij weergeven van de oplossing onder het eerste bericht"+ solved_topics_auto_close_hours: "Topic (n) uur na het laatste antwoord automatisch sluiten zodra het topic als opgelost is gemarkeerd. Stel dit in op 0 om automatisch sluiten uit te schakelen."+ show_filter_by_solved_status: "Een vervolgkeuzelijst weergeven om een topic op oplossingsstatus te filteren."+ notify_on_staff_accept_solved: "Melding naar de topicmaker sturen wanneer een bericht door een medewerker als oplossing wordt gemarkeerd."+ ignore_solved_topics_in_assigned_reminder: "Voorkom dat toewijzingsherinneringen opgeloste topics bevatten. Alleen relevant bij gebruik van de plug-in discourse-assign."+ assignment_status_on_solve: "Wanneer een topic is opgelost, alle toewijzingen bijwerken naar deze status"+ assignment_status_on_unsolve: "Wanneer een topic niet is opgelost, alle toewijzingen bijwerken naar deze status"+ disable_solved_education_message: "Schakel educatief bericht uit voor opgeloste topics."+ accept_solutions_topic_author: "Topicauteur toestaan een oplossing te accepteren."+ solved_add_schema_markup: "Voeg QAPage-schemaopmaak toe aan HTML."+ enable_solved_tags: "Tags waarbij gebruikers oplossingen kunnen selecteren."+ prioritize_solved_topics_in_search: "Geef prioriteit aan opgeloste topics in zoekresultaten."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Geaccepteerde oplossingen"+ xaxis: "Dag"+ yaxis: "Totaal"+ solved:+ no_solutions:+ self: "Je hebt nog geen geaccepteerde oplossingen."+ others: "Geen geaccepteerde oplossingen."+ badges:+ solved_1:+ name: "Opgelost!"+ description: "Antwoord gemarkeerd als oplossing"+ long_description: "Deze badge wordt toegekend voor het hebben van een antwoord dat is gemarkeerd als een oplossing voor een topic. :white_check_mark: Goed werk. :+1:"+ solved_2:+ name: "Adviseur"+ description: "10 antwoorden gemarkeerd als oplossing"+ long_description: "Deze badge wordt toegekend als 10 van je antwoorden zijn gemarkeerd als oplossing voor een topic. :white_check_mark: Je bent een echte aanwinst voor de community."+ solved_3:+ name: "Allesweter"+ description: "50 antwoorden gemarkeerd als oplossing"+ long_description: "Deze badge wordt toegekend als 50 van je antwoorden zijn gemarkeerd als oplossing voor een topic. :white_check_mark: Je weet echt alles. :clap:"+ solved_4:+ name: "Oplossingsinstituut"+ description: "150 antwoorden gemarkeerd als oplossing"+ long_description: "Deze badge wordt toegekend als 150 van je antwoorden zijn gemarkeerd als oplossing voor een topic. :white_check_mark: Uitstekend werk. :slightly_smiling_face: Je bent officieel een oplossingsinstituut. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Eerste geaccepteerde oplossing+ doc: Wordt geactiveerd wanneer voor het eerst een oplossing van een gebruiker wordt geaccepteerd.+ education:+ topic_is_solved: |+ ### Dit topic is opgelost++ Antwoord hier alleen als:++ - Je aanvullende details hebt++ - De oplossing niet werkt voor jou++ Als je een niet-gerelateerd probleem hebt, [start dan een nieuw topic](%{base_url}/new-topic) in plaats daarvan.diff --git a/plugins/discourse-solved/config/locales/server.pl_PL.yml b/plugins/discourse-solved/config/locales/server.pl_PL.ymlnew file mode 100644index 00000000000..0c1b6b8e00c--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.pl_PL.yml@@ -0,0 +1,66 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pl_PL:+ accepted_answer: "Zaakceptowana odpowiedź"+ site_settings:+ solved_enabled: "Aktywuj wtyczkę solved, zezwól użytkownikom wybierać rozwiązania w tematach"+ allow_solved_on_all_topics: "Zezwalaj użytkownikom na wybieranie rozwiązań dotyczących wszystkich tematów (jeśli to pole nie jest zaznaczone, rozwiązania można włączać dla poszczególnych kategorii lub tagów)"+ accept_all_solutions_trust_level: "Minimalny poziom zaufania wymagany do zaakceptowania rozwiązania w każdym temacie (nawet jeśli nie jest się jego autorem)"+ empty_box_on_unsolved: "Wyświetl puste pole obok nierozwiązanych tematów"+ solved_quote_length: "Liczba znaków do wyświetlenia przy wyświetlaniu rozwiązania pod pierwszym wpisem"+ solved_topics_auto_close_hours: "Zamknij temat automatycznie po (n) godzinach od ostatniej odpowiedzi, gdy temat został oznaczony jako rozwiązany. Ustaw na 0, aby wyłączyć automatyczne zamykanie."+ show_filter_by_solved_status: "Pokaż rozwinięcie, aby filtrować listę tematów po statusie rozwiązania"+ notify_on_staff_accept_solved: "Wyślij powiadomienie do twórcy tematu, gdy post zostanie oznaczony przez personel jako rozwiązanie."+ disable_solved_education_message: "Wyłącz wiadomość edukacyjną dla rozwiązanych tematów."+ accept_solutions_topic_author: "Pozwól autorowi tematu zaakceptować rozwiązanie."+ solved_add_schema_markup: "Dodaj znaczniki schema QAPage do kodu HTML."+ enable_solved_tags: "Tagi, które pozwolą użytkownikom wybrać rozwiązania."+ prioritize_solved_topics_in_search: "Priorytetyzuj rozwiązane tematy w wynikach wyszukiwania."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Zaakceptowane rozwiązania"+ xaxis: "Dzień"+ yaxis: "Wszystkie"+ solved:+ no_solutions:+ self: "Nie masz jeszcze żadnych akceptowanych rozwiązań."+ others: "Brak akceptowanych rozwiązań."+ badges:+ solved_1:+ name: "Rozwiązany!"+ description: "Odpowiedź oznaczona jako rozwiązanie"+ long_description: "Ta odznaka jest przyznawana za oznaczenie odpowiedzi jako rozwiązanie tematu. :white_check_mark: Dobra robota. :+1:"+ solved_2:+ name: "Doradca ds. poradnictwa"+ description: "10 odpowiedzi oznaczonych jako rozwiązanie"+ long_description: "Ta odznaka jest przyznana za to, że 10 twoich odpowiedzi zostało oznaczonych jako rozwiązania dla tematów. :white_check_mark: Jesteś prawdziwym atutem dla członków swojej społeczności."+ solved_3:+ name: "Wszechwiedzący"+ description: "50 odpowiedzi oznaczonych jako rozwiązanie"+ long_description: "Ta odznaka jest przyznana za to, że 50 twoich odpowiedzi zostało oznaczonych jako rozwiązania dla tematów. :white_check_mark: Naprawdę znasz się na rzeczy. :clap:"+ solved_4:+ name: "Instytucja rozwiązań"+ description: "150 odpowiedzi oznaczonych jako rozwiązanie"+ long_description: "Ta odznaka jest przyznana za to, że 150 twoich odpowiedzi zostało oznaczonych jako rozwiązania dla tematów. :white_check_mark: Doskonała robota. :slightly_smiling_face: Jesteś oficjalnie instytucją rozwiązującą. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Pierwsze zaakceptowane rozwiązanie+ doc: Uruchamia się, gdy użytkownik otrzymał rozwiązanie zaakceptowane po raz pierwszy.+ education:+ topic_is_solved: |+ ### Ten temat został rozwiązany++ Odpowiadaj tutaj tylko wtedy, gdy:++ - Masz dodatkowe informacje++ - Rozwiązanie nie działa++ Jeśli masz niezwiązany problem, proszę [rozpocznij nowy temat] (%{base_url}/new- topic) zamiast tego.diff --git a/plugins/discourse-solved/config/locales/server.pt.yml b/plugins/discourse-solved/config/locales/server.pt.ymlnew file mode 100644index 00000000000..d3b10b6e7d6--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.pt.yml@@ -0,0 +1,24 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pt:+ site_settings:+ solved_enabled: "Activar o plugin \"Solução\", permitindo aos utilizadores seleccionar soluções para tópicos"+ accept_all_solutions_trust_level: "Nível de confiança mínimo necessário para aceitar soluções em qualquer tópico (mesmo quando não é o autor do tópico)"+ empty_box_on_unsolved: "Mostrar uma caixa vazia junto a tópicos não soluccionados"+ solved_quote_length: "O número de carateres a serem citados quando exibir a solução debaixo da primeira mensagem"+ reports:+ accepted_solutions:+ title: "Soluções aceites"+ xaxis: "Dia"+ yaxis: "Total"+ solved:+ no_solutions:+ self: "Ainda não tem soluções aceites."+ others: "Sem soluções aceites."+ badges:+ solved_1:+ name: "Resolvido!"diff --git a/plugins/discourse-solved/config/locales/server.pt_BR.yml b/plugins/discourse-solved/config/locales/server.pt_BR.ymlnew file mode 100644index 00000000000..086501dbfb2--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.pt_BR.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++pt_BR:+ accepted_answer: "Resposta aceita"+ site_settings:+ solved_enabled: "Ativar plugin solucionado, permite que usuários(a) selecionem soluções para tópicos"+ allow_solved_on_all_topics: "Permite que os(as) usuários(as) escolham soluções em todos os tópicos (quando esta opção estiver desmarcada, as soluções podem ser ativadas por categoria ou etiqueta)"+ accept_all_solutions_trust_level: "Nível mínimo de confiança requerido para aceitar soluções em qualquer tópico (mesmo quando não for OP)"+ accept_all_solutions_allowed_groups: "Grupos com permissão para aceitar soluções em qualquer tópico (mesmo quando não for OP). Administradores(as) e moderadores(as) sempre têm permissão."+ empty_box_on_unsolved: "Apresentar uma caixa vazia próximo a tópicos não solucionados"+ solved_quote_length: "Número de caracteres para citar ao exibir a solução abaixo da primeira postagem"+ solved_topics_auto_close_hours: "Fechar tópico automaticamente (n) horas após a última resposta, uma vez que o tópico foi marcado como solucionado. Defina como 0 para desativar o fechamento automático."+ show_filter_by_solved_status: "Mostrar um menu suspenso para filtrar uma lista de tópicos com o status de solucionado."+ notify_on_staff_accept_solved: "Enviar uma notificação ao criador do tópico quando uma postagem for marcada como uma solução pela equipe."+ ignore_solved_topics_in_assigned_reminder: "Evite lembretes de atribuições de inclusão de tópicos resolvidos. Aplica-se apenas ao usar o plugin discourse-assign."+ assignment_status_on_solve: "Quando um tópico for solucionado, atualizar todas as atribuições para este status"+ assignment_status_on_unsolve: "Quando um tópico não for solucionado, atualizar todas as atribuições para este status"+ disable_solved_education_message: "Desativar mensagem educativa para tópicos solucionados."+ accept_solutions_topic_author: "Permitir que o(a) autor(a) do tópico aceite uma solução."+ solved_add_schema_markup: "Adicione uma marcação do esquema de QAPage ao HTML."+ enable_solved_tags: "Etiquetas que permitirão que usuários(as) escolham soluções."+ prioritize_solved_topics_in_search: "Priorizar tópicos solucionados em resultados de pesquisa."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Soluções aceitas"+ xaxis: "Dia"+ yaxis: "Total"+ solved:+ no_solutions:+ self: "Você ainda não tem soluções aceitas."+ others: "Nenhuma solução aceita."+ badges:+ solved_1:+ name: "Resolvido!"+ description: "Tem uma resposta marcada como solução"+ long_description: "Este emblema é concedido por ter uma resposta marcada como solução para um tópico: :white_check_mark: Bom trabalho. :+1:"+ solved_2:+ name: "Conselhos e orientação"+ description: "Tenha dez respostas marcadas como soluções"+ long_description: "Este emblema é concedido por ter dez respostas suas marcadas como soluções para tópicos. :white_check_mark: Você é um recurso valioso para seus colegas que fazem parte da comunidade."+ solved_3:+ name: "Sagaz"+ description: "Tenha 50 respostas marcadas como soluções"+ long_description: "Este emblema é concedido por ter 50 respostas suas marcadas como soluções para tópicos. :white_check_mark: Você é um recurso valioso para seus colegas que fazem parte da comunidade. :clap:"+ solved_4:+ name: "Fábrica de soluções"+ description: "Tenha 150 respostas marcadas como soluções"+ long_description: "Este emblema é concedido por ter 150 respostas suas marcadas como soluções para tópicos. :white_check_mark: Ótimo trabalho. :slightly_smiling_face: Você é oficialmente uma Fábrica de soluções. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Primeira solução aceita+ doc: Se ativa quando um(a) usuário(a) tiver uma solução aceita pela primeira vez.+ education:+ topic_is_solved: |+ ### Este tópico foi solucionado++ Responda aqui apenas se:++ - Você tiver mais informações++ - A solução não funcionar para você++ Se tiver algum assunto não relacionado, [comece um novo tópico](%{base_url}/new-topic).diff --git a/plugins/discourse-solved/config/locales/server.ro.yml b/plugins/discourse-solved/config/locales/server.ro.ymlnew file mode 100644index 00000000000..07420f82eb5--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.ro.yml@@ -0,0 +1,25 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ro:+ site_settings:+ solved_enabled: "Activează extensia \"Rezolvat\", permite utilizatorilor să selecteze soluții pentru subiecte"+ accept_all_solutions_trust_level: "Nivelul minim de încredere necesar pentru a accepta soluții la fiecare subiect (chiar dacă nu este OP)."+ empty_box_on_unsolved: "Afișați o casetă goală lângă subiectele nerezolvate"+ solved_quote_length: "Numărul de caractere de citat când se afișează soluția sub prima postare"+ show_filter_by_solved_status: "Afișați o listă verticală pentru a filtra o listă de subiecte după criteriul rezolvat/nerezolvat."+ reports:+ accepted_solutions:+ title: "Soluții acceptate"+ xaxis: "Zi"+ yaxis: "Total"+ solved:+ no_solutions:+ self: "Încă nu aveți soluții acceptate"+ others: "Nu există soluții acceptate"+ badges:+ solved_1:+ name: "Rezolvat!"diff --git a/plugins/discourse-solved/config/locales/server.ru.yml b/plugins/discourse-solved/config/locales/server.ru.ymlnew file mode 100644index 00000000000..0fe8ad5bda2--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.ru.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ru:+ accepted_answer: "Принятый ответ"+ site_settings:+ solved_enabled: "Включить этот плагин, разрешающий помечать сообщения, содержащие решённые вопросы"+ allow_solved_on_all_topics: "Разрешить пользователям использовать функцию 'Вопрос решён' во всех темах (если этот флажок не установлен, функция может быть включена для категории или тега)"+ accept_all_solutions_trust_level: "Минимальный уровень доверия, дающий возможность помечать сообщения, содержащие решённые вопросы"+ accept_all_solutions_allowed_groups: "Группы, которым разрешено принимать решения по любой теме (включая случаи, когда автор не участвует). Администраторы и модераторы всегда имеют на это право."+ empty_box_on_unsolved: "Показывать пустой чекбокс рядом с нерешёнными темами"+ solved_quote_length: "Количество символов при цитировании решения под первым сообщением"+ solved_topics_auto_close_hours: "Автоматически закрывать тему через указанное здесь количество часов, после того как тема была помечена статусом 'Вопрос решён'. Установите значение в 0, если необходимо отключить автоматическое закрытие."+ show_filter_by_solved_status: "Отображать раскрывающийся список для фильтрации тем по статусу <b>Решённые/Нерешённые</b>."+ notify_on_staff_accept_solved: "Отправлять уведомление автору темы, когда сотрудник помечает сообщение статусом 'Вопрос решён'."+ ignore_solved_topics_in_assigned_reminder: "Исключает из напоминаний о назначениях решенные темы. Актуально только при использовании плагина discourse-assign."+ assignment_status_on_solve: "Если вопрос темы решен, обновляет все назначения до этого статуса"+ assignment_status_on_unsolve: "Если вопрос темы не решен, обновляет все назначения до этого статуса"+ disable_solved_education_message: "Отключить обучающее сообщение для решённых тем."+ accept_solutions_topic_author: "Разрешать автору темы помечать ответ статусом 'Вопрос решён'"+ solved_add_schema_markup: "Добавить разметку схемы QAPage в HTML."+ enable_solved_tags: "Теги, которые позволят пользователям использовать функцию 'Вопрос решён'."+ prioritize_solved_topics_in_search: "В результатах поиска отдавать приоритет решенным темам."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Решённые вопросы"+ xaxis: "День"+ yaxis: "Всего"+ solved:+ no_solutions:+ self: "У вас пока нет решённых вопросов."+ others: "Нет решённых вопросов."+ badges:+ solved_1:+ name: "Решение найдено!"+ description: "Один ответ, отмеченный как решение"+ long_description: "Эта награда выдаётся за ответ, отмеченный как решение в теме. :white_check_mark: Поздравляем! :+1:"+ solved_2:+ name: "Консультант-советник"+ description: "10 ответов, отмеченных как решение"+ long_description: "Эта награда выдаётся, когда 10 ваших ответов были отмечены как решение в теме. :white_check_mark: Вы делаете ценный вклад в работу сообщества."+ solved_3:+ name: "Всезнайка"+ description: "50 ответов, отмеченных как решение"+ long_description: "Эта награда выдаётся, когда 50 ваших ответов были отмечены как решение в теме. :white_check_mark: А вы хорошо в этом всём разбираетесь! :clap:"+ solved_4:+ name: "Институт поиска решений"+ description: "150 ответов, отмеченных как решение"+ long_description: "Эта награда выдаётся, когда 50 ваших ответов были отмечены как решение в теме. :white_check_mark: Отлично! :slightly_smiling_face: Теперь вы официально Институт поиска решений. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Первый решённый вопрос+ doc: Срабатывает, когда пользователь впервые получает решение вопроса.+ education:+ topic_is_solved: |+ ### Вопрос уже решён++ Продолжайте отвечать в этой теме только если:++ - У вас есть дополнительная информация по теме++ - Предложенное решение вас не устраивает++ Если у вас возникла проблема, не связанная с этой темой, пожалуйста, [начните новую тему](%{base_url}/new-topic).diff --git a/plugins/discourse-solved/config/locales/server.sk.yml b/plugins/discourse-solved/config/locales/server.sk.ymlnew file mode 100644index 00000000000..69c7bd52a1d--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.sk.yml@@ -0,0 +1,16 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sk:+ reports:+ accepted_solutions:+ title: "Prijaté riešenia"+ xaxis: "Deň"+ yaxis: "Celkom"+ solved:+ no_solutions:+ self: "Nemáte zatiaľ prijaté žiadne riešenie."+ others: "Žiadne prijaté riešenia."diff --git a/plugins/discourse-solved/config/locales/server.sl.yml b/plugins/discourse-solved/config/locales/server.sl.ymlnew file mode 100644index 00000000000..dc3b059a77d--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.sl.yml@@ -0,0 +1,63 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sl:+ accepted_answer: "Sprejet odgovor"+ site_settings:+ solved_enabled: "Omogočite vtičnik za rešitve, omogočite uporabnikom, da izberejo rešitve za teme"+ allow_solved_on_all_topics: "Uporabnikom omogočite izbiro rešitev za vse teme (če ta možnost ni označena, je mogoče omogočiti rešitve za posamezno kategorijo ali oznako)."+ accept_all_solutions_trust_level: "Minimalna raven zaupanja, potrebna za sprejemanje rešitev za katero koli temo (tudi če ni avtor teme)"+ empty_box_on_unsolved: "Prikaz praznega polja ob nerešenih temah"+ solved_quote_length: "Število citiranih znakov rešitve pod prvo objavo"+ solved_topics_auto_close_hours: "Samodejno zapiranje teme (n) ur po zadnjem odgovoru, ko je tema označena kot rešena. Vnesi 0, da preprečiš samodejno zapiranje."+ show_filter_by_solved_status: "Prikažite spustni seznam, če želite filtrirati seznam tem po rešenem stanju."+ notify_on_staff_accept_solved: "Pošlji obvestilo ustvarjalcu teme, ko osebje objavo označi kot rešitev."+ disable_solved_education_message: "Onemogočite izobraževalno sporočilo za rešene teme."+ accept_solutions_topic_author: "Avtorju teme dovolite, da sprejme rešitev."+ solved_add_schema_markup: "Dodajanje oznak sheme QAPage v HTML."+ enable_solved_tags: "Oznake, ki bodo uporabnikom omogočile izbiro rešitev."+ reports:+ accepted_solutions:+ title: "Sprejete rešitve"+ xaxis: "Dan"+ yaxis: "Skupaj"+ solved:+ no_solutions:+ self: "Zaenkrat nimate sprejetih rešitev."+ others: "Ni sprejetih rešitev."+ badges:+ solved_1:+ name: "Rešeno!"+ description: "Odgovor je označen kot rešitev"+ long_description: "Ta značka se podeli, če je odgovor označen kot rešitev za temo. :white_check_mark: Vse pohvale. :+1:"+ solved_2:+ name: "Strokovni svetovalec"+ description: "Imate 10 odgovorov, označenih kot Rešitve"+ long_description: "Ta značka se podeli, če je 10 vaših odgovorov označenih kot rešitev teme. :white_check_mark: Ste pravi zaklad za člane vaše skupnosti."+ solved_3:+ name: "Vseved"+ description: "Imate 50 odgovorov, označenih kot Rešitve"+ long_description: "Ta značka se podeli, če je 50 vaših odgovorov označenih kot rešitev teme. :white_check_mark: Ste resnični poznavalec. :clap:"+ solved_4:+ name: "Tovarna rešitev"+ description: "Imate 150 odgovorov, označenih kot Rešitve"+ long_description: "Ta značka je podeljena za 150 odgovorov, označenih kot Rešitve za teme. :white_check_mark: Odlično opravljeno. :slightly_smiling_face: Ste prava tovarna rešitev. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Prva sprejeta rešitev+ doc: Sproži se prvič, ko je uporabnikov objava sprejeta kot rešitev.+ education:+ topic_is_solved: |+ ### Ta tema je bila rešena++ Tukaj odgovorite le, če:++ - imate dodatne podrobnosti++ - rešitev za vas ne deluje.++ Če imate nepovezano težavo, raje [odprite novo temo](%{base_url}/new-topic).diff --git a/plugins/discourse-solved/config/locales/server.sq.yml b/plugins/discourse-solved/config/locales/server.sq.ymlnew file mode 100644index 00000000000..e1eea6a0b73--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.sq.yml@@ -0,0 +1,11 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sq:+ reports:+ accepted_solutions:+ xaxis: "Day"+ yaxis: "Total"diff --git a/plugins/discourse-solved/config/locales/server.sr.yml b/plugins/discourse-solved/config/locales/server.sr.ymlnew file mode 100644index 00000000000..2be40ccfed9--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.sr.yml@@ -0,0 +1,10 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sr:+ reports:+ accepted_solutions:+ yaxis: "Ukupno"diff --git a/plugins/discourse-solved/config/locales/server.sv.yml b/plugins/discourse-solved/config/locales/server.sv.ymlnew file mode 100644index 00000000000..afb34b48624--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.sv.yml@@ -0,0 +1,49 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sv:+ accepted_answer: "Godkänt svar"+ site_settings:+ solved_enabled: "Aktivera tillägg för lösningar, låt användare välja lösningar för ämnen"+ allow_solved_on_all_topics: "Tillåt användare att välja lösningar för alla ämnen (om detta avmarkeras kan lösningar aktiveras per kategori eller tagg)"+ accept_all_solutions_trust_level: "Lägsta förtroendenivå som krävs för att godkänna lösningar för endera ämne (ursprunglig skribent eller ej)"+ empty_box_on_unsolved: "Visa en tom ruta bredvid olösta ämnen"+ solved_quote_length: "Antal tecken att citera när lösningen visas under det första inlägget"+ solved_topics_auto_close_hours: "Stäng automatiskt ämnet (n) timmar efter det senaste svaret när ämnet har markerats som löst. Ange 0 för att inaktivera automatisk stängning."+ show_filter_by_solved_status: "Visa en rullgardinsmeny för att filtrera en ämneslista efter löst status."+ notify_on_staff_accept_solved: "Meddela ämnesskaparen när personal markerar ett inlägg som en lösning."+ disable_solved_education_message: "Inaktivera utbildningsmeddelande för lösta ämnen."+ accept_solutions_topic_author: "Låt ämnets skapare godkänna en lösning."+ solved_add_schema_markup: "Lägg till QAPage-schemakod i HTML."+ enable_solved_tags: "Taggar som gör det möjligt för användare att välja lösningar."+ reports:+ accepted_solutions:+ title: "Godkända lösningar"+ xaxis: "Dag"+ yaxis: "Totalt"+ solved:+ no_solutions:+ self: "Du har inga godkända lösningar än."+ others: "Inga godkända lösningar."+ badges:+ solved_1:+ name: "Löst!"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Första accepterade lösningen+ doc: Utlöses när en användare fick en lösning accepterad för första gången.+ education:+ topic_is_solved: |+ ### Detta ämne har lösts++ Svara bara här om:++ - Du har ytterligare information++ - Lösningen inte fungerar för dig++ Om du har ett orelaterat problem ber vi dig [starta ett nytt ämne](%{base_url}/new-topic) istället.diff --git a/plugins/discourse-solved/config/locales/server.sw.yml b/plugins/discourse-solved/config/locales/server.sw.ymlnew file mode 100644index 00000000000..53a89f4e283--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.sw.yml@@ -0,0 +1,24 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++sw:+ site_settings:+ solved_enabled: "Ruhusu plugin ya suluhisho, waruhusu watumiaji wachague suluhisho ya mada"+ accept_all_solutions_trust_level: "Kiwango cha chini cha uaminifu kinachohitajika kukubali suluhisho kwenye mada zozote (hata kama sio OP)"+ empty_box_on_unsolved: "Onyesha boxi lililowazi pembeni ya mada ambazo hazijatatuliwa"+ solved_quote_length: "Namba za herufi kunuku wakati wa kuonyesha suluhisho chini ya taarifa za kwanza."+ reports:+ accepted_solutions:+ title: "Majibu yaliyokubaliwa"+ xaxis: "Siku"+ yaxis: "Jumla"+ solved:+ no_solutions:+ self: "Bado hauna majibu yaliyokubaliwa."+ others: "Hakuna majibu yaliyokubaliwa."+ badges:+ solved_1:+ name: "Imetatuliwa!"diff --git a/plugins/discourse-solved/config/locales/server.te.yml b/plugins/discourse-solved/config/locales/server.te.ymlnew file mode 100644index 00000000000..311f1b46fb6--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.te.yml@@ -0,0 +1,11 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++te:+ reports:+ accepted_solutions:+ xaxis: "రోజు"+ yaxis: "మొత్తం"diff --git a/plugins/discourse-solved/config/locales/server.th.yml b/plugins/discourse-solved/config/locales/server.th.ymlnew file mode 100644index 00000000000..6e42d20637b--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.th.yml@@ -0,0 +1,13 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++th:+ reports:+ accepted_solutions:+ yaxis: "ทั้งหมด"+ badges:+ solved_1:+ name: "แก้ไขแล้ว!"diff --git a/plugins/discourse-solved/config/locales/server.tr_TR.yml b/plugins/discourse-solved/config/locales/server.tr_TR.ymlnew file mode 100644index 00000000000..efb302df353--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.tr_TR.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++tr_TR:+ accepted_answer: "Kabul Edilen Yanıt"+ site_settings:+ solved_enabled: "Çözüldü eklentisini etkinleştirin, kullanıcıların konularda yanıtları çözüldü olarak seçmesine izin verin"+ allow_solved_on_all_topics: "Kullanıcıların tüm konularda çözüm seçmesine izin verin (işaretli olmadığında, çözümler kategori veya etiket başına etkinleştirilebilir)"+ accept_all_solutions_trust_level: "Herhangi bir konudaki çözümleri kabul etmek için gereken asgari güven seviyesi (OP olmasa bile)"+ accept_all_solutions_allowed_groups: "Herhangi bir konudaki çözümleri kabul etmesine izin verilen gruplar (OP olmasa bile). Yöneticilere ve moderatörlere her zaman izin verilir."+ empty_box_on_unsolved: "Çözülmemiş konuların yanında boş bir kutu görüntüle"+ solved_quote_length: "İlk gönderinin altındaki çözümü görüntülerken alıntı yapılacak karakter sayısı"+ solved_topics_auto_close_hours: "Konu, çözüldü olarak işaretlendiğinde son yanıttan (n) saat sonra konuyu otomatik kapat. Otomatik kapatmayı devre dışı bırakmak için 0 olarak ayarlayın."+ show_filter_by_solved_status: "Bir konu listesini çözülmüş duruma göre filtrelemek için bir açılır menü gösterin."+ notify_on_staff_accept_solved: "Bir gönderi bir personel tarafından çözüm olarak işaretlendiğinde konuyu oluşturana bildirim gönderin."+ ignore_solved_topics_in_assigned_reminder: "Ödevlere ilişkin anımsatıcıların çözülmüş konuları içermesini önleyin. Yalnızca discourse-assign eklentisi kullanıldığında geçerlidir."+ assignment_status_on_solve: "Bir konu çözüldüğünde tüm atamaları bu duruma güncelleyin"+ assignment_status_on_unsolve: "Bir konu çözülmediğinde tüm atamaları bu duruma güncelleyin"+ disable_solved_education_message: "Çözülen konular için eğitim mesajını devre dışı bırakın."+ accept_solutions_topic_author: "Konu yazarının bir çözümü kabul etmesine izin verin."+ solved_add_schema_markup: "HTML'ye QAPage şema işaretlemesi ekleyin."+ enable_solved_tags: "Kullanıcıların çözüm seçmesine olanak tanıyacak etiketler."+ prioritize_solved_topics_in_search: "Arama sonuçlarında çözülmüş konulara öncelik verin."+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "Kabul edilen çözümler"+ xaxis: "Gün"+ yaxis: "Toplam"+ solved:+ no_solutions:+ self: "Henüz kabul edilmiş bir çözümünüz yok."+ others: "Kabul edilen çözüm yok."+ badges:+ solved_1:+ name: "Çözüldü!"+ description: "Çözüm olarak işaretlenmiş bir yanıtı var"+ long_description: "Bu rozet, bir konuya Çözüm olarak işaretlenmiş bir yanıt için verilir. :white_check_mark: Bravo. :+1:"+ solved_2:+ name: "Rehberlik Danışmanı"+ description: "Çözüm olarak işaretlenmiş 10 yanıtı var"+ long_description: "Bu rozet, yanıtlarınızdan 10'unun konulara Çözüm olarak işaretlenmesi durumunda verilir. :white_check_mark: Topluluk üyeleriniz için gerçekten çok değerlisiniz."+ solved_3:+ name: "Her Şeyi Bilen"+ description: "Çözüm olarak işaretlenmiş 50 yanıtı var"+ long_description: "Bu rozet, yanıtlarınızdan 50'sinin konulara Çözüm olarak işaretlenmesi durumunda verilir. :white_check_mark: Gerçekten işinizi biliyorsunuz. :clap:"+ solved_4:+ name: "Çözüm Kurumu"+ description: "Çözüm olarak işaretlenmiş 150 yanıtı var"+ long_description: "Bu rozet, yanıtlarınızın 150'sinin konulara Çözüm olarak işaretlenmesi durumunda verilir. :white_check_mark: Mükemmel bir iş çıkardınız. :slightly_smiling_face: Artık resmi olarak bir Çözüm Kurumusunuz. :brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: Kabul edilen ilk çözüm+ doc: Bir kullanıcı bir çözümü ilk kez kabul ettirdiğinde tetiklenir.+ education:+ topic_is_solved: |+ ### Bu konu çözüldü++ Yalnızca şu durumlarda buraya yanıt verin:++ - Ek ayrıntılarınız varsa++ - Çözüm sizin için işe yaramıyorsa++ İlgisiz bir sorununuz varsa lütfen bunun yerine [yeni bir konu başlatın](%{base_url}/new-topic).diff --git a/plugins/discourse-solved/config/locales/server.ug.yml b/plugins/discourse-solved/config/locales/server.ug.ymlnew file mode 100644index 00000000000..52a63c6be2f--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.ug.yml@@ -0,0 +1,11 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ug:+ reports:+ accepted_solutions:+ xaxis: "كۈن"+ yaxis: "جەمئىي"diff --git a/plugins/discourse-solved/config/locales/server.uk.yml b/plugins/discourse-solved/config/locales/server.uk.ymlnew file mode 100644index 00000000000..5005b75fc86--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.uk.yml@@ -0,0 +1,25 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++uk:+ site_settings:+ solved_enabled: "Увімкнути плагін рішення, дозволити користувачам обирати рішення для тем"+ accept_all_solutions_trust_level: "Мінімальний рівень довіри, необхідний для прийняття рішень в будь-якій темі (навіть коли це не ОП)"+ empty_box_on_unsolved: "Показуйте порожнє поле поруч із невирішеними темами"+ solved_quote_length: "Кількість символів, які потрібно цитувати під час відображення рішення під першим дописом"+ show_filter_by_solved_status: "Показати випадаюче меню для фільтрації списку тем зі статусом вирішених."+ reports:+ accepted_solutions:+ title: "Прийняті рішення"+ xaxis: "День"+ yaxis: "Всього"+ solved:+ no_solutions:+ self: "У вас ще немає прийнятих рішень."+ others: "Немає прийнятих рішень."+ badges:+ solved_1:+ name: "Вирішено!"diff --git a/plugins/discourse-solved/config/locales/server.ur.yml b/plugins/discourse-solved/config/locales/server.ur.ymlnew file mode 100644index 00000000000..b0b783936e1--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.ur.yml@@ -0,0 +1,25 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++ur:+ site_settings:+ solved_enabled: "سَولوڈ پلگ اِن فعال کریں، صارفین کو ٹاپک کے حل منتخب کرنے کی اجازت دیں"+ accept_all_solutions_trust_level: "کسی بھی ٹاپک پر سے حل کا انتخاب کرنے کے لئے کم از کم ٹرسٹ لَیول (یہاں تک کہ جب اصل پوسٹر بھی نہ ہوں)"+ empty_box_on_unsolved: "غیر حل شدہ ٹاپکس کے ساتھ خالی باکس دکھائیں"+ solved_quote_length: "پہلی پوسٹ کے نیچے حل کو ظاہر کرنے کیلئے حروف کی تعداد"+ show_filter_by_solved_status: "حل شدہ ہونے کی بنیاد پر ٹاپک فہرست کو فلٹر کرنے کیلئے ڈراپ ڈاؤن دکھائیں۔"+ reports:+ accepted_solutions:+ title: "قبول شدہ حل"+ xaxis: "دن"+ yaxis: "کُل"+ solved:+ no_solutions:+ self: "ابھی تک آپ کے کوئیقبول شدہ حل نہیں ہیں۔"+ others: "کوئی قبول شدہ حل نہیں"+ badges:+ solved_1:+ name: "حل شدہ!"diff --git a/plugins/discourse-solved/config/locales/server.vi.yml b/plugins/discourse-solved/config/locales/server.vi.ymlnew file mode 100644index 00000000000..327ce313c08--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.vi.yml@@ -0,0 +1,14 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++vi:+ reports:+ accepted_solutions:+ xaxis: "Ngày"+ yaxis: "Tổng số"+ badges:+ solved_1:+ name: "Đã xử lý!"diff --git a/plugins/discourse-solved/config/locales/server.zh_CN.yml b/plugins/discourse-solved/config/locales/server.zh_CN.ymlnew file mode 100644index 00000000000..781f7835a69--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.zh_CN.yml@@ -0,0 +1,70 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++zh_CN:+ accepted_answer: "已被接受的回答"+ site_settings:+ solved_enabled: "启用“已解决”插件,允许用户为话题选择解决方案"+ allow_solved_on_all_topics: "允许用户选择所有话题的解决方案(未选中时,可以按类别或标签启用解决方案)"+ accept_all_solutions_trust_level: "在任何话题中接受解决方案所需的最小信任级别(即使不是 OP)"+ accept_all_solutions_allowed_groups: "能够接受任何话题解决方案的群组(即使不是 OP 时)。管理员和版主始终可以。"+ empty_box_on_unsolved: "在未解决的话题旁显示一个空框"+ solved_quote_length: "在第一个帖子下显示解决方案时引用的字符数量"+ solved_topics_auto_close_hours: "当话题被标记为已解决后,在最后一条回复 (n) 小时后自动关闭话题。设置为 0 将禁用自动关闭。"+ show_filter_by_solved_status: "显示下拉列表以按已解决状态筛选话题列表。"+ notify_on_staff_accept_solved: "当帖子被管理人员标记为解决方案时,向话题创建者发送通知"+ ignore_solved_topics_in_assigned_reminder: "防止指定的提醒中包含已解决的话题。仅在使用 discourse-assign 插件时相关。"+ assignment_status_on_solve: "当一个话题被解决时,将所有指定更新为此状态"+ assignment_status_on_unsolve: "当一个话题被取消解决时,将所有指定更新为此状态"+ disable_solved_education_message: "禁用已解决话题的教育消息。"+ accept_solutions_topic_author: "允许话题作者接受解决方案。"+ solved_add_schema_markup: "将 QAPage 架构标记添加到 HTML。"+ enable_solved_tags: "允许用户选择解决方案的标签。"+ prioritize_solved_topics_in_search: "在搜索结果中优先显示已解决的话题。"+ keywords:+ accept_all_solutions_allowed_groups: "accept_all_solutions_trust_level"+ reports:+ accepted_solutions:+ title: "已被接受的解决方案"+ xaxis: "天"+ yaxis: "总计"+ solved:+ no_solutions:+ self: "您还没有被接受的解决方案。"+ others: "没有被接受的解决方案。"+ badges:+ solved_1:+ name: "已解决!"+ description: "有 1 条回复被标记为解决方案"+ long_description: "此徽章是由于 1 条回复被标记为话题的解决方案而获得的。:white_check_mark: 干得好。:+1:"+ solved_2:+ name: "指导顾问"+ description: "有 10 条回复被标记为解决方案"+ long_description: "此徽章是由于 10 条回复被标记为话题的解决方案而获得的。:white_check_mark: 您对社区成员来说是真正的财富。"+ solved_3:+ name: "无所不知"+ description: "有 50 条回复被标记为解决方案"+ long_description: "此徽章是由于 50 条回复被标记为话题的解决方案而获得的。:white_check_mark: 您真的很懂行。:clap:"+ solved_4:+ name: "解决方案机构"+ description: "有 150 条回复被标记为解决方案"+ long_description: "此徽章是由于 150 条回复被标记为话题的解决方案而获得的。:white_check_mark: 太棒了。:slightly_smiling_face: 您正式成为一个解决方案机构。:brain:"+ discourse_automation:+ triggerables:+ first_accepted_solution:+ title: 第一个被接受的解决方案+ doc: 当用户的解决方案首次被接受时触发。+ education:+ topic_is_solved: |+ ### 此话题已被解决++ 仅在以下情况下回复:++ - 您有其他详细信息++ - 该解决方案对您不起作用++ 如果您有不相关的问题,请[新建话题](%{base_url}/new-topic)。diff --git a/plugins/discourse-solved/config/locales/server.zh_TW.yml b/plugins/discourse-solved/config/locales/server.zh_TW.ymlnew file mode 100644index 00000000000..70c813a97d5--- /dev/null+++ b/plugins/discourse-solved/config/locales/server.zh_TW.yml@@ -0,0 +1,18 @@+# WARNING: Never edit this file.+# It will be overwritten when translations are pulled from Crowdin.+#+# To work with us on translations, join this project:+# https://translate.discourse.org/++zh_TW:+ accepted_answer: "接受的答案"+ site_settings:+ solved_enabled: "啟用已解決的插件,允許用戶為主題選擇解決方案"+ reports:+ accepted_solutions:+ title: "接受的解決方案"+ xaxis: "天"+ yaxis: "總計"+ badges:+ solved_1:+ name: "已解決!"diff --git a/plugins/discourse-solved/config/routes.rb b/plugins/discourse-solved/config/routes.rbnew file mode 100644index 00000000000..2569aa2193b--- /dev/null+++ b/plugins/discourse-solved/config/routes.rb@@ -0,0 +1,10 @@+# frozen_string_literal: true++DiscourseSolved::Engine.routes.draw do+ post "/accept" => "answer#accept"+ post "/unaccept" => "answer#unaccept"++ get "/by_user" => "solved_topics#by_user"+end++Discourse::Application.routes.draw { mount ::DiscourseSolved::Engine, at: "solution" }diff --git a/plugins/discourse-solved/config/settings.yml b/plugins/discourse-solved/config/settings.ymlnew file mode 100644index 00000000000..ef73431f5b6--- /dev/null+++ b/plugins/discourse-solved/config/settings.yml@@ -0,0 +1,62 @@+discourse_solved:+ solved_enabled:+ default: true+ client: true+ show_who_marked_solved:+ default: false+ client: true+ allow_solved_on_all_topics:+ default: false+ client: true+ accept_all_solutions_trust_level:+ default: 4+ client: true+ enum: "TrustLevelSetting"+ hidden: true+ accept_all_solutions_allowed_groups:+ default: "1|2|14" # auto group admin, moderators and trust_level_4+ mandatory_values: "1|2" # auto group admins, moderators+ type: group_list+ client: false+ allow_any: false+ refresh: true+ validator: "AtLeastOneGroupValidator"+ empty_box_on_unsolved:+ default: false+ client: true+ solved_quote_length:+ default: 300+ client: false+ solved_topics_auto_close_hours:+ default: 0+ min: 0+ max: 175200 # 20 years+ show_filter_by_solved_status:+ default: false+ client: true+ notify_on_staff_accept_solved:+ default: false+ ignore_solved_topics_in_assigned_reminder:+ default: false+ assignment_status_on_solve:+ type: string+ default: ""+ assignment_status_on_unsolve:+ type: string+ default: ""+ disable_solved_education_message:+ default: false+ accept_solutions_topic_author:+ default: true+ solved_add_schema_markup:+ type: enum+ default: "always"+ choices:+ - "never"+ - "always"+ - "answered only"+ prioritize_solved_topics_in_search: false+ enable_solved_tags:+ type: tag_list+ default: ""+diff --git a/plugins/discourse-solved/db/fixtures/001_badges.rb b/plugins/discourse-solved/db/fixtures/001_badges.rbnew file mode 100644index 00000000000..7addd2b202e--- /dev/null+++ b/plugins/discourse-solved/db/fixtures/001_badges.rb@@ -0,0 +1,65 @@+# frozen_string_literal: true++first_solution_query = <<~SQL+ SELECT post_id, user_id, created_at AS granted_at+ FROM (+ SELECT p.id AS post_id, p.user_id, dsst.created_at,+ ROW_NUMBER() OVER (PARTITION BY p.user_id ORDER BY dsst.created_at) AS row_number+ FROM discourse_solved_solved_topics dsst+ JOIN badge_posts p ON dsst.answer_post_id = p.id+ JOIN topics t ON p.topic_id = t.id+ WHERE p.user_id <> t.user_id -- ignore topics solved by OP+ AND (:backfill OR p.id IN (:post_ids))+ ) x+ WHERE row_number = 1+SQL++Badge.seed(:name) do |badge|+ badge.name = "Solved 1"+ badge.default_icon = "square-check"+ badge.badge_type_id = BadgeType::Bronze+ badge.default_badge_grouping_id = BadgeGrouping::Community+ badge.query = first_solution_query+ badge.listable = true+ badge.target_posts = true+ badge.default_enabled = false+ badge.trigger = Badge::Trigger::PostRevision+ badge.auto_revoke = true+ badge.show_posts = true+ badge.system = true+end++def solved_query_with_count(min_count)+ <<~SQL+ SELECT p.user_id, MAX(dsst.created_at) AS granted_at+ FROM discourse_solved_solved_topics dsst+ JOIN badge_posts p ON dsst.answer_post_id = p.id+ JOIN topics t ON p.topic_id = t.id+ WHERE p.user_id <> t.user_id -- ignore topics solved by OP+ AND (:backfill OR p.id IN (:post_ids))+ GROUP BY p.user_id+ HAVING COUNT(*) >= #{min_count}+ SQL+end++[+ ["Solved 2", BadgeType::Silver, 10],+ ["Solved 3", BadgeType::Gold, 50],+ ["Solved 4", BadgeType::Gold, 150],+].each do |name, level, count|+ Badge.seed(:name) do |badge|+ badge.name = name+ badge.default_icon = "square-check"+ badge.badge_type_id = level+ badge.default_badge_grouping_id = BadgeGrouping::Community+ badge.query = solved_query_with_count(count)+ badge.listable = true+ badge.default_allow_title = true+ badge.target_posts = false+ badge.default_enabled = false+ badge.trigger = Badge::Trigger::PostRevision+ badge.auto_revoke = true+ badge.show_posts = false+ badge.system = true+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20191209095548_ensures_unique_accepted_answer_post_id.rb b/plugins/discourse-solved/db/migrate/20191209095548_ensures_unique_accepted_answer_post_id.rbnew file mode 100644index 00000000000..90f6aaaa5b2--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20191209095548_ensures_unique_accepted_answer_post_id.rb@@ -0,0 +1,20 @@+# frozen_string_literal: true++class EnsuresUniqueAcceptedAnswerPostId < ActiveRecord::Migration[5.2]+ def change+ execute <<~SQL+ DELETE FROM topic_custom_fields AS tcf1+ USING topic_custom_fields AS tcf2+ WHERE tcf1.id > tcf2.id AND+ tcf1.topic_id = tcf2.topic_id AND+ tcf1.name = tcf2.name AND+ tcf1.name = 'accepted_answer_post_id'+ SQL++ add_index :topic_custom_fields,+ :topic_id,+ name: :idx_topic_custom_fields_accepted_answer,+ unique: true,+ where: "name = 'accepted_answer_post_id'"+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20210218022053_solved_fix_high_auto_close_topic_hours.rb b/plugins/discourse-solved/db/migrate/20210218022053_solved_fix_high_auto_close_topic_hours.rbnew file mode 100644index 00000000000..199e014459b--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20210218022053_solved_fix_high_auto_close_topic_hours.rb@@ -0,0 +1,15 @@+# frozen_string_literal: true+class SolvedFixHighAutoCloseTopicHours < ActiveRecord::Migration[6.0]+ def up+ execute <<-SQL+ UPDATE site_settings+ SET value = '175000'+ WHERE name = 'solved_topics_auto_close_hours'+ AND CAST(value AS INT) > 175000+ SQL+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20210429154322_remove_nil_custom_fields_from_solved.rb b/plugins/discourse-solved/db/migrate/20210429154322_remove_nil_custom_fields_from_solved.rbnew file mode 100644index 00000000000..bdca8c2362d--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20210429154322_remove_nil_custom_fields_from_solved.rb@@ -0,0 +1,24 @@+# frozen_string_literal: true++class RemoveNilCustomFieldsFromSolved < ActiveRecord::Migration[6.0]+ def up+ execute <<~SQL+ DELETE FROM post_custom_fields+ WHERE name = 'is_accepted_answer' AND value IS NULL+ SQL++ execute <<~SQL+ DELETE FROM topic_custom_fields+ WHERE name = 'accepted_answer_post_id' AND value IS NULL+ SQL++ execute <<~SQL+ DELETE FROM topic_custom_fields+ WHERE name = 'solved_auto_close_topic_timer_id' AND value IS NULL+ SQL+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20210618142654_recreate_solutions_column.rb b/plugins/discourse-solved/db/migrate/20210618142654_recreate_solutions_column.rbnew file mode 100644index 00000000000..0d30ad8e839--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20210618142654_recreate_solutions_column.rb@@ -0,0 +1,15 @@+# frozen_string_literal: true++class RecreateSolutionsColumn < ActiveRecord::Migration[6.1]+ def up+ if !ActiveRecord::Base.connection.column_exists?(:directory_items, :solutions)+ # A reverted commit had added this column previously so some sites have this+ # column, and some so not. Only add if the DB doesn't already have it.+ add_column :directory_items, :solutions, :integer, default: 0+ end+ end++ def down+ remove_column :directory_items, :solutions+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20221121223417_rename_badges.rb b/plugins/discourse-solved/db/migrate/20221121223417_rename_badges.rbnew file mode 100644index 00000000000..98c1db89b9d--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20221121223417_rename_badges.rb@@ -0,0 +1,71 @@+# frozen_string_literal: true++class RenameBadges < ActiveRecord::Migration[6.1]+ HELPDESK_TRANSLATIONS = {+ "ar" => "مكتب المساعدة",+ "el" => "Γραφείο βοήθειας",+ "es" => "Servicio de ayuda",+ "fi" => "Neuvonta",+ "fr" => "Service d'assistance",+ "he" => "דלפק עזרה",+ "hu" => "Ügyfélszolgálat",+ "ja" => "ヘルプデスク",+ "ko" => "안내 데스크",+ "pl_PL" => "Dział pomocy technicznej",+ "ro" => "Ajutor",+ "ru" => "Служба поддержки",+ "sl" => "Služba za pomoč",+ "sv" => "Kundtjänst",+ "tr_TR" => "Yardım masası",+ "zh_CN" => "帮助台",+ "zh_TW" => "服務台",+ }++ TECH_SUPPORT_TRANSLATIONS = {+ "ar" => "الدعم الفني",+ "de" => "Technischer Support",+ "el" => "Τεχνική υποστήριξη",+ "es" => "Asistencia técnica",+ "fi" => "Tukipalvelu",+ "fr" => "Assistance technique",+ "he" => "תמיכה טכנית",+ "hu" => "Műszaki támogatás",+ "id" => "Dukungan Teknis",+ "it" => "Supporto Tecnico",+ "ja" => "技術サポート",+ "ko" => "기술 지원",+ "nl" => "Technische ondersteuning",+ "pl_PL" => "Wsparcie techniczne",+ "pt_BR" => "Suporte Técnico",+ "ro" => "Asistenţă tehnică",+ "ru" => "Техническая поддержка",+ "sl" => "Tehnična podpora",+ "sv" => "Teknisk support",+ "tr_TR" => "Teknik Destek",+ "zh_CN" => "技术支持",+ "zh_TW" => "技術支援",+ }++ def up+ default_locale =+ DB.query_single("SELECT value FROM site_settings WHERE name = 'default_locale'").first || "en"++ sql = <<~SQL+ UPDATE badges+ SET name = :new_name,+ description = NULL,+ long_description = NULL+ WHERE name = :old_name+ SQL++ badge_name = HELPDESK_TRANSLATIONS.fetch(default_locale, "Helpdesk")+ DB.exec(sql, old_name: badge_name, new_name: "Solved 1")++ badge_name = TECH_SUPPORT_TRANSLATIONS.fetch(default_locale, "Tech Support")+ DB.exec(sql, old_name: badge_name, new_name: "Solved 2")+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20240116100023_fill_accept_all_solutions_allowed_groups_based_on_deprecated_setting.rb b/plugins/discourse-solved/db/migrate/20240116100023_fill_accept_all_solutions_allowed_groups_based_on_deprecated_setting.rbnew file mode 100644index 00000000000..b75ff8fed6f--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20240116100023_fill_accept_all_solutions_allowed_groups_based_on_deprecated_setting.rb@@ -0,0 +1,24 @@+# frozen_string_literal: true++class FillAcceptAllSolutionsAllowedGroupsBasedOnDeprecatedSetting < ActiveRecord::Migration[7.0]+ def up+ old_setting_trust_level =+ DB.query_single(+ "SELECT value FROM site_settings WHERE name = 'accept_all_solutions_trust_level' LIMIT 1",+ ).first++ if old_setting_trust_level.present?+ allowed_groups = "1#{old_setting_trust_level}"++ DB.exec(+ "INSERT INTO site_settings(name, value, data_type, created_at, updated_at)+ VALUES('accept_all_solutions_allowed_groups', :setting, '20', NOW(), NOW())",+ setting: allowed_groups,+ )+ end+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20250318024824_create_discourse_solved_solved_topics.rb b/plugins/discourse-solved/db/migrate/20250318024824_create_discourse_solved_solved_topics.rbnew file mode 100644index 00000000000..befd5233c63--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20250318024824_create_discourse_solved_solved_topics.rb@@ -0,0 +1,13 @@+# frozen_string_literal: true+#+class CreateDiscourseSolvedSolvedTopics < ActiveRecord::Migration[7.2]+ def change+ create_table :discourse_solved_solved_topics do |t|+ t.integer :topic_id, null: false+ t.integer :answer_post_id, null: false+ t.integer :accepter_user_id, null: false+ t.integer :topic_timer_id+ t.timestamps+ end+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20250318024953_copy_solved_topic_custom_field_to_discourse_solved_solved_topics.rb b/plugins/discourse-solved/db/migrate/20250318024953_copy_solved_topic_custom_field_to_discourse_solved_solved_topics.rbnew file mode 100644index 00000000000..17387dc9ba5--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20250318024953_copy_solved_topic_custom_field_to_discourse_solved_solved_topics.rb@@ -0,0 +1,61 @@+# frozen_string_literal: true+#+class CopySolvedTopicCustomFieldToDiscourseSolvedSolvedTopics < ActiveRecord::Migration[7.2]+ disable_ddl_transaction!++ BATCH_SIZE = 10_000++ def up+ max_id =+ DB.query_single(+ "SELECT MAX(id) FROM topic_custom_fields WHERE topic_custom_fields.name = 'accepted_answer_post_id'",+ ).first+ return unless max_id++ last_id = 0+ while last_id < max_id+ DB.exec(<<~SQL, last_id: last_id, batch_size: BATCH_SIZE)+ INSERT INTO discourse_solved_solved_topics (+ topic_id,+ answer_post_id,+ topic_timer_id,+ accepter_user_id,+ created_at,+ updated_at+ )+ SELECT+ tc.topic_id,+ tc.answer_post_id,+ tc.topic_timer_id,+ tc.accepter_user_id,+ tc.created_at,+ tc.updated_at+ FROM (+ SELECT+ tc.topic_id,+ CAST(tc.value AS INTEGER) AS answer_post_id,+ CAST(tc2.value AS INTEGER) AS topic_timer_id,+ COALESCE(ua.acting_user_id, -1) AS accepter_user_id,+ tc.created_at,+ tc.updated_at,+ ROW_NUMBER() OVER (PARTITION BY tc.topic_id ORDER BY tc.created_at ASC) AS rn_topic,+ ROW_NUMBER() OVER (PARTITION BY CAST(tc.value AS INTEGER) ORDER BY tc.created_at ASC) AS rn_answer+ FROM topic_custom_fields tc+ LEFT JOIN topic_custom_fields tc2 ON tc2.topic_id = tc.topic_id AND tc2.name = 'solved_auto_close_topic_timer_id'+ LEFT JOIN user_actions ua ON ua.target_topic_id = tc.topic_id AND ua.action_type = 15+ WHERE tc.name = 'accepted_answer_post_id'+ AND tc.id > :last_id+ AND tc.id <= :last_id + :batch_size+ ) tc+ WHERE tc.rn_topic = 1 AND tc.rn_answer = 1+ ON CONFLICT DO NOTHING+ SQL++ last_id += BATCH_SIZE+ end+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20250318024954_remove_duplicates_from_discourse_solved_solved_topics.rb b/plugins/discourse-solved/db/migrate/20250318024954_remove_duplicates_from_discourse_solved_solved_topics.rbnew file mode 100644index 00000000000..4bda9186ee3--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20250318024954_remove_duplicates_from_discourse_solved_solved_topics.rb@@ -0,0 +1,31 @@+# frozen_string_literal: true++class RemoveDuplicatesFromDiscourseSolvedSolvedTopics < ActiveRecord::Migration[7.2]+ def up+ # remove duplicates on answer_post_id based on earliest created_at+ DB.exec(<<~SQL)+ DELETE FROM discourse_solved_solved_topics+ WHERE id NOT IN (+ SELECT id FROM (+ SELECT id, ROW_NUMBER() OVER (PARTITION BY answer_post_id ORDER BY created_at) as row_num+ FROM discourse_solved_solved_topics+ ) t WHERE row_num = 1+ )+ SQL++ # remove duplicates on topic_id based on earliest created_at+ DB.exec(<<~SQL)+ DELETE FROM discourse_solved_solved_topics+ WHERE id NOT IN (+ SELECT id FROM (+ SELECT id, ROW_NUMBER() OVER (PARTITION BY topic_id ORDER BY created_at) as row_num+ FROM discourse_solved_solved_topics+ ) t WHERE row_num = 1+ )+ SQL+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20250318025147_add_index_for_discourse_solved_topics.rb b/plugins/discourse-solved/db/migrate/20250318025147_add_index_for_discourse_solved_topics.rbnew file mode 100644index 00000000000..cc87d327cf8--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20250318025147_add_index_for_discourse_solved_topics.rb@@ -0,0 +1,24 @@+# frozen_string_literal: true+#+class AddIndexForDiscourseSolvedTopics < ActiveRecord::Migration[7.2]+ disable_ddl_transaction!++ def change+ remove_index :discourse_solved_solved_topics,+ :topic_id,+ algorithm: :concurrently,+ unique: true,+ if_exists: true+ remove_index :discourse_solved_solved_topics,+ :answer_post_id,+ algorithm: :concurrently,+ unique: true,+ if_exists: true++ add_index :discourse_solved_solved_topics, :topic_id, unique: true, algorithm: :concurrently+ add_index :discourse_solved_solved_topics,+ :answer_post_id,+ unique: true,+ algorithm: :concurrently+ end+enddiff --git a/plugins/discourse-solved/db/migrate/20250325074111_copy_remaining_solved_topic_custom_field_to_discourse_solved_solved_topics.rb b/plugins/discourse-solved/db/migrate/20250325074111_copy_remaining_solved_topic_custom_field_to_discourse_solved_solved_topics.rbnew file mode 100644index 00000000000..152c26cee78--- /dev/null+++ b/plugins/discourse-solved/db/migrate/20250325074111_copy_remaining_solved_topic_custom_field_to_discourse_solved_solved_topics.rb@@ -0,0 +1,63 @@+# frozen_string_literal: true+#+class CopyRemainingSolvedTopicCustomFieldToDiscourseSolvedSolvedTopics < ActiveRecord::Migration[+ 7.2+]+ disable_ddl_transaction!++ BATCH_SIZE = 5000++ def up+ max_id =+ DB.query_single(+ "SELECT MAX(id) FROM topic_custom_fields WHERE topic_custom_fields.name = 'accepted_answer_post_id'",+ ).first+ return unless max_id++ last_id = 0+ while last_id < max_id+ DB.exec(<<~SQL, last_id: last_id, batch_size: BATCH_SIZE)+ INSERT INTO discourse_solved_solved_topics (+ topic_id,+ answer_post_id,+ topic_timer_id,+ accepter_user_id,+ created_at,+ updated_at+ )+ SELECT+ tc.topic_id,+ tc.answer_post_id,+ tc.topic_timer_id,+ tc.accepter_user_id,+ tc.created_at,+ tc.updated_at+ FROM (+ SELECT+ tc.topic_id,+ CAST(tc.value AS INTEGER) AS answer_post_id,+ CAST(tc2.value AS INTEGER) AS topic_timer_id,+ COALESCE(ua.acting_user_id, -1) AS accepter_user_id,+ tc.created_at,+ tc.updated_at,+ ROW_NUMBER() OVER (PARTITION BY tc.topic_id ORDER BY tc.created_at ASC) AS rn_topic,+ ROW_NUMBER() OVER (PARTITION BY CAST(tc.value AS INTEGER) ORDER BY tc.created_at ASC) AS rn_answer+ FROM topic_custom_fields tc+ LEFT JOIN topic_custom_fields tc2 ON tc2.topic_id = tc.topic_id AND tc2.name = 'solved_auto_close_topic_timer_id'+ LEFT JOIN user_actions ua ON ua.target_topic_id = tc.topic_id AND ua.action_type = 15+ WHERE tc.name = 'accepted_answer_post_id'+ AND tc.id > :last_id+ AND tc.id <= :last_id + :batch_size+ ) tc+ WHERE tc.rn_topic = 1 AND tc.rn_answer = 1+ ON CONFLICT DO NOTHING+ SQL++ last_id += BATCH_SIZE+ end+ end++ def down+ raise ActiveRecord::IrreversibleMigration+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_assign/entry_point.rb b/plugins/discourse-solved/lib/discourse_assign/entry_point.rbnew file mode 100644index 00000000000..12821f6aa6f--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_assign/entry_point.rb@@ -0,0 +1,45 @@+# frozen_string_literal: true++module DiscourseAssign+ class EntryPoint+ # TODO: These four plugin api usages should ideally be in the assign plugin, not the solved plugin.+ # They have been moved here from plugin.rb as part of the custom fields migration.++ def self.inject(plugin)+ plugin.register_modifier(:assigns_reminder_assigned_topics_query) do |query|+ next query if !SiteSetting.ignore_solved_topics_in_assigned_reminder+ query.where.not(id: DiscourseSolved::SolvedTopic.select(:topic_id))+ end++ plugin.register_modifier(:assigned_count_for_user_query) do |query, user|+ next query if !SiteSetting.ignore_solved_topics_in_assigned_reminder+ next query if SiteSetting.assignment_status_on_solve.blank?+ query.where.not(status: SiteSetting.assignment_status_on_solve)+ end++ plugin.on(:accepted_solution) do |post|+ next if SiteSetting.assignment_status_on_solve.blank?+ assignments = Assignment.includes(:target).where(topic: post.topic)+ assignments.each do |assignment|+ assigned_user = User.find_by(id: assignment.assigned_to_id)+ Assigner.new(assignment.target, assigned_user).assign(+ assigned_user,+ status: SiteSetting.assignment_status_on_solve,+ )+ end+ end++ plugin.on(:unaccepted_solution) do |post|+ next if SiteSetting.assignment_status_on_unsolve.blank?+ assignments = Assignment.includes(:target).where(topic: post.topic)+ assignments.each do |assignment|+ assigned_user = User.find_by(id: assignment.assigned_to_id)+ Assigner.new(assignment.target, assigned_user).assign(+ assigned_user,+ status: SiteSetting.assignment_status_on_unsolve,+ )+ end+ end+ end+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_automation/entry_point.rb b/plugins/discourse-solved/lib/discourse_automation/entry_point.rbnew file mode 100644index 00000000000..c7092801ac0--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_automation/entry_point.rb@@ -0,0 +1,72 @@+# frozen_string_literal: true++module DiscourseAutomation+ class EntryPoint+ def self.inject(plugin)+ plugin.on(:accepted_solution) do |post|+ # testing directly automation is prone to issues+ # we prefer to abstract logic in service object and test this+ next if Rails.env.test?++ name = "first_accepted_solution"+ DiscourseAutomation::Automation+ .where(trigger: name, enabled: true)+ .find_each do |automation|+ maximum_trust_level = automation.trigger_field("maximum_trust_level")&.dig("value")+ if DiscourseSolved::FirstAcceptedPostSolutionValidator.check(+ post,+ trust_level: maximum_trust_level,+ )+ automation.trigger!(+ "kind" => name,+ "accepted_post_id" => post.id,+ "usernames" => [post.user.username],+ "placeholders" => {+ "post_url" => Discourse.base_url + post.url,+ },+ )+ end+ end+ end++ plugin.add_triggerable_to_scriptable(:first_accepted_solution, :send_pms)++ DiscourseAutomation::Triggerable.add(:first_accepted_solution) do+ placeholder :post_url++ field :maximum_trust_level,+ component: :choices,+ extra: {+ content: [+ {+ id: 1,+ name:+ "discourse_automation.triggerables.first_accepted_solution.max_trust_level.tl1",+ },+ {+ id: 2,+ name:+ "discourse_automation.triggerables.first_accepted_solution.max_trust_level.tl2",+ },+ {+ id: 3,+ name:+ "discourse_automation.triggerables.first_accepted_solution.max_trust_level.tl3",+ },+ {+ id: 4,+ name:+ "discourse_automation.triggerables.first_accepted_solution.max_trust_level.tl4",+ },+ {+ id: "any",+ name:+ "discourse_automation.triggerables.first_accepted_solution.max_trust_level.any",+ },+ ],+ },+ required: true+ end+ end+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_dev/discourse_solved.rb b/plugins/discourse-solved/lib/discourse_dev/discourse_solved.rbnew file mode 100644index 00000000000..3d72e7e2ab9--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_dev/discourse_solved.rb@@ -0,0 +1,57 @@+# frozen_string_literal: true++module DiscourseDev+ class DiscourseSolved+ def self.populate(plugin)+ plugin.on(:after_populate_dev_records) do |records, type|+ next unless SiteSetting.solved_enabled++ if type == :category+ next if SiteSetting.allow_solved_on_all_topics++ solved_category =+ DiscourseDev::Record.random(+ ::Category.where(+ read_restricted: false,+ id: records.pluck(:id),+ parent_category_id: nil,+ ),+ )+ ::CategoryCustomField.create!(+ category_id: solved_category.id,+ name: ::DiscourseSolved::ENABLE_ACCEPTED_ANSWERS_CUSTOM_FIELD,+ value: "true",+ )+ puts "discourse-solved enabled on category '#{solved_category.name}' (#{solved_category.id})."+ elsif type == :topic+ topics = ::Topic.where(id: records.pluck(:id))++ unless SiteSetting.allow_solved_on_all_topics+ solved_category_id =+ ::CategoryCustomField+ .where(name: ::DiscourseSolved::ENABLE_ACCEPTED_ANSWERS_CUSTOM_FIELD, value: "true")+ .first+ .category_id++ unless topics.exists?(category_id: solved_category_id)+ topics.last.update(category_id: solved_category_id)+ end++ topics = topics.where(category_id: solved_category_id)+ end++ solved_topic = DiscourseDev::Record.random(topics)+ post = nil++ if solved_topic.posts_count > 1+ post = DiscourseDev::Record.random(solved_topic.posts.where.not(post_number: 1))+ else+ post = DiscourseDev::Post.new(solved_topic, 1).create!+ end++ ::DiscourseSolved.accept_answer!(post, post.topic.user, topic: post.topic)+ end+ end+ end+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/accepted_answer_cache.rb b/plugins/discourse-solved/lib/discourse_solved/accepted_answer_cache.rbnew file mode 100644index 00000000000..a25b2c2d85d--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/accepted_answer_cache.rb@@ -0,0 +1,22 @@+# frozen_string_literal: true++module DiscourseSolved+ class AcceptedAnswerCache+ @@allowed_accepted_cache = DistributedCache.new("allowed_accepted")++ def self.reset_accepted_answer_cache+ @@allowed_accepted_cache["allowed"] = begin+ Set.new(+ CategoryCustomField.where(+ name: ::DiscourseSolved::ENABLE_ACCEPTED_ANSWERS_CUSTOM_FIELD,+ value: "true",+ ).pluck(:category_id),+ )+ end+ end++ def self.allowed+ @@allowed_accepted_cache["allowed"]+ end+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/before_head_close.rb b/plugins/discourse-solved/lib/discourse_solved/before_head_close.rbnew file mode 100644index 00000000000..ec9d0c5bd5f--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/before_head_close.rb@@ -0,0 +1,82 @@+# frozen_string_literal: true++class DiscourseSolved::BeforeHeadClose+ attr_reader :controller++ def initialize(controller)+ @controller = controller+ end++ def html+ return "" if !controller.instance_of? TopicsController++ topic_view = controller.instance_variable_get(:@topic_view)+ topic = topic_view&.topic+ return "" if !topic+ # note, we have canonicals so we only do this for page 1 at the moment+ # it can get confusing to have this on every page and it should make page 1+ # a bit more prominent + cut down on pointless work++ return "" if SiteSetting.solved_add_schema_markup == "never"++ allowed =+ controller.guardian.allow_accepted_answers?(topic.category_id, topic.tags.pluck(:name))+ return "" if !allowed++ first_post = topic_view.posts&.first+ return "" if first_post&.post_number != 1++ question_json = {+ "@type" => "Question",+ "name" => topic.title,+ "text" => get_schema_text(first_post),+ "upvoteCount" => first_post.like_count,+ "answerCount" => 0,+ "datePublished" => topic.created_at,+ "author" => {+ "@type" => "Person",+ "name" => topic.user&.username,+ "url" => topic.user&.full_url,+ },+ }++ if accepted_answer = topic.solved&.answer_post+ question_json["answerCount"] = 1+ question_json[:acceptedAnswer] = {+ "@type" => "Answer",+ "text" => get_schema_text(accepted_answer),+ "upvoteCount" => accepted_answer.like_count,+ "datePublished" => accepted_answer.created_at,+ "url" => accepted_answer.full_url,+ "author" => {+ "@type" => "Person",+ "name" => accepted_answer.user&.username,+ "url" => accepted_answer.user&.full_url,+ },+ }+ else+ return "" if SiteSetting.solved_add_schema_markup == "answered only"+ end++ [+ '<script type="application/ld+json">',+ MultiJson+ .dump(+ "@context" => "http://schema.org",+ "@type" => "QAPage",+ "name" => topic&.title,+ "mainEntity" => question_json,+ )+ .gsub("</", "<\\/")+ .html_safe,+ "</script>",+ ].join("")+ end++ private++ def get_schema_text(post)+ post.excerpt(nil, keep_onebox_body: true).presence ||+ post.excerpt(nil, keep_onebox_body: true, keep_quotes: true)+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/category_extension.rb b/plugins/discourse-solved/lib/discourse_solved/category_extension.rbnew file mode 100644index 00000000000..80dd9ae2fd0--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/category_extension.rb@@ -0,0 +1,13 @@+# frozen_string_literal: true++module DiscourseSolved::CategoryExtension+ extend ActiveSupport::Concern++ prepended { after_save :reset_accepted_cache, if: -> { SiteSetting.solved_enabled? } }++ private++ def reset_accepted_cache+ ::DiscourseSolved::AcceptedAnswerCache.reset_accepted_answer_cache+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/engine.rb b/plugins/discourse-solved/lib/discourse_solved/engine.rbnew file mode 100644index 00000000000..6c41a5eeff6--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/engine.rb@@ -0,0 +1,9 @@+# frozen_string_literal: true++module ::DiscourseSolved+ class Engine < ::Rails::Engine+ engine_name PLUGIN_NAME+ isolate_namespace DiscourseSolved+ config.autoload_paths << File.join(config.root, "lib")+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/first_accepted_post_solution_validator.rb b/plugins/discourse-solved/lib/discourse_solved/first_accepted_post_solution_validator.rbnew file mode 100644index 00000000000..ae2b4b42b43--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/first_accepted_post_solution_validator.rb@@ -0,0 +1,19 @@+# frozen_string_literal: true++module DiscourseSolved+ class FirstAcceptedPostSolutionValidator+ def self.check(post, trust_level:)+ return false if post.archetype != Archetype.default+ return false if !post&.user&.human?++ if trust_level != "any" && TrustLevel.compare(post&.user&.trust_level, trust_level.to_i)+ return false+ end++ !DiscourseSolved::SolvedTopic+ .joins(:answer_post)+ .where("posts.user_id = ? AND posts.id != ?", post.user_id, post.id)+ .exists?+ end+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/guardian_extensions.rb b/plugins/discourse-solved/lib/discourse_solved/guardian_extensions.rbnew file mode 100644index 00000000000..9f96b441cdf--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/guardian_extensions.rb@@ -0,0 +1,36 @@+# frozen_string_literal: true++module DiscourseSolved+ module GuardianExtensions+ def allow_accepted_answers?(category_id, tag_names = [])+ return true if SiteSetting.allow_solved_on_all_topics++ if SiteSetting.enable_solved_tags.present? && tag_names.present?+ allowed_tags = SiteSetting.enable_solved_tags.split("|")+ is_allowed = (tag_names & allowed_tags).present?++ return true if is_allowed+ end++ return false if category_id.blank?+ if !::DiscourseSolved::AcceptedAnswerCache.allowed+ ::DiscourseSolved::AcceptedAnswerCache.reset_accepted_answer_cache+ end+ ::DiscourseSolved::AcceptedAnswerCache.allowed.include?(category_id)+ end++ def can_accept_answer?(topic, post)+ return false if !authenticated?+ return false if !topic || topic.private_message? || !post || post.whisper?+ return false if !allow_accepted_answers?(topic.category_id, topic.tags.map(&:name))++ return true if is_staff?+ if current_user.in_any_groups?(SiteSetting.accept_all_solutions_allowed_groups_map)+ return true+ end+ return true if is_category_group_moderator?(topic.category)++ topic.user_id == current_user.id && !topic.closed && SiteSetting.accept_solutions_topic_author+ end+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/post_serializer_extension.rb b/plugins/discourse-solved/lib/discourse_solved/post_serializer_extension.rbnew file mode 100644index 00000000000..f5714408f48--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/post_serializer_extension.rb@@ -0,0 +1,11 @@+# frozen_string_literal: true++module DiscourseSolved::PostSerializerExtension+ extend ActiveSupport::Concern++ private++ def topic+ topic_view&.topic || object.topic+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/register_filters.rb b/plugins/discourse-solved/lib/discourse_solved/register_filters.rbnew file mode 100644index 00000000000..b4ebfff5d23--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/register_filters.rb@@ -0,0 +1,61 @@+# frozen_string_literal: true++module DiscourseSolved+ class RegisterFilters+ def self.register(plugin)+ solved_callback = ->(scope) do+ scope.joins(+ "INNER JOIN discourse_solved_solved_topics ON discourse_solved_solved_topics.topic_id = topics.id",+ ).where("topics.archetype <> ?", Archetype.private_message)+ end++ unsolved_callback = ->(scope) do+ scope = scope.where(<<~SQL)+ topics.id NOT IN (+ SELECT topic_id+ FROM discourse_solved_solved_topics+ )+ SQL++ if !SiteSetting.allow_solved_on_all_topics+ tag_ids = Tag.where(name: SiteSetting.enable_solved_tags.split("|")).pluck(:id)++ scope = scope.where <<~SQL, tag_ids+ topics.id IN (+ SELECT t.id+ FROM topics t+ JOIN category_custom_fields cc+ ON t.category_id = cc.category_id+ AND cc.name = '#{::DiscourseSolved::ENABLE_ACCEPTED_ANSWERS_CUSTOM_FIELD}'+ AND cc.value = 'true'+ )+ OR+ topics.id IN (+ SELECT topic_id+ FROM topic_tags+ WHERE tag_id IN (?)+ )+ SQL+ end++ scope.where("topics.archetype <> ?", Archetype.private_message)+ end++ plugin.register_custom_filter_by_status("solved", &solved_callback)+ plugin.register_custom_filter_by_status("unsolved", &unsolved_callback)++ plugin.register_search_advanced_filter(/status:solved/, &solved_callback)+ plugin.register_search_advanced_filter(/status:unsolved/, &unsolved_callback)++ TopicQuery.add_custom_filter(:solved) do |results, topic_query|+ if topic_query.options[:solved] == "yes"+ solved_callback.call(results)+ elsif topic_query.options[:solved] == "no"+ unsolved_callback.call(results)+ else+ results+ end+ end+ end+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/topic_extension.rb b/plugins/discourse-solved/lib/discourse_solved/topic_extension.rbnew file mode 100644index 00000000000..cfd6757c16a--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/topic_extension.rb@@ -0,0 +1,7 @@+# frozen_string_literal: true++module DiscourseSolved::TopicExtension+ extend ActiveSupport::Concern++ prepended { has_one :solved, class_name: "DiscourseSolved::SolvedTopic", dependent: :destroy }+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/topic_posters_summary_extension.rb b/plugins/discourse-solved/lib/discourse_solved/topic_posters_summary_extension.rbnew file mode 100644index 00000000000..edbed74d99d--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/topic_posters_summary_extension.rb@@ -0,0 +1,30 @@+# frozen_string_literal: true++module DiscourseSolved::TopicPostersSummaryExtension+ extend ActiveSupport::Concern++ def descriptions_by_id+ if !defined?(@descriptions_by_id)+ super(ids: old_user_ids)++ if id = topic.accepted_answer_user_id+ @descriptions_by_id[id] ||= []+ @descriptions_by_id[id] << I18n.t(:accepted_answer)+ end+ end++ super+ end++ def last_poster_is_topic_creator?+ super || topic.accepted_answer_user_id == topic.last_post_user_id+ end++ def user_ids+ if id = topic.accepted_answer_user_id+ super.insert(1, id)+ else+ super+ end+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/topic_view_serializer_extension.rb b/plugins/discourse-solved/lib/discourse_solved/topic_view_serializer_extension.rbnew file mode 100644index 00000000000..cadfb49c5d6--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/topic_view_serializer_extension.rb@@ -0,0 +1,55 @@+# frozen_string_literal: true++module DiscourseSolved::TopicViewSerializerExtension+ extend ActiveSupport::Concern++ prepended { attributes :accepted_answer }++ def include_accepted_answer?+ SiteSetting.solved_enabled? && object.topic.solved.present? &&+ object.topic.solved.answer_post.present?+ end++ def accepted_answer+ accepted_answer_post_info+ end++ private++ def accepted_answer_post_info+ solved = object.topic.solved+ answer_post = solved.answer_post+ answer_post_user = answer_post.user+ accepter = solved.accepter++ excerpt =+ if SiteSetting.solved_quote_length > 0+ PrettyText.excerpt(+ answer_post.cooked,+ SiteSetting.solved_quote_length,+ keep_emoji_images: true,+ )+ else+ nil+ end++ accepted_answer = {+ post_number: answer_post.post_number,+ username: answer_post_user.username,+ name: answer_post_user.name,+ excerpt:,+ }++ if SiteSetting.show_who_marked_solved+ accepted_answer[:accepter_name] = accepter.name+ accepted_answer[:accepter_username] = accepter.username+ end++ if !SiteSetting.enable_names || !SiteSetting.display_name_on_posts+ accepted_answer[:name] = nil+ accepted_answer[:accepter_name] = nil+ end++ accepted_answer+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/user_summary_extension.rb b/plugins/discourse-solved/lib/discourse_solved/user_summary_extension.rbnew file mode 100644index 00000000000..92b1fa05528--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/user_summary_extension.rb@@ -0,0 +1,13 @@+# frozen_string_literal: true++module DiscourseSolved::UserSummaryExtension+ extend ActiveSupport::Concern++ def solved_count+ DiscourseSolved::SolvedTopic+ .joins(answer_post: :user, topic: {})+ .where(posts: { user_id: @user.id, deleted_at: nil })+ .where(topics: { archetype: Archetype.default, deleted_at: nil })+ .count+ end+enddiff --git a/plugins/discourse-solved/lib/discourse_solved/web_hook_extension.rb b/plugins/discourse-solved/lib/discourse_solved/web_hook_extension.rbnew file mode 100644index 00000000000..4bb84e09f23--- /dev/null+++ b/plugins/discourse-solved/lib/discourse_solved/web_hook_extension.rb@@ -0,0 +1,22 @@+# frozen_string_literal: true++module DiscourseSolved::WebHookExtension+ extend ActiveSupport::Concern++ class_methods do+ def enqueue_solved_hooks(event, post, payload = nil)+ if active_web_hooks(event).exists? && post.present?+ payload ||= WebHook.generate_payload(:post, post)++ WebHook.enqueue_hooks(+ :solved,+ event,+ id: post.id,+ category_id: post.topic&.category_id,+ tag_ids: post.topic&.tags&.pluck(:id),+ payload: payload,+ )+ end+ end+ end+enddiff --git a/plugins/discourse-solved/plugin.rb b/plugins/discourse-solved/plugin.rbnew file mode 100644index 00000000000..f47ec69beaf--- /dev/null+++ b/plugins/discourse-solved/plugin.rb@@ -0,0 +1,358 @@+# frozen_string_literal: true++# name: discourse-solved+# about: Allows users to accept solutions on topics in designated categories.+# meta_topic_id: 30155+# version: 0.1+# authors: Sam Saffron+# url: https://github.com/discourse/discourse/tree/main/plugins/discourse-solved++enabled_site_setting :solved_enabled++register_svg_icon "far-square-check"+register_svg_icon "square-check"+register_svg_icon "far-square"++register_asset "stylesheets/solutions.scss"+register_asset "stylesheets/mobile/solutions.scss", :mobile++module ::DiscourseSolved+ PLUGIN_NAME = "discourse-solved"+ ENABLE_ACCEPTED_ANSWERS_CUSTOM_FIELD = "enable_accepted_answers"+end++require_relative "lib/discourse_solved/engine.rb"++after_initialize do+ SeedFu.fixture_paths << Rails.root.join("plugins", "discourse-solved", "db", "fixtures").to_s++ module ::DiscourseSolved+ def self.accept_answer!(post, acting_user, topic: nil)+ topic ||= post.topic++ DistributedMutex.synchronize("discourse_solved_toggle_answer_#{topic.id}") do+ solved = topic.solved++ ActiveRecord::Base.transaction do+ if previous_accepted_post_id = solved&.answer_post_id+ UserAction.where(+ action_type: UserAction::SOLVED,+ target_post_id: previous_accepted_post_id,+ ).destroy_all+ solved.destroy!+ else+ UserAction.log_action!(+ action_type: UserAction::SOLVED,+ user_id: post.user_id,+ acting_user_id: acting_user.id,+ target_post_id: post.id,+ target_topic_id: post.topic_id,+ )+ end++ solved =+ DiscourseSolved::SolvedTopic.new(topic:, answer_post: post, accepter: acting_user)++ unless acting_user.id == post.user_id+ Notification.create!(+ notification_type: Notification.types[:custom],+ user_id: post.user_id,+ topic_id: post.topic_id,+ post_number: post.post_number,+ data: {+ message: "solved.accepted_notification",+ display_username: acting_user.username,+ topic_title: topic.title,+ title: "solved.notification.title",+ }.to_json,+ )+ end++ if SiteSetting.notify_on_staff_accept_solved && acting_user.id != topic.user_id+ Notification.create!(+ notification_type: Notification.types[:custom],+ user_id: topic.user_id,+ topic_id: post.topic_id,+ post_number: post.post_number,+ data: {+ message: "solved.accepted_notification",+ display_username: acting_user.username,+ topic_title: topic.title,+ title: "solved.notification.title",+ }.to_json,+ )+ end++ auto_close_hours = 0+ if topic&.category.present?+ auto_close_hours = topic.category.custom_fields["solved_topics_auto_close_hours"].to_i+ auto_close_hours = 175_200 if auto_close_hours > 175_200 # 20 years+ end++ auto_close_hours = SiteSetting.solved_topics_auto_close_hours if auto_close_hours == 0++ if (auto_close_hours > 0) && !topic.closed+ topic_timer =+ topic.set_or_create_timer(+ TopicTimer.types[:silent_close],+ nil,+ based_on_last_post: true,+ duration_minutes: auto_close_hours * 60,+ )+ solved.topic_timer = topic_timer++ MessageBus.publish("/topic/#{topic.id}", reload_topic: true)+ end++ solved.save!+ end++ if WebHook.active_web_hooks(:accepted_solution).exists?+ payload = WebHook.generate_payload(:post, post)+ WebHook.enqueue_solved_hooks(:accepted_solution, post, payload)+ end++ DiscourseEvent.trigger(:accepted_solution, post)+ end+ end++ def self.unaccept_answer!(post, topic: nil)+ topic ||= post.topic+ topic ||= Topic.unscoped.find_by(id: post.topic_id)+ return if topic.nil?+ return if topic.solved.nil?++ DistributedMutex.synchronize("discourse_solved_toggle_answer_#{topic.id}") do+ solved = topic.solved++ ActiveRecord::Base.transaction do+ UserAction.where(action_type: UserAction::SOLVED, target_post_id: post.id).destroy_all+ Notification.find_by(+ notification_type: Notification.types[:custom],+ user_id: post.user_id,+ topic_id: post.topic_id,+ post_number: post.post_number,+ )&.destroy!+ solved.destroy!+ end++ if WebHook.active_web_hooks(:unaccepted_solution).exists?+ payload = WebHook.generate_payload(:post, post)+ WebHook.enqueue_solved_hooks(:unaccepted_solution, post, payload)+ end+ DiscourseEvent.trigger(:unaccepted_solution, post)+ end+ end++ def self.skip_db?+ defined?(GlobalSetting.skip_db?) && GlobalSetting.skip_db?+ end+ end++ reloadable_patch do+ ::Guardian.prepend(DiscourseSolved::GuardianExtensions)+ ::WebHook.prepend(DiscourseSolved::WebHookExtension)+ ::TopicViewSerializer.prepend(DiscourseSolved::TopicViewSerializerExtension)+ ::Topic.prepend(DiscourseSolved::TopicExtension)+ ::Category.prepend(DiscourseSolved::CategoryExtension)+ ::PostSerializer.prepend(DiscourseSolved::PostSerializerExtension)+ ::UserSummary.prepend(DiscourseSolved::UserSummaryExtension)+ ::Topic.attr_accessor(:accepted_answer_user_id)+ ::TopicPostersSummary.alias_method(:old_user_ids, :user_ids)+ ::TopicPostersSummary.prepend(DiscourseSolved::TopicPostersSummaryExtension)+ [+ ::TopicListItemSerializer,+ ::SearchTopicListItemSerializer,+ ::SuggestedTopicSerializer,+ ::UserSummarySerializer::TopicSerializer,+ ::ListableTopicSerializer,+ ].each { |klass| klass.include(DiscourseSolved::TopicAnswerMixin) }+ end++ register_category_list_topics_preloader_associations(:solved) if SiteSetting.solved_enabled+ register_topic_preloader_associations(:solved) if SiteSetting.solved_enabled+ Search.custom_topic_eager_load { [:solved] } if SiteSetting.solved_enabled+ Site.preloaded_category_custom_fields << ::DiscourseSolved::ENABLE_ACCEPTED_ANSWERS_CUSTOM_FIELD++ add_api_key_scope(+ :solved,+ { answer: { actions: %w[discourse_solved/answer#accept discourse_solved/answer#unaccept] } },+ )++ register_html_builder("server:before-head-close-crawler") do |controller|+ DiscourseSolved::BeforeHeadClose.new(controller).html+ end++ register_html_builder("server:before-head-close") do |controller|+ DiscourseSolved::BeforeHeadClose.new(controller).html+ end++ Report.add_report("accepted_solutions") do |report|+ report.data = []++ accepted_solutions =+ DiscourseSolved::SolvedTopic.joins(:topic).where(+ "topics.archetype <> ?",+ Archetype.private_message,+ )++ category_id, include_subcategories = report.add_category_filter+ if category_id+ if include_subcategories+ accepted_solutions =+ accepted_solutions.where(+ "topics.category_id IN (?)",+ Category.subcategory_ids(category_id),+ )+ else+ accepted_solutions = accepted_solutions.where("topics.category_id = ?", category_id)+ end+ end++ accepted_solutions+ .where("discourse_solved_solved_topics.created_at >= ?", report.start_date)+ .where("discourse_solved_solved_topics.created_at <= ?", report.end_date)+ .group("DATE(discourse_solved_solved_topics.created_at)")+ .order("DATE(discourse_solved_solved_topics.created_at)")+ .count+ .each { |date, count| report.data << { x: date, y: count } }+ report.total = accepted_solutions.count+ report.prev30Days =+ accepted_solutions+ .where("discourse_solved_solved_topics.created_at >= ?", report.start_date - 30.days)+ .where("discourse_solved_solved_topics.created_at <= ?", report.start_date)+ .count+ end++ register_modifier(:search_rank_sort_priorities) do |priorities, _search|+ if SiteSetting.prioritize_solved_topics_in_search+ condition = <<~SQL+ EXISTS (+ SELECT 1+ FROM discourse_solved_solved_topics+ WHERE discourse_solved_solved_topics.topic_id = topics.id+ )+ SQL++ priorities.push([condition, 1.1])+ else+ priorities+ end+ end++ register_modifier(:user_action_stream_builder) do |builder|+ builder.where("t.deleted_at IS NULL").where("t.archetype <> ?", Archetype.private_message)+ end++ add_to_serializer(:user_card, :accepted_answers) do+ DiscourseSolved::SolvedTopic+ .joins(answer_post: :user, topic: {})+ .where(posts: { user_id: object.id, deleted_at: nil })+ .where(topics: { archetype: Archetype.default, deleted_at: nil })+ .count+ end+ add_to_serializer(:user_summary, :solved_count) { object.solved_count }+ add_to_serializer(:post, :can_accept_answer) do+ scope.can_accept_answer?(topic, object) && object.post_number > 1 && !accepted_answer+ end+ add_to_serializer(:post, :can_unaccept_answer) do+ scope.can_accept_answer?(topic, object) && accepted_answer+ end+ add_to_serializer(:post, :accepted_answer) { topic&.solved&.answer_post_id == object.id }+ add_to_serializer(:post, :topic_accepted_answer) { topic&.solved&.present? }++ on(:post_destroyed) { |post| ::DiscourseSolved.unaccept_answer!(post) }++ on(:filter_auto_bump_topics) do |_category, filters|+ filters.push(+ ->(r) do+ sql = <<~SQL+ NOT EXISTS (+ SELECT 1+ FROM discourse_solved_solved_topics+ WHERE discourse_solved_solved_topics.topic_id = topics.id+ )+ SQL++ r.where(sql)+ end,+ )+ end++ on(:before_post_publish_changes) do |post_changes, topic_changes, options|+ category_id_changes = topic_changes.diff["category_id"].to_a+ tag_changes = topic_changes.diff["tags"].to_a++ old_allowed = Guardian.new.allow_accepted_answers?(category_id_changes[0], tag_changes[0])+ new_allowed = Guardian.new.allow_accepted_answers?(category_id_changes[1], tag_changes[1])++ options[:refresh_stream] = true if old_allowed != new_allowed+ end++ query = <<~SQL+ UPDATE directory_items di+ SET solutions = 0+ WHERE di.period_type = :period_type AND di.solutions IS NOT NULL;++ WITH x AS (+ SELECT p.user_id, COUNT(DISTINCT st.id) AS solutions+ FROM discourse_solved_solved_topics AS st+ JOIN posts AS p+ ON p.id = st.answer_post_id+ AND COALESCE(st.created_at, :since) > :since+ AND p.deleted_at IS NULL+ JOIN topics AS t+ ON t.id = st.topic_id+ AND t.archetype <> 'private_message'+ AND t.deleted_at IS NULL+ JOIN users AS u+ ON u.id = p.user_id+ WHERE u.id > 0+ AND u.active+ AND u.silenced_till IS NULL+ AND u.suspended_till IS NULL+ GROUP BY p.user_id+ )+ UPDATE directory_items di+ SET solutions = x.solutions+ FROM x+ WHERE x.user_id = di.user_id+ AND di.period_type = :period_type;+ SQL++ add_directory_column("solutions", query:)++ add_to_class(:composer_messages_finder, :check_topic_is_solved) do+ return if !SiteSetting.solved_enabled || SiteSetting.disable_solved_education_message+ return if !replying? || @topic.blank? || @topic.private_message?+ return if @topic.solved.nil?++ {+ id: "solved_topic",+ templateName: "education",+ wait_for_typing: true,+ extraClass: "education-message",+ hide_if_whisper: true,+ body: PrettyText.cook(I18n.t("education.topic_is_solved", base_url: Discourse.base_url)),+ }+ end++ register_topic_list_preload_user_ids do |topics, user_ids|+ # [{ topic_id => answer_user_id }, ... ]+ topics_with_answer_poster =+ DiscourseSolved::SolvedTopic+ .joins(:answer_post)+ .where(topic_id: topics.map(&:id))+ .pluck(:topic_id, "posts.user_id")+ .to_h++ topics.each { |topic| topic.accepted_answer_user_id = topics_with_answer_poster[topic.id] }+ user_ids.concat(topics_with_answer_poster.values)+ end++ DiscourseSolved::RegisterFilters.register(self)++ DiscourseDev::DiscourseSolved.populate(self)+ DiscourseAutomation::EntryPoint.inject(self) if defined?(DiscourseAutomation)+ DiscourseAssign::EntryPoint.inject(self) if defined?(DiscourseAssign)+enddiff --git a/plugins/discourse-solved/spec/components/composer_messages_finder_spec.rb b/plugins/discourse-solved/spec/components/composer_messages_finder_spec.rbnew file mode 100644index 00000000000..944fa8b4c32--- /dev/null+++ b/plugins/discourse-solved/spec/components/composer_messages_finder_spec.rb@@ -0,0 +1,58 @@+# encoding: utf-8+# frozen_string_literal: true++require "rails_helper"+require "composer_messages_finder"++describe ComposerMessagesFinder do+ describe ".check_topic_is_solved" do+ fab!(:user)+ fab!(:topic)+ fab!(:post) { Fabricate(:post, topic: topic, user: Fabricate(:user)) }++ before { SiteSetting.disable_solved_education_message = false }++ it "does not show message without a topic id" do+ expect(+ described_class.new(user, composer_action: "createTopic").check_topic_is_solved,+ ).to be_blank+ expect(described_class.new(user, composer_action: "reply").check_topic_is_solved).to be_blank+ end++ describe "a reply" do+ it "does not show message if topic is not solved" do+ expect(+ described_class.new(+ user,+ composer_action: "reply",+ topic_id: topic.id,+ ).check_topic_is_solved,+ ).to be_blank+ end++ it "does not show message if disable_solved_education_message is true" do+ SiteSetting.disable_solved_education_message = true+ DiscourseSolved.accept_answer!(post, Discourse.system_user)+ expect(+ described_class.new(+ user,+ composer_action: "reply",+ topic_id: topic.id,+ ).check_topic_is_solved,+ ).to be_blank+ end++ it "shows message if the topic is solved" do+ DiscourseSolved.accept_answer!(post, Discourse.system_user)+ message =+ described_class.new(+ user,+ composer_action: "reply",+ topic_id: topic.id,+ ).check_topic_is_solved+ expect(message).not_to be_blank+ expect(message[:body]).to include("This topic has been solved")+ end+ end+ end+enddiff --git a/plugins/discourse-solved/spec/components/post_revisor_spec.rb b/plugins/discourse-solved/spec/components/post_revisor_spec.rbnew file mode 100644index 00000000000..d35cb828086--- /dev/null+++ b/plugins/discourse-solved/spec/components/post_revisor_spec.rb@@ -0,0 +1,69 @@+# frozen_string_literal: true++require "rails_helper"+require "post_revisor"++describe PostRevisor do+ fab!(:category) { Fabricate(:category_with_definition) }+ fab!(:admin) { Fabricate(:admin, refresh_auto_groups: true) }++ fab!(:category_solved) do+ category = Fabricate(:category_with_definition)+ category.upsert_custom_fields("enable_accepted_answers" => "true")+ category+ end++ it "refreshes post stream when topic category changes to a solved category" do+ topic = Fabricate(:topic, category: Fabricate(:category_with_definition))+ post = Fabricate(:post, topic: topic)++ messages =+ MessageBus.track_publish("/topic/#{topic.id}") do+ described_class.new(post).revise!(admin, { category_id: category.id })+ end++ expect(messages.first.data[:refresh_stream]).to eq(nil)++ messages =+ MessageBus.track_publish("/topic/#{topic.id}") do+ described_class.new(post).revise!(admin, { category_id: category_solved.id })+ end++ expect(messages.first.data[:refresh_stream]).to eq(true)+ end++ describe "Allowing solved via tags" do+ before do+ SiteSetting.solved_enabled = true+ SiteSetting.tagging_enabled = true+ end++ fab!(:tag1) { Fabricate(:tag) }+ fab!(:tag2) { Fabricate(:tag) }++ fab!(:topic)+ let(:post) { Fabricate(:post, topic: topic) }++ it "sets the refresh option after adding an allowed tag" do+ SiteSetting.enable_solved_tags = tag1.name++ messages =+ MessageBus.track_publish("/topic/#{topic.id}") do+ described_class.new(post).revise!(admin, tags: [tag1.name])+ end++ expect(messages.first.data[:refresh_stream]).to eq(true)+ end++ it "sets the refresh option if the added tag matches any of the allowed tags" do+ SiteSetting.enable_solved_tags = [tag1, tag2].map(&:name).join("|")++ messages =+ MessageBus.track_publish("/topic/#{topic.id}") do+ described_class.new(post).revise!(admin, tags: [tag2.name])+ end++ expect(messages.first.data[:refresh_stream]).to eq(true)+ end+ end+enddiff --git a/plugins/discourse-solved/spec/fabricators/extend_topic_fabricator.rb b/plugins/discourse-solved/spec/fabricators/extend_topic_fabricator.rbnew file mode 100644index 00000000000..c41e4b6e34a--- /dev/null+++ b/plugins/discourse-solved/spec/fabricators/extend_topic_fabricator.rb@@ -0,0 +1,14 @@+# frozen_string_literal: true+Fabricator(:custom_topic, from: :topic) do+ transient :custom_topic_name+ transient :value+ after_create do |top, transients|+ custom_topic =+ TopicCustomField.new(+ topic_id: top.id,+ name: transients[:custom_topic_name],+ value: transients[:value],+ )+ custom_topic.save+ end+enddiff --git a/plugins/discourse-solved/spec/fabricators/solved_hook_fabricator.rb b/plugins/discourse-solved/spec/fabricators/solved_hook_fabricator.rbnew file mode 100644index 00000000000..f80469a9a9b--- /dev/null+++ b/plugins/discourse-solved/spec/fabricators/solved_hook_fabricator.rb@@ -0,0 +1,8 @@+# frozen_string_literal: true++Fabricator(:solved_web_hook, from: :web_hook) do+ after_build do |web_hook|+ web_hook.web_hook_event_types =+ WebHookEventType.where(name: %w[accepted_solution unaccepted_solution])+ end+enddiff --git a/plugins/discourse-solved/spec/fabricators/solved_topic_fabricator.rb b/plugins/discourse-solved/spec/fabricators/solved_topic_fabricator.rbnew file mode 100644index 00000000000..d24e47e74fb--- /dev/null+++ b/plugins/discourse-solved/spec/fabricators/solved_topic_fabricator.rb@@ -0,0 +1,6 @@+# frozen_string_literal: true+Fabricator(:solved_topic, from: DiscourseSolved::SolvedTopic) do+ topic+ answer_post { Fabricate(:post) }+ accepter { Fabricate(:user) }+enddiff --git a/plugins/discourse-solved/spec/integration/solved_spec.rb b/plugins/discourse-solved/spec/integration/solved_spec.rbnew file mode 100644index 00000000000..9a65f764c40--- /dev/null+++ b/plugins/discourse-solved/spec/integration/solved_spec.rb@@ -0,0 +1,589 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe "Managing Posts solved status" do+ let(:topic) { Fabricate(:topic) }+ fab!(:user) { Fabricate(:trust_level_4) }+ let(:p1) { Fabricate(:post, topic: topic) }++ before { SiteSetting.allow_solved_on_all_topics = true }++ describe "customer filters" do+ before do+ SiteSetting.allow_solved_on_all_topics = false+ SiteSetting.enable_solved_tags = solvable_tag.name+ end++ fab!(:solvable_category) do+ category = Fabricate(:category)++ CategoryCustomField.create(+ category_id: category.id,+ name: ::DiscourseSolved::ENABLE_ACCEPTED_ANSWERS_CUSTOM_FIELD,+ value: "true",+ )++ category+ end++ fab!(:solvable_tag) { Fabricate(:tag) }++ fab!(:solved_in_category) do+ topic = Fabricate(:topic, category: solvable_category)+ Fabricate(:solved_topic, topic:, answer_post: Fabricate(:post, topic:))+ topic+ end++ fab!(:solved_in_tag) do+ topic = Fabricate(:topic, tags: [solvable_tag])+ Fabricate(:solved_topic, topic:, answer_post: Fabricate(:post, topic:))+ topic+ end++ fab!(:solved_pm) do+ topic = Fabricate(:topic, archetype: Archetype.private_message, category_id: nil)+ Fabricate(:solved_topic, topic:, answer_post: Fabricate(:post, topic:))+ topic+ end++ fab!(:unsolved_in_category) { Fabricate(:topic, category: solvable_category) }+ fab!(:unsolved_in_tag) { Fabricate(:topic, tags: [solvable_tag]) }++ fab!(:unsolved_topic) { Fabricate(:topic) }++ it "can filter by solved status" do+ expect(+ TopicsFilter+ .new(guardian: Guardian.new)+ .filter_from_query_string("status:solved")+ .pluck(:id),+ ).to contain_exactly(solved_in_category.id, solved_in_tag.id)+ end++ it "can filter by unsolved status" do+ expect(+ TopicsFilter+ .new(guardian: Guardian.new)+ .filter_from_query_string("status:unsolved")+ .pluck(:id),+ ).to contain_exactly(unsolved_in_category.id, unsolved_in_tag.id)+ end+ end++ describe "search" do+ before { SearchIndexer.enable }++ after { SearchIndexer.disable }++ it "can prioritize solved topics in search" do+ normal_post =+ Fabricate(+ :post,+ raw: "My reply carrot",+ topic: Fabricate(:topic, title: "A topic that is not solved but open"),+ )++ solved_post =+ Fabricate(+ :post,+ raw: "My solution carrot",+ topic: Fabricate(:topic, title: "A topic that will be closed", closed: true),+ )++ DiscourseSolved.accept_answer!(solved_post, Discourse.system_user)++ result = Search.execute("carrot")+ expect(result.posts.pluck(:id)).to eq([normal_post.id, solved_post.id])++ SiteSetting.prioritize_solved_topics_in_search = true++ result = Search.execute("carrot")+ expect(result.posts.pluck(:id)).to eq([solved_post.id, normal_post.id])+ end++ describe "#advanced_search" do+ fab!(:category_enabled) do+ category = Fabricate(:category)+ category_custom_field =+ CategoryCustomField.new(+ category_id: category.id,+ name: ::DiscourseSolved::ENABLE_ACCEPTED_ANSWERS_CUSTOM_FIELD,+ value: "true",+ )+ category_custom_field.save+ category+ end+ fab!(:category_disabled) do+ category = Fabricate(:category)+ category_custom_field =+ CategoryCustomField.new(+ category_id: category.id,+ name: ::DiscourseSolved::ENABLE_ACCEPTED_ANSWERS_CUSTOM_FIELD,+ value: "false",+ )+ category_custom_field.save+ category+ end+ fab!(:tag)+ fab!(:topic_unsolved) { Fabricate(:topic, user:, category: category_enabled) }+ fab!(:topic_unsolved_2) { Fabricate(:topic, user: user, tags: [tag]) }+ fab!(:topic_solved) do+ topic = Fabricate(:topic, category: category_enabled)+ Fabricate(:solved_topic, topic:, answer_post: Fabricate(:post, topic:))+ topic+ end+ fab!(:topic_disabled_1) { Fabricate(:topic, category: category_disabled) }+ fab!(:topic_disabled_2) { Fabricate(:topic, category: category_disabled) }+ fab!(:post_unsolved) { Fabricate(:post, topic: topic_unsolved) }+ fab!(:post_unsolved_2) { Fabricate(:post, topic: topic_unsolved_2) }+ fab!(:post_solved) do+ post = Fabricate(:post, topic: topic_solved)+ DiscourseSolved.accept_answer!(post, Discourse.system_user)+ post+ end+ fab!(:post_disabled_1) { Fabricate(:post, topic: topic_disabled_1) }+ fab!(:post_disabled_2) { Fabricate(:post, topic: topic_disabled_2) }++ before do+ SiteSetting.enable_solved_tags = tag.name+ SearchIndexer.enable+ Jobs.run_immediately!++ SearchIndexer.index(topic_unsolved, force: true)+ SearchIndexer.index(topic_unsolved_2, force: true)+ SearchIndexer.index(topic_solved, force: true)+ SearchIndexer.index(topic_disabled_1, force: true)+ SearchIndexer.index(topic_disabled_2, force: true)+ end++ after { SearchIndexer.disable }++ describe "searches for unsolved topics" do+ describe "when allow solved on all topics is disabled" do+ before { SiteSetting.allow_solved_on_all_topics = false }++ it "only returns unsolved posts from categories and tags where solving is enabled" do+ result = Search.execute("status:unsolved")+ expect(result.posts.pluck(:id)).to match_array([post_unsolved.id, post_unsolved_2.id])+ end++ it "returns the filtered results when combining search with a tag" do+ result = Search.execute("status:unsolved tag:#{tag.name}")+ expect(result.posts.pluck(:id)).to match_array([post_unsolved_2.id])+ end+ end++ describe "when allow solved on all topics is enabled" do+ before { SiteSetting.allow_solved_on_all_topics = true }+ it "only returns posts where the post is not solved" do+ result = Search.execute("status:unsolved")+ expect(result.posts.pluck(:id)).to match_array(+ [post_unsolved.id, post_unsolved_2.id, post_disabled_1.id, post_disabled_2.id],+ )+ end+ end+ end+ end+ end++ describe "auto bump" do+ it "does not automatically bump solved topics" do+ category = Fabricate(:category_with_definition)++ post = create_post(category: category)+ post2 = create_post(category: category)++ DiscourseSolved.accept_answer!(post, Discourse.system_user)++ category.num_auto_bump_daily = 2+ category.save!++ freeze_time 1.month.from_now++ expect(category.auto_bump_topic!).to eq(true)++ freeze_time 13.hours.from_now++ expect(category.auto_bump_topic!).to eq(false)++ expect(post.topic.reload.posts_count).to eq(1)+ expect(post2.topic.reload.posts_count).to eq(2)+ end+ end++ describe "accepting a post as the answer" do+ before do+ sign_in(user)+ SiteSetting.solved_topics_auto_close_hours = 2+ end++ it "can mark a post as the accepted answer correctly" do+ freeze_time++ post "/solution/accept.json", params: { id: p1.id }++ expect(response.status).to eq(200)+ expect(topic.solved.answer_post_id).to eq(p1.id)++ topic.reload++ expect(topic.public_topic_timer.status_type).to eq(TopicTimer.types[:silent_close])++ expect(topic.solved.topic_timer).to eq(topic.public_topic_timer)+ expect(topic.public_topic_timer.execute_at).to eq_time(Time.zone.now + 2.hours)+ expect(topic.public_topic_timer.based_on_last_post).to eq(true)+ end++ it "gives priority to category's solved_topics_auto_close_hours setting" do+ freeze_time+ custom_auto_close_category = Fabricate(:category)+ topic_2 = Fabricate(:topic, category: custom_auto_close_category)+ post_2 = Fabricate(:post, topic: topic_2)+ custom_auto_close_category.custom_fields["solved_topics_auto_close_hours"] = 4+ custom_auto_close_category.save_custom_fields++ post "/solution/accept.json", params: { id: post_2.id }++ expect(response.status).to eq(200)+ expect(topic_2.solved.answer_post_id).to eq(post_2.id)++ topic_2.reload++ expect(topic_2.public_topic_timer.status_type).to eq(TopicTimer.types[:silent_close])++ expect(topic_2.solved.topic_timer).to eq(topic_2.public_topic_timer)+ expect(topic_2.public_topic_timer.execute_at).to eq_time(Time.zone.now + 4.hours)+ expect(topic_2.public_topic_timer.based_on_last_post).to eq(true)+ end++ it "sends notifications to correct users" do+ SiteSetting.notify_on_staff_accept_solved = true+ user = Fabricate(:user)+ topic = Fabricate(:topic, user: user)+ post = Fabricate(:post, post_number: 2, topic: topic)++ op = topic.user+ user = post.user++ expect { DiscourseSolved.accept_answer!(post, Discourse.system_user) }.to change {+ user.notifications.count+ }.by(1) & change { op.notifications.count }.by(1)++ notification = user.notifications.last+ expect(notification.notification_type).to eq(Notification.types[:custom])+ expect(notification.topic_id).to eq(post.topic_id)+ expect(notification.post_number).to eq(post.post_number)++ notification = op.notifications.last+ expect(notification.notification_type).to eq(Notification.types[:custom])+ expect(notification.topic_id).to eq(post.topic_id)+ expect(notification.post_number).to eq(post.post_number)+ end++ it "does not set a timer when the topic is closed" do+ topic.update!(closed: true)+ post "/solution/accept.json", params: { id: p1.id }++ expect(response.status).to eq(200)++ p1.reload+ topic.reload++ expect(topic.solved.answer_post_id).to eq(p1.id)+ expect(topic.public_topic_timer).to eq(nil)+ expect(topic.closed).to eq(true)+ end++ it "works with staff and trashed topics" do+ topic.trash!(Discourse.system_user)++ post "/solution/accept.json", params: { id: p1.id }+ expect(response.status).to eq(403)++ sign_in(Fabricate(:admin))+ post "/solution/accept.json", params: { id: p1.id }+ expect(response.status).to eq(200)++ p1.reload+ expect(topic.solved.answer_post_id).to eq(p1.id)+ end++ it "removes the solution when the post is deleted" do+ reply = Fabricate(:post, post_number: 2, topic: topic)++ post "/solution/accept.json", params: { id: reply.id }+ expect(response.status).to eq(200)++ expect(topic.solved.answer_post_id).to eq(reply.id)++ PostDestroyer.new(Discourse.system_user, reply).destroy+ reply.topic.reload++ expect(topic.solved).to be(nil)+ end++ it "does not allow you to accept a whisper" do+ whisper = Fabricate(:post, topic: topic, post_type: Post.types[:whisper])+ sign_in(Fabricate(:admin))++ post "/solution/accept.json", params: { id: whisper.id }+ expect(response.status).to eq(403)+ end++ it "triggers a webhook" do+ Fabricate(:solved_web_hook)+ post "/solution/accept.json", params: { id: p1.id }++ job_args = Jobs::EmitWebHookEvent.jobs[0]["args"].first++ expect(job_args["event_name"]).to eq("accepted_solution")+ payload = JSON.parse(job_args["payload"])+ expect(payload["id"]).to eq(p1.id)+ end+ end++ describe "#unaccept" do+ before { sign_in(user) }++ describe "when solved_topics_auto_close_hours is enabled" do+ before do+ SiteSetting.solved_topics_auto_close_hours = 2+ DiscourseSolved.accept_answer!(p1, user)+ topic.reload+ end++ it "should unmark the post as solved" do+ expect do post "/solution/unaccept.json", params: { id: p1.id } end.to change {+ topic.reload.public_topic_timer+ }.to(nil)++ expect(response.status).to eq(200)+ p1.reload++ expect(topic.solved).to be(nil)+ end+ end++ it "triggers a webhook" do+ DiscourseSolved.accept_answer!(p1, user)++ Fabricate(:solved_web_hook)+ post "/solution/unaccept.json", params: { id: p1.id }++ job_args = Jobs::EmitWebHookEvent.jobs[0]["args"].first++ expect(job_args["event_name"]).to eq("unaccepted_solution")+ payload = JSON.parse(job_args["payload"])+ expect(payload["id"]).to eq(p1.id)+ end+ end++ context "with group moderators" do+ fab!(:group_user)+ let!(:category_moderation_group) do+ Fabricate(:category_moderation_group, category: p1.topic.category, group: group_user.group)+ end+ let(:user_gm) { group_user.user }++ before do+ SiteSetting.enable_category_group_moderation = true+ sign_in(user_gm)+ end++ it "can accept a solution" do+ post "/solution/accept.json", params: { id: p1.id }+ expect(response.status).to eq(200)+ end+ end++ context "with discourse-assign installed", if: defined?(DiscourseAssign) do+ let(:admin) { Fabricate(:admin) }+ fab!(:group)+ before do+ SiteSetting.solved_enabled = true+ SiteSetting.assign_enabled = true+ SiteSetting.enable_assign_status = true+ SiteSetting.assign_allowed_on_groups = "#{group.id}"+ SiteSetting.assigns_public = true+ SiteSetting.assignment_status_on_solve = "Done"+ SiteSetting.assignment_status_on_unsolve = "New"+ SiteSetting.ignore_solved_topics_in_assigned_reminder = false+ group.add(p1.acting_user)+ group.add(user)++ sign_in(user)+ end++ describe "updating assignment status on solve when assignment_status_on_solve is set" do+ it "update all assignments to this status when a post is accepted" do+ assigner = Assigner.new(p1.topic, user)+ result = assigner.assign(user)+ expect(result[:success]).to eq(true)++ expect(p1.topic.assignment.status).to eq("New")+ DiscourseSolved.accept_answer!(p1, user)+ topic.reload++ expect(topic.solved.answer_post_id).to eq(p1.id)+ expect(p1.topic.assignment.reload.status).to eq("Done")+ end++ it "update all assignments to this status when a post is unaccepted" do+ assigner = Assigner.new(p1.topic, user)+ result = assigner.assign(user)+ expect(result[:success]).to eq(true)++ DiscourseSolved.accept_answer!(p1, user)++ expect(p1.reload.topic.assignment.reload.status).to eq("Done")++ DiscourseSolved.unaccept_answer!(p1)++ expect(p1.reload.topic.assignment.reload.status).to eq("New")+ end++ it "does not update the assignee when a post is accepted" do+ user_1 = Fabricate(:user)+ user_2 = Fabricate(:user)+ user_3 = Fabricate(:user)+ group.add(user_1)+ group.add(user_2)+ group.add(user_3)++ topic_question = Fabricate(:topic, user: user_1)++ Fabricate(:post, topic: topic_question, user: user_1)+ Fabricate(:post, topic: topic_question, user: user_2)++ result = Assigner.new(topic_question, user_2).assign(user_2)+ expect(result[:success]).to eq(true)++ post_response = Fabricate(:post, topic: topic_question, user: user_3)+ Assigner.new(post_response, user_3).assign(user_3)++ DiscourseSolved.accept_answer!(post_response, user_1)++ expect(topic_question.assignment.assigned_to_id).to eq(user_2.id)+ expect(post_response.assignment.assigned_to_id).to eq(user_3.id)+ DiscourseSolved.unaccept_answer!(post_response)++ expect(topic_question.assignment.assigned_to_id).to eq(user_2.id)+ expect(post_response.assignment.assigned_to_id).to eq(user_3.id)+ end++ describe "assigned topic reminder" do+ it "excludes solved topics when ignore_solved_topics_in_assigned_reminder is false" do+ other_topic = Fabricate(:topic, title: "Topic that should be there")+ post = Fabricate(:post, topic: other_topic, user: user)++ other_topic2 = Fabricate(:topic, title: "Topic that should be there2")+ post2 = Fabricate(:post, topic: other_topic2, user: user)++ Assigner.new(post.topic, user).assign(user)+ Assigner.new(post2.topic, user).assign(user)++ reminder = PendingAssignsReminder.new+ topics = reminder.send(:assigned_topics, user, order: :asc)+ expect(topics.to_a.length).to eq(2)++ DiscourseSolved.accept_answer!(post2, Discourse.system_user)+ topics = reminder.send(:assigned_topics, user, order: :asc)+ expect(topics.to_a.length).to eq(2)+ expect(topics).to include(other_topic2)++ SiteSetting.ignore_solved_topics_in_assigned_reminder = true+ topics = reminder.send(:assigned_topics, user, order: :asc)+ expect(topics.to_a.length).to eq(1)+ expect(topics).not_to include(other_topic2)+ expect(topics).to include(other_topic)+ end+ end++ describe "assigned count for user" do+ it "does not count solved topics using assignment_status_on_solve status" do+ SiteSetting.ignore_solved_topics_in_assigned_reminder = true++ other_topic = Fabricate(:topic, title: "Topic that should be there")+ post = Fabricate(:post, topic: other_topic, user: user)++ other_topic2 = Fabricate(:topic, title: "Topic that should be there2")+ post2 = Fabricate(:post, topic: other_topic2, user: user)++ Assigner.new(post.topic, user).assign(user)+ Assigner.new(post2.topic, user).assign(user)++ reminder = PendingAssignsReminder.new+ expect(reminder.send(:assigned_count_for, user)).to eq(2)++ DiscourseSolved.accept_answer!(post2, Discourse.system_user)+ expect(reminder.send(:assigned_count_for, user)).to eq(1)+ end+ end+ end+ end++ describe "#unaccept_answer!" do+ it "works even when the topic has been deleted" do+ user = Fabricate(:user, trust_level: 1)+ topic = Fabricate(:topic, user:)+ reply = Fabricate(:post, topic:, user:, post_number: 2)++ DiscourseSolved.accept_answer!(reply, user)++ topic.trash!(Discourse.system_user)+ reply.reload++ expect(reply.topic).to eq(nil)++ expect { DiscourseSolved.unaccept_answer!(reply) }.not_to raise_error+ end+ end++ describe "#accept_answer!" do+ it "marks the post as the accepted answer correctly" do+ user = Fabricate(:user, trust_level: 1)+ topic = Fabricate(:topic, user:)+ reply1 = Fabricate(:post, topic:, user:, post_number: 2)+ reply2 = Fabricate(:post, topic:, user:, post_number: 3)++ DiscourseSolved.accept_answer!(reply1, user)+ topic.reload++ expect(topic.solved.answer_post_id).to eq(reply1.id)+ expect(topic.solved.topic_timer).to eq(topic.public_topic_timer)++ DiscourseSolved.accept_answer!(reply2, user)+ topic.reload++ expect(topic.solved.answer_post_id).to eq(reply2.id)+ end+ end++ describe "user actions stream modifier" do+ it "correctly list solutions" do+ t1 = Fabricate(:topic)+ t2 = Fabricate(:topic)+ t3 = Fabricate(:topic)++ p1 = Fabricate(:post, topic: t1, user:)+ p2 = Fabricate(:post, topic: t2, user:)+ p3 = Fabricate(:post, topic: t3, user:)++ DiscourseSolved.accept_answer!(p1, Discourse.system_user)+ DiscourseSolved.accept_answer!(p2, Discourse.system_user)+ DiscourseSolved.accept_answer!(p3, Discourse.system_user)++ t1.trash!(Discourse.system_user)+ t2.convert_to_private_message(Discourse.system_user)++ expect(+ UserAction.stream(+ user_id: user.id,+ action_types: [::UserAction::SOLVED],+ guardian: user.guardian,+ ).map(&:post_id),+ ).to contain_exactly p3.id+ end+ end+enddiff --git a/plugins/discourse-solved/spec/lib/first_accepted_post_solution_validator_spec.rb b/plugins/discourse-solved/spec/lib/first_accepted_post_solution_validator_spec.rbnew file mode 100644index 00000000000..87bd0277045--- /dev/null+++ b/plugins/discourse-solved/spec/lib/first_accepted_post_solution_validator_spec.rb@@ -0,0 +1,63 @@+# frozen_string_literal: true++describe DiscourseSolved::FirstAcceptedPostSolutionValidator do+ fab!(:user_tl1) { Fabricate(:user, trust_level: TrustLevel[1], refresh_auto_groups: true) }++ context "when trust level is 'any'" do+ it "validates the post" do+ post = Fabricate(:post, user: user_tl1)+ DiscourseSolved.accept_answer!(post, Discourse.system_user)++ expect(described_class.check(post, trust_level: "any")).to eq(true)+ end++ it "invalidates if post user already has an accepted post" do+ previously_accepted_post = Fabricate(:post, user: user_tl1)+ DiscourseSolved.accept_answer!(previously_accepted_post, Discourse.system_user)++ newly_accepted_post = Fabricate(:post, user: user_tl1)+ DiscourseSolved.accept_answer!(newly_accepted_post, Discourse.system_user)++ expect(described_class.check(newly_accepted_post, trust_level: "any")).to eq(false)+ end+ end++ context "with specified trust level that is not 'any'" do+ # the automation indicates "users under this Trust Level will trigger this automation"++ it "invalidates if the user is higher than or equal to the specified trust level" do+ post = Fabricate(:post, user: user_tl1)+ DiscourseSolved.accept_answer!(post, Discourse.system_user)++ expect(described_class.check(post, trust_level: TrustLevel[0])).to eq(false)+ expect(described_class.check(post, trust_level: TrustLevel[1])).to eq(false)+ end++ it "validates the post when user is under specified trust level" do+ post = Fabricate(:post, user: user_tl1)+ DiscourseSolved.accept_answer!(post, Discourse.system_user)++ expect(described_class.check(post, trust_level: TrustLevel[2])).to eq(true)+ end+ end++ context "when user is system" do+ it "doesn’t validate the post" do+ post_1 = create_post(user: Discourse.system_user)+ expect(described_class.check(post_1, trust_level: "any")).to eq(false)+ end+ end++ context "when post is a PM" do+ it "doesn’t validate the post" do+ Group.refresh_automatic_groups!+ post_1 =+ create_post(+ user: user_tl1,+ target_usernames: [user_tl1.username],+ archetype: Archetype.private_message,+ )+ expect(described_class.check(post_1, trust_level: "any")).to eq(false)+ end+ end+enddiff --git a/plugins/discourse-solved/spec/lib/guardian_extensions_spec.rb b/plugins/discourse-solved/spec/lib/guardian_extensions_spec.rbnew file mode 100644index 00000000000..a3354b50155--- /dev/null+++ b/plugins/discourse-solved/spec/lib/guardian_extensions_spec.rb@@ -0,0 +1,73 @@+# frozen_string_literal: true++require "rails_helper"++describe DiscourseSolved::GuardianExtensions do+ fab!(:user) { Fabricate(:user, refresh_auto_groups: true) }+ fab!(:other_user) { Fabricate(:user, refresh_auto_groups: true) }+ fab!(:topic)+ fab!(:post) { Fabricate(:post, topic: topic, user: other_user) }++ let(:guardian) { user.guardian }++ before { SiteSetting.allow_solved_on_all_topics = true }++ describe ".can_accept_answer?" do+ it "returns false for anon users" do+ expect(Guardian.new.can_accept_answer?(topic, post)).to eq(false)+ end++ it "returns false if the topic is nil, the post is nil, or for whispers" do+ expect(guardian.can_accept_answer?(nil, post)).to eq(false)+ expect(guardian.can_accept_answer?(topic, nil)).to eq(false)++ post.update!(post_type: Post.types[:whisper])+ expect(guardian.can_accept_answer?(topic, post)).to eq(false)+ end++ it "returns false for private messages" do+ topic.update!(user:, category_id: nil, archetype: Archetype.private_message)+ expect(guardian.can_accept_answer?(topic, post)).to eq(false)+ end++ it "returns false if accepted answers are not allowed" do+ SiteSetting.allow_solved_on_all_topics = false+ expect(guardian.can_accept_answer?(topic, post)).to eq(false)+ end++ it "returns true for admins" do+ expect(+ Guardian.new(Fabricate(:admin, refresh_auto_groups: true)).can_accept_answer?(topic, post),+ ).to eq(true)+ end++ it "returns true if the user is in a group allowed to accept solutions" do+ SiteSetting.accept_all_solutions_allowed_groups = Group::AUTO_GROUPS[:trust_level_0]+ expect(guardian.can_accept_answer?(topic, post)).to eq(true)+ SiteSetting.accept_all_solutions_allowed_groups = Group::AUTO_GROUPS[:trust_level_4]+ expect(guardian.can_accept_answer?(topic, post)).to eq(false)+ end++ it "returns true if the user is a category group moderator for the topic" do+ group = Fabricate(:group)+ group.add(user)+ category = Fabricate(:category)+ Fabricate(:category_moderation_group, category:, group:)+ topic.update!(category: category)+ SiteSetting.enable_category_group_moderation = true+ expect(guardian.can_accept_answer?(topic, post)).to eq(true)+ end++ it "returns true if the user is the topic author for an open topic" do+ SiteSetting.accept_solutions_topic_author = true+ topic.update!(user: user)+ expect(guardian.can_accept_answer?(topic, post)).to eq(true)+ end++ it "returns false if the user is trust level 4 but the trust level 4 group is not allowd to accept solutions" do+ SiteSetting.accept_all_solutions_allowed_groups = Fabricate(:group).id+ user.update!(trust_level: TrustLevel[4])+ expect(guardian.can_accept_answer?(topic, post)).to eq(false)+ end+ end+enddiff --git a/plugins/discourse-solved/spec/models/copy_solved_topic_custom_field_spec.rb b/plugins/discourse-solved/spec/models/copy_solved_topic_custom_field_spec.rbnew file mode 100644index 00000000000..574f04960ed--- /dev/null+++ b/plugins/discourse-solved/spec/models/copy_solved_topic_custom_field_spec.rb@@ -0,0 +1,42 @@+# frozen_string_literal: true++require_relative "../../db/migrate/20250318024953_copy_solved_topic_custom_field_to_discourse_solved_solved_topics"++RSpec.describe CopySolvedTopicCustomFieldToDiscourseSolvedSolvedTopics, type: :migration do+ let(:migration) { described_class.new }++ describe "handling duplicates" do+ it "ensures only unique topic_id and answer_post_id are inserted" do+ topic = Fabricate(:topic)+ topic1 = Fabricate(:topic)+ post1 = Fabricate(:post, topic: topic)+ TopicCustomField.create!(+ topic_id: topic.id,+ name: "accepted_answer_post_id",+ value: post1.id.to_s,+ )+ # explicit duplicate+ TopicCustomField.create!(+ topic_id: topic1.id,+ name: "accepted_answer_post_id",+ value: post1.id.to_s,+ )++ second_topic = Fabricate(:topic)+ post2 = Fabricate(:post, topic: second_topic)+ TopicCustomField.create!(+ topic_id: second_topic.id,+ name: "accepted_answer_post_id",+ value: post2.id.to_s,+ )++ migration.up+ expected_count = DiscourseSolved::SolvedTopic.count++ expect(expected_count).to eq(2)++ expect(DiscourseSolved::SolvedTopic.where(topic_id: topic.id).count).to eq(1)+ expect(DiscourseSolved::SolvedTopic.where(answer_post_id: post1.id).count).to eq(1)+ end+ end+enddiff --git a/plugins/discourse-solved/spec/models/directory_item_spec.rb b/plugins/discourse-solved/spec/models/directory_item_spec.rbnew file mode 100644index 00000000000..7b72585f3b2--- /dev/null+++ b/plugins/discourse-solved/spec/models/directory_item_spec.rb@@ -0,0 +1,132 @@+# frozen_string_literal: true++describe DirectoryItem, type: :model do+ describe "Updating user directory with solutions count" do+ fab!(:user)+ fab!(:admin)++ fab!(:topic1) { Fabricate(:topic, archetype: "regular", user:) }+ fab!(:topic_post1) { Fabricate(:post, topic: topic1, user:, created_at: 10.years.ago) }++ fab!(:topic2) { Fabricate(:topic, archetype: "regular", user:) }+ fab!(:topic_post2) { Fabricate(:post, topic: topic2, user:, created_at: 10.years.ago) }++ fab!(:pm) { Fabricate(:topic, archetype: "private_message", user:, category_id: nil) }+ fab!(:pm_post) { Fabricate(:post, topic: pm, user:) }++ before { SiteSetting.solved_enabled = true }++ it "excludes PM post solutions from solutions" do+ DiscourseSolved.accept_answer!(topic_post1, admin)+ DiscourseSolved.accept_answer!(pm_post, admin)++ DirectoryItem.refresh!++ expect(+ DirectoryItem.find_by(+ user_id: user.id,+ period_type: DirectoryItem.period_types[:all],+ ).solutions,+ ).to eq(1)+ end++ it "excludes deleted posts from solutions" do+ DiscourseSolved.accept_answer!(topic_post1, admin)+ DiscourseSolved.accept_answer!(topic_post2, admin)+ topic_post2.update(deleted_at: Time.zone.now)++ DirectoryItem.refresh!++ expect(+ DirectoryItem.find_by(+ user_id: user.id,+ period_type: DirectoryItem.period_types[:all],+ ).solutions,+ ).to eq(1)+ end++ it "excludes deleted topics from solutions" do+ DiscourseSolved.accept_answer!(topic_post1, admin)+ DiscourseSolved.accept_answer!(topic_post2, admin)+ topic2.update(deleted_at: Time.zone.now)++ DirectoryItem.refresh!++ expect(+ DirectoryItem.find_by(+ user_id: user.id,+ period_type: DirectoryItem.period_types[:all],+ ).solutions,+ ).to eq(1)+ end++ it "excludes solutions for silenced users" do+ user.update(silenced_till: Time.zone.now + 1.day)++ DiscourseSolved.accept_answer!(topic_post1, admin)++ DirectoryItem.refresh!++ expect(+ DirectoryItem.find_by(+ user_id: user.id,+ period_type: DirectoryItem.period_types[:all],+ )&.solutions,+ ).to eq(nil)+ end++ it "excludes solutions for suspended users" do+ DiscourseSolved.accept_answer!(topic_post1, admin)+ user.update(suspended_till: Time.zone.now + 1.day)++ DirectoryItem.refresh!++ expect(+ DirectoryItem.find_by(+ user_id: user.id,+ period_type: DirectoryItem.period_types[:all],+ )&.solutions,+ ).to eq(0)+ end++ it "includes solutions for active users" do+ DiscourseSolved.accept_answer!(topic_post1, admin)++ DirectoryItem.refresh!++ expect(+ DirectoryItem.find_by(+ user_id: user.id,+ period_type: DirectoryItem.period_types[:daily],+ ).solutions,+ ).to eq(1)+ end++ context "when refreshing across dates" do+ it "updates the user's solution count from 1 to 0" do+ freeze_time 40.days.ago+ DiscourseSolved.accept_answer!(topic_post1, Discourse.system_user)++ DirectoryItem.refresh!++ expect(+ DirectoryItem.find_by(+ user_id: user.id,+ period_type: DirectoryItem.period_types[:monthly],+ ).solutions,+ ).to eq(1)++ unfreeze_time++ DirectoryItem.refresh!++ expect(+ DirectoryItem.find_by(+ user_id: user.id,+ period_type: DirectoryItem.period_types[:monthly],+ ).solutions,+ ).to eq(0)+ end+ end+ end+enddiff --git a/plugins/discourse-solved/spec/models/remove_duplicates_from_discourse_solved_solved_topics_spec.rb b/plugins/discourse-solved/spec/models/remove_duplicates_from_discourse_solved_solved_topics_spec.rbnew file mode 100644index 00000000000..3df83b6ac5a--- /dev/null+++ b/plugins/discourse-solved/spec/models/remove_duplicates_from_discourse_solved_solved_topics_spec.rb@@ -0,0 +1,52 @@+# frozen_string_literal: true++require_relative "../../db/migrate/20250318024954_remove_duplicates_from_discourse_solved_solved_topics"++RSpec.describe RemoveDuplicatesFromDiscourseSolvedSolvedTopics, type: :migration do+ let(:migration) { described_class.new }++ before do+ # temp drop unique constraints to allow testing duplicate entries+ ActiveRecord::Base.connection.execute(+ "DROP INDEX IF EXISTS index_discourse_solved_solved_topics_on_topic_id;",+ )+ ActiveRecord::Base.connection.execute(+ "DROP INDEX IF EXISTS index_discourse_solved_solved_topics_on_answer_post_id;",+ )+ end++ after do+ DiscourseSolved::SolvedTopic.delete_all++ # reapply unique indexes+ ActiveRecord::Base.connection.execute(+ "CREATE UNIQUE INDEX index_discourse_solved_solved_topics_on_topic_id ON discourse_solved_solved_topics (topic_id);",+ )+ ActiveRecord::Base.connection.execute(+ "CREATE UNIQUE INDEX index_discourse_solved_solved_topics_on_answer_post_id ON discourse_solved_solved_topics (answer_post_id);",+ )+ end++ describe "removal of duplicate answer_post_ids" do+ it "keeps only the earliest record for each answer_post_id" do+ topic1 = Fabricate(:topic)+ post1 = Fabricate(:post, topic: topic1)+ topic2 = Fabricate(:topic)+ post2 = Fabricate(:post, topic: topic2)++ earlier = Fabricate(:solved_topic, topic: topic1, answer_post: post1, created_at: 2.days.ago)+ Fabricate(:solved_topic, topic: topic1, answer_post: post1, created_at: 1.day.ago)+ Fabricate(:solved_topic, topic: topic1, answer_post: post1, created_at: Date.today)+ another = Fabricate(:solved_topic, topic: topic2, answer_post: post2, created_at: Date.today)++ expect(DiscourseSolved::SolvedTopic.count).to eq(4)+ migration.up++ expect(DiscourseSolved::SolvedTopic.count).to eq(2)+ expect(DiscourseSolved::SolvedTopic.pluck(:id, :answer_post_id)).to contain_exactly(+ [earlier.id, post1.id],+ [another.id, post2.id],+ )+ end+ end+enddiff --git a/plugins/discourse-solved/spec/models/site_spec.rb b/plugins/discourse-solved/spec/models/site_spec.rbnew file mode 100644index 00000000000..5b58c87ebf3--- /dev/null+++ b/plugins/discourse-solved/spec/models/site_spec.rb@@ -0,0 +1,20 @@+# frozen_string_literal: true++require "rails_helper"+require_dependency "site"++describe Site do+ let(:category) { Fabricate(:category) }+ let(:guardian) { Guardian.new }++ before { SiteSetting.show_filter_by_solved_status = true }++ it "includes `enable_accepted_answers` custom field for categories" do+ category.custom_fields["enable_accepted_answers"] = true+ category.save_custom_fields++ json = Site.json_for(guardian)++ expect(json).to include("enable_accepted_answers")+ end+enddiff --git a/plugins/discourse-solved/spec/models/user_summary_spec.rb b/plugins/discourse-solved/spec/models/user_summary_spec.rbnew file mode 100644index 00000000000..5ba79181a3d--- /dev/null+++ b/plugins/discourse-solved/spec/models/user_summary_spec.rb@@ -0,0 +1,53 @@+# frozen_string_literal: true++describe UserSummary do+ fab!(:admin)++ describe "solved_count" do+ it "indicates the number of times a user's post is a topic's solution" do+ topic = Fabricate(:topic)+ Fabricate(:post, topic:)+ user = Fabricate(:user)+ post = Fabricate(:post, topic:, user:)++ user_summary = UserSummary.new(user, Guardian.new)+ admin_summary = UserSummary.new(admin, Guardian.new)++ expect(user_summary.solved_count).to eq(0)+ expect(admin_summary.solved_count).to eq(0)++ DiscourseSolved.accept_answer!(post, admin)++ expect(user_summary.solved_count).to eq(1)+ expect(admin_summary.solved_count).to eq(0)+ end++ it "excludes deleted topics" do+ topic = Fabricate(:topic)+ Fabricate(:post, topic:)+ user = Fabricate(:user)+ post = Fabricate(:post, topic:, user:)++ user_summary = UserSummary.new(user, Guardian.new)+ DiscourseSolved.accept_answer!(post, admin)++ topic.update!(deleted_at: Time.zone.now)++ expect(user_summary.solved_count).to eq(0)+ end++ it "excludes deleted posts" do+ topic = Fabricate(:topic)+ Fabricate(:post, topic:)+ user = Fabricate(:user)+ post = Fabricate(:post, topic:, user:)++ user_summary = UserSummary.new(user, Guardian.new)+ DiscourseSolved.accept_answer!(post, admin)++ post.update!(deleted_at: Time.zone.now)++ expect(user_summary.solved_count).to eq(0)+ end+ end+enddiff --git a/plugins/discourse-solved/spec/requests/answer_controller_spec.rb b/plugins/discourse-solved/spec/requests/answer_controller_spec.rbnew file mode 100644index 00000000000..4861080f499--- /dev/null+++ b/plugins/discourse-solved/spec/requests/answer_controller_spec.rb@@ -0,0 +1,88 @@+# frozen_string_literal: true++require "rails_helper"++describe DiscourseSolved::AnswerController do+ fab!(:user)+ fab!(:staff_user) { Fabricate(:admin) }+ fab!(:category)+ fab!(:topic) { Fabricate(:topic, category: category) }+ fab!(:p) { Fabricate(:post, topic: topic) }+ fab!(:solution_post) { Fabricate(:post, topic: topic) }++ before do+ SiteSetting.solved_enabled = true+ SiteSetting.allow_solved_on_all_topics = true+ category.custom_fields[DiscourseSolved::ENABLE_ACCEPTED_ANSWERS_CUSTOM_FIELD] = "true"+ category.save_custom_fields++ # Give permission to accept solutions+ user.update!(trust_level: 1)++ # Make user the topic creator so they can accept answers+ topic.update!(user_id: user.id)+ end++ describe "#accept" do+ context "with default rate limiting" do+ it "applies rate limits to regular users" do+ sign_in(user)++ # Should be rate limited+ RateLimiter.any_instance.expects(:performed!).raises(RateLimiter::LimitExceeded.new(60))+ post "/solution/accept.json", params: { id: solution_post.id }+ expect(response.status).to eq(429)+ end++ it "does not apply rate limits to staff" do+ sign_in(staff_user)++ post "/solution/accept.json", params: { id: solution_post.id }+ expect(response.status).to eq(200)+ end+ end++ context "with plugin modifier" do+ it "allows plugins to bypass rate limiting" do+ sign_in(user)+ # Create a plugin instance and register a modifier+ plugin_instance = Plugin::Instance.new+ modifier_block = Proc.new { |_, _| false }+ plugin_instance.register_modifier(+ :solved_answers_controller_run_rate_limiter,+ &modifier_block+ )++ post "/solution/accept.json", params: { id: solution_post.id }+ expect(response.status).to eq(200)+ post "/solution/accept.json", params: { id: solution_post.id }+ expect(response.status).to eq(200)++ # Unregister the modifier using DiscoursePluginRegistry+ DiscoursePluginRegistry.unregister_modifier(+ plugin_instance,+ :solved_answers_controller_run_rate_limiter,+ &modifier_block+ )+ end+ end+ end+ describe "#unaccept" do+ before do+ # Setup an accepted solution+ sign_in(user)+ post "/solution/accept.json", params: { id: solution_post.id }+ expect(response.status).to eq(200)+ sign_out+ end++ it "applies rate limits to regular users" do+ sign_in(user)++ # Should be rate limited+ RateLimiter.any_instance.expects(:performed!).raises(RateLimiter::LimitExceeded.new(60))+ post "/solution/unaccept.json", params: { id: solution_post.id }+ expect(response.status).to eq(429)+ end+ end+enddiff --git a/plugins/discourse-solved/spec/requests/list_controller_spec.rb b/plugins/discourse-solved/spec/requests/list_controller_spec.rbnew file mode 100644index 00000000000..386c40a27b1--- /dev/null+++ b/plugins/discourse-solved/spec/requests/list_controller_spec.rb@@ -0,0 +1,23 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe ListController do+ fab!(:p1) { Fabricate(:post) }+ fab!(:p2) { Fabricate(:post, topic: p1.topic) }+ fab!(:p3) { Fabricate(:post, topic: p1.topic) }++ before { SiteSetting.allow_solved_on_all_topics = true }++ it "shows the user who posted the accepted answer second" do+ TopicFeaturedUsers.ensure_consistency!+ DiscourseSolved.accept_answer!(p3, p1.user, topic: p1.topic)++ get "/latest.json"+ posters = response.parsed_body["topic_list"]["topics"].first["posters"]+ expect(posters[0]["user_id"]).to eq(p1.user_id)+ expect(posters[1]["user_id"]).to eq(p3.user_id)+ expect(posters[1]["description"]).to include("Accepted Answer")+ expect(posters[2]["user_id"]).to eq(p2.user_id)+ end+enddiff --git a/plugins/discourse-solved/spec/requests/solved_topics_controller_spec.rb b/plugins/discourse-solved/spec/requests/solved_topics_controller_spec.rbnew file mode 100644index 00000000000..2cd1ce2de17--- /dev/null+++ b/plugins/discourse-solved/spec/requests/solved_topics_controller_spec.rb@@ -0,0 +1,117 @@+# frozen_string_literal: true++describe DiscourseSolved::SolvedTopicsController do+ fab!(:user)+ fab!(:another_user) { Fabricate(:user) }+ fab!(:admin)+ fab!(:topic)+ fab!(:post) { Fabricate(:post, topic:) }+ fab!(:answer_post) { Fabricate(:post, topic:, user:) }+ fab!(:solved_topic) { Fabricate(:solved_topic, topic:, answer_post:) }++ describe "#by_user" do+ context "when accessing with username" do+ it "returns solved posts for the specified user" do+ sign_in(admin)++ get "/solution/by_user.json", params: { username: user.username }++ expect(response.status).to eq(200)+ result = response.parsed_body+ expect(result["user_solved_posts"]).to be_present+ expect(result["user_solved_posts"].length).to eq(1)+ expect(result["user_solved_posts"][0]["post_id"]).to eq(answer_post.id)+ end++ it "returns 404 for a non-existent user" do+ sign_in(admin)++ get "/solution/by_user.json", params: { username: "non-existent-user" }++ expect(response.status).to eq(404)+ end++ it "correctly handles the offset parameter" do+ sign_in(admin)++ get "/solution/by_user.json", params: { username: user.username, offset: 1 }++ expect(response.status).to eq(200)+ result = response.parsed_body+ expect(result["user_solved_posts"]).to be_empty+ end++ it "correctly handles the limit parameter" do+ Fabricate(:solved_topic, answer_post: Fabricate(:post, user:))++ sign_in(admin)++ get "/solution/by_user.json", params: { username: user.username, limit: 1 }++ expect(response.status).to eq(200)+ result = response.parsed_body+ expect(result["user_solved_posts"].length).to eq(1)+ end+ end++ context "when accessing without username" do+ it "returns 400 for the current user" do+ sign_in(user)++ get "/solution/by_user.json"++ expect(response.status).to eq(400)+ end++ it "returns 400 if not logged in" do+ get "/solution/by_user.json"++ expect(response.status).to eq(400)+ end+ end++ context "with visibility restrictions" do+ context "with private category solved topic" do+ fab!(:group) { Fabricate(:group).tap { |g| g.add(user) } }+ fab!(:private_category) { Fabricate(:private_category, group:) }+ fab!(:private_topic) { Fabricate(:topic, category: private_category) }+ fab!(:private_post) { Fabricate(:post, topic: private_topic) }+ fab!(:private_answer_post) { Fabricate(:post, topic: private_topic, user: user) }+ fab!(:private_solved_topic) do+ Fabricate(:solved_topic, topic: private_topic, answer_post: private_answer_post)+ end++ it "respects category permissions" do+ sign_in(another_user)++ get "/solution/by_user.json", params: { username: user.username }++ expect(response.status).to eq(200)+ result = response.parsed_body+ # admin sees both solutions+ expect(result["user_solved_posts"].length).to eq(1)++ sign_in(user)++ get "/solution/by_user.json", params: { username: user.username }++ expect(response.status).to eq(200)+ result = response.parsed_body+ expect(result["user_solved_posts"].length).to eq(2)+ end+ end++ it "does not return PMs" do+ topic.update(archetype: Archetype.private_message, category: nil)++ sign_in(user)++ get "/solution/by_user.json", params: { username: user.username }++ expect(response.status).to eq(200)+ result = response.parsed_body+ expect(result["user_solved_posts"]).to be_empty+ end+ end+ end+enddiff --git a/plugins/discourse-solved/spec/requests/topics_controller_spec.rb b/plugins/discourse-solved/spec/requests/topics_controller_spec.rbnew file mode 100644index 00000000000..e5302df9099--- /dev/null+++ b/plugins/discourse-solved/spec/requests/topics_controller_spec.rb@@ -0,0 +1,127 @@+# frozen_string_literal: true++require "rails_helper"++RSpec.describe TopicsController do+ let(:p1) { Fabricate(:post, like_count: 1) }+ let(:topic) { p1.topic }+ let(:p2) { Fabricate(:post, like_count: 2, topic: topic, user: Fabricate(:user)) }++ def schema_json(answerCount)+ if answerCount > 0+ answer_json =+ ',"acceptedAnswer":{"@type":"Answer","text":"%{answer_text}","upvoteCount":%{answer_likes},"datePublished":"%{answered_at}","url":"%{answer_url}","author":{"@type":"Person","name":"%{username2}","url":"%{user2_url}"}}' %+ {+ answer_text: p2.excerpt,+ answer_likes: p2.like_count,+ answered_at: p2.created_at.as_json,+ answer_url: p2.full_url,+ username2: p2.user&.username,+ user2_url: p2.user&.full_url,+ }+ else+ answer_json = ""+ end++ '<script type="application/ld+json">{"@context":"http://schema.org","@type":"QAPage","name":"%{title}","mainEntity":{"@type":"Question","name":"%{title}","text":"%{question_text}","upvoteCount":%{question_likes},"answerCount":%{answerCount},"datePublished":"%{created_at}","author":{"@type":"Person","name":"%{username1}","url":"%{user1_url}"}%{answer_json}}}</script>' %+ # rubocop:enable Layout/LineLength+ {+ title: topic.title,+ question_text: p1.excerpt,+ question_likes: p1.like_count,+ answerCount: answerCount,+ created_at: topic.created_at.as_json,+ username1: topic.user&.username,+ user1_url: topic.user&.full_url,+ answer_json: answer_json,+ }+ end++ context "with solved enabled on every topic" do+ before { SiteSetting.allow_solved_on_all_topics = true }++ it "should include correct schema information in header" do+ get "/t/#{topic.slug}/#{topic.id}"++ expect(response.body).to include(schema_json(0))++ Fabricate(:solved_topic, topic: topic, answer_post: p2)++ get "/t/#{topic.slug}/#{topic.id}"++ expect(response.body).to include(schema_json(1))+ end++ it "should include quoted content in schema information" do+ post = topic.first_post+ post.raw = "[quote]This is a quoted text.[/quote]"+ post.save!+ post.rebake!++ get "/t/#{topic.slug}/#{topic.id}"++ expect(response.body).to include('"text":"This is a quoted text."')+ end++ it "should include user name in output with the corresponding site setting" do+ SiteSetting.display_name_on_posts = true+ SiteSetting.show_who_marked_solved = true+ accepter = Fabricate(:user)+ Fabricate(:solved_topic, topic: topic, answer_post: p2, accepter:)++ get "/t/#{topic.slug}/#{topic.id}.json"++ expect(response.parsed_body["accepted_answer"]["name"]).to eq(p2.user.name)+ expect(response.parsed_body["accepted_answer"]["username"]).to eq(p2.user.username)+ expect(response.parsed_body["accepted_answer"]["accepter_name"]).to eq(accepter.name)+ expect(response.parsed_body["accepted_answer"]["accepter_username"]).to eq(accepter.username)++ SiteSetting.show_who_marked_solved = false+ get "/t/#{topic.slug}/#{topic.id}.json"+ expect(response.parsed_body["accepted_answer"]["accepter_name"]).to eq(nil)+ expect(response.parsed_body["accepted_answer"]["accepter_username"]).to eq(nil)++ # enable_names is default ON, this ensures disabling it also disables names here+ SiteSetting.enable_names = false+ get "/t/#{topic.slug}/#{topic.id}.json"+ expect(response.parsed_body["accepted_answer"]["name"]).to eq(nil)+ expect(response.parsed_body["accepted_answer"]["accepter_name"]).to eq(nil)+ end++ it "should not include user name when site setting is disabled" do+ SiteSetting.display_name_on_posts = false+ Fabricate(:solved_topic, topic: topic, answer_post: p2)++ get "/t/#{topic.slug}/#{topic.id}.json"++ expect(response.parsed_body["accepted_answer"]["name"]).to eq(nil)+ expect(response.parsed_body["accepted_answer"]["username"]).to eq(p2.user.username)+ end+ end++ context "with solved enabled for topics with specific tags" do+ let(:tag) { Fabricate(:tag) }++ before { SiteSetting.enable_solved_tags = tag.name }++ it "includes the correct schema information" do+ DiscourseTagging.add_or_create_tags_by_name(topic, [tag.name])+ Fabricate(:solved_topic, topic: topic, answer_post: p2)++ get "/t/#{topic.slug}/#{topic.id}"++ expect(response.body).to include(schema_json(1))+ end++ it "doesn't include solved schema information when the topic has a different tag" do+ another_tag = Fabricate(:tag)++ DiscourseTagging.add_or_create_tags_by_name(topic, [another_tag.name])+ Fabricate(:solved_topic, topic: topic, answer_post: p2)++ get "/t/#{topic.slug}/#{topic.id}"++ expect(response.body).not_to include(schema_json(1))+ end+ end+enddiff --git a/plugins/discourse-solved/spec/serializers/topic_answer_mixin_spec.rb b/plugins/discourse-solved/spec/serializers/topic_answer_mixin_spec.rbnew file mode 100644index 00000000000..489e24a5b54--- /dev/null+++ b/plugins/discourse-solved/spec/serializers/topic_answer_mixin_spec.rb@@ -0,0 +1,23 @@+# frozen_string_literal: true++require "rails_helper"++describe DiscourseSolved::TopicAnswerMixin do+ let(:topic) { Fabricate(:topic) }+ let(:post) { Fabricate(:post, topic: topic) }+ let(:guardian) { Guardian.new }++ before { Fabricate(:solved_topic, topic: topic, answer_post: post) }++ it "should have true for `has_accepted_answer` field in each serializer" do+ [+ TopicListItemSerializer,+ SearchTopicListItemSerializer,+ SuggestedTopicSerializer,+ UserSummarySerializer::TopicSerializer,+ ].each do |serializer|+ json = serializer.new(topic, scope: guardian, root: false).as_json+ expect(json[:has_accepted_answer]).to be_truthy+ end+ end+enddiff --git a/plugins/discourse-solved/spec/serializers/topic_view_serializer_spec.rb b/plugins/discourse-solved/spec/serializers/topic_view_serializer_spec.rbnew file mode 100644index 00000000000..b3332145442--- /dev/null+++ b/plugins/discourse-solved/spec/serializers/topic_view_serializer_spec.rb@@ -0,0 +1,35 @@+# frozen_string_literal: true++describe TopicViewSerializer do+ fab!(:topic)+ fab!(:post1) { Fabricate(:post, topic:) }+ fab!(:post2) { Fabricate(:post, topic:) }+ fab!(:user)++ before { SiteSetting.solved_enabled = true }++ describe "#accepted_answer" do+ it "returns the accepted answer post when the topic has an accepted answer" do+ Fabricate(:solved_topic, topic: topic, answer_post: post2)+ serializer = TopicViewSerializer.new(TopicView.new(topic), scope: Guardian.new(user))+ serialized = serializer.as_json+ expect(serialized[:topic_view][:accepted_answer][:post_number]).to eq(post2.post_number)+ end++ it "returns nil when the topic does not have an accepted answer" do+ unsolved_topic = Fabricate(:topic)+ serializer = TopicViewSerializer.new(TopicView.new(unsolved_topic), scope: Guardian.new(user))+ serialized = serializer.as_json+ expect(serialized[:accepted_answer]).to be_nil+ end++ it "returns nil when the accepted answer post does not exist" do+ weird_topic = Fabricate(:solved_topic)+ weird_topic.update!(answer_post_id: 19_238_319)+ serializer =+ TopicViewSerializer.new(TopicView.new(weird_topic.topic), scope: Guardian.new(user))+ serialized = serializer.as_json+ expect(serialized[:accepted_answer]).to be_nil+ end+ end+enddiff --git a/plugins/discourse-solved/spec/serializers/user_card_serializer_spec.rb b/plugins/discourse-solved/spec/serializers/user_card_serializer_spec.rbnew file mode 100644index 00000000000..98c38c04032--- /dev/null+++ b/plugins/discourse-solved/spec/serializers/user_card_serializer_spec.rb@@ -0,0 +1,33 @@+# frozen_string_literal: true++describe UserCardSerializer do+ let(:user) { Fabricate(:user) }+ let(:serializer) { described_class.new(user, scope: Guardian.new, root: false) }+ let(:json) { serializer.as_json }++ it "accepted_answers serializes number of accepted answers" do+ expect(serializer.as_json[:accepted_answers]).to eq(0)++ post1 = Fabricate(:post, user: user)+ DiscourseSolved.accept_answer!(post1, Discourse.system_user)+ post1.topic.reload+ expect(serializer.as_json[:accepted_answers]).to eq(1)++ post2 = Fabricate(:post, user: user)+ DiscourseSolved.accept_answer!(post2, Discourse.system_user)+ expect(serializer.as_json[:accepted_answers]).to eq(2)++ post3 = Fabricate(:post, user: user)+ DiscourseSolved.accept_answer!(post3, Discourse.system_user)+ expect(serializer.as_json[:accepted_answers]).to eq(3)++ DiscourseSolved.unaccept_answer!(post1)+ expect(serializer.as_json[:accepted_answers]).to eq(2)++ post2.topic.trash!(Discourse.system_user)+ expect(serializer.as_json[:accepted_answers]).to eq(1)++ post3.topic.convert_to_private_message(Discourse.system_user)+ expect(serializer.as_json[:accepted_answers]).to eq(0)+ end+enddiff --git a/plugins/discourse-solved/spec/system/core_features_spec.rb b/plugins/discourse-solved/spec/system/core_features_spec.rbnew file mode 100644index 00000000000..db86db283bd--- /dev/null+++ b/plugins/discourse-solved/spec/system/core_features_spec.rb@@ -0,0 +1,7 @@+# frozen_string_literal: true++RSpec.describe "Core features", type: :system do+ before { enable_current_plugin }++ it_behaves_like "having working core features"+enddiff --git a/plugins/discourse-solved/spec/system/solved_spec.rb b/plugins/discourse-solved/spec/system/solved_spec.rbnew file mode 100644index 00000000000..c1cf5269dce--- /dev/null+++ b/plugins/discourse-solved/spec/system/solved_spec.rb@@ -0,0 +1,51 @@+# frozen_string_literal: true++describe "Solved", type: :system do+ fab!(:admin)+ fab!(:solver) { Fabricate(:user) }+ fab!(:accepter) { Fabricate(:user) }+ fab!(:topic) { Fabricate(:post, user: admin).topic }+ fab!(:solver_post) { Fabricate(:post, topic:, user: solver, cooked: "The answer is 42") }+ let(:topic_page) { PageObjects::Pages::Topic.new }++ before do+ SiteSetting.solved_enabled = true+ SiteSetting.allow_solved_on_all_topics = true+ SiteSetting.accept_all_solutions_allowed_groups = Group::AUTO_GROUPS[:everyone]+ SiteSetting.show_who_marked_solved = true+ end++ %w[enabled disabled].each do |value|+ before { SiteSetting.glimmer_post_stream_mode = value }++ context "when glimmer_post_stream_mode=#{value}" do+ it "accepts post as solution and shows in OP" do+ sign_in(accepter)++ topic_page.visit_topic(topic, post_number: 2)++ expect(topic_page).to have_css(".post-action-menu__solved-unaccepted")++ find(".post-action-menu__solved-unaccepted").click++ expect(topic_page).to have_css(".post-action-menu__solved-accepted")+ expect(topic_page.find(".title .accepted-answer--solver")).to have_content(+ "Solved by #{solver.username}",+ )+ expect(topic_page.find(".title .accepted-answer--accepter")).to have_content(+ "Marked as solved by #{accepter.username}",+ )+ expect(topic_page.find("blockquote")).to have_content("The answer is 42")+ end+ end+ end++ it "shows the solved post in user activity at /my/activity/solved" do+ Fabricate(:solved_topic, topic:, answer_post: solver_post, accepter:)++ sign_in(solver)+ visit "/my/activity/solved"++ expect(page.find(".post-list")).to have_content(solver_post.cooked)+ end+enddiff --git a/plugins/discourse-solved/test/javascripts/acceptance/discourse-solved-post-menu-test.js b/plugins/discourse-solved/test/javascripts/acceptance/discourse-solved-post-menu-test.jsnew file mode 100644index 00000000000..8b3c24cf8ff--- /dev/null+++ b/plugins/discourse-solved/test/javascripts/acceptance/discourse-solved-post-menu-test.js@@ -0,0 +1,49 @@+import { click, visit } from "@ember/test-helpers";+import { test } from "qunit";+import { acceptance } from "discourse/tests/helpers/qunit-helpers";+import { i18n } from "discourse-i18n";+import { postStreamWithAcceptedAnswerExcerpt } from "../helpers/discourse-solved-helpers";++acceptance(+ "Discourse Solved | Post Menu | Accept and Unaccept",+ function (needs) {+ needs.user({ admin: true });++ needs.settings({+ solved_enabled: true,+ allow_solved_on_all_topics: true,+ });++ needs.pretender((server, helper) => {+ server.post("/solution/accept", () => helper.response({ success: "OK" }));+ server.post("/solution/unaccept", () =>+ helper.response({ success: "OK" })+ );++ server.get("/t/12.json", () =>+ helper.response(postStreamWithAcceptedAnswerExcerpt(null))+ );+ });++ test("accepting and unaccepting a post works", async function (assert) {+ await visit("/t/without-excerpt/12");++ assert+ .dom("#post_2 .post-action-menu__solved-accepted")+ .exists("Unaccept button is visible")+ .hasText(i18n("solved.solution"), "Unaccept button has correct text");++ await click("#post_2 .post-action-menu__solved-accepted");++ assert+ .dom("#post_2 .post-action-menu__solved-unaccepted")+ .exists("Accept button is visible");++ await click("#post_2 .post-action-menu__solved-unaccepted");++ assert+ .dom("#post_2 .post-action-menu__solved-accepted")+ .exists("Unaccept button is visible again");+ });+ }+);diff --git a/plugins/discourse-solved/test/javascripts/acceptance/discourse-solved-test.js b/plugins/discourse-solved/test/javascripts/acceptance/discourse-solved-test.jsnew file mode 100644index 00000000000..48401c482e8--- /dev/null+++ b/plugins/discourse-solved/test/javascripts/acceptance/discourse-solved-test.js@@ -0,0 +1,53 @@+import { click, fillIn, visit } from "@ember/test-helpers";+import { test } from "qunit";+import { cloneJSON } from "discourse/lib/object";+import pretender, {+ fixturesByUrl,+ response,+} from "discourse/tests/helpers/create-pretender";+import { acceptance } from "discourse/tests/helpers/qunit-helpers";+import { postStreamWithAcceptedAnswerExcerpt } from "../helpers/discourse-solved-helpers";++["enabled", "disabled"].forEach((postStreamMode) => {+ acceptance(+ `Discourse Solved Plugin (glimmer_post_stream_mode = ${postStreamMode})`,+ function (needs) {+ needs.settings({+ glimmer_post_stream_mode: postStreamMode,+ });+ needs.user();++ test("A topic with an accepted answer shows an excerpt of the answer, if provided", async function (assert) {+ pretender.get("/t/11.json", () =>+ response(postStreamWithAcceptedAnswerExcerpt("this is an excerpt"))+ );++ pretender.get("/t/12.json", () =>+ response(postStreamWithAcceptedAnswerExcerpt(null))+ );++ await visit("/t/with-excerpt/11");+ assert.dom(".quote blockquote").hasText("this is an excerpt");++ await visit("/t/without-excerpt/12");+ assert.dom(".quote blockquote").doesNotExist();+ assert.dom(".quote .title.title-only").exists();+ });++ test("Full page search displays solved status", async function (assert) {+ pretender.get("/search", () => {+ const fixtures = cloneJSON(fixturesByUrl["/search.json"]);+ fixtures.topics[0].has_accepted_answer = true;+ return response(fixtures);+ });++ await visit("/search");+ await fillIn(".search-query", "discourse");+ await click(".search-cta");++ assert.dom(".fps-topic").exists({ count: 1 }, "has one post");+ assert.dom(".topic-statuses .solved").exists("shows the right icon");+ });+ }+ );+});diff --git a/plugins/discourse-solved/test/javascripts/acceptance/user-activity-solved-test.js b/plugins/discourse-solved/test/javascripts/acceptance/user-activity-solved-test.jsnew file mode 100644index 00000000000..7a281672ef5--- /dev/null+++ b/plugins/discourse-solved/test/javascripts/acceptance/user-activity-solved-test.js@@ -0,0 +1,39 @@+import { visit } from "@ember/test-helpers";+import { test } from "qunit";+import { acceptance } from "discourse/tests/helpers/qunit-helpers";+import { i18n } from "discourse-i18n";++acceptance(+ "Discourse Solved Plugin | activity/solved | empty state",+ function (needs) {+ needs.user();++ needs.pretender((server, helper) => {+ server.get("/solution/by_user.json", () =>+ helper.response({ user_solved_posts: [] })+ );+ });++ test("When looking at own activity", async function (assert) {+ await visit(`/u/eviltrout/activity/solved`);++ assert+ .dom(".empty-state .empty-state__title")+ .hasText(i18n("solved.no_solved_topics_title"));+ assert+ .dom(".empty-state .empty-state__body")+ .hasText(i18n("solved.no_solved_topics_body"));+ });++ test("When looking at another user's activity", async function (assert) {+ await visit(`/u/charlie/activity/solved`);++ assert.dom(".empty-state .empty-state__title").hasText(+ i18n("solved.no_solved_topics_title_others", {+ username: "charlie",+ })+ );+ assert.dom(".empty-state .empty-state__body").doesNotExist();+ });+ }+);diff --git a/plugins/discourse-solved/test/javascripts/helpers/discourse-solved-helpers.js b/plugins/discourse-solved/test/javascripts/helpers/discourse-solved-helpers.jsnew file mode 100644index 00000000000..6060b748653--- /dev/null+++ b/plugins/discourse-solved/test/javascripts/helpers/discourse-solved-helpers.js@@ -0,0 +1,210 @@+export const postStreamWithAcceptedAnswerExcerpt = (excerpt) => {+ return {+ post_stream: {+ posts: [+ {+ id: 21,+ name: null,+ username: "kzh",+ avatar_template: "/letter_avatar_proxy/v2/letter/k/ac91a4/{size}.png",+ created_at: "2017-08-08T20:11:32.542Z",+ cooked: "<p>How do I declare a variable in ruby?</p>",+ post_number: 1,+ post_type: 1,+ updated_at: "2017-08-08T21:03:30.521Z",+ reply_count: 0,+ reply_to_post_number: null,+ quote_count: 0,+ avg_time: null,+ incoming_link_count: 0,+ reads: 1,+ score: 0,+ yours: true,+ topic_id: 23,+ topic_slug: "test-solved",+ display_username: null,+ primary_group_name: null,+ primary_group_flair_url: null,+ primary_group_flair_bg_color: null,+ primary_group_flair_color: null,+ version: 2,+ can_edit: true,+ can_delete: false,+ can_recover: null,+ can_wiki: true,+ read: true,+ user_title: null,+ actions_summary: [+ { id: 3, can_act: true },+ { id: 4, can_act: true },+ { id: 5, hidden: true, can_act: true },+ { id: 7, can_act: true },+ { id: 8, can_act: true },+ ],+ moderator: false,+ admin: true,+ staff: true,+ user_id: 1,+ hidden: false,+ hidden_reason_id: null,+ trust_level: 4,+ deleted_at: null,+ user_deleted: false,+ edit_reason: null,+ can_view_edit_history: true,+ wiki: false,+ can_accept_answer: false,+ can_unaccept_answer: false,+ accepted_answer: false,+ },+ {+ id: 22,+ name: null,+ username: "kzh",+ avatar_template: "/letter_avatar_proxy/v2/letter/k/ac91a4/{size}.png",+ created_at: "2017-08-08T20:12:04.657Z",+ cooked:+ "<p>this is a long answer that potentially solves the question</p>",+ post_number: 2,+ post_type: 1,+ updated_at: "2017-08-08T21:20:24.417Z",+ reply_count: 0,+ reply_to_post_number: null,+ quote_count: 0,+ avg_time: null,+ incoming_link_count: 0,+ reads: 1,+ score: 0,+ yours: true,+ topic_id: 23,+ topic_slug: "test-solved",+ display_username: null,+ primary_group_name: null,+ primary_group_flair_url: null,+ primary_group_flair_bg_color: null,+ primary_group_flair_color: null,+ version: 2,+ can_edit: true,+ can_delete: true,+ can_recover: null,+ can_wiki: true,+ read: true,+ user_title: null,+ actions_summary: [+ { id: 3, can_act: true },+ { id: 4, can_act: true },+ { id: 5, hidden: true, can_act: true },+ { id: 7, can_act: true },+ { id: 8, can_act: true },+ ],+ moderator: false,+ admin: true,+ staff: true,+ user_id: 1,+ hidden: false,+ hidden_reason_id: null,+ trust_level: 4,+ deleted_at: null,+ user_deleted: false,+ edit_reason: null,+ can_view_edit_history: true,+ wiki: false,+ can_accept_answer: false,+ can_unaccept_answer: true,+ accepted_answer: true,+ },+ ],+ stream: [21, 22],+ },+ timeline_lookup: [[1, 0]],+ id: 23,+ title: "Test solved",+ fancy_title: "Test solved",+ posts_count: 2,+ created_at: "2017-08-08T20:11:32.098Z",+ views: 6,+ reply_count: 0,+ participant_count: 1,+ like_count: 0,+ last_posted_at: "2017-08-08T20:12:04.657Z",+ visible: true,+ closed: false,+ archived: false,+ has_summary: false,+ archetype: "regular",+ slug: "test-solved",+ category_id: 1,+ word_count: 18,+ deleted_at: null,+ pending_posts_count: 0,+ user_id: 1,+ pm_with_non_human_user: false,+ draft: null,+ draft_key: "topic_23",+ draft_sequence: 6,+ posted: true,+ unpinned: null,+ pinned_globally: false,+ pinned: false,+ pinned_at: null,+ pinned_until: null,+ details: {+ created_by: {+ id: 1,+ username: "kzh",+ avatar_template: "/letter_avatar_proxy/v2/letter/k/ac91a4/{size}.png",+ },+ last_poster: {+ id: 1,+ username: "kzh",+ avatar_template: "/letter_avatar_proxy/v2/letter/k/ac91a4/{size}.png",+ },+ participants: [+ {+ id: 1,+ username: "kzh",+ avatar_template: "/letter_avatar_proxy/v2/letter/k/ac91a4/{size}.png",+ post_count: 2,+ primary_group_name: null,+ primary_group_flair_url: null,+ primary_group_flair_color: null,+ primary_group_flair_bg_color: null,+ },+ ],+ notification_level: 3,+ notifications_reason_id: 1,+ can_move_posts: true,+ can_edit: true,+ can_delete: true,+ can_remove_allowed_users: true,+ can_invite_to: true,+ can_invite_via_email: true,+ can_create_post: true,+ can_reply_as_new_topic: true,+ can_flag_topic: true,+ },+ highest_post_number: 2,+ last_read_post_number: 2,+ last_read_post_id: 22,+ deleted_by: null,+ has_deleted: false,+ actions_summary: [+ { id: 4, count: 0, hidden: false, can_act: true },+ { id: 7, count: 0, hidden: false, can_act: true },+ { id: 8, count: 0, hidden: false, can_act: true },+ ],+ chunk_size: 20,+ bookmarked: false,+ tags: [],+ featured_link: null,+ topic_timer: null,+ message_bus_last_id: 0,+ accepted_answer: {+ post_number: 2,+ username: "kzh",+ excerpt,+ accepter_username: "tomtom",+ accepter_name: "Tomtom",+ },+ };+};diff --git a/translator.yml b/translator.ymlindex cbcbb5c951f..7b343d89185 100644--- a/translator.yml+++ b/translator.yml@@ -274,3 +274,10 @@ files:- source_path: plugins/discourse-affiliate/config/locales/server.en.ymldestination_path: plugins/affiliate/server.ymllabel: affiliate++ - source_path: plugins/discourse-solved/config/locales/client.en.yml+ destination_path: plugins/solved/client.yml+ label: solved+ - source_path: plugins/discourse-solved/config/locales/server.en.yml+ destination_path: plugins/solved/server.yml+ label: solved