Compare commits

...

278 Commits

Author SHA1 Message Date
Luffy 3b9f137061 fix: edit question fails when short links enabled (#1554)
CI / Check and lint (push) Has been cancelled
Build Latest Docker Image For Release / build (push) Has been cancelled
Lint / Lint (ubuntu-latest) (push) Has been cancelled
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
Close #1553
2026-07-17 22:38:41 +08:00
Luffy 897fc8c4d4 fix: add missing license entry for mozillazg-go-unidecode (#1552)
Lint / Lint (ubuntu-latest) (push) Has been cancelled
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
2026-07-14 16:03:24 +08:00
LinkinStars 2758e23381 fix: update version to 2.0.2 in Makefile and README
Lint / Lint (ubuntu-latest) (push) Has been cancelled
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
2026-07-10 10:19:39 +08:00
LinkinStars 9d9f5d06a8 fix: enhance user admin service to manage API keys and filter answer visibility 2026-07-10 10:19:39 +08:00
LinkinStars c589b59dd5 fix: enhance answer visibility checks for user permissions 2026-07-10 10:19:39 +08:00
LinkinStars dc84431768 fix(build): update Docker build process to use buildx and streamline image tagging 2026-07-10 10:19:39 +08:00
LinkinStars 0705ea6bae fix(tests): add mock methods for cache OAuth state in new question notification tests 2026-07-10 10:19:39 +08:00
LinkinStars c52e2eeb1f fix(build): update Go version in Dockerfile to 1.25-alpine 2026-07-10 10:19:39 +08:00
LinkinStars 58dbe2c027 fix(build): streamline Docker image build process in CI configuration 2026-07-10 10:19:39 +08:00
LinkinStars 88c288fdda fix(tests): update goroutine handling in new question email worker tests 2026-07-10 10:19:39 +08:00
LinkinStars f5e25dcb8d fix(notification): remove buffer size parameter from new question email worker for test 2026-07-10 10:19:39 +08:00
Artur Iusupov e06311a514 fix(notification): make new question email queue configurable 2026-07-10 10:19:39 +08:00
Artur Iusupov cb97394211 fix(notification): move new question email throttling to worker 2026-07-10 10:19:39 +08:00
Artur Iusupov dda51232b9 feat(notification): add interval for new question emails 2026-07-10 10:19:39 +08:00
LinkinStars a00cb2d38c fix: update goroutine handling and context imports for consistency 2026-07-10 10:19:39 +08:00
LinkinStars f92a0fe140 Harden Accept-Language parsing 2026-07-10 10:19:39 +08:00
LinkinStars b575fe893b Harden avatar cleanup ownership checks 2026-07-10 10:19:39 +08:00
LinkinStars 54b1b35df5 Align revision audit permission checks 2026-07-10 10:19:39 +08:00
LinkinStars 06a0f742f2 fix external login account binding 2026-07-10 10:19:39 +08:00
Artur Iusupov 3a5a15fe77 fix(site): require explicit email verification setting
Replace OptionalBool with an explicit require_email_verification value for the login settings save request while keeping legacy read defaults intact.

Use positive RequireEmailVerification naming through the registration flow and inline the site setting mapping.

Add validation, save-path, and registration coverage for the explicit email verification setting.
2026-07-10 10:19:39 +08:00
Artur Iusupov 7123326515 feat(site): allow disabling email verification 2026-07-10 10:19:39 +08:00
hgaol 4aa52a6b52 fix: accept answer fails when short links enabled (#1541)
The ownership check added to AcceptAnswer compared the answer's QuestionID
against the request's QuestionID directly. When short links are enabled,
answerRepo.GetByID re-encodes QuestionID to its short form while the
controller de-shorts req.QuestionID to its long form, so the two encodings
of the same question never matched and every accept returned "Answer do not
found". Normalize both ids via uid.DeShortID before comparing, preserving the
privilege-escalation guard for answers that truly belong to another question.
2026-07-10 10:19:39 +08:00
hhc7 9234d80246 fix: scope JSON 500 to API routes, skip rewriting already-flushed responses 2026-07-10 10:19:39 +08:00
hhc7 10be96814e feat: add recovery middleware to handle panic gracefully 2026-07-10 10:19:39 +08:00
Ahmed Qasid a6d867e4cc fix: avoid topic fallback for non-Latin titles via pragmatic ASCII transliteration (#1526)
# fix: avoid `topic` fallback for non-Latin titles via pragmatic ASCII
transliteration

> **Scope update (in response to review):** this PR is intentionally
broader than its original "Arabic-only" framing. The implementation
changes URL slug generation for **every non-Latin, non-CJK script** that
`slugify` previously stripped — see *Scope* below for the explicit list.
The goal is *not* linguistically correct romanization; it is "avoid
collapsing to `/topic` by producing a usable ASCII slug."

## What this PR is (and isn't)

**Goal:** when a question title contains characters outside Basic Latin
/ Latin Extended / CJK Han, generate a URL slug that is a deterministic
ASCII approximation instead of letting `slugify` strip everything and
falling back to the literal `"topic"`.

**Non-goal:** this is *not* a linguistically correct multi-language
romanizer. The output is a machine-acceptable ASCII slug, not what a
native speaker would choose. For example, `こんにちは` → `konnichiha` (not
the more natural `kon'nichiwa`), `ไทย` → `aithy` (not `thai`). Treat the
slug as an opaque, stable, indexable identifier — the
path-after-`/questions/<id>/` is for SEO and shareability, the canonical
reference is always the ID.

## The bug

Pure non-Latin titles previously got stripped by `slugify.Slugify`, hit
the empty-result fallback in `htmltext.UrlTitle`, and collapsed to the
literal slug `"topic"`. On a live multilingual site, every Arabic / Thai
/ Japanese-hiragana / Korean / Hebrew / Cyrillic question ended up at
`/questions/<id>/topic`.

## The fix

`UrlTitle()` gets a `convertNonLatin` pre-step that mirrors the existing
`convertChinese` pre-step pattern, using
`github.com/mozillazg/go-unidecode` (same author as `go-pinyin` already
in the repo, to minimise new-dep friction).

```
UrlTitle(title)
  → convertChinese(title)        // pre-existing: Han-block → pinyin
  → convertNonLatin(title)       // NEW: detect non-Latin letters → unidecode to ASCII
  → clearEmoji / slugify / url.QueryEscape / cutLongTitle (unchanged)
```

The non-Latin detector skips ASCII, Latin-1 Supplement, Latin
Extended-A/B, and CJK Han. Inputs that hit none of those non-Latin
letter categories short-circuit and return unchanged, so Latin-only and
Chinese-only inputs remain byte-identical (pinned by tests).

## Scope — what scripts are affected

This PR changes behavior for **any** title containing letters in scripts
that `slugify` doesn't handle. Confirmed by tests in
`pkg/htmltext/htmltext_test.go`:

| Script | Example title | Before | After |
| --- | --- | --- | --- |
| Arabic | `كيف حالك` | `topic` | `kyf-hlk` |
| Mixed Latin + Arabic | `مرحبا hello` | `hello` | `mrhb-hello` |
| Thai | `ไทย ไทย` | `topic` | `aithy-aithy` |
| Japanese hiragana | `こんにちは` | `topic` | `konnichiha` |
| Korean | `안녕하세요` | `topic` | `annyeonghaseyo` |
| Hebrew | `שלום עולם` | `topic` | `shlvm-vlm` |
| Cyrillic | `Привет мир` | `topic` | `privet-mir` |

**Unchanged:**

| Case | Behavior |
| --- | --- |
| Pure Latin (`hello world`) | unchanged → `hello-world` |
| Pure Chinese (`这是一个,标题,title`) | unchanged → `zhe-shi-yi-ge-biao-ti`
(pinyin path) |
| Japanese with Han-block kanji (`日本`) | unchanged → `ri-ben` (caught by
pre-existing pinyin path; treated as Chinese reading, not Japanese — a
pre-existing limitation, **not** introduced by this PR) |
| Emoji only (`😂😂😂`) | unchanged → `topic` |
| Empty / whitespace | unchanged → `topic` |

## Transliteration quality — explicit acknowledgement

`go-unidecode` is a generic Unicode → ASCII approximation. It is **not**
a per-language romanization library. Specifically:

- It will pick *one* approximation per codepoint regardless of language
context. `ใ` → `ai` (Thai romanization is `i` or `ai` depending on
standard), `한` → `han`, `語` → `Yu` (Chinese pinyin reading even when
used in Japanese), etc.
- The result is *good enough* to be a stable, URL-safe,
human-recognizable handle, but speakers of the source language will not
consider it "correct."
- It is deterministic, so the same title always produces the same slug —
important since `url_title` is recomputed on every request.

If maintainers prefer to scope this PR more narrowly (e.g. Arabic only,
and reject Thai/Hebrew/Cyrillic/etc.), the detector in
`containsNonLatin` can be tightened to specific Unicode blocks — but
that means the other scripts continue to collapse to `topic`, which is
the bug we're trying to fix. I'd argue the broader fix is preferable to
a piecemeal one, but happy to narrow if you want.

## Live deployment / real-world verification

This patch has been running in production on
**[ask.namasoft.com](https://ask.namasoft.com)** (an Apache Answer
instance we operate) since deployment, built directly from this branch
via `docker compose build`. The site hosts Arabic-language questions, so
the fix exercises the affected code path on every page load.

Sample question URL on the deployed instance:

> `https://ask.namasoft.com/questions/10010000000000115`

The slug in the URL is the transliterated Arabic title rather than
`topic`. No data migration was needed since `url_title` is computed on
every request from `Title` and never persisted (see *Why this is safe to
ship* below).

## Admin-configurable

The transliteration is gated by a package-level `atomic.Bool` (default
**on**, since the current behavior is objectively broken for affected
users):

- `htmltext.SetTransliterateNonLatin(enabled bool)`
- `htmltext.IsTransliterateNonLatinEnabled() bool`

This is deliberately the minimum surface needed to satisfy "the setting
must be readable from `UrlTitle()`". A follow-up PR can add an admin UI
section that calls `SetTransliterateNonLatin` on save and on startup,
without having to re-plumb every `htmltext.UrlTitle` call site through
`context.Context`.

**Default choice — please confirm:** I picked **default-on** because the
existing `topic` behavior is a bug for affected users. If you'd prefer
default-off for strict backward compat on existing installs, flip the
`init()` in `pkg/htmltext/htmltext.go` to `Store(false)` and surface the
toggle as opt-in.

## Why this is safe to ship

- `url_title` is **not** a persisted column. It's not on the `Question`
entity in `internal/entity/question_entity.go`, no migration has ever
added/dropped it, and every call site (`question_service.go`,
`revision_service.go`, `vote_service.go`,
search/report/review/rank/comment services, controllers, repos)
recomputes it from `Title` at response-build time via
`htmltext.UrlTitle(...)`.
- That means the fix is read-only: existing rows light up with correct
slugs on the next request, with no migration and no data rewrite.
- Rollback is just redeploying the prior image; nothing on disk changes.

## Test coverage

`pkg/htmltext/htmltext_test.go`:

- **`TestUrlTitleTable`** — table-driven, one case per affected script
(the full matrix above), plus:
  - `empty` → `topic`
  - `pure latin unchanged` → byte-identical to pre-fix
- `pure chinese unchanged` → byte-identical to pre-fix (pins existing
pinyin behavior)
- `japanese kanji goes through pinyin path unchanged` → documents the
pre-existing Han-block limitation
  - `emoji only falls back to topic` → unchanged
- `long arabic truncates at cutLongTitle boundary` → exercises the
150-byte cap and UTF-8 boundary safety
- **`TestUrlTitleTransliterationToggle`** — with the toggle off,
non-Latin titles collapse to `topic` (pre-fix behavior); with it on,
they transliterate.
- Existing `TestUrlTitle` left untouched.

Test plan for reviewers:

- [ ] `go test ./pkg/htmltext/...` — all pass
- [ ] Visit the live sample URL above and confirm slug is
transliterated, not `topic`
- [ ] Verify Chinese / Latin / emoji-only / empty behavior is
byte-identical to `main` (covered by table tests)

## Out of scope (intentionally)

- No admin UI / site setting plumbing in this PR — see
*Admin-configurable* above. Happy to do the React `Non-Latin Languages
Handling` admin page + `SiteType` + service / controller / migration in
a follow-up if maintainers want it.
- No change to the `"topic"` empty-result fallback.
- No plugin interface for slug generation — mirrored the existing
`convertChinese` pre-step pattern instead.
- No per-language romanization library — this is an explicit non-goal;
see *Transliteration quality* above.

## Issues / discussion

I didn't find an existing upstream issue covering this — happy to be
pointed at one if there is.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: LinkinStars <linkinstar@foxmail.com>
2026-07-10 10:19:39 +08:00
Luffy 4b8de1897b fix: update license entries 2026-07-10 10:19:39 +08:00
Luke Gao 09eaa5b7e3 feat: add reasoning content to AI conversation records and update related components (#1530)
Fix #1524 

Root cause

DeepSeek's reasoning models stream reasoning_content alongside content.
Answer ignored it, so follow-up requests failed with 400: The
reasoning_content in the thinking mode must be passed back to the API,
and the thinking text was never shown or saved.

Fix

- Capture reasoning_content from the stream and pass it back to theAPI
on subsequent rounds.
 - Persist it with the conversation (new DB column via migrationv2.0.2).
- Render it in the chat UI as a collapsible "Thinking…/Thoughts"panel
above the answer.

Compatibility

Nullable column, omitempty field, UI hides the panel when empty — old
conversations and non-reasoning models behave exactly as before.

Demo



https://github.com/user-attachments/assets/49b1a2a1-9133-4ac2-bbeb-860215a50285
2026-07-10 10:19:39 +08:00
robin 2746bf5b45 fix: update copyright year to 2026
Build Latest Docker Image For Release / build (push) Has been cancelled
Lint / Lint (ubuntu-latest) (push) Has been cancelled
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-25 10:46:54 +08:00
Luffy f9941827b1 fix: missing uuid license 2026-05-25 10:38:59 +08:00
LinkinStars 48b4622aca chore: update Docker actions to specific versions for consistency
Lint / Lint (ubuntu-latest) (push) Has been cancelled
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
2026-05-20 14:27:00 +08:00
LinkinStars 2a442d333c chore: update Docker actions to latest versions for improved stability 2026-05-20 14:27:00 +08:00
LinkinStars 84204a718a chore: update GitHub Actions to use latest versions of setup actions 2026-05-20 14:27:00 +08:00
LinkinStars 5be5c84a26 chore: update version to 2.0.1 2026-05-20 11:29:14 +08:00
LinkinStars a218924ba0 Merge remote-tracking branch 'origin/dev' into test 2026-05-20 11:20:08 +08:00
robin 316417961a fix: attachment upload broken after v2.0.0 upgrade (#1525)
- base.ts: add replaceRange method to CodeMirror adapter
- file.tsx: use replaceSelection to insert loading text (fixes RangeError)
- file.tsx: use useState/useEffect for stable editorState reference in async callbacks

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-19 10:15:36 +08:00
LinkinStars b1da65fbe4 Merge remote-tracking branch 'origin/fix/2.0.1/chat' into test 2026-05-11 12:16:58 +08:00
LinkinStars 0aca063077 Merge remote-tracking branch 'origin/dev' into test 2026-05-11 12:16:49 +08:00
LinkinStars 11091244f6 fix(user): enhance avatar validation by adding checks for custom avatars and file ownership 2026-05-11 12:05:18 +08:00
LinkinStars d1a4092c61 fix(email): enhance email templates by escaping HTML characters in dynamic content 2026-05-09 16:07:09 +08:00
LinkinStars 11c80384f1 fix(chat): enhance visibility checks by adding admin moderator support in answer and comment services 2026-05-09 15:13:50 +08:00
Herrtian ab236f2d6a fix(helm): keep install port aligned with service port
Signed-off-by: Tian Teng <tian.teng@emerson.com>
2026-05-08 20:09:04 +08:00
LinkinStars 97924574c4 Merge remote-tracking branch 'origin/dev' into test 2026-05-08 19:58:22 +08:00
hgaol e3831b6f52 refactor: streamline plugin initialization by removing redundant search syncer registration 2026-05-08 19:57:19 +08:00
hgaol c93f3bc5c3 refactor: simplify SaveSiteAI method by removing unnecessary error handling 2026-05-08 19:57:19 +08:00
hgaol 278fdfd8c3 refactor: rename UpdateSearch to updateSearch for consistency 2026-05-08 19:57:19 +08:00
hgaol 2836d0ea81 chore: add Apache License header to multiple files 2026-05-08 19:57:19 +08:00
hgaol ac7bdda074 fix lint 2026-05-08 19:57:19 +08:00
hgaol 057679a2bf refactor: remove unused build-local-vector-plugins target and delete VECTOR_SEARCH_DESIGN.md 2026-05-08 19:57:19 +08:00
hgaol 5d923f8ca3 feat: add vector sync service and integrate with answer and question services 2026-05-08 19:57:19 +08:00
hgaol 7d0714dd1a fix lint 2026-05-08 19:57:19 +08:00
hgaol 8dd55af6cd fix lint 2026-05-08 19:57:19 +08:00
hgaol 22c2a5c276 feat: implement vector search plugin and syncer for question/answer embeddings
- Added a new vector search syncer to aggregate questions and answers with comments for vector embedding.
- Introduced a new VectorSearch interface and related structures for managing vector storage and similarity search.
- Refactored embedding service to delegate semantic search to the new vector search plugin.
- Removed embedding-related fields from SiteAIProvider and UI forms as part of the transition to the new vector search architecture.
- Updated plugin registration to include vector search capabilities.
- Cleaned up embedding service methods and removed unused dependencies.
2026-05-08 19:57:19 +08:00
hgaol f346bcc8fa update init tables 2026-05-08 19:57:19 +08:00
hgaol dc71f4a292 fix lint issue 2026-05-08 19:57:19 +08:00
hgaol dea18f997c feat: support semantic search in AI chat and embedding ability 2026-05-08 19:57:19 +08:00
hgaol 71d11b6205 fix: resolve local plugin paths to absolute and enhance module replacement logic 2026-04-15 19:43:57 +08:00
LinkinStars 9da00a807d fix(build): enhance module replacement handling for v2+ versions and implement local cloning 2026-04-15 16:15:13 +08:00
LinkinStars cfc3e54f30 fix(image): enhance image decoding by implementing format-specific checks for JPEG, PNG, and GIF 2026-03-25 19:31:31 +08:00
LinkinStars 2dbe594da2 fix(short_id): enhance GetEnableShortID to support gin context for short ID flag retrieval 2026-03-04 12:04:52 +08:00
LinkinStars 36b548140e Merge remote-tracking branch 'origin/dev' into test 2026-03-03 12:17:41 +08:00
LinkinStars 3c5c47b91b Merge remote-tracking branch 'origin/fix/2.0.1/chat' into test 2026-03-03 12:17:36 +08:00
LinkinStars 6fc25c69f4 fix(auth): add API key scope checks to enhance authorization security 2026-03-03 12:17:20 +08:00
maishivamhoo123 ff997cb014 fix: update migration version to v2.0.1 and remove default value for TEXT column 2026-03-02 17:37:43 +08:00
maishivamhoo123 09599e4c20 style: apply gofmt formatting 2026-03-02 17:37:43 +08:00
maishivamhoo123 844c73cd7f fix: change avatar column type to TEXT to support long URLs 2026-03-02 17:37:43 +08:00
MakiWinster d6cb1b119f fix: update bubble user background color for dark mode 2026-03-02 16:14:07 +08:00
MakiWinster 52880f9d5a fix: update bubble user background color for dark mode 2026-03-02 16:14:07 +08:00
LinkinStars 659d1f6ad9 Merge remote-tracking branch 'origin/fix/2.0.1/chat' into test 2026-02-09 23:36:02 +08:00
LinkinStars 7952075ce5 fix: normalize ObjectID and CommentID in comment requests 2026-02-09 23:35:17 +08:00
LinkinStars 52d057ef18 fix: add ID validation and normalization functions for comment handling 2026-02-09 20:27:37 +08:00
LinkinStars 869b040e92 fix(auth): enhance admin user cache management and add status checks for email verification and suspension 2026-02-06 20:31:54 +08:00
LinkinStars 0db88d63e3 fix(chat): implement HTML rendering for display content 2026-02-06 18:07:52 +08:00
LinkinStars 92994b4997 fix: add IsAdminModerator field to request structs and implement visibility checks for timeline objects 2026-02-06 15:32:45 +08:00
LinkinStars 638fb082c5 fix: enhance bracket handling in formatting and add concurrency test for internationalization 2026-02-05 16:17:32 +08:00
kumfo fca80abbaf fix: correct variable name in JSON unmarshal for site general information 2026-02-03 11:07:48 +08:00
LinkinStars a6bfd402b6 fix: update AI provider configuration ID in default settings
Build Latest Docker Image For Release / build (push) Has been cancelled
Lint / Lint (ubuntu-latest) (push) Has been cancelled
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
2026-01-29 17:02:43 +08:00
LinkinStars a55b4c65d2 fix: update Russian translation for unlist post title 2026-01-29 17:02:43 +08:00
LinkinStars 5ec9d8b623 fix: add AI provider configuration to initialization data 2026-01-29 17:02:43 +08:00
shuai ff6b5736c3 fix: admin users-setting page title should be users 2026-01-29 17:02:15 +08:00
LinkinStars d47d7cc452 fix: update Indonesian and Russian translations for tag creation and appreciation 2026-01-29 16:50:25 +08:00
LinkinStars 90022ce039 fix: integrate API key authentication into existing services and routes 2026-01-29 16:50:25 +08:00
shuai 50a96809d8 fix: Installation of the fourth part of form validation error 2026-01-29 16:50:25 +08:00
LinkinStars a08c124748 fix: update translations for Czech, Indonesian, and Russian languages
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
Lint / Lint (ubuntu-latest) (push) Has been cancelled
2026-01-29 12:28:40 +08:00
LinkinStars b522a168e3 feat: add GetConfigByKeyFromDB method to retrieve config directly 2026-01-29 11:15:38 +08:00
LinkinStars e5cb38bd74 chore: add license files and update Go version to 1.24.0 2026-01-28 17:30:31 +08:00
LinkinStars 7dfb8b320e New translations (#1486)
Co-authored-by: Sunny <1147886+sunshineg@users.noreply.github.com>
2026-01-28 16:24:27 +08:00
LinkinStars 34c1e8a38a docs(Makefile): upgrade version to 2.0.0
Lint / Lint (ubuntu-latest) (push) Has been cancelled
2026-01-28 15:45:39 +08:00
LinkinStars 4fd96675f3 fix: improve Brotli compression handling and validate user input in vote status 2026-01-28 12:11:28 +08:00
LinkinStars a5edc4fc01 feat: add advanced site settings and related API endpoints 2026-01-28 11:15:40 +08:00
LinkinStars 2a99d234ea Merge remote-tracking branch 'origin/feat/1.8.0/new-cp-fe' into test
# Conflicts:
#	docs/docs.go
#	docs/swagger.json
#	docs/swagger.yaml
#	internal/base/constant/site_type.go
#	internal/controller/ai_controller.go
#	internal/controller/siteinfo_controller.go
#	internal/migrations/migrations.go
#	internal/schema/siteinfo_schema.go
#	internal/service/mock/siteinfo_repo_mock.go
2026-01-28 11:13:44 +08:00
LinkinStars 8b61cad014 fix(lint): resolve the lint issue 2026-01-27 17:49:29 +08:00
LinkinStars bdd1949a96 Merge remote-tracking branch 'origin/dev' into test
# Conflicts:
#	go.mod
#	internal/base/translator/provider.go
2026-01-27 17:39:45 +08:00
LinkinStars 9ea13af860 feat(revision): enhance revision management with object status handling 2026-01-27 17:38:47 +08:00
ferhat elmas b83d0214c7 feat(ci): add lint action
related to #1432

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2026-01-27 16:08:00 +08:00
shuai ef54781b77 fix: mcp menu moved to ai assistant 2026-01-26 14:29:20 +08:00
shuai cc1567ac4b fix: Fix incorrect default value when the input type is number in SchemeForm. 2026-01-26 14:25:25 +08:00
LinkinStars f403eadb2c feat: add AI conversation management endpoints and update related schemas 2026-01-23 17:28:19 +08:00
LinkinStars 94c030829d fix: correct loop iteration in AI conversation rounds 2026-01-23 17:25:46 +08:00
LinkinStars ce5aadf30d feat: add AI configuration support with related controllers and services 2026-01-23 17:25:42 +08:00
LinkinStars 9fbf9e4ff4 fix: correct loop iteration in AI conversation rounds 2026-01-23 17:22:13 +08:00
dashuai dc7f752128 Support AI Assistant and MCP functions (#1477)
1. Add AI assistant-related business. 
2. Add Mcp related configuration in the management background
2026-01-23 17:12:26 +08:00
LinkinStars c1549d2909 feat: add AI configuration support with related controllers and services 2026-01-23 17:09:05 +08:00
kumfo c509723f29 feat(docs): add layout property with enum options to schema definitions 2026-01-22 15:14:01 +08:00
shuai 06e9d437e0 fix: Changes in the editor content will reset the values of other form fields. 2026-01-22 15:13:23 +08:00
shuai 2d02452e17 fix: Changes in the editor content will reset the values of other form fields. 2026-01-22 14:50:53 +08:00
dashuai 630ac20a38 Management Backend Menu and Function Adjustments (#1474)
…ent, regardless of functional split or reorganization
2026-01-22 14:07:30 +08:00
kumfo f3dddfeb0e Merge remote-tracking branch 'origin/feat/1.8.0/menu' into feat/1.8.0/menu 2026-01-22 12:28:35 +08:00
kumfo 86c2d64dbf feat(docs): add Apache License 2.0 header to docs.go and swagger.yaml 2026-01-22 12:25:37 +08:00
kumfo 73cfbace70 feat(menu): deprecate default_avatar and gravatar_base_url in SiteInterfaceReq schema 2026-01-22 12:25:37 +08:00
kumfo 18b76f3e23 feat(siteinfo): add site_security to response structure and update related schemas 2026-01-22 12:25:37 +08:00
kumfo 6369056914 feat(siteinfo): fix GetSiteTag method to correctly assign response from siteInfoCommonService 2026-01-22 12:25:37 +08:00
kumfo 128c44f5a3 feat(menu): update schema to remove deprecated min_tags and add MinimumTags to SiteQuestionsReq 2026-01-22 12:25:37 +08:00
kumfo 3264fdd1d9 feat(siteinfo): refactor site legal and security settings to use new policies and security endpoints 2026-01-22 12:25:37 +08:00
kumfo c2a0bee7dc feat(siteinfo): add users settings endpoint and update interface settings structure 2026-01-22 12:25:37 +08:00
kumfo 9efa9471bd feat(menu): update admin menu settings to include questions, tags, and advanced options 2026-01-22 12:25:37 +08:00
kumfo f05f1eb80d feat(menu): update admin menu settings to include questions, tags, and advanced options 2026-01-22 12:25:32 +08:00
kumfo d65e257f92 feat(docs): add Apache License 2.0 header to wire_gen.go 2026-01-22 12:21:02 +08:00
kumfo 8b8550e9ca feat(docs): add Apache License 2.0 header to docs.go and swagger.yaml 2026-01-22 12:18:57 +08:00
kumfo 81511e386a feat(menu): deprecate default_avatar and gravatar_base_url in SiteInterfaceReq schema 2026-01-22 11:49:50 +08:00
kumfo 60f8cd1803 feat(siteinfo): add site_security to response structure and update related schemas 2026-01-22 10:59:28 +08:00
kumfo 0bb33e7ea4 feat(siteinfo): fix GetSiteTag method to correctly assign response from siteInfoCommonService 2026-01-21 17:21:28 +08:00
kumfo 94de21361e feat(menu): update schema to remove deprecated min_tags and add MinimumTags to SiteQuestionsReq 2026-01-21 16:29:08 +08:00
kumfo f0636d4369 feat(siteinfo): refactor site legal and security settings to use new policies and security endpoints 2026-01-21 16:06:17 +08:00
kumfo 0d7979e901 feat(siteinfo): add users settings endpoint and update interface settings structure 2026-01-21 09:39:37 +08:00
kumfo 3cd3e4a888 feat(menu): update admin menu settings to include questions, tags, and advanced options 2026-01-20 15:32:45 +08:00
kumfo 29ec29bde7 feat(menu): update admin menu settings to include questions, tags, and advanced options 2026-01-20 14:54:52 +08:00
LinkinStars 6b834c745a Merge remote-tracking branch 'origin/dev' into test 2026-01-14 11:31:17 +08:00
LinkinStars 5be6ec9e71 docs(lic): add MIT license file and clean up init function in install_main.go 2026-01-14 11:30:50 +08:00
maishivamhoo123 3d5465334c fix: added the init fuction in install_main.go 2026-01-14 11:26:00 +08:00
maishivamhoo123 f6d30a5b57 chore: revert documentation changes in README 2026-01-14 11:26:00 +08:00
maishivamhoo123 d773b86906 fix: remove unrelated generated files 2026-01-14 11:26:00 +08:00
maishivamhoo123 1fbb802e8f feat: load optional .env file and add .env.example 2026-01-14 11:26:00 +08:00
ferhat elmas 5ff6106d37 fix: address comments and add a test
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2026-01-14 11:22:53 +08:00
ferhat elmas 26d868b123 refactor(queue): improve queues
* fix race condition for registering handler
* add close method
* use generics to reduce duplication
* rename packages to drop underscore for go convention
* rename interface to drop stutter with package name

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2026-01-14 11:22:53 +08:00
shuai d7d692bb37 fix: Fixed-layout navigation aligns with the width of the main content. 2025-12-31 15:37:38 +08:00
LinkinStars d5c07f18ad Merge remote-tracking branch 'origin/dev' into test 2025-12-29 14:45:52 +08:00
Yusuke Tanaka a1f0b0963b fix: update migration version from v1.7.1 to v1.7.2 2025-12-29 10:28:27 +08:00
Yusuke Tanaka 57f31ec7eb fix: expand avatar column length from 1024 to 2048
The avatar column was too short to store long URLs from external OAuth
providers. When users log in via connector-google plugin, the Google
profile picture URL can exceed 1024 characters, causing a database error:

  Error 1406 (22001): Data too long for column 'avatar' at row 1

This change expands the avatar column from VARCHAR(1024) to VARCHAR(2048).

Note: While URLs can technically exceed 2048 characters per specification,
2048 is the practical limit supported by most browsers and services.
URLs longer than 2048 characters are extremely rare in real-world usage.
2025-12-29 10:28:27 +08:00
Douglas Cortez c8908b7b34 fix(review): notifications from the specific external system will take precedence 2025-12-29 10:27:00 +08:00
Douglas Cortez 42f8947e7c fix(notification): use SSO provider for external_id lookup in notifications 2025-12-29 10:27:00 +08:00
liqiang46 61d9bf34d3 修复最佳评论越权问题
在AcceptAnswer方法中添加了安全检查,确保要设置为最佳答案的回答确实属于该问题。
这可以防止攻击者将其他问题的回答设置为当前问题的最佳答案。

安全问题:越权设置最佳评论
修复方法:验证acceptedAnswerInfo.QuestionID == req.QuestionID
2025-12-29 10:24:01 +08:00
LinkinStars 9e236f65a3 Merge remote-tracking branch 'origin/feat/1.7.2/ui' into test 2025-12-25 12:03:42 +08:00
robin 762e8a739d fix(gitignore): correct node_modules entry and remove specific plugin exceptions 2025-12-25 11:51:14 +08:00
robin 78714e83cf feat(editor): implement image upload functionality with validation and hooks 2025-12-25 11:50:55 +08:00
robin aa7e19b896 Remove TipTap editor utility files including commands, constants, error handling, events, position conversion, and table extension to streamline the editor's functionality and reduce code complexity. 2025-12-22 18:25:42 +08:00
shuai cf7f601cb0 Merge branch 'test' of github.com:apache/answer into test 2025-12-22 17:29:31 +08:00
shuai c8881889c8 fix: admin.themes layout initial value 2025-12-22 17:29:17 +08:00
LinkinStars 462931a309 Merge remote-tracking branch 'origin/feat/1.7.2/layout' into test 2025-12-22 15:30:07 +08:00
shuai f92d3a3481 fix: update zh_CN.ymal content 2025-12-19 15:45:19 +08:00
shuai 92d853ce3c fix: add i18n 2025-12-19 14:14:37 +08:00
shuai 2ae309abc3 fix: delete log 2025-12-19 14:11:42 +08:00
shuai b5ae2d0351 fix: admin/themes add layout config 2025-12-19 14:09:38 +08:00
LinkinStars d3a29e7ad9 feat(theme): add layout options for site theme configuration 2025-12-19 12:23:55 +08:00
robin 0bad2c7249 chore(dependencies): update TipTap packages to version 3.13.0
- Upgraded all TipTap related dependencies in package.json and pnpm-lock.yaml to version 3.13.0 for improved functionality and compatibility.
- Ensured consistent versioning across all TipTap extensions and core packages.
2025-12-18 10:46:36 +08:00
robin 1c2c733190 feat(editor): enhance plugin system and improve command methods
- Introduced PluginSlot component for better plugin insertion in the editor.
- Updated MDEditor to default to 'markdown' mode for improved user experience.
- Refactored command methods in TipTap to use chaining for better selection handling.
- Enhanced PluginRender to load plugins asynchronously and prevent duplicate registrations.
2025-12-18 10:43:59 +08:00
robin ffa8dc2bb8 feat(editor): update TipTap dependencies and enhance table functionality
- Added @tiptap/core version 3.13.0 to package.json and updated related dependencies in pnpm-lock.yaml.
- Refactored RichEditor to utilize new table extension with responsive wrapper and improved styling.
- Adjusted editor mode initialization in MDEditor to default to 'rich' for enhanced user experience.
- Removed redundant styles from index.scss to streamline the editor's appearance.
2025-12-17 14:20:09 +08:00
robin 7a4b57d1ff refactor(editor): improve editor component functionality and code clarity
- Updated ToolItem component to ensure consistent return type for command functions.
- Modified heading toolbar to allow optional label parameter in handleClick function.
- Enhanced image component comments for clarity on editor state updates and event listener management.
- Cleaned up utility functions in htmlRender to remove unnecessary comments and improve readability.
2025-12-17 10:50:36 +08:00
robin d87726bd6e refactor(editor): enhance editor components with base props and initialization logic
- Introduced BaseEditorProps interface to standardize props across MarkdownEditor and RichEditor components.
- Improved initialization logic in RichEditor and MarkdownEditor to handle editor state more effectively.
- Updated useEditor hook to support initial values and prevent unnecessary updates during prop changes.
- Refactored command methods to utilize dispatch for state changes in CodeMirror editor.
2025-12-17 10:38:31 +08:00
robin 498c142198 feat(editor): rename WYSIWYG editor to Rich editor and implement new RichEditor component
- Updated the editor mode from WYSIWYG to Rich in the MDEditor component.
- Introduced a new RichEditor component utilizing TipTap for enhanced editing capabilities.
- Adjusted styles and references in the editor components to reflect the new naming convention.
2025-12-16 15:07:29 +08:00
robin 3d43700556 refactor(editor): streamline editor component structure and enhance command methods
- Removed unnecessary conditional rendering in the MDEditor component for the PluginRender.
- Simplified the MarkdownEditor component's useEffect hooks for better clarity.
- Refactored command methods to utilize self-referencing for improved maintainability.
2025-12-16 14:50:29 +08:00
robin 762773cedb chore: clean up pnpm-lock.yaml by removing unused dependencies and updating existing ones 2025-12-16 14:50:19 +08:00
Gregorius Bima Kharisma Wicaksana c2a62804b0 fix: add feedback after successfully adding a user in admin panel (#1462)
## Summary
- Show success toast notification after user is added
- Refresh user list and navigate to 'normal' filter on page 1 to display
the newly added user

## Problem
When adding a user in Admin -> Users, the page had no feedback after
submission (as reported in #1457).

**Root cause:** The code only refreshed the user list if the current
filter was "all" or "staff", but the default filter is "normal".
Additionally, there was no success toast notification.

## Solution
1. Added toast notification to confirm successful user creation
2. After adding user, navigate to "normal" filter page 1 and refresh the
list so the new user is visible

## Test plan
1. Go to Admin -> Users
2. Click "Add User"
3. Submit user information
4.  Success toast should appear
5.  Page should navigate to "normal" filter
6.  Newly added user should be visible in the list

Fixes #1457

---------

Co-authored-by: LinkinStars <linkinstar@foxmail.com>
2025-12-16 14:43:21 +08:00
robin 9ef55ca07c feat(editor): integrate TipTap WYSIWYG editor with Markdown support and enhance editor functionalities
- Added TipTap extensions for image, placeholder, table, and markdown support.
- Implemented WYSIWYG and Markdown editor components.
- Refactored editor context and tool items to utilize the new editor interface.
- Updated styles for the WYSIWYG editor.
- Removed deprecated utility functions and integrated new command methods for better editor interaction.
2025-12-16 11:08:48 +08:00
LinkinStars 3000e3aec0 Fix/translation (#1460)
Build Latest Docker Image For Release / build (push) Has been cancelled
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
2025-12-15 15:48:45 +08:00
LinkinStars 59408774fb fix(lang): correct translations in Polish and Turkish language files 2025-12-15 15:10:10 +08:00
LinkinStars e35b955159 fix(lang): enhance language retrieval from gin context 2025-12-15 12:34:42 +08:00
LinkinStars 3ddec99837 Merge remote-tracking branch 'origin/main' into dev
# Conflicts:
#	i18n/pl_PL.yaml
#	i18n/tr_TR.yaml
2025-12-11 15:12:43 +08:00
LinkinStars fbb877ab11 fix(translator): enhance error reporting for invalid translator YAML files 2025-12-11 14:23:17 +08:00
LinkinStars 216786a6de New translations (#1456)
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
Co-authored-by: Sunny <1147886+sunshineg@users.noreply.github.com>
2025-12-11 14:14:06 +08:00
LinkinStars dd836497e3 style(sideNav): update ASF header 2025-12-11 11:47:53 +08:00
LinkinStars 8412ccdc12 docs(Makefile): upgrade version to 1.7.1 2025-12-11 11:47:53 +08:00
liruohrh 8f5c164e38 feat: add env for glob load template files by gin debug render 2025-12-11 11:47:53 +08:00
Burak Tekin c82f0a4fdd chore: turkish translation improved (#1454)
turkish translations improved

Co-authored-by: dashuai <lishuailing@sifou.com>
2025-12-11 11:47:53 +08:00
joaoback f5600865e0 Update pt_BR.yaml
Translations of items that had not yet been translated. Adjustments to translations already made.
2025-12-11 11:47:53 +08:00
kinjelom 82a1127c64 Polish translation 2025-12-11 11:47:53 +08:00
liruohrh 0065e355aa fix: get right lang 2025-12-11 11:47:53 +08:00
Krypt0n123 bf2127dbd0 fix: add missing revision data for default content (fixes #1436) 2025-12-11 11:47:53 +08:00
shuai 5fa638a3e1 fix: The page tag selector exceeds the page height, causing the page to scroll. 2025-12-11 11:47:53 +08:00
ferhat elmas e1255373cb refactor(lint): add new linters and fix their issues
* gocritic
* misspell
* modernize (aside, bumping go would be nice)
* testifylint
* unconvert
* unparam
* whitespace

related to #1432

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-11 11:47:53 +08:00
LinkinStars 4950009248 refactor(lint): improve error handling and code consistency across multiple files 2025-12-11 11:47:53 +08:00
LinkinStars 62e765f70a refactor(goimports): add goimports to golangci-lint configuration #1432 2025-12-11 11:47:53 +08:00
ferhat elmas 74654f2703 feat: add golangci-lint into lint target
* replace empty interface with any
* run fmt via golangci-lint

related to #1432

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-11 11:47:53 +08:00
shuai 92de2ef16f fix: When the input box's type is set to number, the result is forcibly converted to the number type. #1425 2025-12-11 11:47:53 +08:00
shuai bb60dca5eb fix: footer layout adjustment 2025-12-11 11:47:53 +08:00
shuai 480474d7be fix: footer layout adjustment 2025-12-11 11:47:53 +08:00
LinkinStars d15d55abe3 fix(answer): update QuestionID handling in answer update process 2025-12-11 11:47:53 +08:00
ferhat elmas 2b64983464 chore(deps): bump mockgen to 0.6.0 for go1.25 support
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-11 11:47:53 +08:00
ferhat elmas c0a9f3155a fix(ui): null pointer access if get branding fails
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-11 11:47:53 +08:00
ferhat elmas f86e98167f fix: multi byte run boundary for cut long title
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-11 11:47:53 +08:00
ferhat elmas 9b64d7d64d refactor(internal): compile regex once while clearing text
Regex and Replacer can be reused.
No need to recreate for each invocation.

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-11 11:47:53 +08:00
LinkinStars 4609e200ae fix(comment): decode CommentID using DeShortID for consistency 2025-12-11 11:47:53 +08:00
LinkinStars 8b739c5a59 fix(service): set default language to "en_US" if invalid language is provided 2025-12-11 11:47:53 +08:00
Dinesht04 27cd77358c fix(ui): refactor number input props (min,max) 2025-12-11 11:47:53 +08:00
Dinesht04 1418745b00 feat(ui): add types, logic and defaults for min, max value of input component of form 2025-12-11 11:47:53 +08:00
Dinesht04 9bb87bf8d6 feat(ui): add min values for inputs and context-based keyboards for inputs 2025-12-11 11:47:53 +08:00
shuai 59df184bab fix: Optimization of request parameters 2025-12-11 11:47:53 +08:00
shuai 7a1c96d2cb fix: fix the issue where the comment_id parameter is forcibly converted to a string, causing a 500 error in the PostgreSQL database interface. #1426 2025-12-11 11:47:53 +08:00
liruohrh d468e2ba8d feat: add env for glob load template files by gin debug render 2025-12-11 10:49:32 +08:00
Burak Tekin 57ba299543 chore: turkish translation improved (#1454)
turkish translations improved

Co-authored-by: dashuai <lishuailing@sifou.com>
2025-12-11 09:42:21 +08:00
joaoback 48b1de8314 Update pt_BR.yaml
Translations of items that had not yet been translated. Adjustments to translations already made.
2025-12-10 11:58:27 +08:00
kinjelom 8e395d421e Polish translation 2025-12-10 11:52:42 +08:00
liruohrh 740ac61bb2 fix: get right lang 2025-12-08 20:06:18 +08:00
Krypt0n123 6660cdf6e2 fix: add missing revision data for default content (fixes #1436) 2025-12-08 20:04:53 +08:00
ferhat elmas 670aa32325 refactor(lint): add new linters and fix their issues
* gocritic
* misspell
* modernize (aside, bumping go would be nice)
* testifylint
* unconvert
* unparam
* whitespace

related to #1432

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-05 10:45:55 +08:00
LinkinStars 5e705a124b refactor(lint): improve error handling and code consistency across multiple files 2025-12-01 12:27:25 +08:00
LinkinStars 9540ef6005 refactor(goimports): add goimports to golangci-lint configuration #1432 2025-12-01 11:32:12 +08:00
ferhat elmas f723d120d9 feat: add golangci-lint into lint target
* replace empty interface with any
* run fmt via golangci-lint

related to #1432

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-01 11:14:38 +08:00
LinkinStars fc2a1d8afe fix(answer): update QuestionID handling in answer update process 2025-11-28 17:01:12 +08:00
ferhat elmas bc629db132 chore(deps): bump mockgen to 0.6.0 for go1.25 support
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-11-28 17:00:25 +08:00
ferhat elmas 0777291e80 fix(ui): null pointer access if get branding fails
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-11-26 15:51:01 +08:00
ferhat elmas ce053ccfa6 fix: multi byte run boundary for cut long title
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-11-25 17:58:11 +08:00
ferhat elmas a15dd41550 refactor(internal): compile regex once while clearing text
Regex and Replacer can be reused.
No need to recreate for each invocation.

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-11-24 10:32:47 +08:00
LinkinStars 09b6b34b05 fix(comment): decode CommentID using DeShortID for consistency 2025-11-20 17:50:57 +08:00
LinkinStars 9a7eb0f450 fix(service): set default language to "en_US" if invalid language is provided 2025-11-20 17:42:35 +08:00
Dinesht04 54e602c5e6 fix(ui): refactor number input props (min,max) 2025-11-20 10:51:46 +08:00
Dinesht04 157dbfd08a feat(ui): add types, logic and defaults for min, max value of input component of form 2025-11-20 10:51:46 +08:00
Dinesht04 666ab706a6 feat(ui): add min values for inputs and context-based keyboards for inputs 2025-11-20 10:51:46 +08:00
LinkinStars 20cd4d7c44 fix(deps): update protoc-gen-validate dependency to a new version
Build Latest Docker Image For Release / build (push) Has been cancelled
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
2025-10-30 10:47:10 +08:00
LinkinStars 4cbdd43738 i18n (#1416)
Co-authored-by: Sunny <1147886+sunshineg@users.noreply.github.com>
2025-10-28 16:48:41 +08:00
LinkinStars 833ea4fcb2 fix(i18n): update hints for question body input in en_US.yaml 2025-10-28 16:31:42 +08:00
LinkinStars eb1b20ab96 chore(ci): Add ASF header 2025-10-28 15:27:11 +08:00
LinkinStars 439e786294 Merge remote-tracking branch 'origin/release/1.7.0' 2025-10-28 15:25:07 +08:00
LinkinStars b79fb38300 docs(Makefile): upgrade version to 1.7.0 2025-10-28 15:23:17 +08:00
Sonui 93e183be62 feat: Add resetPassword cli tool 2025-10-28 14:52:53 +08:00
Sonui b33e9fc93e fix: Add time parameter when updating user status 2025-10-28 14:52:53 +08:00
Dinesht04 63e2fb9005 fix(internal):add gte,lte bounds for min_content and min_tags 2025-10-28 14:52:53 +08:00
LinkinStars 4fca0c4271 feat(plugins): add quick-links plugin and ensure captcha-basic is included 2025-10-27 10:56:44 +08:00
shuai e1ff07318e fix: conflict 2025-10-23 18:13:31 +08:00
shuai e3151c1da9 fix: conflict 2025-10-23 18:12:50 +08:00
Dinesht04 2d2451f78d fix(ui,internal): correct i18n implementation for variables and add min=0 to minimumContent in siteInfo schema 2025-10-22 18:43:54 +08:00
Dinesht04 9154b9ba5b feat(ui,internal): add optional question body 2025-10-22 18:43:54 +08:00
Dinesht04 f238aa5051 feat(ui,internal): add min_content property in site info 2025-10-22 18:43:54 +08:00
shuai 52e1b8bd86 fix: merge dev 2025-10-21 18:13:37 +08:00
shuai 433b8d5d1b fix: i18n parameter passing optimization 2025-10-21 10:09:37 +08:00
shuai 4fa1d0f494 fix: Fix the layout confusion caused by too long code #1404 2025-10-20 17:20:17 +08:00
Dinesht04 403dec5e39 feat(internal,ui): add minimum tags error and label while editing 2025-10-16 09:46:08 +08:00
Dinesht04 9b65fed9f0 refactor(tags): remove redundant param from GetMinimumTags and apply minimum tag check in ObjectChangeTag 2025-10-16 09:46:08 +08:00
Dinesht04 a678946032 fix(ui): Adjust tag input label for quantity 2025-10-16 09:46:08 +08:00
Dinesht04 c78cadb159 add migration for min_tags 2025-10-16 09:46:08 +08:00
Dinesht04 3ae38a14f0 feat(UI): Add error for minimum_tag count and translation for Min tag form input 2025-10-16 09:46:08 +08:00
Dinesht04 a63fe5b26c feat(internal,ui): add minimum tags property 2025-10-16 09:46:08 +08:00
Dinesht04 dc47e1a511 fix(ui): change background color for code block to (--an-pre) 2025-10-11 09:54:11 +08:00
Dinesht04 aa75f4455d feat(ui):hide related questions card when there is no content 2025-10-10 10:22:48 +08:00
Luffy f93ab41140 fix(i18n): sync username character 2025-10-10 10:01:12 +08:00
shuai 78df776449 fix: Details page editing time value adjustment 2025-09-30 15:34:37 +08:00
shuai bca8273fb5 fix: edit_time display condition optimization 2025-09-30 14:10:25 +08:00
shuai 4c2564e276 update: update html templates 2025-09-30 10:47:43 +08:00
Luffy bec3e355a9 feat: Add user comment moderation 2025-09-23 14:57:07 +08:00
shuai 5ad97801b0 fix: Optimize the export method of internal components 2025-09-23 10:50:40 +08:00
shuai aeb7b08371 update: timeline page need logged 2025-09-22 11:32:04 +08:00
shuai e071f3e7b6 fix: Filter out parameters of linked list unanswered 2025-09-10 15:57:04 +08:00
shuai 6a0f9f15e5 fix: rename linked page route 2025-09-10 15:01:13 +08:00
shuai 44beb6d15c fix: Optimize list type judgment logic 2025-09-10 14:17:26 +08:00
shuai d738ec2121 feat: add /tags/:tagName/questions route 2025-09-09 10:22:50 +08:00
shuai f709968463 fix: fixed the incorrect link of the user who was replied in the comment 2025-09-09 10:11:41 +08:00
shuai 7f9af84093 fix: Fix username verification prompt 2025-09-08 11:38:52 +08:00
Fen fc4959c3bb Refactor section headers in bug_report.md
Updated section headers in bug report template for consistency.
2025-09-02 18:13:41 +08:00
shuai 235c69e9b9 fix: update search type 2025-09-02 17:00:12 +08:00
Neko 7a8afbb353 add new question notification trigger user 2025-09-01 11:43:43 +08:00
shuai 413c39184d fix: delete comments 2025-08-28 17:02:34 +08:00
shuai f73641eff9 fix: optimization askRedirect function 2025-08-28 16:56:58 +08:00
Neko 81837c9fe0 update new question message tag
fix new question message tag to get all question tags
2025-08-28 16:53:53 +08:00
shuai df3b1a1a39 fix: the route of the question page is adjusted to /questions/add, and redirect /questions/ask to /questions/add 2025-08-28 14:45:05 +08:00
shuai 1b97952601 fix: update add_user modal's class 2025-08-21 15:15:57 +08:00
shuai e9ea91d260 fix: add data-bs-theme attribute for dropdown component 2025-08-20 17:10:53 +08:00
shuai 6d2dd57df8 fix: delete page-main-wrap class 2025-08-19 16:23:13 +08:00
shuai 7ffd86e14a fix: add page-main-wrap class 2025-08-19 14:38:03 +08:00
shuai 0376a00d73 fix: responsive layout adjustment 2025-08-19 11:20:55 +08:00
shuai 6389c3b34e Merge branch 'feat/1.7.0/quicklinks' into test 2025-08-15 14:23:59 +08:00
shuai 1aeea01c6f style: ui optimization 2025-08-15 14:22:54 +08:00
shuai c2c7ea84d5 feat: support quick-links plugin 2025-08-14 10:24:31 +08:00
kumfo a6d95ae8f9 feat: add sidebar plugin 2025-08-13 14:44:25 +08:00
shuai dc582eec54 style: question details page UI optimization 2025-08-12 10:10:56 +08:00
shuai bfa48a8ca9 fix: footer remove background color 2025-08-08 10:24:24 +08:00
shuai 19aed9f9c8 feat: schemeForm support tagSelector component 2025-08-08 10:24:24 +08:00
hgaol af80380f23 fix: failed to build plugins in windows 2025-08-08 10:24:24 +08:00
hgaol fbd5a55c5d fix: failed to build plugins in windows 2025-08-06 10:29:30 +08:00
shuai 7e4edb18d4 fix: remove question detail page pinned icon 2025-08-04 11:23:53 +08:00
513 changed files with 29166 additions and 5709 deletions
+36
View File
@@ -0,0 +1,36 @@
# Installation
INSTALL_PORT=80
AUTO_INSTALL=false
# Database
DB_TYPE=
DB_USERNAME=
DB_PASSWORD=
DB_HOST=
DB_NAME=
DB_FILE=
# Site
LANGUAGE=en-US
SITE_NAME=Apache Answer
SITE_URL=
CONTACT_EMAIL=
# Admin
ADMIN_NAME=
ADMIN_PASSWORD=
ADMIN_EMAIL=
# Content
EXTERNAL_CONTENT_DISPLAY=ask_before_display
# Swagger
SWAGGER_HOST=
SWAGGER_ADDRESS_PORT=
# Server
SITE_ADDR=0.0.0.0:3000
# Logging
LOG_LEVEL=INFO
LOG_PATH=
+4 -4
View File
@@ -12,7 +12,7 @@ assignees: ''
A clear and concise description of what the bug is.
### To Reproduce
## To Reproduce
Steps to reproduce the behavior:
@@ -21,15 +21,15 @@ Steps to reproduce the behavior:
3. Scroll down to '....'
4. See error
### Expected behavior
## Expected behavior
A clear and concise description of what you expected to happen.
### Screenshots
## Screenshots
If applicable, add screenshots or video to help explain your problem.
### Platform
## Platform
- Device: [e.g. Desktop, Mobile]
- OS: [e.g. macOS]
@@ -34,7 +34,7 @@ jobs:
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.18.1
@@ -42,15 +42,16 @@ jobs:
run: make install-ui-packages ui
- name: Setup Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Install GoReleaser
run: go install github.com/goreleaser/goreleaser/v2@latest
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean --skip=validate
run: |
"$(go env GOPATH)/bin/goreleaser" release --clean --skip=validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v4
@@ -35,34 +35,29 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: apache/answer
tags: |
type=raw,value=latest
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
run: |
docker buildx create --name answer-builder --driver docker-container --use
docker buildx inspect --bootstrap
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login --username "${{ secrets.DOCKERHUB_USER }}" --password-stdin
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
file: ./Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
run: |
BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
docker buildx build \
--file ./Dockerfile \
--platform linux/amd64,linux/arm64 \
--push \
--tag apache/answer:latest \
--label org.opencontainers.image.created="${BUILD_DATE}" \
--label org.opencontainers.image.revision="${GITHUB_SHA}" \
--label org.opencontainers.image.source="https://github.com/${GITHUB_REPOSITORY}" \
--label org.opencontainers.image.version="${GITHUB_REF_NAME#v}" \
.
+19 -23
View File
@@ -33,33 +33,29 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: apache/answer
tags: |
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
type=semver,pattern={{version}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
run: |
docker buildx create --name answer-builder --driver docker-container --use
docker buildx inspect --bootstrap
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login --username "${{ secrets.DOCKERHUB_USER }}" --password-stdin
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
file: ./Dockerfile
tags: apache/answer:${{ inputs.tag_name }}
labels: ${{ steps.meta.outputs.labels }}
run: |
BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
docker buildx build \
--file ./Dockerfile \
--platform linux/amd64,linux/arm64 \
--push \
--tag "apache/answer:${{ inputs.tag_name }}" \
--label org.opencontainers.image.created="${BUILD_DATE}" \
--label org.opencontainers.image.revision="${GITHUB_SHA}" \
--label org.opencontainers.image.source="https://github.com/${GITHUB_REPOSITORY}" \
--label org.opencontainers.image.version="${{ inputs.tag_name }}" \
.
+21 -25
View File
@@ -34,35 +34,31 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: apache/answer
tags: |
type=ref,enable=true,priority=600,prefix=,suffix=,event=branch
type=semver,pattern={{version}}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
run: |
sudo apt-get update
sudo apt-get install -y qemu-user-static
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
run: |
docker buildx create --name answer-builder --driver docker-container --use
docker buildx inspect --bootstrap
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login --username "${{ secrets.DOCKERHUB_USER }}" --password-stdin
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
file: ./Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
env:
IMAGE_TAG: ${{ github.ref_name }}
run: |
BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
docker buildx build \
--file ./Dockerfile \
--platform linux/amd64,linux/arm64 \
--push \
--tag "apache/answer:${IMAGE_TAG#v}" \
--label org.opencontainers.image.created="${BUILD_DATE}" \
--label org.opencontainers.image.revision="${GITHUB_SHA}" \
--label org.opencontainers.image.source="https://github.com/${GITHUB_REPOSITORY}" \
--label org.opencontainers.image.version="${IMAGE_TAG#v}" \
.
+16 -25
View File
@@ -30,32 +30,23 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: apache/answer
tags: |
type=raw,value=test
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Login to DockerHub
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login --username "${{ secrets.DOCKERHUB_USER }}" --password-stdin
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
run: |
docker buildx create --name answer-builder --driver docker-container --use
docker buildx inspect --bootstrap
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
run: |
BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
docker buildx build \
--file ./Dockerfile \
--platform linux/amd64 \
--push \
--tag apache/answer:test \
--label org.opencontainers.image.created="${BUILD_DATE}" \
--label org.opencontainers.image.revision="${GITHUB_SHA}" \
--label org.opencontainers.image.source="https://github.com/${GITHUB_REPOSITORY}" \
.
+62
View File
@@ -0,0 +1,62 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: Lint
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true
jobs:
lint:
name: Lint (${{ matrix.os }})
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
cache: true
- name: Run go mod tidy
run: go mod tidy
- name: Run golangci-lint
run: make lint
- name: Check for uncommitted changes
shell: bash
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "::error::Uncommitted changes detected"
git status
git diff
exit 1
fi
+4 -1
View File
@@ -28,8 +28,11 @@ vendor/
/answer-data/
/answer
/new_answer
build/tools/
dist/
# Lint setup generated file
.husky/
# Environment variables
.env
+49
View File
@@ -0,0 +1,49 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
version: "2"
linters:
exclusions:
paths:
- answer-data
- ui
- i18n
enable:
- asasalint # checks for pass []any as any in variadic func(...any)
- asciicheck # checks that your code does not contain non-ASCII identifiers
- bidichk # checks for dangerous unicode character sequences
- bodyclose # checks whether HTTP response body is closed successfully
- canonicalheader # checks whether net/http.Header uses canonical header
- copyloopvar # detects places where loop variables are copied (Go 1.22+)
- gocritic # provides diagnostics that check for bugs, performance and style issues
- misspell # finds commonly misspelled English words in comments and strings
- modernize # detects code that can be modernized to use newer Go features
- testifylint # checks usage of github.com/stretchr/testify
- unconvert # removes unnecessary type conversions
- unparam # reports unused function parameters
- whitespace # detects leading and trailing whitespace
formatters:
enable:
- gofmt
- goimports
settings:
gofmt:
simplify: true
rewrite-rules:
- pattern: 'interface{}'
replacement: 'any'
+1 -1
View File
@@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.
FROM golang:1.23-alpine AS golang-builder
FROM golang:1.25-alpine AS golang-builder
LABEL maintainer="linkinstar@apache.org"
ARG GOPROXY
+18 -5
View File
@@ -1,6 +1,6 @@
.PHONY: build clean ui
VERSION=1.6.0
VERSION=2.0.2
BIN=answer
DIR_SRC=./cmd/answer
DOCKER_CMD=docker
@@ -10,6 +10,15 @@ Revision=$(shell git rev-parse --short HEAD 2>/dev/null || echo "")
GO_FLAGS=-ldflags="-X github.com/apache/answer/cmd.Version=$(VERSION) -X 'github.com/apache/answer/cmd.Revision=$(Revision)' -X 'github.com/apache/answer/cmd.Time=`date +%s`' -extldflags -static"
GO=$(GO_ENV) "$(shell which go)"
GOLANGCI_VERSION ?= v2.6.2
TOOLS_BIN := $(shell mkdir -p build/tools && realpath build/tools)
GOLANGCI = $(TOOLS_BIN)/golangci-lint-$(GOLANGCI_VERSION)
$(GOLANGCI):
rm -f $(TOOLS_BIN)/golangci-lint*
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/$(GOLANGCI_VERSION)/install.sh | sh -s -- -b $(TOOLS_BIN) $(GOLANGCI_VERSION)
mv $(TOOLS_BIN)/golangci-lint $(TOOLS_BIN)/golangci-lint-$(GOLANGCI_VERSION)
build: generate
@$(GO) build $(GO_FLAGS) -o $(BIN) $(DIR_SRC)
@@ -23,10 +32,10 @@ universal: generate
generate:
@$(GO) get github.com/swaggo/swag/cmd/swag@v1.16.3
@$(GO) get github.com/google/wire/cmd/wire@v0.5.0
@$(GO) get go.uber.org/mock/mockgen@v0.5.0
@$(GO) get go.uber.org/mock/mockgen@v0.6.0
@$(GO) install github.com/swaggo/swag/cmd/swag@v1.16.3
@$(GO) install github.com/google/wire/cmd/wire@v0.5.0
@$(GO) install go.uber.org/mock/mockgen@v0.5.0
@$(GO) install go.uber.org/mock/mockgen@v0.6.0
@$(GO) generate ./...
@$(GO) mod tidy
@@ -50,8 +59,12 @@ install-ui-packages:
ui:
@cd ui && pnpm pre-install && pnpm build && cd -
lint: generate
lint: generate $(GOLANGCI)
@bash ./script/check-asf-header.sh
@gofmt -w -l .
$(GOLANGCI) run
lint-fix: generate $(GOLANGCI)
@bash ./script/check-asf-header.sh
$(GOLANGCI) run --fix
all: clean build
+1 -1
View File
@@ -1,5 +1,5 @@
Apache Answer
Copyright 2023-2025 The Apache Software Foundation
Copyright 2023-2026 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (https://www.apache.org/).
+2 -2
View File
@@ -23,7 +23,7 @@ To learn more about the project, visit [answer.apache.org](https://answer.apache
### Running with docker
```bash
docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:1.6.0
docker run -d -p 9080:80 -v answer-data:/data --name answer apache/answer:2.0.2
```
For more information, see [Installation](https://answer.apache.org/docs/installation).
@@ -43,7 +43,7 @@ You can also check out the [plugins here](https://answer.apache.org/plugins).
- Golang >= 1.23
- Node.js >= 20
- pnpm >= 9
- [mockgen](https://github.com/uber-go/mock?tab=readme-ov-file#installation) >= 1.6.0
- [mockgen](https://github.com/uber-go/mock?tab=readme-ov-file#installation) >= 0.6.0
- [wire](https://github.com/google/wire/) >= 0.5.0
### Build
+17 -3
View File
@@ -64,8 +64,23 @@ spec:
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.env }}
{{- $envNames := list }}
{{- range .Values.env }}
{{- $envNames = append $envNames .name }}
{{- end }}
env:
{{- if not (has "INSTALL_PORT" $envNames) }}
- name: INSTALL_PORT
value: {{ .Values.service.port | quote }}
{{- end }}
{{- if not (has "SITE_ADDR" $envNames) }}
- name: SITE_ADDR
value: {{ printf "0.0.0.0:%v" .Values.service.port | quote }}
{{- end }}
{{- if not (has "SWAGGER_ADDRESS_PORT" $envNames) }}
- name: SWAGGER_ADDRESS_PORT
value: {{ printf ":%v" .Values.service.port | quote }}
{{- end }}
{{- range .Values.env }}
- name: {{ .name }}
{{- if .value | quote }}
@@ -76,7 +91,6 @@ spec:
{{- toYaml .valueFrom | nindent 16 }}
{{- end }}
{{- end }}
{{- end }}
volumeMounts:
- name: data
mountPath: "/data"
@@ -102,4 +116,4 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
+50 -15
View File
@@ -20,11 +20,13 @@
package answercmd
import (
"context"
"fmt"
"os"
"strings"
"github.com/apache/answer/internal/base/conf"
"github.com/apache/answer/internal/base/path"
"github.com/apache/answer/internal/cli"
"github.com/apache/answer/internal/install"
"github.com/apache/answer/internal/migrations"
@@ -53,6 +55,10 @@ var (
i18nSourcePath string
// i18nTargetPath i18n to path
i18nTargetPath string
// resetPasswordEmail user email for password reset
resetPasswordEmail string
// resetPasswordPassword new password for password reset
resetPasswordPassword string
)
func init() {
@@ -76,7 +82,10 @@ func init() {
i18nCmd.Flags().StringVarP(&i18nTargetPath, "target", "t", "", "i18n target path, eg: -t ./i18n/target")
for _, cmd := range []*cobra.Command{initCmd, checkCmd, runCmd, dumpCmd, upgradeCmd, buildCmd, pluginCmd, configCmd, i18nCmd} {
resetPasswordCmd.Flags().StringVarP(&resetPasswordEmail, "email", "e", "", "user email address")
resetPasswordCmd.Flags().StringVarP(&resetPasswordPassword, "password", "p", "", "new password (not recommended, will be recorded in shell history)")
for _, cmd := range []*cobra.Command{initCmd, checkCmd, runCmd, dumpCmd, upgradeCmd, buildCmd, pluginCmd, configCmd, i18nCmd, resetPasswordCmd} {
rootCmd.AddCommand(cmd)
}
}
@@ -96,8 +105,8 @@ To run answer, use:
Short: "Run Answer",
Long: `Start running Answer`,
Run: func(_ *cobra.Command, _ []string) {
cli.FormatAllPath(dataDirPath)
fmt.Println("config file path: ", cli.GetConfigFilePath())
path.FormatAllPath(dataDirPath)
fmt.Println("config file path: ", path.GetConfigFilePath())
fmt.Println("Answer is starting..........................")
runApp()
},
@@ -111,10 +120,10 @@ To run answer, use:
// check config file and database. if config file exists and database is already created, init done
cli.InstallAllInitialEnvironment(dataDirPath)
configFileExist := cli.CheckConfigFile(cli.GetConfigFilePath())
configFileExist := cli.CheckConfigFile(path.GetConfigFilePath())
if configFileExist {
fmt.Println("config file exists, try to read the config...")
c, err := conf.ReadConfig(cli.GetConfigFilePath())
c, err := conf.ReadConfig(path.GetConfigFilePath())
if err != nil {
fmt.Println("read config failed: ", err.Error())
return
@@ -128,7 +137,7 @@ To run answer, use:
}
// start installation server to install
install.Run(cli.GetConfigFilePath())
install.Run(path.GetConfigFilePath())
},
}
@@ -138,9 +147,9 @@ To run answer, use:
Long: `Upgrade Answer to the latest version`,
Run: func(_ *cobra.Command, _ []string) {
log.SetLogger(log.NewStdLogger(os.Stdout))
cli.FormatAllPath(dataDirPath)
path.FormatAllPath(dataDirPath)
cli.InstallI18nBundle(true)
c, err := conf.ReadConfig(cli.GetConfigFilePath())
c, err := conf.ReadConfig(path.GetConfigFilePath())
if err != nil {
fmt.Println("read config failed: ", err.Error())
return
@@ -159,8 +168,8 @@ To run answer, use:
Long: `Back up database into an SQL file`,
Run: func(_ *cobra.Command, _ []string) {
fmt.Println("Answer is backing up data")
cli.FormatAllPath(dataDirPath)
c, err := conf.ReadConfig(cli.GetConfigFilePath())
path.FormatAllPath(dataDirPath)
c, err := conf.ReadConfig(path.GetConfigFilePath())
if err != nil {
fmt.Println("read config failed: ", err.Error())
return
@@ -179,9 +188,9 @@ To run answer, use:
Short: "Check the required environment",
Long: `Check if the current environment meets the startup requirements`,
Run: func(_ *cobra.Command, _ []string) {
cli.FormatAllPath(dataDirPath)
path.FormatAllPath(dataDirPath)
fmt.Println("Start checking the required environment...")
if cli.CheckConfigFile(cli.GetConfigFilePath()) {
if cli.CheckConfigFile(path.GetConfigFilePath()) {
fmt.Println("config file exists [✔]")
} else {
fmt.Println("config file not exists [x]")
@@ -193,7 +202,7 @@ To run answer, use:
fmt.Println("upload directory not exists [x]")
}
c, err := conf.ReadConfig(cli.GetConfigFilePath())
c, err := conf.ReadConfig(path.GetConfigFilePath())
if err != nil {
fmt.Println("read config failed: ", err.Error())
return
@@ -246,9 +255,9 @@ To run answer, use:
Short: "Set some config to default value",
Long: `Set some config to default value`,
Run: func(_ *cobra.Command, _ []string) {
cli.FormatAllPath(dataDirPath)
path.FormatAllPath(dataDirPath)
c, err := conf.ReadConfig(cli.GetConfigFilePath())
c, err := conf.ReadConfig(path.GetConfigFilePath())
if err != nil {
fmt.Println("read config failed: ", err.Error())
return
@@ -297,6 +306,32 @@ To run answer, use:
}
},
}
resetPasswordCmd = &cobra.Command{
Use: "passwd",
Aliases: []string{"password", "reset-password"},
Short: "Reset user password",
Long: "Reset user password by email address.",
Example: ` # Interactive mode (recommended, safest)
answer passwd -C ./answer-data
# Specify email only (will prompt for password securely)
answer passwd -C ./answer-data --email user@example.com
answer passwd -C ./answer-data -e user@example.com
# Specify email and password (NOT recommended, will be recorded in shell history)
answer passwd -C ./answer-data -e user@example.com -p newpassword123`,
Run: func(cmd *cobra.Command, args []string) {
opts := &cli.ResetPasswordOptions{
Email: resetPasswordEmail,
Password: resetPasswordPassword,
}
if err := cli.ResetPassword(context.Background(), dataDirPath, opts); err != nil {
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
os.Exit(1)
}
},
}
)
// Execute adds all child commands to the root command and sets flags appropriately.
+8 -2
View File
@@ -28,15 +28,21 @@ import (
"github.com/apache/answer/internal/base/conf"
"github.com/apache/answer/internal/base/constant"
"github.com/apache/answer/internal/base/cron"
"github.com/apache/answer/internal/cli"
"github.com/apache/answer/internal/base/path"
"github.com/apache/answer/internal/schema"
"github.com/gin-gonic/gin"
"github.com/joho/godotenv"
"github.com/segmentfault/pacman"
"github.com/segmentfault/pacman/contrib/log/zap"
"github.com/segmentfault/pacman/contrib/server/http"
"github.com/segmentfault/pacman/log"
)
func init() {
// Load .env if present, ignore error to keep backward compatibility
_ = godotenv.Load()
}
// go build -ldflags "-X github.com/apache/answer/cmd.Version=x.y.z"
var (
// Name is the name of the project
@@ -67,7 +73,7 @@ func Main() {
}
func runApp() {
c, err := conf.ReadConfig(cli.GetConfigFilePath())
c, err := conf.ReadConfig(path.GetConfigFilePath())
if err != nil {
panic(err)
}
+1 -2
View File
@@ -1,5 +1,4 @@
//go:build wireinject
// +build wireinject
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -32,7 +31,7 @@ import (
"github.com/apache/answer/internal/base/server"
"github.com/apache/answer/internal/base/translator"
"github.com/apache/answer/internal/controller"
"github.com/apache/answer/internal/controller/template_render"
templaterender "github.com/apache/answer/internal/controller/template_render"
"github.com/apache/answer/internal/controller_admin"
"github.com/apache/answer/internal/repo"
"github.com/apache/answer/internal/router"
+52 -32
View File
@@ -38,7 +38,9 @@ import (
"github.com/apache/answer/internal/controller_admin"
"github.com/apache/answer/internal/repo/activity"
"github.com/apache/answer/internal/repo/activity_common"
"github.com/apache/answer/internal/repo/ai_conversation"
"github.com/apache/answer/internal/repo/answer"
"github.com/apache/answer/internal/repo/api_key"
"github.com/apache/answer/internal/repo/auth"
"github.com/apache/answer/internal/repo/badge"
"github.com/apache/answer/internal/repo/badge_award"
@@ -72,8 +74,10 @@ import (
"github.com/apache/answer/internal/service/action"
activity2 "github.com/apache/answer/internal/service/activity"
activity_common2 "github.com/apache/answer/internal/service/activity_common"
"github.com/apache/answer/internal/service/activity_queue"
"github.com/apache/answer/internal/service/activityqueue"
ai_conversation2 "github.com/apache/answer/internal/service/ai_conversation"
"github.com/apache/answer/internal/service/answer_common"
"github.com/apache/answer/internal/service/apikey"
auth2 "github.com/apache/answer/internal/service/auth"
badge2 "github.com/apache/answer/internal/service/badge"
collection2 "github.com/apache/answer/internal/service/collection"
@@ -83,14 +87,16 @@ import (
config2 "github.com/apache/answer/internal/service/config"
"github.com/apache/answer/internal/service/content"
"github.com/apache/answer/internal/service/dashboard"
"github.com/apache/answer/internal/service/event_queue"
"github.com/apache/answer/internal/service/embedding"
"github.com/apache/answer/internal/service/eventqueue"
export2 "github.com/apache/answer/internal/service/export"
"github.com/apache/answer/internal/service/feature_toggle"
file_record2 "github.com/apache/answer/internal/service/file_record"
"github.com/apache/answer/internal/service/follow"
"github.com/apache/answer/internal/service/importer"
meta2 "github.com/apache/answer/internal/service/meta"
"github.com/apache/answer/internal/service/meta_common"
"github.com/apache/answer/internal/service/notice_queue"
"github.com/apache/answer/internal/service/noticequeue"
"github.com/apache/answer/internal/service/notification"
"github.com/apache/answer/internal/service/notification_common"
"github.com/apache/answer/internal/service/object_info"
@@ -114,6 +120,7 @@ import (
"github.com/apache/answer/internal/service/user_common"
user_external_login2 "github.com/apache/answer/internal/service/user_external_login"
user_notification_config2 "github.com/apache/answer/internal/service/user_notification_config"
"github.com/apache/answer/internal/service/vector_sync"
"github.com/segmentfault/pacman"
"github.com/segmentfault/pacman/log"
)
@@ -144,7 +151,8 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database,
siteInfoCommonService := siteinfo_common.NewSiteInfoCommonService(siteInfoRepo)
langController := controller.NewLangController(i18nTranslator, siteInfoCommonService)
authRepo := auth.NewAuthRepo(dataData)
authService := auth2.NewAuthService(authRepo)
apiKeyRepo := api_key.NewAPIKeyRepo(dataData)
authService := auth2.NewAuthService(authRepo, apiKeyRepo)
userRepo := user.NewUserRepo(dataData)
uniqueIDRepo := unique.NewUniqueIDRepo(dataData)
configRepo := config.NewConfigRepo(dataData)
@@ -172,27 +180,30 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database,
tagRepo := tag.NewTagRepo(dataData, uniqueIDRepo)
revisionRepo := revision.NewRevisionRepo(dataData, uniqueIDRepo)
revisionService := revision_common.NewRevisionService(revisionRepo, userRepo)
activityQueueService := activity_queue.NewActivityQueueService()
tagCommonService := tag_common2.NewTagCommonService(tagCommonRepo, tagRelRepo, tagRepo, revisionService, siteInfoCommonService, activityQueueService)
service := activityqueue.NewService()
tagCommonService := tag_common2.NewTagCommonService(tagCommonRepo, tagRelRepo, tagRepo, revisionService, siteInfoCommonService, service)
collectionRepo := collection.NewCollectionRepo(dataData, uniqueIDRepo)
collectionCommon := collectioncommon.NewCollectionCommon(collectionRepo)
answerCommon := answercommon.NewAnswerCommon(answerRepo)
metaRepo := meta.NewMetaRepo(dataData)
metaCommonService := metacommon.NewMetaCommonService(metaRepo)
questionCommon := questioncommon.NewQuestionCommon(questionRepo, answerRepo, voteRepo, followRepo, tagCommonService, userCommon, collectionCommon, answerCommon, metaCommonService, configService, activityQueueService, revisionRepo, siteInfoCommonService, dataData)
eventQueueService := event_queue.NewEventQueueService()
questionCommon := questioncommon.NewQuestionCommon(questionRepo, answerRepo, voteRepo, followRepo, tagCommonService, userCommon, collectionCommon, answerCommon, metaCommonService, configService, service, revisionRepo, siteInfoCommonService, dataData)
eventqueueService := eventqueue.NewService()
fileRecordRepo := file_record.NewFileRecordRepo(dataData)
fileRecordService := file_record2.NewFileRecordService(fileRecordRepo, revisionRepo, serviceConf, siteInfoCommonService, userCommon)
userService := content.NewUserService(userRepo, userActiveActivityRepo, activityRepo, emailService, authService, siteInfoCommonService, userRoleRelService, userCommon, userExternalLoginService, userNotificationConfigRepo, userNotificationConfigService, questionCommon, eventQueueService, fileRecordService)
userService := content.NewUserService(userRepo, userActiveActivityRepo, activityRepo, emailService, authService, siteInfoCommonService, userRoleRelService, userCommon, userExternalLoginService, userNotificationConfigRepo, userNotificationConfigService, questionCommon, eventqueueService, fileRecordService)
captchaRepo := captcha.NewCaptchaRepo(dataData)
captchaService := action.NewCaptchaService(captchaRepo)
userController := controller.NewUserController(authService, userService, captchaService, emailService, siteInfoCommonService, userNotificationConfigService)
commentRepo := comment.NewCommentRepo(dataData, uniqueIDRepo)
commentCommonRepo := comment.NewCommentCommonRepo(dataData, uniqueIDRepo)
objService := object_info.NewObjService(answerRepo, questionRepo, commentCommonRepo, tagCommonRepo, tagCommonService)
notificationQueueService := notice_queue.NewNotificationQueueService()
externalNotificationQueueService := notice_queue.NewNewQuestionNotificationQueueService()
commentService := comment2.NewCommentService(commentRepo, commentCommonRepo, userCommon, objService, voteRepo, emailService, userRepo, notificationQueueService, externalNotificationQueueService, activityQueueService, eventQueueService)
noticequeueService := noticequeue.NewService()
externalService := noticequeue.NewExternalService()
reviewRepo := review.NewReviewRepo(dataData)
vector_syncService := vector_sync.NewService(dataData)
reviewService := review2.NewReviewService(reviewRepo, objService, userCommon, userRepo, questionRepo, answerRepo, userRoleRelService, externalService, tagCommonService, questionCommon, noticequeueService, siteInfoCommonService, commentCommonRepo, vector_syncService)
commentService := comment2.NewCommentService(commentRepo, commentCommonRepo, userCommon, objService, voteRepo, emailService, userRepo, noticequeueService, externalService, service, eventqueueService, reviewService, vector_syncService)
rolePowerRelRepo := role.NewRolePowerRelRepo(dataData)
rolePowerRelService := role2.NewRolePowerRelService(rolePowerRelRepo, userRoleRelService)
rankService := rank2.NewRankService(userCommon, userRankRepo, objService, userRoleRelService, rolePowerRelService, configService)
@@ -200,19 +211,17 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database,
rateLimitMiddleware := middleware.NewRateLimitMiddleware(limitRepo)
commentController := controller.NewCommentController(commentService, rankService, captchaService, rateLimitMiddleware)
reportRepo := report.NewReportRepo(dataData, uniqueIDRepo)
tagService := tag2.NewTagService(tagRepo, tagCommonService, revisionService, followRepo, siteInfoCommonService, activityQueueService)
answerActivityRepo := activity.NewAnswerActivityRepo(dataData, activityRepo, userRankRepo, notificationQueueService)
tagService := tag2.NewTagService(tagRepo, tagCommonService, revisionService, followRepo, siteInfoCommonService, service)
answerActivityRepo := activity.NewAnswerActivityRepo(dataData, activityRepo, userRankRepo, noticequeueService)
answerActivityService := activity2.NewAnswerActivityService(answerActivityRepo, configService)
externalNotificationService := notification.NewExternalNotificationService(dataData, userNotificationConfigRepo, followRepo, emailService, userRepo, externalNotificationQueueService, userExternalLoginRepo, siteInfoCommonService)
reviewRepo := review.NewReviewRepo(dataData)
reviewService := review2.NewReviewService(reviewRepo, objService, userCommon, userRepo, questionRepo, answerRepo, userRoleRelService, externalNotificationQueueService, tagCommonService, questionCommon, notificationQueueService, siteInfoCommonService)
questionService := content.NewQuestionService(activityRepo, questionRepo, answerRepo, tagCommonService, tagService, questionCommon, userCommon, userRepo, userRoleRelService, revisionService, metaCommonService, collectionCommon, answerActivityService, emailService, notificationQueueService, externalNotificationQueueService, activityQueueService, siteInfoCommonService, externalNotificationService, reviewService, configService, eventQueueService, reviewRepo)
answerService := content.NewAnswerService(answerRepo, questionRepo, questionCommon, userCommon, collectionCommon, userRepo, revisionService, answerActivityService, answerCommon, voteRepo, emailService, userRoleRelService, notificationQueueService, externalNotificationQueueService, activityQueueService, reviewService, eventQueueService)
externalNotificationService := notification.NewExternalNotificationService(dataData, userNotificationConfigRepo, followRepo, emailService, userRepo, externalService, userExternalLoginRepo, siteInfoCommonService)
questionService := content.NewQuestionService(activityRepo, questionRepo, answerRepo, tagCommonService, tagService, questionCommon, userCommon, userRepo, userRoleRelService, revisionService, metaCommonService, collectionCommon, answerActivityService, emailService, noticequeueService, externalService, service, siteInfoCommonService, externalNotificationService, reviewService, configService, eventqueueService, reviewRepo, vector_syncService)
answerService := content.NewAnswerService(answerRepo, questionRepo, questionCommon, userCommon, collectionCommon, userRepo, revisionService, answerActivityService, answerCommon, voteRepo, emailService, userRoleRelService, noticequeueService, externalService, service, reviewService, eventqueueService, vector_syncService)
reportHandle := report_handle.NewReportHandle(questionService, answerService, commentService)
reportService := report2.NewReportService(reportRepo, objService, userCommon, answerRepo, questionRepo, commentCommonRepo, reportHandle, configService, eventQueueService)
reportService := report2.NewReportService(reportRepo, objService, userCommon, answerRepo, questionRepo, commentCommonRepo, reportHandle, configService, eventqueueService)
reportController := controller.NewReportController(reportService, rankService, captchaService)
contentVoteRepo := activity.NewVoteRepo(dataData, activityRepo, userRankRepo, notificationQueueService)
voteService := content.NewVoteService(contentVoteRepo, configService, questionRepo, answerRepo, commentCommonRepo, objService, eventQueueService)
contentVoteRepo := activity.NewVoteRepo(dataData, activityRepo, userRankRepo, noticequeueService)
voteService := content.NewVoteService(contentVoteRepo, configService, questionRepo, answerRepo, commentCommonRepo, objService, eventqueueService)
voteController := controller.NewVoteController(voteService, rankService, captchaService)
tagController := controller.NewTagController(tagService, tagCommonService, rankService)
followFollowRepo := activity.NewFollowRepo(dataData, uniqueIDRepo, activityRepo)
@@ -228,14 +237,14 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database,
searchService := content.NewSearchService(searchParser, searchRepo)
searchController := controller.NewSearchController(searchService, captchaService)
reviewActivityRepo := activity.NewReviewActivityRepo(dataData, activityRepo, userRankRepo, configService)
contentRevisionService := content.NewRevisionService(revisionRepo, userCommon, questionCommon, answerService, objService, questionRepo, answerRepo, tagRepo, tagCommonService, notificationQueueService, activityQueueService, reportRepo, reviewService, reviewActivityRepo)
contentRevisionService := content.NewRevisionService(revisionRepo, userCommon, questionCommon, answerService, objService, questionRepo, answerRepo, tagRepo, tagCommonService, noticequeueService, service, reportRepo, reviewService, reviewActivityRepo)
revisionController := controller.NewRevisionController(contentRevisionService, rankService)
rankController := controller.NewRankController(rankService)
userAdminRepo := user.NewUserAdminRepo(dataData, authRepo)
notificationRepo := notification2.NewNotificationRepo(dataData)
pluginUserConfigRepo := plugin_config.NewPluginUserConfigRepo(dataData)
badgeAwardRepo := badge_award.NewBadgeAwardRepo(dataData, uniqueIDRepo)
userAdminService := user_admin.NewUserAdminService(userAdminRepo, userRoleRelService, authService, userCommon, userActiveActivityRepo, siteInfoCommonService, emailService, questionRepo, answerRepo, commentCommonRepo, userExternalLoginRepo, notificationRepo, pluginUserConfigRepo, badgeAwardRepo)
userAdminService := user_admin.NewUserAdminService(userAdminRepo, userRoleRelService, authService, userCommon, userActiveActivityRepo, siteInfoCommonService, emailService, questionRepo, answerRepo, commentCommonRepo, userExternalLoginRepo, notificationRepo, pluginUserConfigRepo, badgeAwardRepo, apiKeyRepo)
userAdminController := controller_admin.NewUserAdminController(userAdminService)
reasonRepo := reason.NewReasonRepo(configService)
reasonService := reason2.NewReasonService(reasonRepo)
@@ -244,7 +253,7 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database,
siteInfoService := siteinfo.NewSiteInfoService(siteInfoRepo, siteInfoCommonService, emailService, tagCommonService, configService, questionCommon, fileRecordService)
siteInfoController := controller_admin.NewSiteInfoController(siteInfoService)
controllerSiteInfoController := controller.NewSiteInfoController(siteInfoCommonService)
notificationCommon := notificationcommon.NewNotificationCommon(dataData, notificationRepo, userCommon, activityRepo, followRepo, objService, notificationQueueService, userExternalLoginRepo, siteInfoCommonService)
notificationCommon := notificationcommon.NewNotificationCommon(dataData, notificationRepo, userCommon, activityRepo, followRepo, objService, noticequeueService, userExternalLoginRepo, siteInfoCommonService)
badgeRepo := badge.NewBadgeRepo(dataData, uniqueIDRepo)
notificationService := notification.NewNotificationService(dataData, notificationRepo, notificationCommon, revisionService, userRepo, reportRepo, reviewService, badgeRepo)
notificationController := controller.NewNotificationController(notificationService, rankService)
@@ -253,7 +262,7 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database,
uploaderService := uploader.NewUploaderService(serviceConf, siteInfoCommonService, fileRecordService)
uploadController := controller.NewUploadController(uploaderService)
activityActivityRepo := activity.NewActivityRepo(dataData, configService)
activityCommon := activity_common2.NewActivityCommon(activityRepo, activityQueueService)
activityCommon := activity_common2.NewActivityCommon(activityRepo, service)
commentCommonService := comment_common.NewCommentCommonService(commentCommonRepo)
activityService := activity2.NewActivityService(activityActivityRepo, userCommon, activityCommon, tagCommonService, objService, commentCommonService, revisionService, metaCommonService, configService)
activityController := controller.NewActivityController(activityService)
@@ -265,23 +274,33 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database,
permissionController := controller.NewPermissionController(rankService)
userPluginController := controller.NewUserPluginController(pluginCommonService)
reviewController := controller.NewReviewController(reviewService, rankService, captchaService)
metaService := meta2.NewMetaService(metaCommonService, userCommon, answerRepo, questionRepo, eventQueueService)
metaService := meta2.NewMetaService(metaCommonService, userCommon, answerRepo, questionRepo, eventqueueService)
metaController := controller.NewMetaController(metaService)
badgeGroupRepo := badge_group.NewBadgeGroupRepo(dataData, uniqueIDRepo)
eventRuleRepo := badge.NewEventRuleRepo(dataData)
badgeAwardService := badge2.NewBadgeAwardService(badgeAwardRepo, badgeRepo, userCommon, objService, notificationQueueService)
badgeEventService := badge2.NewBadgeEventService(dataData, eventQueueService, badgeRepo, eventRuleRepo, badgeAwardService)
badgeAwardService := badge2.NewBadgeAwardService(badgeAwardRepo, badgeRepo, userCommon, objService, noticequeueService)
badgeEventService := badge2.NewBadgeEventService(dataData, eventqueueService, badgeRepo, eventRuleRepo, badgeAwardService)
badgeService := badge2.NewBadgeService(badgeRepo, badgeGroupRepo, badgeAwardRepo, badgeEventService, siteInfoCommonService)
badgeController := controller.NewBadgeController(badgeService, badgeAwardService)
controller_adminBadgeController := controller_admin.NewBadgeController(badgeService)
answerAPIRouter := router.NewAnswerAPIRouter(langController, userController, commentController, reportController, voteController, tagController, followController, collectionController, questionController, answerController, searchController, revisionController, rankController, userAdminController, reasonController, themeController, siteInfoController, controllerSiteInfoController, notificationController, dashboardController, uploadController, activityController, roleController, pluginController, permissionController, userPluginController, reviewController, metaController, badgeController, controller_adminBadgeController)
apiKeyService := apikey.NewAPIKeyService(apiKeyRepo)
adminAPIKeyController := controller_admin.NewAdminAPIKeyController(apiKeyService)
featureToggleService := feature_toggle.NewFeatureToggleService(siteInfoRepo)
embeddingService := embedding.NewEmbeddingService()
mcpController := controller.NewMCPController(searchService, siteInfoCommonService, tagCommonService, questionCommon, commentRepo, userCommon, answerRepo, featureToggleService, embeddingService)
aiConversationRepo := ai_conversation.NewAIConversationRepo(dataData)
aiConversationService := ai_conversation2.NewAIConversationService(aiConversationRepo, userCommon)
aiController := controller.NewAIController(searchService, siteInfoCommonService, tagCommonService, questionCommon, commentRepo, userCommon, answerRepo, mcpController, aiConversationService, featureToggleService)
aiConversationController := controller.NewAIConversationController(aiConversationService, featureToggleService)
aiConversationAdminController := controller_admin.NewAIConversationAdminController(aiConversationService, featureToggleService)
answerAPIRouter := router.NewAnswerAPIRouter(langController, userController, commentController, reportController, voteController, tagController, followController, collectionController, questionController, answerController, searchController, revisionController, rankController, userAdminController, reasonController, themeController, siteInfoController, controllerSiteInfoController, notificationController, dashboardController, uploadController, activityController, roleController, pluginController, permissionController, userPluginController, reviewController, metaController, badgeController, controller_adminBadgeController, adminAPIKeyController, aiController, aiConversationController, aiConversationAdminController, mcpController)
swaggerRouter := router.NewSwaggerRouter(swaggerConf)
uiRouter := router.NewUIRouter(controllerSiteInfoController, siteInfoCommonService)
authUserMiddleware := middleware.NewAuthUserMiddleware(authService, siteInfoCommonService)
avatarMiddleware := middleware.NewAvatarMiddleware(serviceConf, uploaderService)
shortIDMiddleware := middleware.NewShortIDMiddleware(siteInfoCommonService)
templateRenderController := templaterender.NewTemplateRenderController(questionService, userService, tagService, answerService, commentService, siteInfoCommonService, questionRepo)
templateController := controller.NewTemplateController(templateRenderController, siteInfoCommonService, eventQueueService, userService, questionService)
templateController := controller.NewTemplateController(templateRenderController, siteInfoCommonService, eventqueueService, userService, questionService)
templateRouter := router.NewTemplateRouter(templateController, templateRenderController, siteInfoController, authUserMiddleware)
connectorController := controller.NewConnectorController(siteInfoCommonService, emailService, userExternalLoginService)
userCenterLoginService := user_external_login2.NewUserCenterLoginService(userRepo, userCommon, userExternalLoginRepo, userActiveActivityRepo, siteInfoCommonService)
@@ -289,7 +308,8 @@ func initApplication(debug bool, serverConf *conf.Server, dbConf *data.Database,
captchaController := controller.NewCaptchaController()
embedController := controller.NewEmbedController()
renderController := controller.NewRenderController()
pluginAPIRouter := router.NewPluginAPIRouter(connectorController, userCenterController, captchaController, embedController, renderController)
sidebarController := controller.NewSidebarController()
pluginAPIRouter := router.NewPluginAPIRouter(connectorController, userCenterController, captchaController, embedController, renderController, sidebarController)
ginEngine := server.NewHTTPServer(debug, staticRouter, answerAPIRouter, swaggerRouter, uiRouter, authUserMiddleware, avatarMiddleware, shortIDMiddleware, templateRouter, pluginAPIRouter, uiConf)
scheduledTaskManager := cron.NewScheduledTaskManager(siteInfoCommonService, questionService, fileRecordService, userAdminService, serviceConf)
application := newApplication(serverConf, ginEngine, scheduledTaskManager)
+1659 -256
View File
File diff suppressed because it is too large Load Diff
+38 -32
View File
@@ -214,11 +214,12 @@ Apache 2.0 licenses
The following components are provided under the Apache 2.0 License.
(Apache License, Version 2.0) react-helmet-async (https://github.com/staylor/react-helmet-async) [link](./licenses/LICENSE-staylor-react-helmet-async.txt)
(Apache License, Version 2.0) golang-mock (https://github.com/golang/mock) [link](./licenses/LICENSE-golang-mock.txt)
(Apache License, Version 2.0) gomock (https://github.com/uber-go/mock) [link](./licenses/LICENSE-uber-go-mock.txt)
(Apache License, Version 2.0) google-wire (https://github.com/google/wire) [link](./licenses/LICENSE-google-wire.txt)
(Apache License, Version 2.0) mojocn-base64Captcha (https://github.com/mojocn/base64Captcha) [link](./licenses/LICENSE-mojocn-base64Captcha.txt)
(Apache License, Version 2.0) ory-dockertest (https://github.com/ory/dockertest) [link](./licenses/LICENSE-ory-dockertest.txt)
(Apache License, Version 2.0) react-helmet-async (https://github.com/staylor/react-helmet-async) [link](./licenses/LICENSE-staylor-react-helmet-async.txt)
(Apache License, Version 2.0) sashabaranov-go-openai (https://github.com/sashabaranov/go-openai) [link](./licenses/LICENSE-sashabaranov-go-openai.txt)
(Apache License, Version 2.0) spf13-cobra (https://github.com/spf13/cobra) [link](./licenses/LICENSE-spf13-cobra.txt)
========================================================================
@@ -227,57 +228,62 @@ MIT licenses
The following components are provided under the MIT License. See project link for details.
(MIT License) axios (https://github.com/axios/axios) [link](./licenses/LICENSE-axios-axios.txt)
(MIT License) bootstrap (https://github.com/twbs/bootstrap) [link](./licenses/LICENSE-twbs-bootstrap.txt)
(MIT License) icons (https://github.com/twbs/icons) [link](./licenses/LICENSE-twbs-icons.txt)
(MIT License) classnames (https://github.com/JedWatson/classnames) [link](./LICENSE-JedWatson-classnames.txt)
(MIT License) codemirror (https://github.com/codemirror/basic-setup) [link](./licenses/LICENSE-codemirror-basic-setup.txt)
(MIT License) @codemirror/lang-markdown (https://github.com/codemirror/lang-markdown) [link](./licenses/LICENSE-codemirror-lang-markdown.txt)
(MIT License) @codemirror/language-data (https://github.com/codemirror/language-data) [link](./licenses/LICENSE-codemirror-language-data.txt)
(MIT License) @codemirror/state (https://github.com/codemirror/state) [link](./licenses/LICENSE-codemirror-state.txt)
(MIT License) @codemirror/view (https://github.com/codemirror/view) [link](./licenses/LICENSE-codemirror-view.txt)
(MIT License) anargu-gin-brotli (https://github.com/anargu/gin-brotli) [link](./licenses/LICENSE-anargu-gin-brotli.txt)
(MIT License) asaskevich-govalidator (https://github.com/asaskevich/govalidator) [link](./licenses/LICENSE-asaskevich-govalidator.txt)
(MIT License) axios (https://github.com/axios/axios) [link](./licenses/LICENSE-axios-axios.txt)
(MIT License) bootstrap (https://github.com/twbs/bootstrap) [link](./licenses/LICENSE-twbs-bootstrap.txt)
(MIT License) classnames (https://github.com/JedWatson/classnames) [link](./LICENSE-JedWatson-classnames.txt)
(MIT License) codemirror (https://github.com/codemirror/basic-setup) [link](./licenses/LICENSE-codemirror-basic-setup.txt)
(MIT License) color (https://github.com/Qix-/color) [link](./licenses/LICENSE-Qix--color.txt)
(MIT License) copy-to-clipboard (https://github.com/sudodoki/copy-to-clipboard) [link](./licenses/LICENSE-sudodoki-copy-to-clipboard.txt)
(MIT License) dayjs (https://github.com/iamkun/dayjs) [link](./licenses/LICENSE-iamkun-dayjs.txt)
(MIT License) disintegration-imaging (https://github.com/disintegration/imaging) [link](./licenses/LICENSE-disintegration-imaging.txt)
(MIT License) front-matter (https://github.com/jxson/front-matter) [link](./licenses/LICENSE-jxson-front-matter.txt)
(MIT License) gin-gonic-gin (https://github.com/gin-gonic/gin) [link](./licenses/LICENSE-gin-gonic-gin.txt)
(MIT License) go-gomail-gomail (https://gopkg.in/gomail.v2) [link](./licenses/LICENSE-go-gomail-gomail.txt)
(MIT License) go-playground-locales (https://github.com/go-playground/locales) [link](./licenses/LICENSE-go-playground-locales.txt)
(MIT License) go-playground-universal-translator (https://github.com/go-playground/universal-translator) [link](./licenses/LICENSE-go-playground-universal-translator.txt)
(MIT License) go-playground-validator (https://github.com/go-playground/validator) [link](./licenses/LICENSE-go-playground-validator.txt)
(MIT License) go-resty-resty (https://github.com/go-resty/resty) [link](./licenses/LICENSE-go-resty-resty.txt)
(MIT License) goccy-go-json (https://github.com/goccy/go-json) [link](./licenses/LICENSE-goccy-go-json.txt)
(MIT License) i18next (https://github.com/i18next/i18next) [link](./licenses/LICENSE-i18next-i18next.txt)
(MIT License) icons (https://github.com/twbs/icons) [link](./licenses/LICENSE-twbs-icons.txt)
(MIT License) jinzhu-copier (https://github.com/jinzhu/copier) [link](./licenses/LICENSE-jinzhu-copier.txt)
(MIT License) jinzhu-now (https://github.com/jinzhu/now) [link](./licenses/LICENSE-jinzhu-now.txt)
(MIT License) joho-godotenv (https://github.com/joho/godotenv) [link](./licenses/LICENSE-joho-godotenv.txt)
(MIT License) jordan-wright-email (https://github.com/jordan-wright/email) [link](./licenses/LICENSE-jordan-wright-email.txt)
(MIT License) js-sha256 (https://github.com/emn178/js-sha256) [link](./licenses/LICENSE-emn178-js-sha256.txt)
(MIT License) lib-pq (https://github.com/lib/pq) [link](./licenses/LICENSE-lib-pq.txt)
(MIT License) lodash (https://github.com/lodash/lodash) [link](./licenses/LICENSE-lodash-lodash.txt)
(MIT License) Machiel-slugify (https://github.com/Machiel/slugify) [link](./licenses/LICENSE-Machiel-slugify.txt)
(MIT License) mark3labs-mcp-go (https://github.com/mark3labs/mcp-go) [link](./licenses/LICENSE-mark3labs-mcp-go.txt)
(MIT License) marked (https://github.com/markedjs/marked) [link](./licenses/LICENSE-markedjs-marked.txt)
(MIT License) Masterminds-semver (https://github.com/Masterminds/semver) [link](./licenses/LICENSE-Masterminds-semver.txt)
(MIT License) mattn-go-sqlite3 (https://github.com/mattn/go-sqlite3) [link](./licenses/LICENSE-mattn-go-sqlite3.txt)
(MIT License) mozillazg-go-pinyin (https://github.com/mozillazg/go-pinyin) [link](./licenses/LICENSE-mozillazg-go-pinyin.txt)
(MIT License) mozillazg-go-unidecode (https://github.com/mozillazg/go-unidecode) [link](./licenses/LICENSE-mozillazg-go-unidecode.txt)
(MIT License) next-share (https://github.com/Bunlong/next-share) [link](./licenses/LIcENSE-Bunlong-next-share.txt)
(MIT License) node-qrcode (https://github.com/soldair/node-qrcode) [link](./licenses/LICENSE-soldair-qrcode.txt)
(MIT License) react (https://github.com/facebook/react) [link](./licenses/LICENSE-facebook-react.txt)
(MIT License) react-bootstrap (https://github.com/react-bootstrap/react-bootstrap) [link](./licenses/LICENSE-react-bootstrap-react-bootstrap.txt)
(MIT License) react-i18next (https://github.com/i18next/react-i18next) [link](./licenses/LICENSE-i18next-react-i18next.txt)
(MIT License) react-router (https://github.com/remix-run/react-router) [link](./licenses/LICENSE-remix-run-react-router.txt)
(MIT License) swr (https://github.com/vercel/swr) [link](./licenses/LICENSE-vercel-swr.txt)
(MIT License) zustand (https://github.com/pmndrs/zustand) [link](./licenses/LICENSE-pmndrs-zustand.txt)
(MIT License) mozillazg-go-pinyin (https://github.com/mozillazg/go-pinyin) [link](./licenses/LICENSE-mozillazg-go-pinyin.txt)
(MIT License) Machiel-slugify (https://github.com/Machiel/slugify) [link](./licenses/LICENSE-Machiel-slugify.txt)
(MIT License) Masterminds-semver (https://github.com/Masterminds/semver) [link](./licenses/LICENSE-Masterminds-semver.txt)
(MIT License) anargu-gin-brotli (https://github.com/anargu/gin-brotli) [link](./licenses/LICENSE-anargu-gin-brotli.txt)
(MIT License) asaskevich-govalidator (https://github.com/asaskevich/govalidator) [link](./licenses/LICENSE-asaskevich-govalidator.txt)
(MIT License) disintegration-imaging (https://github.com/disintegration/imaging) [link](./licenses/LICENSE-disintegration-imaging.txt)
(MIT License) gin-gonic-gin (https://github.com/gin-gonic/gin) [link](./licenses/LICENSE-gin-gonic-gin.txt)
(MIT License) go-playground-locales (https://github.com/go-playground/locales) [link](./licenses/LICENSE-go-playground-locales.txt)
(MIT License) go-playground-universal-translator (https://github.com/go-playground/universal-translator) [link](./licenses/LICENSE-go-playground-universal-translator.txt)
(MIT License) go-playground-validator (https://github.com/go-playground/validator) [link](./licenses/LICENSE-go-playground-validator.txt)
(MIT License) goccy-go-json (https://github.com/goccy/go-json) [link](./licenses/LICENSE-goccy-go-json.txt)
(MIT License) jinzhu-copier (https://github.com/jinzhu/copier) [link](./licenses/LICENSE-jinzhu-copier.txt)
(MIT License) jinzhu-now (https://github.com/jinzhu/now) [link](./licenses/LICENSE-jinzhu-now.txt)
(MIT License) jordan-wright-email (https://github.com/jordan-wright/email) [link](./licenses/LICENSE-jordan-wright-email.txt)
(MIT License) lib-pq (https://github.com/lib/pq) [link](./licenses/LICENSE-lib-pq.txt)
(MIT License) mattn-go-sqlite3 (https://github.com/mattn/go-sqlite3) [link](./licenses/LICENSE-mattn-go-sqlite3.txt)
(MIT License) segmentfault-pacman (https://github.com/segmentfault/pacman) [link](./licenses/LICENSE-segmentfault-pacman.txt)
(MIT License) robfig-cron (https://github.com/robfig/cron) [link](./licenses/LICENSE-robfig-cron.txt)
(MIT License) scottleedavis-go-exif-remove (https://github.com/scottleedavis/go-exif-remove) [link](./licenses/LICENSE-scottleedavis-go-exif-remove.txt)
(MIT License) segmentfault-pacman (https://github.com/segmentfault/pacman) [link](./licenses/LICENSE-segmentfault-pacman.txt)
(MIT License) stretchr-testify (https://github.com/stretchr/testify) [link](./licenses/LICENSE-stretchr-testify.txt)
(MIT License) swaggo-files (https://github.com/swaggo/files) [link](./licenses/LICENSE-swaggo-files.txt)
(MIT License) swaggo-gin-swagger (https://github.com/swaggo/gin-swagger) [link](./licenses/LICENSE-swaggo-gin-swagger.txt)
(MIT License) swaggo-swag (https://github.com/swaggo/swag) [link](./licenses/LICENSE-swaggo-swag.txt)
(MIT License) swr (https://github.com/vercel/swr) [link](./licenses/LICENSE-vercel-swr.txt)
(MIT License) tidwall-gjson (https://github.com/tidwall/gjson) [link](./licenses/LICENSE-tidwall-gjson.txt)
(MIT License) uuidjs-uuid (https://github.com/uuidjs/uuid) [link](./licenses/LICENSE-uuidjs-uuid.txt)
(MIT License) yuin-goldmark (https://github.com/yuin/goldmark) [link](./licenses/LICENSE-yuin-goldmark.txt)
(MIT License) go-gomail-gomail (https://gopkg.in/gomail.v2) [link](./licenses/LICENSE-go-gomail-gomail.txt)
(MIT License) front-matter (https://github.com/jxson/front-matter) [link](./licenses/LICENSE-jxson-front-matter.txt)
(MIT License) js-sha256 (https://github.com/emn178/js-sha256) [link](./licenses/LICENSE-emn178-js-sha256.txt)
(MIT License) zustand (https://github.com/pmndrs/zustand) [link](./licenses/LICENSE-pmndrs-zustand.txt)
========================================================================
BSD licenses
@@ -286,13 +292,13 @@ BSD licenses
The following components are provided under a BSD license. See project link for details.
(BSD 2-Clause) bwmarrin-snowflake (https://github.com/bwmarrin/snowflake) [link](./licenses/LICENSE-bwmarrin-snowflake.txt)
(BSD 2-Clause) xorm (https://xorm.io/xorm) [link](./licenses/LICENSE-xorm.txt)
(BSD 3-Clause) cznic-sqlite (https://modernc.org/sqlite) [link](./licenses/LICENSE-cznic-sqlite.txt)
(BSD 3-Clause) google-uuid (https://github.com/google/uuid) [link](./licenses/LICENSE-google-uuid.txt)
(BSD 3-Clause) grokify-html-strip-tags-go (https://github.com/grokify/html-strip-tags-go) [link](./licenses/LICENSE-grokify-html-strip-tags-go.txt)
(BSD 3-Clause) microcosm-cc-bluemonday (https://github.com/microcosm-cc/bluemonday) [link](./licenses/LICENSE-microcosm-cc-bluemonday.txt)
(BSD 3-Clause) cznic-sqlite (https://modernc.org/sqlite) [link](./licenses/LICENSE-cznic-sqlite.txt)
(BSD 3-Clause) jsdiff (https://github.com/kpdecker/jsdiff) [link](./licenses/LICENSE-kpdecker-jsdiff.txt)
(BSD 3-Clause) microcosm-cc-bluemonday (https://github.com/microcosm-cc/bluemonday) [link](./licenses/LICENSE-microcosm-cc-bluemonday.txt)
(BSD 3-Clause) qs (https://github.com/ljharb/qs) [link](./licenses/LICENSE-ljharb-qs.txt)
(BSD 2-Clause) xorm (https://xorm.io/xorm) [link](./licenses/LICENSE-xorm.txt)
========================================================================
ISC licenses
+1 -1
View File
@@ -1,5 +1,5 @@
Apache Answer
Copyright 2025 The Apache Software Foundation
Copyright 2023-2026 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (https://www.apache.org/).
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2015-present Jeevanandam M., https://myjeeva.com <jeeva@myjeeva.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,22 @@
Copyright (c) 2013 John Barton
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2024 Anthropic, PBC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2016 mozillazg
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,9 @@
The MIT License (MIT)
Copyright (c) 2010-2020 Robert Kieffer and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+1659 -256
View File
File diff suppressed because it is too large Load Diff
+1025 -176
View File
File diff suppressed because it is too large Load Diff
+21 -8
View File
@@ -17,7 +17,7 @@
module github.com/apache/answer
go 1.23.0
go 1.25.0
require (
github.com/Machiel/slugify v1.0.1
@@ -30,6 +30,7 @@ require (
github.com/go-playground/locales v0.14.1
github.com/go-playground/universal-translator v0.18.1
github.com/go-playground/validator/v10 v10.22.1
github.com/go-resty/resty/v2 v2.17.1
github.com/go-sql-driver/mysql v1.8.1
github.com/goccy/go-json v0.10.3
github.com/google/uuid v1.6.0
@@ -37,11 +38,15 @@ require (
github.com/grokify/html-strip-tags-go v0.1.0
github.com/jinzhu/copier v0.4.0
github.com/jinzhu/now v1.1.5
github.com/joho/godotenv v1.5.1
github.com/lib/pq v1.10.9
github.com/mark3labs/mcp-go v0.43.2
github.com/microcosm-cc/bluemonday v1.0.27
github.com/mozillazg/go-pinyin v0.20.0
github.com/mozillazg/go-unidecode v0.2.0
github.com/ory/dockertest/v3 v3.11.0
github.com/robfig/cron/v3 v3.0.1
github.com/sashabaranov/go-openai v1.41.2
github.com/scottleedavis/go-exif-remove v0.0.0-20230314195146-7e059d593405
github.com/segmentfault/pacman v1.0.5-0.20230822083413-c0075a2d401f
github.com/segmentfault/pacman/contrib/cache/memory v0.0.0-20230822083413-c0075a2d401f
@@ -56,11 +61,11 @@ require (
github.com/swaggo/swag v1.16.3
github.com/tidwall/gjson v1.17.3
github.com/yuin/goldmark v1.7.4
go.uber.org/mock v0.5.0
golang.org/x/crypto v0.36.0
go.uber.org/mock v0.6.0
golang.org/x/crypto v0.53.0
golang.org/x/image v0.20.0
golang.org/x/net v0.38.0
golang.org/x/text v0.23.0
golang.org/x/term v0.44.0
golang.org/x/text v0.39.0
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
gopkg.in/yaml.v3 v3.0.1
modernc.org/sqlite v1.33.0
@@ -78,6 +83,8 @@ require (
github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect
github.com/andybalholm/brotli v1.1.0 // indirect
github.com/aymerick/douceur v0.2.0 // indirect
github.com/bahlo/generic-list-go v0.2.0 // indirect
github.com/buger/jsonparser v1.1.1 // indirect
github.com/bytedance/sonic v1.12.2 // indirect
github.com/bytedance/sonic/loader v0.2.0 // indirect
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
@@ -116,6 +123,7 @@ require (
github.com/hashicorp/golang-lru/v2 v2.0.7 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/invopop/jsonschema v0.13.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.8 // indirect
@@ -144,7 +152,7 @@ require (
github.com/sirupsen/logrus v1.9.3 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.7.0 // indirect
github.com/spf13/cast v1.7.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.19.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
@@ -153,15 +161,18 @@ require (
github.com/tidwall/pretty v1.2.1 // indirect
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
github.com/ugorji/go/codec v1.2.12 // indirect
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
github.com/yosida95/uritemplate/v3 v3.0.2 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/arch v0.10.0 // indirect
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 // indirect
golang.org/x/sys v0.31.0 // indirect
golang.org/x/tools v0.25.0 // indirect
golang.org/x/net v0.56.0 // indirect
golang.org/x/sys v0.46.0 // indirect
golang.org/x/tools v0.47.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
@@ -177,3 +188,5 @@ require (
replace lukechampine.com/uint128 v1.1.1 => github.com/aichy126/uint128 v1.1.1
replace modernc.org/cc/v3 v3.40.0 => gitlab.com/cznic/cc/v3 v3.40.0
replace github.com/lyft/protoc-gen-validate v0.0.13 => github.com/LinkinStars/protoc-gen-validate v0.0.0-20251030022322-3fddbbe5a0e6
+43 -19
View File
@@ -17,6 +17,7 @@ github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc
github.com/KyleBanks/depth v1.2.1/go.mod h1:jzSb9d0L43HxTQfT+oSA1EEp2q+ne2uh6XgeJcm8brE=
github.com/LinkinStars/go-i18n/v2 v2.2.2 h1:ZfjpzbW13dv6btv3RALKZkpN9A+7K1JA//2QcNeWaxU=
github.com/LinkinStars/go-i18n/v2 v2.2.2/go.mod h1:hLglSJ4/3M0Y7ZVcoEJI+OwqkglHCA32DdjuJJR2LbM=
github.com/LinkinStars/protoc-gen-validate v0.0.0-20251030022322-3fddbbe5a0e6/go.mod h1:Lu7LbM9PBAPmasRqVew2kylj56Z1vH/UUM2REVkLh7k=
github.com/Machiel/slugify v1.0.1 h1:EfWSlRWstMadsgzmiV7d0yVd2IFlagWH68Q+DcYCm4E=
github.com/Machiel/slugify v1.0.1/go.mod h1:fTFGn5uWEynW4CUMG7sWkYXOf1UgDxyTM3DbR6Qfg3k=
github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs=
@@ -53,10 +54,14 @@ github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk=
github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4=
github.com/bahlo/generic-list-go v0.2.0 h1:5sz/EEAK+ls5wF+NeqDpk5+iNdMDXrh3z3nPnH1Wvgk=
github.com/bahlo/generic-list-go v0.2.0/go.mod h1:2KvAjgMlE5NNynlg/5iLrrCCZ2+5xWbdbCW3pNTGyYg=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs=
github.com/buger/jsonparser v1.1.1 h1:2PnMjfWD7wBILjqQbt530v576A/cAbQvEW9gGIpYMUs=
github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0=
github.com/bwmarrin/snowflake v0.3.0 h1:xm67bEhkKh6ij1790JB83OujPR5CzNe8QuQqAgISZN0=
github.com/bwmarrin/snowflake v0.3.0/go.mod h1:NdZxfVWX+oR6y2K0o6qAYv6gIOP9rjG0/E9WsDpxqwE=
github.com/bytedance/sonic v1.12.2 h1:oaMFuRTpMHYLpCntGca65YWt5ny+wAceDERTkT2L9lg=
@@ -196,6 +201,8 @@ github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91
github.com/go-playground/validator/v10 v10.4.1/go.mod h1:nlOn6nFhuKACm19sB/8EGNn9GlaMV7XkbRSipzJ0Ii4=
github.com/go-playground/validator/v10 v10.22.1 h1:40JcKH+bBNGFczGuoBYgX4I6m/i27HYW8P9FDk5PbgA=
github.com/go-playground/validator/v10 v10.22.1/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
github.com/go-resty/resty/v2 v2.17.1 h1:x3aMpHK1YM9e4va/TMDRlusDDoZiQ+ViDu/WpA6xTM4=
github.com/go-resty/resty/v2 v2.17.1/go.mod h1:kCKZ3wWmwJaNc7S29BRtUhJwy7iqmn+2mLtQrOyQlVA=
github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
@@ -300,6 +307,8 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo=
github.com/invopop/jsonschema v0.13.0 h1:KvpoAJWEjR3uD9Kbm2HWJmqsEaHt8lBUpd0qHcIi21E=
github.com/invopop/jsonschema v0.13.0/go.mod h1:ffZ5Km5SWWRAIN6wbDXItl95euhFz2uON45H2qjYt+0=
github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo=
github.com/jackc/chunkreader/v2 v2.0.0/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk=
github.com/jackc/chunkreader/v2 v2.0.1/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk=
@@ -353,6 +362,8 @@ github.com/jinzhu/copier v0.4.0/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S
github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
github.com/jonboulle/clockwork v0.3.0 h1:9BSCMi8C+0qdApAp4auwX0RkLGUjs956h0EkuQymUhg=
github.com/jonboulle/clockwork v0.3.0/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8=
@@ -403,11 +414,12 @@ github.com/lib/pq v1.10.9 h1:YXG7RB+JIjhP29X+OtkiDnYaXQwpS4JEWq7dtCCRUEw=
github.com/lib/pq v1.10.9/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=
github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM=
github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4=
github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ=
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0=
github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc=
github.com/mark3labs/mcp-go v0.43.2 h1:21PUSlWWiSbUPQwXIJ5WKlETixpFpq+WBpbMGDSVy/I=
github.com/mark3labs/mcp-go v0.43.2/go.mod h1:YnJfOL382MIWDx1kMY+2zsRHU/q78dBg9aFb8W6Thdw=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
@@ -450,6 +462,8 @@ github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9G
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
github.com/mozillazg/go-pinyin v0.20.0 h1:BtR3DsxpApHfKReaPO1fCqF4pThRwH9uwvXzm+GnMFQ=
github.com/mozillazg/go-pinyin v0.20.0/go.mod h1:iR4EnMMRXkfpFVV5FMi4FNB6wGq9NV6uDWbUuPhP4Yc=
github.com/mozillazg/go-unidecode v0.2.0 h1:vFGEzAH9KSwyWmXCOblazEWDh7fOkpmy/Z4ArmamSUc=
github.com/mozillazg/go-unidecode v0.2.0/go.mod h1:zB48+/Z5toiRolOZy9ksLryJ976VIwmDmpQ2quyt1aA=
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg=
github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU=
@@ -541,6 +555,8 @@ github.com/sagikazarmark/locafero v0.6.0/go.mod h1:77OmuIc6VTraTXKXIs/uvUxKGUXjE
github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE=
github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ=
github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
github.com/sashabaranov/go-openai v1.41.2 h1:vfPRBZNMpnqu8ELsclWcAvF19lDNgh1t6TVfFFOPiSM=
github.com/sashabaranov/go-openai v1.41.2/go.mod h1:lj5b/K+zjTSFxVLijLSTDZuP7adOgerWeFyZLUhAKRg=
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
github.com/scottleedavis/go-exif-remove v0.0.0-20230314195146-7e059d593405 h1:2ieGkj4z/YPXVyQ2ayZUg3GwE1pYWd5f1RB6DzAOXKM=
github.com/scottleedavis/go-exif-remove v0.0.0-20230314195146-7e059d593405/go.mod h1:rIxVzVLKlBwLxO+lC+k/I4HJfRQcemg/f/76Xmmzsec=
@@ -574,8 +590,8 @@ github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9yS
github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0=
github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8=
github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY=
github.com/spf13/cast v1.7.0 h1:ntdiHjuueXFgm5nzDRdOS4yfT43P5Fnud6DH50rz/7w=
github.com/spf13/cast v1.7.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
github.com/spf13/cast v1.7.1 h1:cuNEagBQEHWN1FnbGEjCXL2szYEXqfJPbP2HNUaca9Y=
github.com/spf13/cast v1.7.1/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo=
github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ=
github.com/spf13/cobra v1.8.1 h1:e5/vxKd/rZsfSJMUX1agtjeTDf+qv1/JdBF8gg5k9ZM=
github.com/spf13/cobra v1.8.1/go.mod h1:wHxEcudfqmLYa8iTfL+OuZPbBZkmvliBWKIezN3kD9Y=
@@ -628,6 +644,8 @@ github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65E
github.com/ugorji/go/codec v1.2.12/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA=
github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
github.com/wk8/go-ordered-map/v2 v2.1.8 h1:5h/BUHu93oj4gIdvHHHGsScSTMijfx5PeYkE/fJgbpc=
github.com/wk8/go-ordered-map/v2 v2.1.8/go.mod h1:5nJHM5DyteebpVlHnWMV0rPz6Zp7+xBAnxjb1X5vnTw=
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo=
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU=
@@ -636,6 +654,8 @@ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:
github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74=
github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y=
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
github.com/yosida95/uritemplate/v3 v3.0.2 h1:Ed3Oyj9yrmi9087+NczuL5BwkIc4wvTb5zIM+UJPGz4=
github.com/yosida95/uritemplate/v3 v3.0.2/go.mod h1:ILOh0sOhIJR3+L/8afwt/kE++YT040gmv5BQTMR2HP4=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
@@ -654,8 +674,8 @@ go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
go.uber.org/mock v0.5.0 h1:KAMbZvZPyBPWgD14IrIQ38QCyjwpvVVV6K/bHl1IwQU=
go.uber.org/mock v0.5.0/go.mod h1:ge71pBPLYDk7QIi1LupWxdAykm7KIEFchiOqd6z7qMM=
go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=
go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=
go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
@@ -685,8 +705,8 @@ golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWP
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.36.0 h1:AnAEvhDddvBdpY+uR+MyHmuZzzNqXSe/GvuDeob5L34=
golang.org/x/crypto v0.36.0/go.mod h1:Y4J0ReaxCR1IMaabaSMugxJES1EpwhBHhv2bDHklZvc=
golang.org/x/crypto v0.53.0 h1:QZ4Muo8THX6CizN2vPPd5fBGHyogrdK9fG4wLPFUsto=
golang.org/x/crypto v0.53.0/go.mod h1:DNLU434OwVakk9PzuwV8w62mAJpRJL3vsgcfp4Qnsio=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0 h1:e66Fs6Z+fZTbFBAxKfP3PALWBtpfqks2bwGcexMxgtk=
golang.org/x/exp v0.0.0-20240909161429-701f63a606c0/go.mod h1:2TbTHSBQa924w8M6Xs1QcRcFwyucIwBGpK1p2f1YFFY=
@@ -703,8 +723,8 @@ golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzB
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.21.0 h1:vvrHzRwRfVKSiLrG+d4FMl/Qi4ukBCE6kZlTUkDYRT0=
golang.org/x/mod v0.21.0/go.mod h1:6SkKJ3Xj0I0BrPOZoBy3bdMptDDU9oJrpohJ3eWZ1fY=
golang.org/x/mod v0.37.0 h1:vF1DjpVEshcIqoEaauuHebaLk1O1forxjxBaVn884JQ=
golang.org/x/mod v0.37.0/go.mod h1:m8S8VeM9r4dzDwjrKO0a1sZP3YjeMamRRlD+fmR2Q/0=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -731,8 +751,8 @@ golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwY
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.38.0 h1:vRMAPTMaeGqVhG5QyLJHqNDwecKTomGeqbnfZyKlBI8=
golang.org/x/net v0.38.0/go.mod h1:ivrbrMbzFq5J41QOQh0siUuly180yBYtLp+CKbEaFx8=
golang.org/x/net v0.56.0 h1:Rw8j/hFzGvJUZwNBXnAtf5sVDVt+65SK2C7IxCxZt5o=
golang.org/x/net v0.56.0/go.mod h1:D3Ku6r+V6JROoZK144D2XfMHFcMq/0zSfLelVTCFKec=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
@@ -743,8 +763,8 @@ golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.12.0 h1:MHc5BpPuC30uJk597Ri8TV3CNZcTLu6B6z4lJy+g6Jw=
golang.org/x/sync v0.12.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
golang.org/x/sync v0.21.0 h1:HLII4xRRTtCRkxYp4HNFF0Js/Og6q2i++KXbg0gHCwM=
golang.org/x/sync v0.21.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0=
golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -779,12 +799,14 @@ golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=
golang.org/x/sys v0.31.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
golang.org/x/sys v0.46.0 h1:noSf2Fq6F8DBgS+LysIkx7rIExoNHJsxOAtPp4rthXw=
golang.org/x/sys v0.46.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.44.0 h1:0rLvDRCtNj0gZkyIXhCyOb2OAzEhLVqc4B+hrsBhrmc=
golang.org/x/term v0.44.0/go.mod h1:7ze4MdzUzLXpSAoFP1H0bOI9aXDqveSvatT5vKcFh2Y=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
@@ -793,10 +815,12 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
golang.org/x/text v0.39.0 h1:UbZz4pLOvn600D6Oh6GGEI6VAmndrEBLv8/6BEXzyus=
golang.org/x/text v0.39.0/go.mod h1:3UwRclnC2g0TU9x8PZiyfOajCd1zaUNHF9cvqcQZ+ZM=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE=
golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
@@ -818,8 +842,8 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY
golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.25.0 h1:oFU9pkj/iJgs+0DT+VMHrx+oBKs/LJMV+Uvg78sl+fE=
golang.org/x/tools v0.25.0/go.mod h1:/vtpO8WL1N9cQC3FN5zPqb//fRXskFHbLKk4OW1Q7rg=
golang.org/x/tools v0.47.0 h1:7Kn5x/d1svx/PzryTsqeoZN4TZwqeH5pGWjefhLi/1Q=
golang.org/x/tools v0.47.0/go.mod h1:dFHnyTvFWY212G+h7ZY4Vsp/K3U4/7W9TyVaAul8uCA=
golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+1 -1
View File
@@ -684,7 +684,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+1 -1
View File
@@ -684,7 +684,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+1 -1
View File
@@ -677,7 +677,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username up to 30 characters
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+1 -1
View File
@@ -677,7 +677,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username up to 30 characters
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+1 -1
View File
@@ -677,7 +677,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username up to 30 characters
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+1 -1
View File
@@ -677,7 +677,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username up to 30 characters
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+1 -1
View File
@@ -677,7 +677,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username up to 30 characters
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+1 -1
View File
@@ -684,7 +684,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+117 -8
View File
@@ -58,7 +58,7 @@ backend:
undelete:
other: Obnovit
merge:
other: Merge
other: Sloučit
role:
name:
user:
@@ -234,6 +234,8 @@ backend:
other: Nemáte oprávnění pro aktualizaci.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Hodnost reputace nesplňuje podmínku.
@@ -263,6 +265,8 @@ backend:
other: Nemůžete odstranit štítek, který se používá.
cannot_set_synonym_as_itself:
other: Aktuální štítek nelze jako synonymum stejného štítku.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: Jméno odesílatele nemůže být emailová adresa.
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP Error 500
http_403: HTTP Error 403
logout: Log Out
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Notifications
inbox: Inbox
@@ -1141,6 +1156,9 @@ ui:
label: Body
msg:
empty: Body cannot be empty.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Tags
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Add tag
create_btn: Create new tag
search_tag: Search tag
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: No tags matched
tag_required_text: Required tag (at least one)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Search
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Change
loading: loading...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Name cannot be empty.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Email
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile image
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Search people
question_detail:
action: Action
created: Created
Asked: Asked
asked: asked
update: Modified
Edited: Edited
edit: edited
commented: commented
Views: Viewed
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Name
msg: Name cannot be empty.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Password
@@ -1756,6 +1777,7 @@ ui:
branding: Branding
legal: Legal
write: Write
terms: Terms
tos: Terms of Service
privacy: Privacy
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugins
installed_plugins: Installed Plugins
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Welcome to {{site_name}}
user_center:
login: Login
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Write
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Každý uživatel může napsat pouze jednu odpověď na stejný dotaz
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Primary color
text: Modify the colors used by your themes
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS and HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optional)
empty: cannot be empty
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: Dim caniatâd i ddiweddaru.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Reputation rank fail to meet the condition.
@@ -263,6 +265,8 @@ backend:
other: You cannot delete a tag that is in use.
cannot_set_synonym_as_itself:
other: Ni allwch osod cyfystyr y tag cyfredol fel ei hun.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: The from name cannot be a email address.
@@ -841,6 +845,17 @@ ui:
http_50X: Gwall HTTP 500
http_403: Gwall HTTP 403
logout: Log Out
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Hysbysiadau
inbox: Mewnflwch
@@ -1141,6 +1156,9 @@ ui:
label: Corff
msg:
empty: Ni all corff fod yn wag.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Tagiau
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Ychwanegu tag
create_btn: Creu tag newydd
search_tag: Chwilio tag
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: No tags matched
tag_required_text: Required tag (at least one)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Search
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Change
loading: loading...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Name cannot be empty.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Email
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile image
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Search people
question_detail:
action: Action
created: Created
Asked: Asked
asked: asked
update: Modified
Edited: Edited
edit: edited
commented: commented
Views: Viewed
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Name
msg: Name cannot be empty.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Password
@@ -1756,6 +1777,7 @@ ui:
branding: Branding
legal: Legal
write: Write
terms: Terms
tos: Terms of Service
privacy: Privacy
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugins
installed_plugins: Installed Plugins
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Welcome to {{site_name}}
user_center:
login: Login
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Write
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Each user can only write one answer for each question
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Primary color
text: Modify the colors used by your themes
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS and HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optional)
empty: cannot be empty
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+442 -333
View File
File diff suppressed because it is too large Load Diff
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: Keine Berechtigung zum Aktualisieren.
content_cannot_empty:
other: Der Inhalt darf nicht leer sein.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Ansehenssrang erfüllt die Bedingung nicht.
@@ -263,6 +265,8 @@ backend:
other: Du kannst keinen Tag löschen, der in Gebrauch ist.
cannot_set_synonym_as_itself:
other: Du kannst das Synonym des aktuellen Tags nicht als sich selbst festlegen.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: Der Absendername kann keine E-Mail-Adresse sein.
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP-Fehler 500
http_403: HTTP Fehler 403
logout: Ausloggen
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Benachrichtigungen
inbox: Posteingang
@@ -1141,6 +1156,9 @@ ui:
label: Körper
msg:
empty: Körper darf nicht leer sein.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Stichworte
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Schlagwort hinzufügen
create_btn: Neuen Tag erstellen
search_tag: Tag suchen
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Keine Tags gefunden
tag_required_text: Benötigter Tag (mindestens eins)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Suchen
footer:
build_on: >-
Betrieben von <1> Apache Answer </1>- die Open-Source-Software, die Q&A-Communities betreibt.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Ändern
loading: wird geladen...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Der Name darf nicht leer sein.
range: Der Name muss zwischen 2 und 30 Zeichen lang sein.
character: 'Muss den Zeichensatz "a-z", "A-Z", "0-9", " - . _" verwenden'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: E-Mail
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: Leute können dich als "@Benutzername" erwähnen.
msg: Benutzername darf nicht leer sein.
msg_range: Der Benutzername muss zwischen 2 und 30 Zeichen lang sein.
character: 'Muss den Zeichensatz "a-z", "0-9", " - . _" verwenden'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profilbild
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Personen suchen
question_detail:
action: Aktion
created: Created
Asked: Gefragt
asked: gefragt
update: Geändert
Edited: Edited
edit: bearbeitet
commented: kommentiert
Views: Gesehen
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Name
msg: Der Name darf nicht leer sein.
character: 'Muss den Zeichensatz "a-z", "A-Z", "0-9", " - . _" verwenden'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Der Name muss zwischen 2 und 30 Zeichen lang sein.
admin_password:
label: Passwort
@@ -1756,6 +1777,7 @@ ui:
branding: Branding
legal: Rechtliches
write: Schreiben
terms: Terms
tos: Nutzungsbedingungen
privacy: Privatsphäre
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Erweiterungen (Plugins)
installed_plugins: Installierte Plugins
apperance: Erscheinungsbild
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Willkommen auf {{site_name}}
user_center:
login: Anmelden
@@ -2077,11 +2111,17 @@ ui:
always_display: Externen Inhalt immer anzeigen
ask_before_display: Vor der Anzeige externer Inhalte fragen
write:
page_title: Schreiben
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Antwort bearbeiten
label: Jeder Benutzer kann für jede Frage nur eine Antwort schreiben
text: "Schalten Sie aus, um es Benutzern zu ermöglichen, mehrere Antworten auf dieselbe Frage zu schreiben, was dazu führen kann, dass Antworten nicht im Fokus stehen."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Empfohlene Tags
text: "Empfohlene Tags werden standardmäßig in der Dropdown-Liste angezeigt."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Primäre Farbe
text: Ändere die Farben, die von deinen Themes verwendet werden
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS und HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Protokolle anzeigen
status: Status
title: Abzeichen
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optional)
empty: kann nicht leer sein
@@ -2329,6 +2437,7 @@ ui:
user_normal: Dieser Benutzer ist bereits normal.
user_suspended: Dieser Nutzer wurde gesperrt.
user_deleted: Benutzer wurde gelöscht.
user_added: User has been added successfully.
badge_activated: Dieses Abzeichen wurde aktiviert.
badge_inactivated: Dieses Abzeichen wurde deaktiviert.
users_deleted: Der Benutzer wurde gelöscht.
+1 -1
View File
@@ -684,7 +684,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+122 -10
View File
@@ -235,6 +235,8 @@ backend:
other: No permission to update.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Reputation rank fail to meet the condition.
@@ -264,6 +266,8 @@ backend:
other: You cannot delete a tag that is in use.
cannot_set_synonym_as_itself:
other: You cannot set the synonym of the current tag as itself.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: The from name cannot be a email address.
@@ -852,6 +856,19 @@ ui:
http_50X: HTTP Error 500
http_403: HTTP Error 403
logout: Log Out
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
thinking: Thinking…
thoughts: Thoughts
notifications:
title: Notifications
inbox: Inbox
@@ -1158,6 +1175,9 @@ ui:
label: Body
msg:
empty: Body cannot be empty.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Tags
msg:
@@ -1179,7 +1199,9 @@ ui:
add_btn: Add tag
create_btn: Create new tag
search_tag: Search tag
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: No tags matched
tag_required_text: Required tag (at least one)
header:
@@ -1198,9 +1220,7 @@ ui:
search:
placeholder: Search
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A
communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Change
loading: loading...
@@ -1235,7 +1255,7 @@ ui:
msg:
empty: Name cannot be empty.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Email
msg:
@@ -1317,7 +1337,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile image
gravatar: Gravatar
@@ -1407,9 +1427,11 @@ ui:
search: Search people
question_detail:
action: Action
created: Created
Asked: Asked
asked: asked
update: Modified
Edited: Edited
edit: edited
commented: commented
Views: Viewed
@@ -1730,7 +1752,7 @@ ui:
admin_name:
label: Name
msg: Name cannot be empty.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Password
@@ -1795,6 +1817,7 @@ ui:
branding: Branding
legal: Legal
write: Write
terms: Terms
tos: Terms of Service
privacy: Privacy
seo: SEO
@@ -1805,6 +1828,18 @@ ui:
plugins: Plugins
installed_plugins: Installed Plugins
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Welcome to {{site_name}}
user_center:
login: Login
@@ -2117,11 +2152,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Write
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Each user can only write one answer for the same question
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2169,6 +2210,10 @@ ui:
primary_color:
label: Primary color
text: Modify the colors used by your themes
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS and HTML
custom_css:
@@ -2196,6 +2241,10 @@ ui:
title: Email registration
label: Allow email registration
text: Turn off to prevent anyone creating new account through email.
email_verification:
title: Email verification
label: Require email verification
text: When enabled, users must verify their email address before using the site.
allowed_email_domains:
title: Allowed email domains
text: Email domains that users must register accounts with. One domain per line. Ignored when empty.
@@ -2270,6 +2319,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optional)
empty: cannot be empty
@@ -2277,7 +2390,6 @@ ui:
btn_submit: Save
not_found_props: "Required property {{ key }} not found."
select: Select
page_review:
review: Review
proposed: proposed
@@ -2367,6 +2479,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
@@ -2376,4 +2489,3 @@ ui:
copied: Copied
external_content_warning: External images/media are not displayed.
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: Sin permiso para actualizar.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: El rango de reputación no cumple la condición.
@@ -263,6 +265,8 @@ backend:
other: No puedes eliminar una etiqueta que está en uso.
cannot_set_synonym_as_itself:
other: No se puede establecer como sinónimo de una etiqueta la propia etiqueta.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: El nombre no puede ser una dirección de correo electrónico.
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP Error 500
http_403: HTTP Error 403
logout: Cerrar sesión
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Notificaciones
inbox: Buzón de entrada
@@ -1141,6 +1156,9 @@ ui:
label: Cuerpo
msg:
empty: Cuerpo no puede estar vacío.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Etiquetas
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Añadir etiqueta
create_btn: Crear nueva etiqueta
search_tag: Buscar etiqueta
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Ninguna etiqueta coincide
tag_required_text: Etiqueta requerida (al menos una)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Buscar
footer:
build_on: >-
Sitio creado por <1> Apache Answer </1>- el software libre que impulsa comunidades de Q&A.<br />Hecho con amor © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Cambiar
loading: cargando...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: El nombre no puede estar vacío.
range: El nombre debe tener entre 2 y 30 caracteres de largo.
character: 'Debe usar el juego de caracteres "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Correo electrónico
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: La gente puede mencionarte con "@nombredeusuario".
msg: El nombre de usuario no puede estar vacío.
msg_range: Username must be 2-30 characters in length.
character: 'Debe usar el conjunto de caracteres "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Imagen de perfil
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Buscar personas
question_detail:
action: Acción
created: Created
Asked: Preguntada
asked: preguntada
update: Modificada
Edited: Edited
edit: editada
commented: comentado
Views: Visto
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Nombre
msg: El nombre no puede estar vacío.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Contraseña
@@ -1756,6 +1777,7 @@ ui:
branding: Marca
legal: Legal
write: Escribir
terms: Terms
tos: Términos de servicio
privacy: Privacidad
seo: ESTE
@@ -1766,6 +1788,18 @@ ui:
plugins: Extensiones
installed_plugins: Extensiones Instaladas
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Bienvenido a {{site_name}}
user_center:
login: Iniciar sesión
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Escribir
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Escribir respuesta
label: Cada usuario solo puede escribir una respuesta por pregunta
text: "Desactivar para permitir a los usuarios escribir múltiples respuestas a la misma pregunta, lo que puede causar que las respuestas no estén enfocadas."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Etiquetas recomendadas
text: "Las etiquetas recomendadas se mostrarán en la lista desplegable por defecto."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Color primario
text: Modifica los colores usados por tus temas
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS y HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Mostrar logs
status: Status
title: Insignias
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (opcional)
empty: no puede estar en blanco
@@ -2329,6 +2437,7 @@ ui:
user_normal: Este usuario ya es normal.
user_suspended: Este usuario ha sido suspendido.
user_deleted: Este usuario ha sido eliminado.
user_added: User has been added successfully.
badge_activated: Esta insignia ha sido activada.
badge_inactivated: Esta insignia ha sido desactivada.
users_deleted: These users have been deleted.
+117 -8
View File
@@ -234,6 +234,8 @@ backend:
other: اجازه بروزرسانی ندارید.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: شهرت ناکافی.
@@ -263,6 +265,8 @@ backend:
other: نمی توانید تگی که در حال استفاده است را حذف کنید.
cannot_set_synonym_as_itself:
other: شما نمی توانید مترادفی برای برچسب فعلی به عوان خودش تنظیم کنین.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: '"از طرفه" نمی تواند آدرس ایمیل باشد.'
@@ -356,7 +360,7 @@ backend:
name:
other: این یک پاسخ نیست
desc:
other: "This was posted as an answer, but it does not attempt to answer the question. It should possibly be an edit, a comment, another question,or deleted altogether."
other: "."
no_longer_needed:
name:
other: دیگر نیازی نیست
@@ -841,6 +845,17 @@ ui:
http_50X: خطای 500 HTTP
http_403: خطای 403 HTTP
logout: خروج
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: اعلانات
inbox: پیغام‌های دریافتی
@@ -1141,6 +1156,9 @@ ui:
label: بدنه
msg:
empty: بدنه نمی تواند خالی باشد.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: برچسب ها
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: اضافه کردن برچسب
create_btn: ایجاد یک برچسب جدید
search_tag: جست‌وجوی برچسب‌
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: هیچ تگی مطابقت ندارد
tag_required_text: تگ نیاز هست (حداقل یک مورد)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: جستجو
footer:
build_on: >-
پشتیبانی شده توسط <1> Apache Answer </1> - نرم‌افزار منبع باز که باهمستان های پرسش و پاسخ را تقویت می کند.<br />ساخته شده با عشق © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: تغییر
loading: درحال بارگذاری...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: نام نمی‌تواند خالی باشد.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: ایمیل
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: دیگران میتوانند به شما به بصورت "@username" اشاره کنند.
msg: نام کاربری نمی تواند خالی باشد.
msg_range: Username must be 2-30 characters in length.
character: 'باید از حروف "a-z", "0-9", " - . _" استفاده شود'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: عکس پروفایل
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: جستجوی افراد
question_detail:
action: عملیات
created: Created
Asked: پرسیده شده
asked: پرسیده شده
update: تغییر یافته
Edited: Edited
edit: ویرایش شده
commented: commented
Views: مشاهده شده
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: نام
msg: نام نمی‌تواند خالی باشد.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: رمز عبور
@@ -1756,6 +1777,7 @@ ui:
branding: نام تجاری
legal: قانونی
write: نوشتن
terms: Terms
tos: قوانین
privacy: حریم خصوصی
seo: سئو
@@ -1766,6 +1788,18 @@ ui:
plugins: افزونه‌ها
installed_plugins: پلاگین های نصب شده
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: به {{site_name}} خوش آمدید
user_center:
login: ورود
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: نوشتن
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Each user can only write one answer for each question
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Primary color
text: Modify the colors used by your themes
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS and HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optional)
empty: cannot be empty
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+1 -1
View File
@@ -684,7 +684,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: Pas de permission pour mettre à jour.
content_cannot_empty:
other: Le contenu ne peut pas être vide.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Le rang de réputation ne remplit pas la condition.
@@ -263,6 +265,8 @@ backend:
other: Vous ne pouvez pas supprimer un tag utilisé.
cannot_set_synonym_as_itself:
other: Vous ne pouvez pas définir le synonyme de la balise actuelle comme elle-même.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: Le nom d'expéditeur ne peut pas être une adresse e-mail.
@@ -841,6 +845,17 @@ ui:
http_50X: Erreur HTTP 500
http_403: Erreur HTTP 403
logout: Se déconnecter
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Notifications
inbox: Boîte de réception
@@ -1141,6 +1156,9 @@ ui:
label: Corps
msg:
empty: Le corps ne peut pas être vide.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Étiquettes
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Ajouter une étiquette
create_btn: Créer une nouvelle étiquette
search_tag: Rechercher une étiquette
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Aucune étiquette correspondante
tag_required_text: Étiquette requise (au moins une)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Rechercher
footer:
build_on: >-
Propulsé par <1> Apache Answer </1>- le logiciel open-source qui alimente les communautés de Q&A.<br />Fait avec amour ©️ {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Remplacer
loading: chargement en cours...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Le nom ne peut pas être vide.
range: Le nom doit contenir entre 2 et 30 caractères.
character: 'Doit utiliser le jeu de caractères "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Email
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: Les gens peuvent vous mentionner avec "@username".
msg: Le nom d'utilisateur ne peut pas être vide.
msg_range: Le nom d'utilisateur doit contenir entre 2 et 30 caractères.
character: 'Doit utiliser seulement les caractères "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Photo de profil
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Rechercher des personnes
question_detail:
action: Action
created: Created
Asked: Demandé
asked: demandé
update: Modifié
Edited: Edited
edit: modifié
commented: commenté
Views: Consultée
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Nom
msg: Le nom ne peut pas être vide.
character: 'Utiliser seulement les caractères "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: La longueur du nom doit être comprise entre 2 et 30 caractères.
admin_password:
label: Mot de passe
@@ -1756,6 +1777,7 @@ ui:
branding: Marque
legal: Légal
write: Écrire
terms: Terms
tos: Conditions d'utilisation
privacy: Confidentialité
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Extensions
installed_plugins: Extensions installées
apperance: Apparence
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Bienvenue sur {{site_name}}
user_center:
login: Connexion
@@ -2077,11 +2111,17 @@ ui:
always_display: Toujours afficher le contenu externe
ask_before_display: Demander avant d'afficher le contenu externe
write:
page_title: Écrire
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Écriture de la réponse
label: Chaque utilisateur ne peut écrire qu'une seule réponse pour chaque question
text: "Désactivez pour permettre aux utilisateurs d'écrire plusieurs réponses à la même question, ce qui peut causer une perte de concentration des réponses."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Tags recommandés
text: "Les balises recommandées apparaîtront par défaut dans la liste déroulante."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Couleur primaire
text: Modifier les couleurs utilisées par vos thèmes
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS et HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Voir les logs
status: Statut
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optionnel)
empty: ne peut pas être vide
@@ -2329,6 +2437,7 @@ ui:
user_normal: Cet utilisateur est déjà normal.
user_suspended: Cet utilisateur a été suspendu.
user_deleted: Cet utilisateur a été supprimé.
user_added: User has been added successfully.
badge_activated: Ce badge a été activé.
badge_inactivated: Ce badge a été désactivé.
users_deleted: Ces utilisateurs ont été supprimés.
+1 -1
View File
@@ -684,7 +684,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: No permission to update.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Reputation rank fail to meet the condition.
@@ -263,6 +265,8 @@ backend:
other: You cannot delete a tag that is in use.
cannot_set_synonym_as_itself:
other: You cannot set the synonym of the current tag as itself.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: The from name cannot be a email address.
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP Error 500
http_403: HTTP Error 403
logout: Log Out
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Notifications
inbox: Inbox
@@ -1141,6 +1156,9 @@ ui:
label: Body
msg:
empty: Body cannot be empty.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Tags
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Add tag
create_btn: Create new tag
search_tag: Search tag
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: No tags matched
tag_required_text: Required tag (at least one)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Search
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Change
loading: loading...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Name cannot be empty.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Email
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile image
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Search people
question_detail:
action: Action
created: Created
Asked: Asked
asked: asked
update: Modified
Edited: Edited
edit: edited
commented: commented
Views: Viewed
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Name
msg: Name cannot be empty.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Password
@@ -1756,6 +1777,7 @@ ui:
branding: Branding
legal: Legal
write: Write
terms: Terms
tos: Terms of Service
privacy: Privacy
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugins
installed_plugins: Installed Plugins
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Welcome to {{site_name}}
user_center:
login: Login
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Write
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Each user can only write one answer for each question
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Primary color
text: Modify the colors used by your themes
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS and HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optional)
empty: cannot be empty
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+1 -1
View File
@@ -684,7 +684,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+1 -1
View File
@@ -677,7 +677,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username up to 30 characters
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+118 -9
View File
@@ -110,7 +110,7 @@ backend:
rank_invite_someone_to_answer_label:
other: Undang seseorang untuk menjawab
rank_tag_add_label:
other:
other: Buat tag baru
rank_tag_edit_label:
other: Edit tag description (need to review)
rank_question_edit_label:
@@ -132,7 +132,7 @@ backend:
rank_tag_synonym_label:
other: Manage tag synonyms
email:
other:
other: Email
e_mail:
other: Email
password:
@@ -234,6 +234,8 @@ backend:
other: Tidak diizinkan untuk memperbarui.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Reputation rank fail to meet the condition.
@@ -263,6 +265,8 @@ backend:
other: You cannot delete a tag that is in use.
cannot_set_synonym_as_itself:
other: Anda tidak bisa menetapkan sinonim dari tag saat ini dengan tag yang sama.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: The from name cannot be a email address.
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP Error 500
http_403: HTTP Error 403
logout: Log Out
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Pemberitahuan
inbox: Kotak Masuk
@@ -1141,6 +1156,9 @@ ui:
label: Body
msg:
empty: Body cannot be empty.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Tags
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Add tag
create_btn: Create new tag
search_tag: Search tag
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: No tags matched
tag_required_text: Required tag (at least one)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Cari
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Ubah
loading: sedang memuat...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Nama tidak boleh kosong.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Email
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile image
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Search people
question_detail:
action: Action
created: Created
Asked: Ditanyakan
asked: ditanyakan
update: Diubah
Edited: Edited
edit: disunting
commented: commented
Views: Dilihat
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Name
msg: Name cannot be empty.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Password
@@ -1756,6 +1777,7 @@ ui:
branding: Branding
legal: Legal
write: Write
terms: Terms
tos: Terms of Service
privacy: Privasi
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugins
installed_plugins: Installed Plugins
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Welcome to {{site_name}}
user_center:
login: Login
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Write
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Each user can only write one answer for each question
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Primary color
text: Modify the colors used by your themes
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS and HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optional)
empty: cannot be empty
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+137 -28
View File
@@ -58,7 +58,7 @@ backend:
undelete:
other: Ripristina
merge:
other: Merge
other: Unisci
role:
name:
user:
@@ -140,7 +140,7 @@ backend:
pass:
other: Password
old_pass:
other: Current password
other: Password attuale
original_text:
other: Questo post
email_or_password_wrong_error:
@@ -173,7 +173,7 @@ backend:
question_closed_cannot_add:
other: Le domande sono chiuse e non possono essere aggiunte.
content_cannot_empty:
other: Answer content cannot be empty.
other: Il contenuto della risposta non può essere vuoto.
comment:
edit_without_permission:
other: Non si hanno di privilegi sufficienti per modificare il commento.
@@ -182,7 +182,7 @@ backend:
cannot_edit_after_deadline:
other: Il tempo per editare è scaduto.
content_cannot_empty:
other: Comment content cannot be empty.
other: Il commento non può essere vuoto.
email:
duplicate:
other: Email già esistente.
@@ -233,7 +233,9 @@ backend:
cannot_update:
other: Nessun permesso per l'aggiornamento.
content_cannot_empty:
other: Content cannot be empty.
other: Il contenuto non può essere vuoto.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Il rango di reputazione non soddisfa le condizioni.
@@ -263,6 +265,8 @@ backend:
other: Non è possibile eliminare un tag in uso.
cannot_set_synonym_as_itself:
other: Non puoi impostare il sinonimo del tag corrente come se stesso.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: Il mittente non può essere un indirizzo email.
@@ -307,13 +311,13 @@ backend:
add_bulk_users_amount_error:
other: "Il numero di utenti che aggiungi contemporaneamente dovrebbe essere compreso tra 1 e {{.MaxAmount}}."
status_suspended_forever:
other: "<strong>This user was suspended forever.</strong> This user doesn't meet a community guideline."
other: "<strong>Questo utente è stato sospeso per sempre.</strong> Questo utente non soddisfa le linee guida della comunità."
status_suspended_until:
other: "<strong>This user was suspended until {{.SuspendedUntil}}.</strong> This user doesn't meet a community guideline."
other: "<strong>Questo utente è stato sospeso fino a {{.SuspendedUntil}}.</strong> Questo utente non soddisfa le linee guida della comunità."
status_deleted:
other: "This user was deleted."
other: "Utente eliminato."
status_inactive:
other: "This user is inactive."
other: "L'utente è inattivo."
config:
read_config_failed:
other: Configurazione lettura fallita
@@ -502,7 +506,7 @@ backend:
title:
other: "[{{.SiteName}}] Nuova domanda: {{.QuestionTitle}}"
body:
other: "<a href='{{.QuestionUrl}}'>{{.QuestionTitle}}</a><br>\n<small>{{.Tags}}</small><br><br>\n\n--<br>\nNote: This is an automatic system email, please do not reply to this message as your response will not be seen.<br><br>\n\n<small><a href='{{.UnsubscribeUrl}}'>Unsubscribe</a></small>"
other: "<a href='{{.QuestionUrl}}'>{{.QuestionTitle}}</a><br>\n<small>{{.Tags}}</small><br><br>\n\n--<br>\nNota: Si tratta di un'email di sistema automatica, non rispondere a questo messaggio perché la tua risposta non sarà visualizzata.<br><br>\n\n<small><a href='{{.UnsubscribeUrl}}'>Cancellati</a></small>"
pass_reset:
title:
other: "[{{.SiteName }}] Reimpostazione della password"
@@ -574,7 +578,7 @@ backend:
name:
other: Primo Link
desc:
other: First added a link to another post.
other: Per prima cosa è stato aggiunto un link ad un altro post.
first_reaction:
name:
other: Prima Reazione
@@ -817,7 +821,7 @@ ui:
tag_wiki: tag wiki
create_tag: Crea tag
edit_tag: Modifica Tag
ask_a_question: Create Question
ask_a_question: Crea domanda
edit_question: Modifica Domanda
edit_answer: Modifica risposta
search: Cerca
@@ -841,6 +845,17 @@ ui:
http_50X: Errore HTTP 500
http_403: Errore HTTP 403
logout: Disconnetti
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Notifiche
inbox: Posta in arrivo
@@ -1038,9 +1053,9 @@ ui:
tip: Sei sicuro di voler cancellare?
close: Chiudi
merge:
title: Merge tag
source_tag_title: Source tag
source_tag_description: The source tag and its associated data will be remapped to the target tag.
title: Unisci tag
source_tag_title: Cerca tag
source_tag_description: Il tag sorgente e i dati associati verranno rimappati al tag di destinazione.
target_tag_title: Target tag
target_tag_description: A synonym between these two tags will be created after merging.
no_results: No tags matched
@@ -1141,6 +1156,9 @@ ui:
label: Contenuto
msg:
empty: Il corpo del testo non può essere vuoto.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Tags
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Aggiungi tag
create_btn: Crea un nuovo tag
search_tag: Cerca tag
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Nessun tag corrispondente
tag_required_text: Tag richiesto (almeno uno)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Cerca
footer:
build_on: >-
Basato su <1> Apache Answer </1>, il software open source che alimenta le comunità di domande e risposte.<br />Fatto con amore © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Modifica
loading: caricamento in corso...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Il nome non può essere vuoto.
range: Il nome deve essere di lunghezza compresa tra 2 e 30 caratteri.
character: 'È necessario utilizzare il set di caratteri "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: E-mail
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: Gli altri utenti possono menzionarti con @{{username}}.
msg: Il nome utente non può essere vuoto.
msg_range: Username must be 2-30 characters in length.
character: 'È necessario utilizzare il set di caratteri "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Immagine del profilo
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Cerca persone
question_detail:
action: Azione
created: Created
Asked: Chiesto
asked: chiesto
update: Modificato
Edited: Edited
edit: modificato
commented: commentato
Views: Visualizzati
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Nome
msg: Il nome non può essere vuoto.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Password
@@ -1756,6 +1777,7 @@ ui:
branding: Marchio
legal: Legale
write: Scrivi
terms: Terms
tos: Termini del servizio
privacy: Privacy
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugin
installed_plugins: Plugin installati
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Benvenuto/a su {{site_name}}!
user_center:
login: Accedi
@@ -1865,7 +1899,7 @@ ui:
fields:
display_name:
label: Visualizza nome
msg_range: Display name must be 2-30 characters in length.
msg_range: Il nome visualizzato deve essere di 2-30 caratteri di lunghezza.
username:
label: Nome utente
msg_range: Username must be 2-30 characters in length.
@@ -1903,7 +1937,7 @@ ui:
created_at: Created time
delete_at: Deleted time
suspend_at: Suspended time
suspend_until: Suspend until
suspend_until: Sospendi fino al
status: Stato
role: Ruolo
action: Azione
@@ -1938,8 +1972,8 @@ ui:
suspend_user:
title: Sospendi questo utente
content: Un utente sospeso non può accedere.
label: How long will the user be suspended for?
forever: Forever
label: Per quanto tempo vuoi sospendere l'utente?
forever: Per sempre
questions:
page_title: Domande
unlisted: Rimosso dall'elenco
@@ -2001,8 +2035,8 @@ ui:
msg: Il fuso orario non può essere vuoto.
text: Scegli una città con il tuo stesso fuso orario.
avatar:
label: Default avatar
text: For users without a custom avatar of their own.
label: Avatar Predefinito
text: Per gli utenti senza un proprio avatar personalizzato.
gravatar_base_url:
label: Gravatar base URL
text: URL of the Gravatar provider's API base. Ignored when empty.
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Scrivi
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Risposta a scrivere
label: Ogni utente può scrivere una sola risposta per ogni domanda
text: "Disattiva per consentire agli utenti di scrivere risposte multiple alla stessa domanda, il che potrebbe causare una risposta sfocata."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Raccomanda tag
text: "I tag consigliati verranno mostrati nell'elenco a discesa per impostazione predefinita."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Colore primario
text: Modifica i colori utilizzati dai tuoi temi
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS e HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Visualizza i log
status: Stato
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (opzionale)
empty: non può essere vuoto
@@ -2329,6 +2437,7 @@ ui:
user_normal: Questo utente è già normale.
user_suspended: Questo utente è stato sospeso.
user_deleted: Questo utente è stato eliminato.
user_added: User has been added successfully.
badge_activated: Questo badge è stato attivato.
badge_inactivated: Questo badge è stato disattivato.
users_deleted: These users have been deleted.
+206 -97
View File
@@ -58,7 +58,7 @@ backend:
undelete:
other: 復元する
merge:
other: Merge
other: マージ
role:
name:
user:
@@ -140,7 +140,7 @@ backend:
pass:
other: パスワード
old_pass:
other: Current password
other: 現在のパスワード
original_text:
other: 投稿
email_or_password_wrong_error:
@@ -173,7 +173,7 @@ backend:
question_closed_cannot_add:
other: 質問はクローズされて、追加できません。
content_cannot_empty:
other: Answer content cannot be empty.
other: 回答を入力してください。
comment:
edit_without_permission:
other: コメントを編集することはできません。
@@ -182,7 +182,7 @@ backend:
cannot_edit_after_deadline:
other: コメント時間が長すぎて変更できません。
content_cannot_empty:
other: Comment content cannot be empty.
other: コメントを入力してください。
email:
duplicate:
other: メールアドレスは既に存在しています。
@@ -233,7 +233,9 @@ backend:
cannot_update:
other: 更新する権限がありません。
content_cannot_empty:
other: Content cannot be empty.
other: 内容を入力してください。
content_less_than_minimum:
other: 入力された内容の文字数が足りません。
rank:
fail_to_meet_the_condition:
other: 評判ランクが条件を満たしていません
@@ -263,6 +265,8 @@ backend:
other: 使用中のタグは削除できません。
cannot_set_synonym_as_itself:
other: 現在のタグの同義語をそのものとして設定することはできません。
minimum_count:
other: タグが不足しています。
smtp:
config_from_name_cannot_be_email:
other: Fromの名前はメールアドレスにできません。
@@ -307,13 +311,13 @@ backend:
add_bulk_users_amount_error:
other: "一度に追加するユーザーの数は、1 -{{.MaxAmount}} の範囲にする必要があります。"
status_suspended_forever:
other: "<strong>This user was suspended forever.</strong> This user doesn't meet a community guideline."
other: "<strong>このユーザーは永久に停止されました。</strong> このユーザーはコミュニティガイドラインに準拠していません。"
status_suspended_until:
other: "<strong>This user was suspended until {{.SuspendedUntil}}.</strong> This user doesn't meet a community guideline."
other: "<strong>このユーザーは {{.SuspendedUntil}} まで利用停止となりました。</strong> このユーザーはコミュニティ ガイドラインに準拠していません。"
status_deleted:
other: "This user was deleted."
other: "このユーザーは削除されました。"
status_inactive:
other: "This user is inactive."
other: "このユーザーは非アクティブです。"
config:
read_config_failed:
other: configの読み込みに失敗しました
@@ -502,7 +506,7 @@ backend:
title:
other: "[{{.SiteName}}] 新しい質問: {{.QuestionTitle}}"
body:
other: "<a href='{{.QuestionUrl}}'>{{.QuestionTitle}}</a><br>\n<small>{{.Tags}}</small><br><br>\n\n--<br>\nNote: This is an automatic system email, please do not reply to this message as your response will not be seen.<br><br>\n\n<small><a href='{{.UnsubscribeUrl}}'>Unsubscribe</a></small>"
other: "<a href='{{.QuestionUrl}}'>{{.QuestionTitle}}</a><br>\n<small>{{.Tags}}</small><br><br>\n\n--<br>\n注: これはシステムから送信される自動メールです。ご返信いただいても返信は表示されませんので、ご返信はご遠慮ください。<br><br>\n\n<small><a href='{{.UnsubscribeUrl}}'>購読解除</a></small>"
pass_reset:
title:
other: "[{{.SiteName }}] パスワードリセット"
@@ -574,7 +578,7 @@ backend:
name:
other: はじめてのリンク
desc:
other: First added a link to another post.
other: 初めて別の投稿へのリンクを追加した。
first_reaction:
name:
other: 初めてのリアクション
@@ -594,17 +598,17 @@ backend:
name:
other: コメントマン
desc:
other: 5つコメントをした
other: 5つコメントをした
new_user_of_the_month:
name:
other: 今月の新しいユーザー
desc:
other: 最初の月に優れた貢献
other: 最初の1ヶ月で優れた貢献をした
read_guidelines:
name:
other: ガイドラインを読んだ
desc:
other: '「コミュニティガイドライン」をご覧ください。'
other: '「コミュニティガイドライン」を読んだ'
reader:
name:
other: リーダー
@@ -744,7 +748,7 @@ backend:
name:
other: 素晴らしい回答
desc:
other: 回答スコアは50以上!!!!1
other: 回答スコアは50以上!!!!
nice_question:
name:
other: ナイスな質問
@@ -816,7 +820,7 @@ ui:
tag_wiki: タグ wiki
create_tag: タグを作成
edit_tag: タグを編集
ask_a_question: Create Question
ask_a_question: 質問を作成
edit_question: 質問を編集
edit_answer: 回答を編集
search: 検索
@@ -840,6 +844,17 @@ ui:
http_50X: HTTP エラー 500
http_403: HTTP エラー 403
logout: ログアウト
posts: 投稿
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: 通知
inbox: 受信トレイ
@@ -1037,14 +1052,14 @@ ui:
tip: 本当に削除してもよろしいですか?
close: クローズ
merge:
title: Merge tag
source_tag_title: Source tag
source_tag_description: The source tag and its associated data will be remapped to the target tag.
target_tag_title: Target tag
target_tag_description: A synonym between these two tags will be created after merging.
no_results: No tags matched
btn_submit: Submit
btn_close: Close
title: タグをマージ
source_tag_title: ソース タグ
source_tag_description: ソースタグとそれに関連付けられたデータは、ターゲットタグに再マップされます。
target_tag_title: ターゲットタグ
target_tag_description: マージ後、これら2つのタグの同義語が作成されます。
no_results: 一致するタグはありません
btn_submit: 送信
btn_close: 閉じる
edit_tag:
title: タグを編集
default_reason: タグを編集
@@ -1063,9 +1078,9 @@ ui:
day:
hours:
days:
month: month
months: months
year: year
month:
months: ヶ月
year:
reaction:
heart: ハート
smile: 笑顔
@@ -1121,10 +1136,10 @@ ui:
more: もっと見る
wiki: Wiki
ask:
title: Create Question
title: 質問を作成
edit_title: 質問を編集
default_reason: 質問を編集
default_first_reason: Create question
default_first_reason: 質問を作成
similar_questions: 類似の質問
form:
fields:
@@ -1132,7 +1147,7 @@ ui:
label: 修正
title:
label: タイトル
placeholder: What's your topic? Be specific.
placeholder: どのようなトピックですか?具体的に教えてください。
msg:
empty: タイトルを空にすることはできません。
range: タイトルは最大150文字までです
@@ -1140,6 +1155,9 @@ ui:
label: 本文
msg:
empty: 本文を空にすることはできません。
hint:
optional_body: 質問を記載してください。
minimum_characters: "質問を記載してください。{{min_content_length}} 文字以上の記載が必要です。"
tags:
label: タグ
msg:
@@ -1160,7 +1178,9 @@ ui:
add_btn: タグを追加
create_btn: 新しタグを作成
search_tag: タグを検索
hint: "Describe what your content is about, at least one tag is required."
hint: 内容を記載してください。1つ以上のタグが必要です。
hint_zero_tags: 内容を記載してください。
hint_more_than_one_tag: "内容を記載してください。{{min_content_length}} 文字以上の記載が必要です。"
no_result: 一致するタグはありません
tag_required_text: 必須タグ (少なくとも 1 つ)
header:
@@ -1179,8 +1199,7 @@ ui:
search:
placeholder: 検索
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: 変更
loading: 読み込み中…
@@ -1213,7 +1232,7 @@ ui:
msg:
empty: 名前を空にすることはできません。
range: 230文字の名前を設定してください。
character: '文字セット "a-z", "A-Z", "0-9", " - " を使用する必要があります。'
character: '使用可能な文字は、英小字「a-z」、数字「0-9」、記号「- . _ 」のみです'
email:
label: メールアドレス
msg:
@@ -1285,13 +1304,13 @@ ui:
display_name:
label: 表示名
msg: 表示名は必須です。
msg_range: Display name must be 2-30 characters in length.
msg_range: 表示名は 2 ~ 30 文字で入力してください。
username:
label: ユーザー名
caption: ユーザーは "@username" としてあなたをメンションできます。
msg: ユーザー名は空にできません。
msg_range: Username must be 2-30 characters in length.
character: '文字セット "a-z", "0-9", " - . _" を使用してください。'
msg_range: ユーザー名は2 ~ 30文字で入力してください。
character: '使用可能な文字は、英小字「a-z」、数字「0-9」、記号「- . _ 」のみです'
avatar:
label: プロフィール画像
gravatar: Gravatar
@@ -1366,23 +1385,25 @@ ui:
review: レビュー後にあなたのリビジョンが表示されます。
sent_success: 正常に送信されました。
related_question:
title: Related
title: 関連
answers: 回答
linked_question:
title: Linked
description: Posts linked to
no_linked_question: No contents linked from this content.
title: リンク済
description: リンクされた投稿
no_linked_question: このコンテンツからリンクされたコンテンツはありません。
invite_to_answer:
title: People Asked
desc: Select people who you think might know the answer.
title: 回答をリクエスト
desc: 答えられそうな人を招待します。
invite: 回答に招待する
add: ユーザーを追加
search: ユーザーを検索
question_detail:
action: 動作
created: 作成済
Asked: 質問済み
asked: 質問済み
update: 修正済み
Edited: 編集済
edit: 編集済み
commented: コメントしました
Views: 閲覧回数
@@ -1464,7 +1485,7 @@ ui:
signup: 新規登録
logout: ログアウト
verify: 認証
create: Create
create: 作成
approve: 承認
reject: 却下
skip: スキップする
@@ -1496,16 +1517,16 @@ ui:
normal: 通常
closed: クローズ済み
deleted: 削除済み
deleted_permanently: Deleted permanently
deleted_permanently: 完全に削除する
pending: 処理待ち
more: もっと見る
view: View
card: Card
compact: Compact
display_below: Display below
always_display: Always display
or: or
back_sites: Back to sites
view: 表示方法
card: カード
compact: コンパクト
display_below: 以下に表示
always_display: 常に表示
or: または
back_sites: サイトに戻る
search:
title: 検索結果
keywords: キーワード
@@ -1513,7 +1534,7 @@ ui:
follow: フォロー
following: フォロー中
counts: "結果:{{count}}"
counts_loading: "... Results"
counts_loading: "... 結果"
more: もっと見る
sort_btns:
relevance: 関連性
@@ -1536,13 +1557,13 @@ ui:
via: 投稿を共有...
copied: コピーしました
facebook: Facebookで共有
twitter: Share to X
twitter: Xでシェア
cannot_vote_for_self: 自分の投稿には投票できません。
modal_confirm:
title: エラー...
delete_permanently:
title: Delete permanently
content: Are you sure you want to delete permanently?
title: 完全に削除する
content: 完全に削除しても良いですか?
account_result:
success: 新しいアカウントが確認されました。ホームページにリダイレクトされます。
link: ホームページへ
@@ -1565,13 +1586,13 @@ ui:
all_questions: すべての質問
x_questions: "{{ count }} の質問"
x_answers: "{{ count }} の回答"
x_posts: "{{ count }} Posts"
x_posts: "{{ count }} の回答"
questions: 質問
answers: 回答
newest: 最新
active: 有効
hot: 人気
frequent: Frequent
frequent: 関心順
recommend: おすすめ
score: スコア
unanswered: 未回答
@@ -1648,22 +1669,22 @@ ui:
placeholder: /data/answer.db
msg: データベースファイルは空にできません。
ssl_enabled:
label: Enable SSL
label: SSLを有効化
ssl_enabled_on:
label: On
ssl_enabled_off:
label: Off
ssl_mode:
label: SSL Mode
label: SSL モード
ssl_root_cert:
placeholder: sslrootcert file path
msg: Path to sslrootcert file cannot be empty
placeholder: sslrootcert ファイルパス
msg: sslrootcert ファイルパスは空にできません
ssl_cert:
placeholder: sslcert file path
msg: Path to sslcert file cannot be empty
placeholder: sslcert ファイルパス
msg: sslcert ファイルパスは空にできません
ssl_key:
placeholder: sslkey file path
msg: Path to sslkey file cannot be empty
placeholder: sslkey ファイルパス
msg: sslkey ファイルパスは空にできません
config_yaml:
title: config.yamlを作成
label: config.yaml ファイルが作成されました。
@@ -1696,8 +1717,8 @@ ui:
admin_name:
label: 名前
msg: 名前を空にすることはできません。
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
character: '使用可能な文字は、英小字「a-z」、数字「0-9」、記号「- . _ 」のみです'
msg_max_length: 名前は2 ~ 30文字で入力してください。
admin_password:
label: パスワード
text: >-
@@ -1706,9 +1727,9 @@ ui:
msg_min_length: パスワードは8文字以上でなければなりません。
msg_max_length: パスワードは最大 32 文字でなければなりません。
admin_confirm_password:
label: "Confirm Password"
text: "Please re-enter your password to confirm."
msg: "Confirm password does not match."
label: "パスワードの確認"
text: "確認のため、パスワードを再入力してください。"
msg: "確認用パスワードが一致しません"
admin_email:
label: メールアドレス
text: ログインするにはこのメールアドレスが必要です。
@@ -1756,7 +1777,8 @@ ui:
smtp: SMTP
branding: ブランディング
legal: 法的事項
write: 書き
write: 編集
terms: 規約
tos: 利用規約
privacy: プライバシー
seo: SEO
@@ -1766,7 +1788,19 @@ ui:
privileges: 特典
plugins: プラグイン
installed_plugins: 使用中のプラグイン
apperance: Appearance
apperance: 外観
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: '{{site_name}} へようこそ'
user_center:
login: ログイン
@@ -1866,10 +1900,10 @@ ui:
fields:
display_name:
label: 表示名
msg_range: Display name must be 2-30 characters in length.
msg_range: 表示名は 2 ~ 30 文字で入力してください。
username:
label: ユーザー名
msg_range: Username must be 2-30 characters in length.
msg_range: ユーザー名は 2 ~ 30 文字で入力してください。
email:
label: メールアドレス
msg_invalid: 無効なメールアドレス
@@ -1901,10 +1935,10 @@ ui:
name: 名前
email: メールアドレス
reputation: 評価
created_at: Created time
delete_at: Deleted time
suspend_at: Suspended time
suspend_until: Suspend until
created_at: 作成日時
delete_at: 削除日時
suspend_at: 凍結時間
suspend_until: まで凍結
status: ステータス
role: ロール
action: 操作
@@ -1939,8 +1973,8 @@ ui:
suspend_user:
title: ユーザーをサスペンドにする
content: 一時停止中のユーザーはログインできません。
label: How long will the user be suspended for?
forever: Forever
label: いつまで凍結しますか?
forever: 無期限
questions:
page_title: 質問
unlisted: 限定公開済み
@@ -2002,11 +2036,11 @@ ui:
msg: タイムゾーンを空にすることはできません。
text: あなたのタイムゾーンを選択してください。
avatar:
label: Default avatar
text: For users without a custom avatar of their own.
label: デフォルトのアバター
text: 独自のカスタムアバターを持たないユーザー向け。
gravatar_base_url:
label: Gravatar base URL
text: URL of the Gravatar provider's API base. Ignored when empty.
label: GravatarのベースURL
text: GravatarプロバイダーのAPIベースのURL。空の場合は無視されます。
smtp:
page_title: SMTP
from_email:
@@ -2073,16 +2107,22 @@ ui:
label: プライバシーポリシー
text: "ここにプライバシーポリシーの内容を追加できます。すでに他の場所でホストされているドキュメントを持っている場合は、こちらにフルURLを入力してください。"
external_content_display:
label: External content
text: "Content includes images, videos, and media embedded from external websites."
always_display: Always display external content
ask_before_display: Ask before displaying external content
label: 外部コンテンツ
text: "コンテンツには、外部ウェブサイトから埋め込まれた画像、ビデオ、およびメディアが含まれます"
always_display: 常に外部コンテンツを表示する
ask_before_display: 外部コンテンツを表示する前に確認する
write:
page_title: 編集
page_title: Files
min_content:
label: 質問に必要な文字数
text: 質問の投稿に必要な本文の文字数です。
restrict_answer:
title: 回答を書く
label: 各ユーザーは同じ質問に対して1つの回答しか書けません
text: "ユーザが同じ質問に複数の回答を書き込めるようにするにはオフにします。これにより回答がフォーカスされていない可能性があります。"
min_tags:
label: "質問に必要なタグ数"
text: "質問の投稿に必要なタグの数です。"
recommend_tags:
label: おすすめタグ
text: "デフォルトでドロップダウンリストに推奨タグが表示されます。"
@@ -2126,10 +2166,14 @@ ui:
color_scheme:
label: 配色
navbar_style:
label: Navbar background style
label: ナビゲーションバーの背景スタイル
primary_color:
label: メインカラー
text: テーマで使用される色を変更する
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS と HTML
custom_css:
@@ -2234,6 +2278,70 @@ ui:
show_logs: ログを表示
status: ステータス
title: バッジ
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (任意)
empty: 空にすることはできません
@@ -2330,13 +2438,14 @@ ui:
user_normal: このユーザーは既に有効です。
user_suspended: このユーザーは凍結されています。
user_deleted: このユーザーは削除されました。
user_added: User has been added successfully.
badge_activated: このバッジは有効化されました。
badge_inactivated: このバッジは無効化されています。
users_deleted: These users have been deleted.
posts_deleted: These questions have been deleted.
answers_deleted: These answers have been deleted.
copy: Copy to clipboard
copied: Copied
external_content_warning: External images/media are not displayed.
users_deleted: このユーザーは削除されました。
posts_deleted: この質問は削除されています。
answers_deleted: この回答は削除されています。
copy: クリップボードにコピー
copied: コピーしました
external_content_warning: 外部の画像/メディアは表示されません。
+143 -34
View File
@@ -234,6 +234,8 @@ backend:
other: 업데이트 권한이 없습니다.
content_cannot_empty:
other: 내용은 비워둘 수 없습니다.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: 등급이 조건을 충족하지 못합니다.
@@ -263,6 +265,8 @@ backend:
other: 사용 중인 태그는 삭제할 수 없습니다.
cannot_set_synonym_as_itself:
other: 현재 태그의 동의어로 자기 자신을 설정할 수 없습니다.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: 발신자 이름은 이메일 주소가 될 수 없습니다.
@@ -307,13 +311,13 @@ backend:
add_bulk_users_amount_error:
other: "한 번에 추가할 수 있는 사용자 수는 1-{{.MaxAmount}} 범위 내에 있어야 합니다."
status_suspended_forever:
other: "<strong>This user was suspended forever.</strong> This user doesn't meet a community guideline."
other: "<strong>이 사용자는 무기한 접근이 금지 되었습니다.</strong> 이 사용자는 커뮤니티의 지침을 충족시키지 않았습니다."
status_suspended_until:
other: "<strong>This user was suspended until {{.SuspendedUntil}}.</strong> This user doesn't meet a community guideline."
other: "<strong>이 사용자는 {{.SuspendedUntil}} 까지 접근이 금지 되었습니다.</strong> 이 사용자는 커뮤니티의 지침을 충족시키지 않았습니다."
status_deleted:
other: "This user was deleted."
other: "삭제된 사용자입니다."
status_inactive:
other: "This user is inactive."
other: "비활성 사용자입니다."
config:
read_config_failed:
other: 컨피그파일 읽기를 실패했습니다
@@ -356,7 +360,7 @@ backend:
name:
other: 답변이 아닙니다
desc:
other: "질문에 적절한 대답이 아닙니다. 편집, 댓글, 다른 질문, 또는 완전히 삭제 것이어야 합니다."
other: "이 내용은 답변으로 게시 되었지만, 질문에 대한 답변 시도가 아닙니다. 이는 수정, 댓글, 다른 질문으로 올리는 것이 적절하거나, 삭제하는 것이 적절할 수도 있습니다."
no_longer_needed:
name:
other: 더 이상 필요하지 않습니다.
@@ -512,7 +516,7 @@ backend:
title:
other: "[{{.SiteName}}] 새 계정 확인"
body:
other: "{{.SiteName}} 에 오신 것을 환영합니다!<br><br>\n\n새 계정을 확인하고 활성화하려면 다음 링크를 클릭하세요:<br>\n<a href='{{.RegisterUrl}}' target='_blank'>{{.RegisterUrl}}</a><br><br>\n\n위 링크가 클릭되지 않으면 브라우저의 주소창에 복사하여 붙여넣어 보세요.\n<br><br>\n\n--<br>\n참고: 이것은 자동 시스템 이메일입니다. 응답해도 확인되지 않으므로 이 메시지에 회신하지 마세요."
other: "{{.SiteName}} 에 오신 것을 환영합니다!<br><br>\n\n새 계정을 확인하고 활성화하려면 다음 링크를 클릭하세요:<br>\n<a href='{{.RegisterUrl}}' target='_blank'>{{.RegisterUrl}}</a><br><br>\n\n위 링크가 동작하지 않으면 복사하여 브라우저의 주소 입력에 직접 붙여넣세요.\n<br><br>\n\n--<br>\n참고: 이것은 자동 시스템 이메일입니다. 응답해도 확인되지 않으므로 이 메시지에 회신하지 마세요."
test:
title:
other: "[{{.SiteName}}] 테스트 이메일"
@@ -602,7 +606,7 @@ backend:
other: 첫 달의 뛰어난 기여.
read_guidelines:
name:
other: 가이드라인 읽
other: 가이드라인 읽
desc:
other: '[커뮤니티 가이드라인] 을 읽어보세요.'
reader:
@@ -817,7 +821,7 @@ ui:
tag_wiki: 태그 위키
create_tag: 태그 생성
edit_tag: 태그 수정
ask_a_question: Create Question
ask_a_question: 질문 생성
edit_question: 질문 수정
edit_answer: 답변 수정
search: 검색
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP 오류 500
http_403: HTTP 오류 403
logout: 로그아웃
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: 알림
inbox: 받은 편지함
@@ -1064,9 +1079,9 @@ ui:
day:
hours: 시간
days:
month: month
months: months
year: year
month:
months: 개월
year:
reaction:
heart: 하트
smile: 스마일
@@ -1122,10 +1137,10 @@ ui:
more: 더 보기
wiki: 위키
ask:
title: Create Question
title: 질문 생성
edit_title: 질문 수정
default_reason: 질문 수정
default_first_reason: Create question
default_first_reason: 질문 생성
similar_questions: 유사한 질문
form:
fields:
@@ -1133,7 +1148,7 @@ ui:
label: 개정
title:
label: 제목
placeholder: What's your topic? Be specific.
placeholder: 주제는 무엇인가요? 상세하게 작성해주세요.
msg:
empty: 제목을 입력하세요.
range: 제목은 최대 150자까지 입력 가능합니다.
@@ -1141,6 +1156,9 @@ ui:
label: 본문
msg:
empty: 본문을 입력하세요.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: 태그
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: 태그 추가
create_btn: 새 태그 생성
search_tag: 태그 검색
hint: "Describe what your content is about, at least one tag is required."
hint: 질문의 주제를 설명하세요. 적어도 하나의 태그가 필요합니다.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: 일치하는 태그가 없습니다.
tag_required_text: 필수 태그 (적어도 하나)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: 검색
footer:
build_on: >-
Powered by <1> Apache Answer </1> - Q&A 커뮤니티를 지원하는 오픈 소스 소프트웨어입니다.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: 변경
loading: 로딩 중...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: 이름을 입력하세요.
range: 이름은 2 자에서 30 자 사이여야 합니다.
character: '문자 집합 "a-z", "0-9", " - . _"를 사용해야 합니다'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: 이메일
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: 다른 사용자가 "@사용자이름"으로 멘션할 수 있습니다.
msg: 사용자 이름을 입력하세요.
msg_range: 유저 이름은 2-30 자 길이여야 합니다.
character: '문자 집합 "a-z", "0-9", " - . _"을 사용해야 합니다.'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: 프로필 이미지
gravatar: Gravatar
@@ -1367,12 +1386,12 @@ ui:
review: 검토 후에 귀하의 수정 사항이 표시됩니다.
sent_success: 전송 성공
related_question:
title: Related
title: 관련된 질문
answers: 답변
linked_question:
title: Linked
description: Posts linked to
no_linked_question: No contents linked from this content.
title: 링크된 질문
description: 이 질문을 링크한 질문
no_linked_question: 이 질문에 연결된 질문 없음.
invite_to_answer:
title: 질문자 초대
desc: 답변을 알고 있을 것으로 생각되는 사람을 선택하세요.
@@ -1381,9 +1400,11 @@ ui:
search: 사람 검색
question_detail:
action: 동작
created: Created
Asked: 질문함
asked: 질문 작성
update: 수정됨
Edited: Edited
edit: 편집됨
commented: 댓글 작성
Views: 조회수
@@ -1512,7 +1533,7 @@ ui:
follow: 팔로우
following: 팔로잉 중
counts: "{{count}} 개의 결과"
counts_loading: "... Results"
counts_loading: "... 개의 결과"
more: 더 보기
sort_btns:
relevance: 관련성
@@ -1564,7 +1585,7 @@ ui:
all_questions: 모든 질문
x_questions: "{{ count }} 개의 질문"
x_answers: "{{ count }} 개의 답변"
x_posts: "{{ count }} Posts"
x_posts: "{{ count }} 개의 글"
questions: 질문
answers: 답변
newest: 최신순
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: 이름
msg: 이름을 입력하세요.
character: '"a-z", "A-Z", "0-9", " - . _" 문자 집합을 사용해야 합니다'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: 이름은 2 자 이상 30 자 이하여야 합니다.
admin_password:
label: 비밀번호
@@ -1756,6 +1777,7 @@ ui:
branding: 브랜딩
legal: 법적 사항
write: 글 작성
terms: Terms
tos: 이용 약관
privacy: 개인정보 보호
seo: 검색 엔진 최적화
@@ -1766,6 +1788,18 @@ ui:
plugins: 플러그인
installed_plugins: 설치된 플러그인
apperance: 모양
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: '{{site_name}}에 오신 것을 환영합니다'
user_center:
login: 로그인
@@ -1903,7 +1937,7 @@ ui:
created_at: 생성 시간
delete_at: 삭제된 시간
suspend_at: 정지된 시간
suspend_until: Suspend until
suspend_until: 정지 기한
status: 상태
role: 역할
action: 동작
@@ -1938,8 +1972,8 @@ ui:
suspend_user:
title: 이 사용자 정지
content: 정지된 사용자는 로그인할 수 없습니다.
label: How long will the user be suspended for?
forever: Forever
label: 사용자를 며칠 접근 금지 하시겠습니까?
forever: 무기한
questions:
page_title: 질문
unlisted: 비공개
@@ -2001,11 +2035,11 @@ ui:
msg: 시간대를 선택하세요.
text: 본인과 같은 시간대의 도시를 선택하세요.
avatar:
label: Default avatar
text: For users without a custom avatar of their own.
label: 기본 아바타
text: 사용자 정의 아바타가 없는 사용자에게 표시됩니다.
gravatar_base_url:
label: Gravatar base URL
text: URL of the Gravatar provider's API base. Ignored when empty.
label: Gravatar 기본 URL
text: Gravatar 공급자의 API 기본 URL입니다. 비어 있으면 무시됩니다.
smtp:
page_title: SMTP
from_email:
@@ -2077,11 +2111,17 @@ ui:
always_display: 항상 외부 콘텐츠 표시
ask_before_display: 외부 콘텐츠 표시 전 확인
write:
page_title: 작성
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: 답변 작성
label: 각 사용자는 각 질문에 대해 단 하나의 답변만 작성할 수 있습니다.
text: "기존 답변을 개선하고 향상시키기 위해 편집 링크를 사용할 수 있습니다."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: 추천 태그
text: "추천 태그가 기본적으로 드롭다운 목록에 표시됩니다."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: 주요 색상
text: 테마에서 사용할 색상을 수정합니다.
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS 및 HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: 로그 표시
status: 상태
title: 뱃지
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (선택 사항)
empty: 비어 있을 수 없습니다
@@ -2329,6 +2437,7 @@ ui:
user_normal: 이 사용자는 이미 일반 사용자입니다.
user_suspended: 이 사용자가 정지되었습니다.
user_deleted: 이 사용자가 삭제되었습니다.
user_added: User has been added successfully.
badge_activated: 이 배지가 활성화되었습니다.
badge_inactivated: 이 배지가 비활성화되었습니다.
users_deleted: 이 사용자들이 삭제되었습니다.
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: No permission to update.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Reputation rank fail to meet the condition.
@@ -263,6 +265,8 @@ backend:
other: You cannot delete a tag that is in use.
cannot_set_synonym_as_itself:
other: You cannot set the synonym of the current tag as itself.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: The from name cannot be a email address.
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP Error 500
http_403: HTTP Error 403
logout: Log Out
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Notifications
inbox: Inbox
@@ -1141,6 +1156,9 @@ ui:
label: Body
msg:
empty: Body cannot be empty.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Tags
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Add tag
create_btn: Create new tag
search_tag: Search tag
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: No tags matched
tag_required_text: Required tag (at least one)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Search
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Change
loading: loading...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Name cannot be empty.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Email
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile image
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Search people
question_detail:
action: Action
created: Created
Asked: Asked
asked: asked
update: Modified
Edited: Edited
edit: edited
commented: commented
Views: Viewed
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Name
msg: Name cannot be empty.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Password
@@ -1756,6 +1777,7 @@ ui:
branding: Branding
legal: Legal
write: Write
terms: Terms
tos: Terms of Service
privacy: Privacy
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugins
installed_plugins: Installed Plugins
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Welcome to {{site_name}}
user_center:
login: Login
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Write
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Each user can only write one answer for the same question
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Primary color
text: Modify the colors used by your themes
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS and HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optional)
empty: cannot be empty
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+1 -1
View File
@@ -684,7 +684,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+1 -1
View File
@@ -684,7 +684,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: Brak uprawnień do edycji.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Ranga nie spełnia warunku.
@@ -263,6 +265,8 @@ backend:
other: Nie możesz usunąć tagu, który jest w użyciu.
cannot_set_synonym_as_itself:
other: Nie można ustawić synonimu aktualnego tagu jako takiego.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: Nazwą nadawcy nie może być adresem e-mail.
@@ -841,6 +845,17 @@ ui:
http_50X: Błąd HTTP 500
http_403: Błąd HTTP 403
logout: Wyloguj się
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Powiadomienia
inbox: Skrzynka odbiorcza
@@ -1141,6 +1156,9 @@ ui:
label: Treść
msg:
empty: Treść nie może być pusta.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Tagi
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Dodaj tag
create_btn: Utwórz nowy tag
search_tag: Wyszukaj tag
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Nie znaleziono pasujących tagów
tag_required_text: Wymagany tag (co najmniej jeden)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Szukaj
footer:
build_on: >-
Zbudowane na platformie <1> Apache Answer </1> - oprogramowanie open-source, które napędza społeczności pytań i odpowiedzi.<br />Stworzone z miłością © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Zmień
loading: Wczytywanie...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Imię nie może być puste.
range: Name must be between 2 to 30 characters in length.
character: 'Możesz użyć dozwolone znaki "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Adres e-mail
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: Ludzie mogą oznaczać Cię jako "@nazwa_użytkownika".
msg: Nazwa użytkownika nie może być pusta.
msg_range: Username must be 2-30 characters in length.
character: 'Należy używać zestawu znaków "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Zdjęcie profilowe
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Wyszukaj osoby
question_detail:
action: Akcja
created: Created
Asked: Zadane
asked: zadał(a)
update: Zmodyfikowane
Edited: Edited
edit: edytowany
commented: skomentowano
Views: Wyświetlone
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Imię
msg: Imię nie może być puste.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Hasło
@@ -1756,6 +1777,7 @@ ui:
branding: Marka
legal: Prawne
write: Pisanie
terms: Terms
tos: Warunki korzystania z usługi
privacy: Prywatność
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Wtyczki
installed_plugins: Zainstalowane wtyczki
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Witamy w serwisie {{site_name}}
user_center:
login: Zaloguj się
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Pisanie
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Każdy użytkownik może napisać tylko jedną odpowiedź na każde pytanie
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Rekomendowane tagi
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Kolor podstawowy
text: Zmodyfikuj kolory używane przez Twoje motywy.
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS i HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Wyświetl dzienniki
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (opcjonalne)
empty: nie może być puste
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+125 -125
View File
@@ -288,7 +288,7 @@ ui:
change_email: Modificar e-mail
install: Instalação do Resposta
upgrade: Atualização do Resposta
maintenance: Manutençã do Website
maintenance: Manutenção do Website
users: Usuários
notifications:
title: Notificações
@@ -327,7 +327,7 @@ ui:
empty: Código não pode ser vazio.
language:
label: Idioma (opcional)
placeholder: Tetecção automática
placeholder: Detecção automática
btn_cancel: Cancelar
btn_confirm: Adicionar
formula:
@@ -351,7 +351,7 @@ ui:
image:
text: Imagem
add_image: Adicionar imagem
tab_image: Enviar image,
tab_image: Enviar imagem
form_image:
fields:
file:
@@ -380,7 +380,7 @@ ui:
outdent:
text: Não identado
italic:
text: Emphase
text: Ênfase
link:
text: Superlink (Hyperlink)
add_link: Adicionar superlink (hyperlink)
@@ -537,7 +537,7 @@ ui:
title: Adicionar Pergunta
edit_title: Editar Pergunta
default_reason: Editar pergunta
similar_questions: Similar perguntas
similar_questions: Perguntas similares
form:
fields:
revision:
@@ -564,10 +564,10 @@ ui:
label: Resumo da edição
placeholder: >-
Explique resumidamente suas alterações (ortografia corrigida, gramática corrigida, formatação aprimorada)
btn_post_question: Publicação a sua pergunta
btn_post_question: Publicar a sua pergunta
btn_save_edits: Salvar edições
answer_question: Responda a sua própria pergunta
post_question&answer: Publicação a sua pergunta e resposta
post_question&answer: Publicar a sua pergunta e resposta
tag_selector:
add_btn: Adicionar marcador
create_btn: Criar novo marcador
@@ -589,7 +589,7 @@ ui:
placeholder: Procurar
footer:
build_on: >-
Built on <1> Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
Desenvolvido com base no <1> Answer </1> — o software de código aberto que alimenta comunidades de perguntas e respostas.<br />Feito com amor © {{cc}}.
upload_img:
name: Mudar
loading: carregando...
@@ -604,13 +604,13 @@ ui:
info: "Se não chegar, verifique sua pasta de spam."
another: >-
Enviamos outro e-mail de ativação para você em <bold>{{mail}}</bold>. Pode levar alguns minutos para chegar; certifique-se de verificar sua pasta de spam.
btn_name: Resend activation email
btn_name: Reenviar e-mail de ativação
change_btn_name: Mudar email
msg:
empty: Não pode ser vazio.
login:
page_title: Bem vindo ao {{site_name}}
login_to_continue: Entre para continue
login_to_continue: Entre para continuar
info_sign: Não possui uma conta? <1>Cadastrar-se</1>
info_login: Já possui uma conta? <1>Entre</1>
agreements: Ao se registrar, você concorda com as <1>políticas de privacidades</1> e os <3>termos de serviços</3>.
@@ -683,7 +683,7 @@ ui:
caption: As pessoas poderão mensionar você com "@usuário".
msg: Nome de usuário não pode ser vazio.
msg_range: Nome de usuário até 30 caracteres.
character: 'Deve usar o conjunto de caracteres "a-z", "0-9", " - . _"'
character: 'Deve usar o conjunto de caracteres "a-z", "0-9", "- . _"'
avatar:
label: Perfil Imagem
gravatar: Gravatar
@@ -776,9 +776,9 @@ ui:
delete:
title: Excluir esta postagem
question: >-
Nós não recomendamos <strong>excluindo perguntas com respostas</strong> porque isso priva os futuros leitores desse conhecimento.</p><p>Repeated deletion of answered questions can result in a sua account being blocked from asking. Você tem certeza que deseja deletar?
Nós não recomendamos <strong> excluir perguntas com respostas</strong> porque isso priva os futuros leitores desse conhecimento.</p><p>A exclusão repetida de perguntas respondidas pode resultar no bloqueio de perguntas de sua conta. Você tem certeza que deseja excluir?
answer_accepted: >-
<p>Nós não recomendamos <strong>deleting accepted answer</strong> porque isso priva os futuros leitores desse conhecimento. </p> Repeated deletion of accepted answers can result in a sua account being blocked from answering. Você tem certeza que deseja deletar?
<p>Não recomendamos <strong>excluir resposta aceita</strong> porque isso priva os futuros leitores desse conhecimento. </p> A exclusão repetida de respostas aceitas pode resultar no bloqueio de respostas de uma conta sua. Você tem certeza que deseja excluir?
other: Você tem certeza que deseja deletar?
tip_question_deleted: Esta postagem foi deletada
tip_answer_deleted: Esta resposta foi deletada
@@ -834,7 +834,7 @@ ui:
link: Continuar para a página inicial.
invalid: >-
Desculpe, este link de confirmação não é mais válido. Talvez a sua já está ativa.
confirm_new_email: Your email has been updated.
confirm_new_email: Seu e-mail foi atualizado.
confirm_new_email_invalid: >-
Desculpe, este link de confirmação não é mais válido. Talvez o seu e-mail já tenha sido alterado.
unsubscribe:
@@ -846,7 +846,7 @@ ui:
following_tags: Seguindo Marcadores
edit: Editar
save: Salvar
follow_tag_tip: Seguir tags to curate a sua lista de perguntas.
follow_tag_tip: Siga as tags para selecionar sua lista de perguntas.
hot_questions: Perguntas quentes
all_questions: Todas Perguntas
x_questions: "{{ count }} perguntas"
@@ -878,7 +878,7 @@ ui:
score: Pontuação
edit_profile: Editar Perfil
visited_x_days: "Visitado {{ count }} dias"
viewed: Viewed
viewed: Visualizado
joined: Ingressou
last_login: Visto
about_me: Sobre mim
@@ -900,13 +900,13 @@ ui:
x_questions: perguntas
install:
title: Instalação
next: Proximo
next: Próximo
done: Completo
config_yaml_error: Não é possível criar o arquivo config.yaml.
lang:
label: Por favor Escolha um Idioma
db_type:
label: Database Engine
label: Mecanismo de banco de dados
db_username:
label: Nome de usuário
placeholder: root
@@ -916,68 +916,68 @@ ui:
placeholder: root
msg: Senha não pode ser vazio.
db_host:
label: Database Host
label: Host do banco de dados
placeholder: "db:3306"
msg: Database Host não pode ser vazio.
msg: Host de banco de dados não pode ficar vazio.
db_name:
label: Database Nome
label: Nome do banco de dados
placeholder: answer
msg: Database Nome não pode ser vazio.
msg: O nome do banco de dados não pode ficar vazio.
db_file:
label: Database File
label: Arquivo de banco de dados
placeholder: /data/answer.db
msg: Database File não pode ser vazio.
msg: O arquivo de banco de dados não pode ficar vazio.
config_yaml:
title: Create config.yaml
label: The config.yaml file created.
title: Criar config.yaml
label: O arquivo config.yaml foi criado.
desc: >-
You can create the <1>config.yaml</1> file manually in the <1>/var/wwww/xxx/</1> directory and paste the following text into it.
info: After you've done that, click "Next" button.
site_information: Site Information
Você pode criar o arquivo <1>config.yaml</1> manualmente no diretório <1>/var/www/xxx/</1> e colar o seguinte texto nele.
info: Depois de fazer isso, clique no botão "Avançar".
site_information: Informações do site
admin_account: Administrador Conta
site_name:
label: Site Nome
msg: Site Nome não pode ser vazio.
site_url:
label: Site URL
text: The address of a sua site.
text: O endereço do seu site.
msg:
empty: Site URL não pode ser vazio.
incorrect: Site URL incorrect format.
incorrect: Formato incorreto da URL do site.
contact_email:
label: E-mail par contato
text: Email address of key contact responsible for this site.
label: E-mail para contato
text: Endereço de e-mail do contato principal responsável por este site.
msg:
empty: E-mail par contato não pode ser vazio.
incorrect: E-mail par contato incorrect format.
empty: E-mail para contato não pode ser vazio.
incorrect: E-mail para contato em formato incorreto.
admin_name:
label: Nome
msg: Nome não pode ser vazio.
admin_password:
label: Senha
text: >-
You will need this password to log in. Por favor store it in a secure location.
msg: Senha não pode ser vazio.
Você precisará dessa senha para efetuar login. Por favor, guarde-a em um local seguro.
msg: Senha não pode ser vazia.
admin_email:
label: Email
text: You will need this email to log in.
text: Você precisará deste e-mail para fazer login.
msg:
empty: Email não pode ser vazio.
incorrect: Email incorrect format.
ready_title: Your Resposta is Ready!
incorrect: Formato de e-mail incorreto.
ready_title: Sua resposta está pronta!
ready_desc: >-
If you ever feel like changing more settings, visit <1>admin section</1>; find it in the site menu.
good_luck: "Have fun, and good luck!"
warn_title: Warning
Se você quiser alterar mais configurações, visite a <1>seção de administração</1>; encontre-a no menu do site.
good_luck: "Divirta-se e boa sorte!"
warn_title: Aviso
warn_desc: >-
The file <1>config.yaml</1> already exists. If you need to reset any of the configuration items in this file, please delete it first.
install_now: You may try <1>installing now</1>.
installed: Already installed
O arquivo <1>config.yaml</1> existe. Se precisar redefinir algum item de configuração neste arquivo, exclua-o primeiro.
install_now: Você pode tentar <1>instalar agora</1>.
installed: instalado
installed_desc: >-
You appear to have already installed. To reinstall please clear a sua old database tables first.
db_failed: Database connection failed
Parece que você já instalou. Para reinstalar, limpe primeiro as tabelas antigas do seu banco de dados.
db_failed: Falha na conexão do banco de dados
db_failed_desc: >-
This either means that the database information in a sua <1>config.yaml</1> file is incorrect or that contact with the database server could not be established. This could mean a sua host's database server is down.
Isso significa que as informações do banco de dados em um arquivo <1>config.yaml</1> do SUA estão incorretas ou que o contato com o servidor do banco de dados não pôde ser estabelecido. Isso pode significar que o servidor de banco de dados de um host SUA está inativo.
counts:
views: visualizações
Votos: votos
@@ -987,7 +987,7 @@ ui:
desc: "Infelizmente, esta postagem não existe mais."
back_home: Voltar para a página inicial
page_50X:
desc: O servidor encontrou um erro e não pôde concluir uma solicitação sua.
desc: O servidor encontrou um erro e não pôde concluir sua solicitação.
back_home: Voltar para a página inicial
page_maintenance:
desc: "Estamos em manutenção, voltaremos em breve."
@@ -1037,7 +1037,7 @@ ui:
answer_links: Links das Respostas
documents: Documentos
feedback: Opinião
support: Supporte
support: Suporte
review: Revisar
config: Configurações
update_to: Atualizar ao
@@ -1233,7 +1233,7 @@ ui:
smtp_port:
label: SMTP Port
msg: SMTP port must be number 1 ~ 65535.
text: The port to a sua mail server.
text: A porta para seu servidor de e-mail.
smtp_username:
label: SMTP Nome de usuário
msg: SMTP username não pode ser vazio.
@@ -1241,9 +1241,9 @@ ui:
label: SMTP Senha
msg: SMTP password não pode ser vazio.
test_email_recipient:
label: Test Email Recipients
text: Provide email address that will receive test sends.
msg: Test email recipients is invalid
label: Destinatários de e-mail de teste
text: Forneça o endereço de e-mail que receberá os envios de testes.
msg: Os destinatários do e-mail de teste são inválidos
smtp_authentication:
label: Enable authentication
title: SMTP Authentication
@@ -1255,127 +1255,127 @@ ui:
logo:
label: Logo (opcional)
msg: Logo não pode ser vazio.
text: The logo image at the top left of a sua site. Use a wide rectangular image with a height of 56 and an aspect ratio greater than 3:1. If left blank, the site title text will be shown.
text: A imagem do logotipo no canto superior esquerdo do seu site. Use uma imagem retangular larga com altura de 56 e proporção maior que 3:1. Se deixada em branco, o texto do título do site será exibido.
mobile_logo:
label: Mobile Logo (opcional)
text: The logo used on mobile version of a sua site. Use a wide rectangular image with a height of 56. If left blank, the image from the "logo" setting will be used.
text: O logotipo usado na versão mobile do seu site. Use uma imagem retangular larga com altura de 56. Se deixado em branco, a imagem da configuração "logotipo" será usada.
square_icon:
label: Square Icon (opcional)
msg: Square icon não pode ser vazio.
text: Imagem used as the base for metadata icons. Should ideally be larger than 512x512.
text: Imagem usada como base para ícones de metadados. Idealmente, deve ser maior que 512x512.
favicon:
label: Favicon (opcional)
text: A favicon for a sua site. To work correctly over a CDN it must be a png. Will be resized to 32x32. If left blank, "square icon" will be used.
text: Um favicon para o seu site. Para funcionar corretamente em uma CDN, ele deve ser um png. Será redimensionado para 32x32. Se deixado em branco, o "ícone quadrado" será usado.
legal:
page_title: Legal
terms_of_service:
label: Terms of Service
text: "You can add terms of service content here. If you already have a document hosted elsewhere, provide the full URL here."
label: Termos de Serviço
text: "Você pode adicionar conteúdo dos termos de serviço aqui. Se você já possui um documento hospedado em outro lugar, informe o URL completo aqui."
privacy_policy:
label: Privacy Policy
text: "You can add privacy policy content here. If you already have a document hosted elsewhere, provide the full URL here."
label: Política de Privacidade
text: "Você pode adicionar o conteúdo da política de privacidade aqui. Se você já possui um documento hospedado em outro lugar, informe o URL completo aqui."
write:
page_title: Write
page_title: Escrever
recommend_tags:
label: Recommend Marcadores
text: "Por favor input tag slug above, one tag per line."
label: Recomendar Marcadores
text: "Por favor, insira o slug da tag acima, uma tag por linha."
required_tag:
title: Required Tag
label: Set recommend tag as requirido
text: "Every new question must have ao menos one recommend tag."
title: Tag necessária
label: Definir tag recomendada como necessária
text: "Cada nova pergunta deve ter pelo menos uma tag de recomendação."
reserved_tags:
label: Reserved Marcadores
text: "Reserved tags can only be added to a post by moderator."
label: Marcadores Reservados
text: "Tags reservadas só podem ser adicionadas a uma postagem pelo moderador."
seo:
page_title: SEO
permalink:
label: Permalink
text: Custom URL structures can improve the usability, and forward-compatibility of a sua links.
text: Estruturas de URL personalizadas podem melhorar a usabilidade e a compatibilidade futura de seus links.
robots:
label: robots.txt
text: This will permanently override any related site settings.
text: Isso substituirá permanentemente todas as configurações relacionadas do site.
Temas:
page_title: Temas
Temas:
label: Temas
text: Select an existing Tema.
text: Selecione um tema existente.
navbar_style:
label: Navbar Style
text: Select an existing Tema.
label: Estilo da barra de navegação
text: Selecione um tema existente.
primary_color:
label: Primary Color
text: Modify the colors used by a sua Temas
label: Cor primária
text: Modifique as cores usadas por seus Temas
css_and_html:
page_title: CSS and HTML
page_title: CSS e HTML
custom_css:
label: Custom CSS
text: This will insert as <link>
text: Isto será inserido como <link>
head:
label: Head
text: This will insert before </head>
text: Isto será inserido antes de </head>
header:
label: Header
text: This will insert after <body>
text: Isto será inserido após <body>
footer:
label: Footer
text: This will insert before </html>.
text: Isso será inserido antes de </html>.
login:
page_title: Login
membership:
title: Membership
label: Allow new registrations
text: Turn off to prevent anyone from creating a new account.
title: Associação
label: Permitir novos registros
text: Desative para impedir que alguém crie uma nova conta.
private:
title: Private
title: Privado
label: Login requirido
text: Only logged in users can access this community.
text: Somente usuários logados podem acessar esta comunidade.
form:
empty: não pode ser vazio
invalid: is invalid
invalid: é inválido
btn_submit: Salvar
not_found_props: "Required property {{ key }} not found."
not_found_props: "Propriedade necessária {{ key }} não encontrada."
page_review:
review: Revisar
proposed: proposed
question_edit: Pergunta edit
answer_edit: Resposta edit
tag_edit: Tag edit
edit_summary: Editar summary
edit_question: Editar question
edit_answer: Editar answer
proposed: proposta
question_edit: Editar Pergunta
answer_edit: Editar Resposta
tag_edit: Editar Tag
edit_summary: Editar resumo
edit_question: Editar pergunta
edit_answer: Editar resposta
edit_tag: Editar tag
empty: No review tasks left.
empty: Não há mais tarefas de revisão.
timeline:
undeleted: undeleted
deleted: deleted
downvote: downvote
upvote: upvote
accept: accept
cancelled: cancelled
commented: commented
undeleted: não excluído
deleted: apagado
downvote: voto negativo
upvote: voto positivo
accept: aceitar
cancelled: cancelado
commented: comentado
rollback: rollback
edited: edited
answered: answered
asked: asked
closed: closed
reopened: reopened
created: created
title: "Histórico for"
tag_title: "Timeline for"
show_Votos: "Show Votos"
edited: editado
answered: respondido
asked: perguntado
closed: fechado
reopened: reaberto
created: criado
title: "Histórico para"
tag_title: "Linha do tempo para"
show_Votos: "Mostrar votos"
n_or_a: N/A
title_for_question: "Timeline for"
title_for_answer: "Timeline for answer to {{ title }} by {{ author }}"
title_for_tag: "Timeline for tag"
title_for_question: "Linha do tempo para"
title_for_answer: "Linha do tempo para resposta a {{ title }} por {{ author }}"
title_for_tag: "Linha do tempo para tag"
datetime: Datetime
type: Type
by: By
comment: Comment
no_data: "We couldn't find anything."
type: Tipo
by: Por
comment: Comentário
no_data: "Não conseguimos encontrar nada."
users:
title: Usuários
users_with_the_most_reputation: Usuários with the highest reputation scores
users_with_the_most_vote: Usuários who voted the most
staffs: Our community staff
reputation: reputation
users_with_the_most_reputation: Usuários com as maiores pontuações de reputação
users_with_the_most_vote: Usuários que mais votaram
staffs: Nossa equipe comunitária
reputation: reputação
Votos: Votos
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: Sem permissão para atualizar.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: A classificação não atende à condição.
@@ -263,6 +265,8 @@ backend:
other: Não é possível excluir um marcador em uso.
cannot_set_synonym_as_itself:
other: Você não pode definir o sinônimo do marcador atual como a si mesmo.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: O De Nome não pode ser um endereço de e-mail.
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP Erro 500
http_403: HTTP Erro 403
logout: Encerrar Sessão
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Notificações
inbox: Caixa de entrada
@@ -1141,6 +1156,9 @@ ui:
label: Corpo
msg:
empty: Corpo da mensagem não pode ser vazio.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Marcadores
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Adicionar marcador
create_btn: Criar novo marcador
search_tag: Procurar marcador
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Nenhum marcador correspondente
tag_required_text: Marcador obrigatório (ao menos um)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Procurar
footer:
build_on: >-
Construído com <1> Apache answer </1> o software de código aberto que ajuda comunidades de Q&A.<br />Feito com amor © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Mudar
loading: carregando...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Nome não pode ser vazio.
range: O nome deve ter entre 2 e 30 caracteres.
character: 'Deve usar o conjunto de caracteres "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: E-mail
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: As pessoas poderão mensionar você com "@usuário".
msg: Nome de usuário não pode ser vazio.
msg_range: Username must be 2-30 characters in length.
character: 'Deve usar o conjunto de caracteres "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Perfil Imagem
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Procurar pessoas
question_detail:
action: Acção
created: Created
Asked: Perguntado
asked: perguntado
update: Modificado
Edited: Edited
edit: modificado
commented: comentado
Views: Visualizado
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Nome
msg: Nome não pode ser vazio.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Senha
@@ -1756,6 +1777,7 @@ ui:
branding: Marca
legal: Informação legal
write: Escrever
terms: Terms
tos: Termos de Serviços
privacy: Privacidade
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Extensões
installed_plugins: Plugins instalados
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Bem vindo(a) ao {{site_name}}
user_center:
login: Entrar
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Escrever
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Escrever resposta
label: Each user can only write one answer for each question
text: "Desative para permitir que os usuários escrevam várias respostas para a mesma pergunta, o que pode fazer com que as respostas fiquem menos focadas."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend Marcadores
text: "Os marcadores recomendados serão exibidos na lista dropdown por padrão."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Cor primária
text: Modifica as cores usadas por seus temas
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS e HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Mostrar registros
status: Status
title: Emblemas
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (opcional)
empty: não pode ser vazio
@@ -2329,6 +2437,7 @@ ui:
user_normal: Este usuário já está normal.
user_suspended: Este usuário foi suspenso.
user_deleted: Este usuário foi removido.
user_added: User has been added successfully.
badge_activated: Este emblema foi ativado.
badge_inactivated: Este emblema foi desativado.
users_deleted: These users have been deleted.
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: Nu aveți permisiunea de a actualiza.
content_cannot_empty:
other: Conținutul nu poate fi gol.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Rangul de reputaţie nu îndeplineşte condiţia.
@@ -263,6 +265,8 @@ backend:
other: Nu puteți șterge o etichetă care este în uz.
cannot_set_synonym_as_itself:
other: Nu se poate seta sinonimul etichetei curente ca atare.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: Numele nu poate fi o adresă de e-mail.
@@ -841,6 +845,17 @@ ui:
http_50X: Eroare HTTP 500
http_403: Eroare HTTP 403
logout: Deconectare
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Notificări
inbox: Mesaje primite
@@ -1141,6 +1156,9 @@ ui:
label: Corp
msg:
empty: Corpul mesajului trebuie să conțină text.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Etichete
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Adaugă etichetă
create_btn: Creează o etichetă nouă
search_tag: Căutare etichetă
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Nicio etichetă potrivită
tag_required_text: Etichetă necesară (cel puțin una)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Caută
footer:
build_on: >-
Susținut de <1> Apache Răspuns </1>- software-ul open-source care asigură Q&A comunități.<br />Făcut cu dragoste ©️ {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Schimbare
loading: încarcare...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Câmpul Nume trebuie completat.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: E-mail
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: Oamenii te pot menționa ca "@utilizator".
msg: Numele de utilizator nu poate fi gol.
msg_range: Username must be 2-30 characters in length.
character: 'Trebuie să utilizați setul de caractere "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Imaginea de profil
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Caută persoane
question_detail:
action: Acţiune
created: Created
Asked: Întrebat
asked: întrebat
update: Modificat
Edited: Edited
edit: editat
commented: commented
Views: Văzute
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Nume
msg: Câmpul Nume trebuie completat.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Parolă
@@ -1756,6 +1777,7 @@ ui:
branding: Marcă
legal: Juridic
write: Scrie
terms: Terms
tos: Condiții de utilizare
privacy: Confidențialitate
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Extensii
installed_plugins: Extensii instalate
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Bun venit la {{site_name}}
user_center:
login: Autentifică-te
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Scrie
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Fiecare utilizator poate scrie doar câte un răspuns pentru fiecare întrebare
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Etichete recomandate
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Culoare primară
text: Modifică culorile folosite de temele tale
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS și HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (opțional)
empty: nu poate fi lăsat necompletat
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+121 -12
View File
@@ -58,7 +58,7 @@ backend:
undelete:
other: Отменить удаление
merge:
other: Merge
other: Объединить
role:
name:
user:
@@ -173,7 +173,7 @@ backend:
question_closed_cannot_add:
other: Вопросы закрыты и не могут быть добавлены.
content_cannot_empty:
other: Answer content cannot be empty.
other: Содержимое ответа не может быть пустым.
comment:
edit_without_permission:
other: Комментарий не может редактироваться.
@@ -233,7 +233,9 @@ backend:
cannot_update:
other: Нет разрешения на обновление.
content_cannot_empty:
other: Content cannot be empty.
other: .
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Ранг репутации не соответствует условию.
@@ -263,6 +265,8 @@ backend:
other: Вы не можете удалить метку, которая используется.
cannot_set_synonym_as_itself:
other: Вы не можете установить синоним текущего тега.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: Поле отправителя не может содержать email адрес.
@@ -694,7 +698,7 @@ backend:
name:
other: Anniversary
desc:
other: Active member for a year, posted at least once.
other: Активный участник на год, опубликовал по крайней мере один раз.
appreciated:
name:
other: Appreciated
@@ -841,6 +845,17 @@ ui:
http_50X: Ошибка HTTP 500
http_403: Ошибка HTTP 403
logout: Выйти
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Уведомления
inbox: Входящие
@@ -1141,6 +1156,9 @@ ui:
label: 'Вопрос:'
msg:
empty: Вопрос не может быть пустым.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Теги
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Тег
create_btn: новый тег
search_tag: Поиск тега
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Нет соответствующих тэгов
tag_required_text: Обязательный тег (хотя бы один)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Поиск
footer:
build_on: >-
Работает на <1> Apache Answer </1> - программном обеспечении с открытым исходным кодом, которое поддерживает сообщества вопросов и ответов.<br />Сделано с любовью © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Изменить
loading: загрузка...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Имя пользователя не должно быть пустым.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Email адрес
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: Люди могут упоминать вас как "@username".
msg: Имя пользователя не может быть пустым.
msg_range: Username must be 2-30 characters in length.
character: 'Необходимо использовать набор символов "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Изображение профиля
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Поиск людей
question_detail:
action: Действия
created: Created
Asked: Спросил(а)
asked: спросил(а)
update: Изменён
Edited: Edited
edit: отредактировал
commented: commented
Views: Просмотрен
@@ -1433,7 +1454,7 @@ ui:
content: Are you sure you want to list?
unlist:
confirm_btn: Убрать из списка
title:
title: Unlist this post
content: Are you sure you want to unlist?
pin:
title: Закрепить сообщение
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Имя
msg: Имя не может быть пустым.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Пароль
@@ -1756,6 +1777,7 @@ ui:
branding: Фирменное оформление
legal: Правовая информация
write: Написать
terms: Terms
tos: Пользовательское Соглашение
privacy: Конфиденциальность
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Плагины
installed_plugins: Установленные плагины
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Добро пожаловать на {{site_name}}
user_center:
login: Вход
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Написать
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Каждый пользователь может написать только один ответ на каждый вопрос
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Рекомендованные теги
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Основной цвет
text: Измените цвета, используемые в ваших темах
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS и HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (опционально)
empty: не может быть пустым
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: Žiadne povolenie na aktualizáciu.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Reputation rank fail to meet the condition.
@@ -263,6 +265,8 @@ backend:
other: You cannot delete a tag that is in use.
cannot_set_synonym_as_itself:
other: Synonymum aktuálnej značky nemôžete nastaviť ako samotnú.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: The from name cannot be a email address.
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP chyba 403
http_403: HTTP Error 403
logout: Log Out
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Oznámenia
inbox: Doručená pošta
@@ -1141,6 +1156,9 @@ ui:
label: Telo
msg:
empty: Telo nemôže byť prázdne.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Značky --
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Pridať značku
create_btn: Vytvoriť novú značku
search_tag: Vyhľadať značku --
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Nezodpovedajú žiadne značky
tag_required_text: Povinný štítok (aspoň jeden)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Vyhľadávanie
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Zmena
loading: načítavanie...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Prihlasovacie meno nemôže byť prázdne.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: E-mail
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: Ľudia vás môžu spomenúť ako „@používateľské meno“.
msg: Užívateľské meno nemôže byť prázdne.
msg_range: Username must be 2-30 characters in length.
character: 'Musíte použiť znakovú sadu "a-z", "0-9", "- . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile image
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Search people
question_detail:
action: Action
created: Created
Asked: Opýtané
asked: opýtané
update: Aktualizované
Edited: Edited
edit: upravené
commented: commented
Views: Videné
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Meno
msg: Meno nemôže byť prázdne.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Heslo
@@ -1756,6 +1777,7 @@ ui:
branding: Budovanie značky
legal: legálne
write: písať
terms: Terms
tos: Podmienky služby
privacy: Súkromie
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugins
installed_plugins: Installed Plugins
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Welcome to {{site_name}}
user_center:
login: Login
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Písať
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Each user can only write one answer for each question
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Primary color
text: Upraviť farby používané vašími motívmi
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS a HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (voliteľné)
empty: nemôže byť prázdne
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+1 -1
View File
@@ -677,7 +677,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username up to 30 characters
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+1 -1
View File
@@ -684,7 +684,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile Image
gravatar: Gravatar
+188 -79
View File
@@ -19,13 +19,13 @@
backend:
base:
success:
other: Success.
other: Åtgärden lyckades
unknown:
other: Okänt fel.
request_format_error:
other: Request format is not valid.
unauthorized_error:
other: Unauthorized.
other: Access saknas
database_error:
other: Data server error.
forbidden_error:
@@ -34,7 +34,7 @@ backend:
other: Dubblett inlämning.
action:
report:
other: Flag
other: Flagga
edit:
other: Redigera
delete:
@@ -48,103 +48,103 @@ backend:
pin:
other: Fäst
hide:
other: Unlist
other: Göm
unpin:
other: Unpin
other: Lossa
show:
other: Lista
invite_someone_to_answer:
other: Redigera
undelete:
other: Undelete
other: Återskapa
merge:
other: Merge
other: Sammanfoga
role:
name:
user:
other: Användare
admin:
other: Admin
other: Administratör
moderator:
other: Moderator
description:
user:
other: Default with no special access.
other: Normal tillgång
admin:
other: Have the full power to access the site.
other: Full kontroll över webbplatsen
moderator:
other: Has access to all posts except admin settings.
other: Tillgång till allt utom administratörsinställningar
privilege:
level_1:
description:
other: Level 1 (less reputation required for private team, group)
other: Nivå 1
level_2:
description:
other: Level 2 (low reputation required for startup community)
other: Nivå 2
level_3:
description:
other: Level 3 (high reputation required for mature community)
other: Nivå 3
level_custom:
description:
other: Custom Level
other: Anpassad nivå
rank_question_add_label:
other: Ask question
other: Ställ en fråga
rank_answer_add_label:
other: Write answer
other: Skriv ett svar
rank_comment_add_label:
other: Write comment
other: Skriv en kommentar
rank_report_add_label:
other: Flag
other: Flagga
rank_comment_vote_up_label:
other: Upvote comment
other: Bra kommentar
rank_link_url_limit_label:
other: Post more than 2 links at a time
other: Mer än 2 länkar samtidigt
rank_question_vote_up_label:
other: Upvote question
other: Bra fråga
rank_answer_vote_up_label:
other: Upvote answer
other: Bra svar
rank_question_vote_down_label:
other: Downvote question
other: Dålig fråga
rank_answer_vote_down_label:
other: Downvote answer
other: Dåligt svar
rank_invite_someone_to_answer_label:
other: Invite someone to answer
other: Bjud in någon att svara
rank_tag_add_label:
other: Skapa ny tagg
rank_tag_edit_label:
other: Edit tag description (need to review)
other: Beskriv etiketten (behöver granskas)
rank_question_edit_label:
other: Edit other's question (need to review)
other: Editera annans fråga (behöver granskas)
rank_answer_edit_label:
other: Edit other's answer (need to review)
other: Editera annans svar (behöver granskas)
rank_question_edit_without_review_label:
other: Edit other's question without review
other: Editera annans fråga utan granskning
rank_answer_edit_without_review_label:
other: Edit other's answer without review
other: Editera annans svar utan granskning
rank_question_audit_label:
other: Review question edits
other: Granska ändringar av fråga
rank_answer_audit_label:
other: Review answer edits
other: Granska ändringar av svar
rank_tag_audit_label:
other: Review tag edits
other: Granska ändringar av etikett
rank_tag_edit_without_review_label:
other: Edit tag description without review
other: Ändra etikett-beskrivningen utan granskning
rank_tag_synonym_label:
other: Manage tag synonyms
other: Hantera etikett-synonymer
email:
other: Email
other: E-post
e_mail:
other: Email
other: E-post
password:
other: Lösenord
pass:
other: Lösenord
old_pass:
other: Current password
other: Nuvarande lösenord
original_text:
other: This post
other: Detta inlägg
email_or_password_wrong_error:
other: Email and password do not match.
other: Fel e-post eller lösenord
error:
common:
invalid_url:
@@ -153,21 +153,21 @@ backend:
other: Ogiltig status.
password:
space_invalid:
other: Password cannot contain spaces.
other: Lösenordet får inte innehålla mellanslag.
admin:
cannot_update_their_password:
other: You cannot modify your password.
other: Du får inte ändra ditt lösenord.
cannot_edit_their_profile:
other: You cannot modify your profile.
other: Du får inte ändra din profil.
cannot_modify_self_status:
other: You cannot modify your status.
other: Du får inte ändra din status.
email_or_password_wrong:
other: Email and password do not match.
other: Fel e-post eller lösenord.
answer:
not_found:
other: Answer do not found.
other: Svar hittades inte.
cannot_deleted:
other: No permission to delete.
other: Radering tillåts inte.
cannot_update:
other: No permission to update.
question_closed_cannot_add:
@@ -182,50 +182,50 @@ backend:
cannot_edit_after_deadline:
other: The comment time has been too long to modify.
content_cannot_empty:
other: Comment content cannot be empty.
other: Kommentarsfältet får inte vara tomt.
email:
duplicate:
other: Email already exists.
other: E-postadressen finns redan.
need_to_be_verified:
other: Email should be verified.
other: E-postadressen ska vara verifierad.
verify_url_expired:
other: Email verified URL has expired, please resend the email.
other: Länken för att verifiera e-postadressen har gått ut. Vänligen skicka igen.
illegal_email_domain_error:
other: Email is not allowed from that email domain. Please use another one.
other: E-post från den domänen tillåts inte. Vänligen använt en annan.
lang:
not_found:
other: Language file not found.
other: Språkfilen hittas inte.
object:
captcha_verification_failed:
other: Captcha wrong.
other: Fel Captcha.
disallow_follow:
other: You are not allowed to follow.
other: Du tillåts inte följa.
disallow_vote:
other: You are not allowed to vote.
other: Du tillåts inte rösta.
disallow_vote_your_self:
other: You can't vote for your own post.
other: Du får inte rösta på ditt eget inlägg.
not_found:
other: Object not found.
other: Objektet hittas inte.
verification_failed:
other: Verification failed.
other: Verifiering misslyckades.
email_or_password_incorrect:
other: Email and password do not match.
other: Fel e-postadress eller lösenord.
old_password_verification_failed:
other: The old password verification failed
other: Den gamla verifieringen av lösenordet misslyckades.
new_password_same_as_previous_setting:
other: The new password is the same as the previous one.
other: Det nya lösenordet är samma som det förra.
already_deleted:
other: This post has been deleted.
other: Det här inlägget har raderats.
meta:
object_not_found:
other: Meta object not found
other: Meta-objekt hittas inte.
question:
already_deleted:
other: This post has been deleted.
other: Det här inlägget har raderats.
under_review:
other: Your post is awaiting review. It will be visible after it has been approved.
other: Ditt inlägg väntar på granskning. Det kommer att publiceras så snart det har blivit godkänt.
not_found:
other: Question not found.
other: .
cannot_deleted:
other: No permission to delete.
cannot_close:
@@ -234,6 +234,8 @@ backend:
other: No permission to update.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Reputation rank fail to meet the condition.
@@ -263,6 +265,8 @@ backend:
other: You cannot delete a tag that is in use.
cannot_set_synonym_as_itself:
other: You cannot set the synonym of the current tag as itself.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: The from name cannot be a email address.
@@ -321,16 +325,16 @@ backend:
connection_failed:
other: Database connection failed
create_table_failed:
other: Create table failed
other: Tabellen kunde inte skapas.
install:
create_config_failed:
other: Can't create the config.yaml file.
other: Filen config.yaml kan inte skapas.
upload:
unsupported_file_format:
other: Unsupported file format.
other: Filformatet tillåts inte.
site_info:
config_not_found:
other: Site config not found.
other: Webbplats inställningarna hittar inte.
badge:
object_not_found:
other: Badge object not found
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP Error 500
http_403: HTTP Error 403
logout: Logga ut
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Notifications
inbox: Inkorg
@@ -1141,6 +1156,9 @@ ui:
label: Body
msg:
empty: Body cannot be empty.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Tags
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Add tag
create_btn: Create new tag
search_tag: Search tag
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: No tags matched
tag_required_text: Required tag (at least one)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Sök
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Ändra
loading: loading...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Name cannot be empty.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: E-postadress
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profilbild
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Search people
question_detail:
action: Action
created: Created
Asked: Asked
asked: asked
update: Modified
Edited: Edited
edit: edited
commented: commented
Views: Viewed
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Namn
msg: Name cannot be empty.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Lösenord
@@ -1756,6 +1777,7 @@ ui:
branding: Branding
legal: Legal
write: Write
terms: Terms
tos: Användarvillkor
privacy: Privacy
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugins
installed_plugins: Installed Plugins
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Välkommen till {{site_name}}
user_center:
login: Login
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Write
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Each user can only write one answer for each question
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Primary color
text: Modify the colors used by your themes
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS och HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Visa loggar
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optional)
empty: cannot be empty
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: No permission to update.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Reputation rank fail to meet the condition.
@@ -263,6 +265,8 @@ backend:
other: You cannot delete a tag that is in use.
cannot_set_synonym_as_itself:
other: You cannot set the synonym of the current tag as itself.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: The from name cannot be a email address.
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP Error 500
http_403: HTTP Error 403
logout: Log Out
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: నోటిఫికేషన్లు
inbox: ఇన్‌బాక్స్
@@ -1141,6 +1156,9 @@ ui:
label: Body
msg:
empty: Body cannot be empty.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Tags
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Add tag
create_btn: Create new tag
search_tag: Search tag
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: No tags matched
tag_required_text: Required tag (at least one)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Search
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Change
loading: loading...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Name cannot be empty.
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Email
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: People can mention you as "@username".
msg: Username cannot be empty.
msg_range: Username must be 2-30 characters in length.
character: 'Must use the character set "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile image
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Search people
question_detail:
action: Action
created: Created
Asked: Asked
asked: asked
update: Modified
Edited: Edited
edit: edited
commented: commented
Views: Viewed
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Name
msg: Name cannot be empty.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Password
@@ -1756,6 +1777,7 @@ ui:
branding: Branding
legal: Legal
write: Write
terms: Terms
tos: Terms of Service
privacy: Privacy
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugins
installed_plugins: Installed Plugins
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Welcome to {{site_name}}
user_center:
login: Login
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Write
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Each user can only write one answer for each question
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Primary color
text: Modify the colors used by your themes
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS and HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (optional)
empty: cannot be empty
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+129 -20
View File
@@ -234,6 +234,8 @@ backend:
other: Güncelleme izni yok.
content_cannot_empty:
other: İçerik boş olamaz.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: İtibar seviyesi koşulu karşılamıyor.
@@ -263,6 +265,8 @@ backend:
other: Kullanımda olan bir etiketi silemezsiniz.
cannot_set_synonym_as_itself:
other: Bir etiketin eş anlamlısını kendisi olarak ayarlayamazsınız.
minimum_count:
other: Yeterli etiket girilmedi.
smtp:
config_from_name_cannot_be_email:
other: Gönderen adı bir e-posta adresi olamaz.
@@ -307,13 +311,13 @@ backend:
add_bulk_users_amount_error:
other: "Bir kerede eklediğiniz kullanıcı sayısı 1-{{.MaxAmount}} aralığında olmalıdır."
status_suspended_forever:
other: "<strong>This user was suspended forever.</strong> This user doesn't meet a community guideline."
other: "<strong>Bu kullanıcı kalıcı olarak uzaklaştırıldı.</strong> Bu kullanıcı topluluk yönergelerine uymuyor."
status_suspended_until:
other: "<strong>This user was suspended until {{.SuspendedUntil}}.</strong> This user doesn't meet a community guideline."
other: "<strong>Bu kullanıcı {{.SuspendedUntil}} tarihine kadar askıya alındı.</strong> Bu kullanıcı topluluk yönergelerine uymuyor."
status_deleted:
other: "This user was deleted."
other: "Bu kullanıcı silindi."
status_inactive:
other: "This user is inactive."
other: "Bu kullanıcı aktif değil."
config:
read_config_failed:
other: Yapılandırma okunamadı.
@@ -817,7 +821,7 @@ ui:
tag_wiki: etiket wikisi
create_tag: Etiket Oluştur
edit_tag: Etiketi Düzenle
ask_a_question: Create Question
ask_a_question: Soru Oluştur
edit_question: Soruyu Düzenle
edit_answer: Cevabı Düzenle
search: Ara
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP Hatası 500
http_403: HTTP Hatası 403
logout: Çıkış Yap
posts: Gönderiler
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Bildirimler
inbox: Gelen Kutusu
@@ -1064,9 +1079,9 @@ ui:
day: gün
hours: saatler
days: günler
month: month
months: months
year: year
month: ay
months: aylar
year: yıl
reaction:
heart: kalp
smile: gülümseme
@@ -1122,10 +1137,10 @@ ui:
more: Daha Fazla
wiki: Wiki
ask:
title: Create Question
title: Soru Oluştur
edit_title: Soruyu Düzenle
default_reason: Soruyu düzenle
default_first_reason: Create question
default_first_reason: Soru oluştur
similar_questions: Benzer sorular
form:
fields:
@@ -1133,7 +1148,7 @@ ui:
label: Revizyon
title:
label: Başlık
placeholder: What's your topic? Be specific.
placeholder: Konu nedir? Ayrıntılı yaz.
msg:
empty: Başlık boş olamaz.
range: Başlık en fazla 150 karakter olabilir
@@ -1141,6 +1156,9 @@ ui:
label: İçerik
msg:
empty: İçerik boş olamaz.
hint:
optional_body: Sorunun neyle ilgili olduğunu açıklayın.
minimum_characters: "Sorunun neyle ilgili olduğunu açıklayın, en az {{min_content_length}} karakter gereklidir."
tags:
label: Etiketler
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Etiket ekle
create_btn: Yeni etiket oluştur
search_tag: Etiket ara
hint: "Describe what your content is about, at least one tag is required."
hint: Sorunuzun ne hakkında olduğunu tanımlayın, en az bir etiket gereklidir.
hint_zero_tags: İçeriğinizin neyle ilgili olduğunu açıklayın.
hint_more_than_one_tag: "İçeriğinizin neyle ilgili olduğunu açıklayın, en az {{min_tags_number}} etiket gereklidir."
no_result: Eşleşen etiket bulunamadı
tag_required_text: Gerekli etiket (en az bir tane)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Ara
footer:
build_on: >-
<1>Apache Answer</1> tarafından desteklenmektedir - S&C topluluklarına güç veren açık kaynaklı yazılım.<br />Sevgiyle yapıldı © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Değiştir
loading: yükleniyor...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: İsim boş olamaz.
range: İsim 2 ile 30 karakter arasında olmalıdır.
character: '"a-z", "A-Z", "0-9", "- . _" karakter setini kullanmalısınız'
character: 'Yalnızca "a-z", "0-9", " - . _" karakterleri kullanılabilir'
email:
label: E-posta
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: İnsanlar size "@kullaniciadi" şeklinde bahsedebilir.
msg: Kullanıcı adı boş olamaz.
msg_range: Kullanıcı adı 2-30 karakter uzunluğunda olmalıdır.
character: '"a-z", "0-9", "- . _" karakter setini kullanmalısınız'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profil resmi
gravatar: Gravatar
@@ -1367,10 +1386,10 @@ ui:
review: Revizyonunuz incelendikten sonra görünecek.
sent_success: Başarıyla gönderildi
related_question:
title: Related
title: İle ilgili
answers: cevap
linked_question:
title: Linked
title: Bağlantılı
description: Posts linked to
no_linked_question: No contents linked from this content.
invite_to_answer:
@@ -1381,9 +1400,11 @@ ui:
search: Kişi ara
question_detail:
action: Eylem
created: Created
Asked: Soruldu
asked: sordu
update: Değiştirildi
Edited: Edited
edit: düzenledi
commented: yorum yaptı
Views: Görüntülendi
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: İsim
msg: İsim boş olamaz.
character: '"a-z", "A-Z", "0-9", "- . _" karakter setini kullanmalısınız'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: İsim 2 ile 30 karakter arasında olmalıdır.
admin_password:
label: Parola
@@ -1756,6 +1777,7 @@ ui:
branding: Marka
legal: Yasal
write: Yaz
terms: Terms
tos: Kullanım Şartları
privacy: Gizlilik
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Eklentiler
installed_plugins: Kurulu Eklentiler
apperance: Görünüm
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: '{{site_name}} sitesine hoş geldiniz'
user_center:
login: Giriş
@@ -2077,11 +2111,17 @@ ui:
always_display: Her zaman harici içeriği göster
ask_before_display: Harici içeriği göstermeden önce sor
write:
page_title: Yazma
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Cevap yazma
label: Her kullanıcı aynı soru için sadece bir cevap yazabilir
text: "Kullanıcıların aynı soruya birden fazla cevap yazmasına izin vermek için kapatın, bu cevapların odaktan uzaklaşmasına neden olabilir."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Önerilen etiketler
text: "Önerilen etiketler varsayılan olarak açılır listede gösterilecektir."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Ana renk
text: Temalarınızda kullanılan renkleri değiştirin
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS ve HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Kayıtları göster
status: Durum
title: Rozetler
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (isteğe bağlı)
empty: boş olamaz
@@ -2329,6 +2437,7 @@ ui:
user_normal: Bu kullanıcı zaten normal durumda.
user_suspended: Bu kullanıcı askıya alındı.
user_deleted: Bu kullanıcı silindi.
user_added: User has been added successfully.
badge_activated: Bu rozet etkinleştirildi.
badge_inactivated: Bu rozet devre dışı bırakıldı.
users_deleted: Bu kullanıcılar silindi.
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: Немає дозволу на оновлення.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Ранг репутації не відповідає умові.
@@ -263,6 +265,8 @@ backend:
other: Ви не можете видалити теґ, який використовується.
cannot_set_synonym_as_itself:
other: Ви не можете встановити синонім поточного тегу як сам тег.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: Ім’я відправника не може бути електронною адресою.
@@ -841,6 +845,17 @@ ui:
http_50X: Помилка HTTP 500
http_403: Помилка HTTP 403
logout: Вийти
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Сповіщення
inbox: Вхідні
@@ -1141,6 +1156,9 @@ ui:
label: Тіло
msg:
empty: Тіло не може бути порожнім.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Теґи
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Додати теґ
create_btn: Створити новий теґ
search_tag: Шукати теґ
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Не знайдено тегів
tag_required_text: Обов'язковий тег (принаймні один)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Пошук
footer:
build_on: >-
Працює на основі <1> Apache Answer </1> - програмного забезпечення з відкритим вихідним кодом, яке забезпечує роботу спільнот запитань та відповідей.<br />Зроблено з любов'ю © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Змінити
loading: завантаження...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Ім'я не може бути порожнім.
range: Ім'я повинно мати довжину від 2 до 30 символів.
character: 'Необхідно використовувати набір символів "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Електронна пошта
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: Користувачі можуть згадувати вас як "@username".
msg: Ім’я користувача не може бути порожнім.
msg_range: Username must be 2-30 characters in length.
character: 'Необхідно використовувати набір символів "a-z", "0-9", "-. _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Зображення профілю
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Шукати людей
question_detail:
action: Дія
created: Created
Asked: Запитали
asked: запитали
update: Змінено
Edited: Edited
edit: відредаговано
commented: прокоментовано
Views: Переглянуто
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Ім’я
msg: Ім'я не може бути порожнім.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Пароль
@@ -1756,6 +1777,7 @@ ui:
branding: Брендинг
legal: Правила та умови
write: Написати
terms: Terms
tos: Умови використання
privacy: Приватність
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Плагіни
installed_plugins: Встановлені плагіни
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Ласкаво просимо до {{site_name}}
user_center:
login: Вхід
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Написати
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Відповідь на запис
label: Кожен користувач може написати лише одну відповідь на кожне запитання
text: "Вимкнути, щоб дозволити користувачам писати кілька відповідей на одне і те ж питання, що може призвести до розфокусування відповідей."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Рекомендовані теги
text: "За замовчуванням рекомендовані теги будуть показані у спадному списку."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Основний колір
text: Змінюйте кольори, що використовуються у ваших темах
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS та HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Показати записи журналу
status: Статус
title: Значки
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (необов'язково)
empty: не може бути порожнім
@@ -2329,6 +2437,7 @@ ui:
user_normal: Цей користувач вже нормальний.
user_suspended: Цього користувача було відсторонено.
user_deleted: Цього користувача було видалено.
user_added: User has been added successfully.
badge_activated: Цей бейдж було активовано.
badge_inactivated: Цей бейдж було деактивовано.
users_deleted: These users have been deleted.
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: Không có quyền cập nhật.
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Xếp hạng danh tiếng không đạt được điều kiện.
@@ -263,6 +265,8 @@ backend:
other: Bạn không thể xóa thẻ đang được sử dụng.
cannot_set_synonym_as_itself:
other: Bạn không thể đặt từ đồng nghĩa của thẻ hiện tại là chính nó.
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: Tên người gửi không thể là địa chỉ email.
@@ -841,6 +845,17 @@ ui:
http_50X: Lỗi HTTP 500
http_403: Lỗi HTTP 403
logout: Đăng xuất
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: Các thông báo
inbox: Hộp thư đến
@@ -1141,6 +1156,9 @@ ui:
label: Nội dung
msg:
empty: Nội dung không thể trống.
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: Thẻ
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: Thêm thẻ
create_btn: Tạo thẻ mới
search_tag: Tìm kiếm thẻ
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: Không có thẻ phù hợp
tag_required_text: Thẻ bắt buộc (ít nhất một)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: Tìm kiếm
footer:
build_on: >-
Được hỗ trợ bởi <1> Apache Answer </1>- phần mềm mã nguồn mở dành cho cộng đồng hỏi đáp.<br />Được tạo với tình yêu © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: Thay đổi
loading: đang tải...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: Tên không thể trống.
range: Tên phải có độ dài từ 2 đến 30 ký tự.
character: 'Chỉ sử dụng bộ ký tự "a-z", "0-9", , "A-Z", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: Email
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: Mọi người có thể nhắc đến bạn với "@username".
msg: Tên người dùng không thể trống.
msg_range: Username must be 2-30 characters in length.
character: 'Chỉ sử dụng bộ ký tự "a-z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Hình ảnh hồ sơ
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: Tìm kiếm người
question_detail:
action: Hành động
created: Created
Asked: Đã hỏi
asked: đã hỏi
update: Đã chỉnh sửa
Edited: Edited
edit: đã chỉnh sửa
commented: đã bình luận
Views: Lượt xem
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: Tên
msg: Tên không thể trống.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: Mật khẩu
@@ -1756,6 +1777,7 @@ ui:
branding: Thương hiệu
legal: Pháp lý
write: Viết
terms: Terms
tos: Điều khoản dịch vụ
privacy: Quyền riêng tư
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugins
installed_plugins: Plugin đã cài đặt
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Chào mừng bạn đến với {{site_name}}
user_center:
login: Đăng nhập
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: Viết
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Câu trả lời chỉnh sửa
label: Each user can only write one answer for each question
text: "Tắt để cho phép người dùng viết nhiều câu trả lời cho cùng một câu hỏi, điều này có thể khiến các câu trả lời bị mất trọng tâm."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Thẻ được đề xuất
text: "Các thẻ gợi ý sẽ hiển thị trong danh sách thả xuống theo mặc định."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: Màu chính
text: Thay đổi các màu sắc được sử dụng bởi chủ đề của bạn
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS và HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Hiển thị nhật ký
status: Trạng thái
title: Danh hiệu
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (tùy chọn)
empty: không thể trống
@@ -2329,6 +2437,7 @@ ui:
user_normal: Người dùng này đã bình thường.
user_suspended: Người dùng này đã bị đình chỉ.
user_deleted: Người dùng này đã bị xóa.
user_added: User has been added successfully.
badge_activated: Huy hiệu này đã được kích hoạt.
badge_inactivated: Huy hiệu này đã bị vô hiệu hóa.
users_deleted: These users have been deleted.
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: 没有更新权限。
content_cannot_empty:
other: 内容不能为空。
content_less_than_minimum:
other: 输入的内容不足。
rank:
fail_to_meet_the_condition:
other: 声望值未达到要求。
@@ -263,6 +265,8 @@ backend:
other: 你不能删除这个正在使用的标签。
cannot_set_synonym_as_itself:
other: 你不能将当前标签设为自己的同义词。
minimum_count:
other: 没有输入足够的标签。
smtp:
config_from_name_cannot_be_email:
other: 发件人名称不能是邮箱地址。
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP 错误 500
http_403: HTTP 错误 403
logout: 退出
posts: 帖子
ai_assistant: AI 助手
ai_assistant:
description: 有问题?问它并获得答案、观点和建议。
recent_conversations: 新对话
show_more: 显示更多
new: 新聊天
ai_generate: 来自帖子的 AI,可能不准确。
copy: 复制
ask_a_follow_up: 提出后续问题
ask_placeholder: 提问
notifications:
title: 通知
inbox: 收件箱
@@ -1141,6 +1156,9 @@ ui:
label: 内容
msg:
empty: 内容不能为空。
hint:
optional_body: 描述这个问题是什么。
minimum_characters: "详细描述这个问题,至少需要 {{min_content_length}} 字符。"
tags:
label: 标签
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: 添加标签
create_btn: 创建新标签
search_tag: 搜索标签
hint: "描述您的内容是关于什么,至少需要一个标签。"
hint: 描述您的内容是关于什么,至少需要一个标签。
hint_zero_tags: 描述您的内容与什么有关。
hint_more_than_one_tag: "描述您的内容是关于什么,至少需要{{min_tags_number}}个标签。"
no_result: 没有匹配的标签
tag_required_text: 必选标签(至少一个)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: 搜索
footer:
build_on: >-
由 <1>Apache Answer</1> 提供动力 - 驱动问答社区的开源软件。<br />用爱制造 © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: 更改
loading: 加载中...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: 名字不能为空
range: 名称长度必须在 2 至 30 个字符之间。
character: '只能由 "a-z"、"A-Z"、"0-9"" - . _" 组成'
character: '只能由 "a-z", "0-9", " - . _" 组成'
email:
label: 邮箱
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: 用户可以通过 "@用户名" 来提及你。
msg: 用户名不能为空
msg_range: 显示名称长度必须为 2-30 个字符。
character: '只能由 "a-z"、"A-Z"、"0-9"" - . _" 组成'
character: '只能由 "a-z", "0-9", " - . _" 组成'
avatar:
label: 头像
gravatar: Gravatar
@@ -1381,9 +1400,11 @@ ui:
search: 搜索人员
question_detail:
action: 操作
created: 创建于
Asked: 提问于
asked: 提问于
update: 修改于
Edited: 编辑于
edit: 编辑于
commented: 评论
Views: 阅读次数
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: 名字
msg: 名字不能为空。
character: '只能由 "a-z"、"A-Z"、"0-9"" - . _" 组成'
character: '只能由 "a-z", "0-9", " - . _" 组成'
msg_max_length: 名称长度必须在 2 至 30 个字符之间。
admin_password:
label: 密码
@@ -1756,6 +1777,7 @@ ui:
branding: 品牌
legal: 法律条款
write: 撰写
terms: 服务条款
tos: 服务条款
privacy: 隐私政策
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: 插件
installed_plugins: 已安装插件
apperance: 外观
community: 社区
advanced: 高级选项
tags: 标签
rules: 规则
policies: 政策
security: 安全
files: 文件
apikeys: API 密钥
intelligence: 智力
ai_assistant: AI 助手
ai_settings: AI 设置
mcp: MCP
website_welcome: 欢迎来到 {{site_name}}
user_center:
login: 登录
@@ -2077,11 +2111,17 @@ ui:
always_display: 总是显示外部内容
ask_before_display: 在显示外部内容之前询问
write:
page_title: 编辑
page_title: 文件
min_content:
label: 最小问题长度
text: 最小允许的问题内容长度(字符)。
restrict_answer:
title: 回答编辑
label: 每个用户对于每个问题只能有一个回答
text: "用户可以使用编辑按钮优化已有的回答"
min_tags:
label: "问题的最少标签数"
text: "一个问题所需标签的最小数量。"
recommend_tags:
label: 推荐标签
text: "推荐标签将默认显示在下拉列表中。"
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: 主色调
text: 修改您主题使用的颜色
layout:
label: 布局
full_width: 全宽度
fixed_width: 固定宽度
css_and_html:
page_title: CSS 与 HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: 显示日志
status: 状态
title: 徽章
apikeys:
title: API 密钥
add_api_key: 添加 API 密钥
desc: 描述
scope: 范围
key: 密钥
created: 创建于
last_used: 最后使用
add_or_edit_modal:
add_title: 添加 API 密钥
edit_title: 编辑 API 密钥
description: 描述
description_required: 请输入描述。
scope: 范围
global: 全局
read-only: 只读
created_modal:
title: 已创建API密钥
api_key: API 密钥
description: 此密钥将不会再次显示。请确保您在继续之前拿到一份副本。
delete_modal:
title: 删除API密钥
content: 任何使用此密钥的应用程序或脚本都将无法访问API。这是永久性的!
ai_settings:
enabled:
label: AI 已启用
check: 启用AI功能
text: AI 模型必须正确配置才能使用。
provider:
label: 提供商
api_host:
label: API 主机
msg: API 主机是必需的
api_key:
label: API 密钥
check: 检查
check_success: "连接成功。"
msg: API 密钥是必填项
model:
label: 模型
msg: 模型是必需的
add_success: AI 设置更新成功。
conversations:
topic: 主题
helpful: 有帮助
unhelpful: 没有帮助
created: 创建于
action: 操作
empty: 没有找到会话
delete_modal:
title: 删除对话
content: 您确定要删除此对话吗?这是永久性的!
delete_success: 对话删除成功。
mcp:
mcp_server:
label: MCP服务器
switch: 已启用
type:
label: 类型
url:
label: 链接
http_header:
label: HTTP Header
text: 请将 {key} 替换为 API 密钥。
form:
optional: (选填)
empty: 不能为空
@@ -2329,6 +2437,7 @@ ui:
user_normal: 此用户已经是正常的。
user_suspended: 此用户已被封禁。
user_deleted: 此用户已被删除
user_added: 用户添加成功。
badge_activated: 此徽章已被激活。
badge_inactivated: 此徽章已被禁用。
users_deleted: 这些用户已被删除。
+116 -7
View File
@@ -234,6 +234,8 @@ backend:
other: 無更新權限。
content_cannot_empty:
other: Content cannot be empty.
content_less_than_minimum:
other: Not enough content entered.
rank:
fail_to_meet_the_condition:
other: Reputation rank fail to meet the condition.
@@ -263,6 +265,8 @@ backend:
other: You cannot delete a tag that is in use.
cannot_set_synonym_as_itself:
other: 你不能將目前標籤的同義詞設定為本身。
minimum_count:
other: Not enough tags were entered.
smtp:
config_from_name_cannot_be_email:
other: The from name cannot be a email address.
@@ -841,6 +845,17 @@ ui:
http_50X: HTTP 錯誤 500
http_403: HTTP 錯誤 403
logout: 登出
posts: Posts
ai_assistant: AI Assistant
ai_assistant:
description: Got a question? Ask it and get answers, perspectives, and recommendations.
recent_conversations: Recent Conversations
show_more: Show more
new: New chat
ai_generate: AI-generated from posts and may not be accurate.
copy: Copy
ask_a_follow_up: Ask a follow-up
ask_placeholder: Ask a question
notifications:
title: 通知
inbox: 收件夾
@@ -1141,6 +1156,9 @@ ui:
label: 正文
msg:
empty: 正文不能爲空。
hint:
optional_body: Describe what the question is about.
minimum_characters: "Describe what the question is about, at least {{min_content_length}} characters are required."
tags:
label: 標籤
msg:
@@ -1161,7 +1179,9 @@ ui:
add_btn: 建立標籤
create_btn: 建立新標籤
search_tag: 搜尋標籤
hint: "Describe what your content is about, at least one tag is required."
hint: Describe what your content is about, at least one tag is required.
hint_zero_tags: Describe what your content is about.
hint_more_than_one_tag: "Describe what your content is about, at least {{min_tags_number}} tags are required."
no_result: 沒有匹配的標籤
tag_required_text: 必填標籤 (至少一個)
header:
@@ -1180,8 +1200,7 @@ ui:
search:
placeholder: 搜尋
footer:
build_on: >-
Powered by <1> Apache Answer </1>- the open-source software that powers Q&A communities.<br />Made with love © {{cc}}.
build_on: Powered by <1> Apache Answer </1>
upload_img:
name: 更改
loading: 讀取中...
@@ -1214,7 +1233,7 @@ ui:
msg:
empty: 名稱不能為空
range: Name must be between 2 to 30 characters in length.
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
email:
label: 郵箱
msg:
@@ -1292,7 +1311,7 @@ ui:
caption: 用戶之間可以通過 "@用戶名" 進行交互。
msg: 用戶名不能為空
msg_range: Username must be 2-30 characters in length.
character: '必須由 "a-z", "0-9", " - . _" 組成'
character: 'Must use the character set "a-z", "0-9", "- . _"'
avatar:
label: Profile image
gravatar: 頭像
@@ -1381,9 +1400,11 @@ ui:
search: Search people
question_detail:
action: Action
created: Created
Asked: 提問於
asked: 提問於
update: 修改於
Edited: Edited
edit: 最後編輯於
commented: commented
Views: 閱讀次數
@@ -1695,7 +1716,7 @@ ui:
admin_name:
label: 暱稱
msg: 暱稱不能為空。
character: 'Must use the character set "a-z", "A-Z", "0-9", " - . _"'
character: 'Must use the character set "a-z", "0-9", " - . _"'
msg_max_length: Name must be between 2 to 30 characters in length.
admin_password:
label: 密碼
@@ -1756,6 +1777,7 @@ ui:
branding: 品牌
legal: 法律條款
write: 撰寫
terms: Terms
tos: 服務條款
privacy: 隱私政策
seo: SEO
@@ -1766,6 +1788,18 @@ ui:
plugins: Plugins
installed_plugins: Installed Plugins
apperance: Appearance
community: Community
advanced: Advanced
tags: Tags
rules: Rules
policies: Policies
security: Security
files: Files
apikeys: API Keys
intelligence: Intelligence
ai_assistant: AI Assistant
ai_settings: AI Settings
mcp: MCP
website_welcome: Welcome to {{site_name}}
user_center:
login: Login
@@ -2077,11 +2111,17 @@ ui:
always_display: Always display external content
ask_before_display: Ask before displaying external content
write:
page_title: 編輯
page_title: Files
min_content:
label: Minimum question body length
text: Minimum allowed question body length in characters.
restrict_answer:
title: Answer write
label: Each user can only write one answer for each question
text: "Turn off to allow users to write multiple answers to the same question, which may cause answers to be unfocused."
min_tags:
label: "Minimum tags per question"
text: "Minimum number of tags required in a question."
recommend_tags:
label: Recommend tags
text: "Recommend tags will show in the dropdown list by default."
@@ -2129,6 +2169,10 @@ ui:
primary_color:
label: 主色調
text: 修改您主題使用的顏色
layout:
label: Layout
full_width: Full-width
fixed_width: Fixed-width
css_and_html:
page_title: CSS 與 HTML
custom_css:
@@ -2233,6 +2277,70 @@ ui:
show_logs: Show logs
status: Status
title: Badges
apikeys:
title: API Keys
add_api_key: Add API Key
desc: Description
scope: Scope
key: Key
created: Created
last_used: Last used
add_or_edit_modal:
add_title: Add API Key
edit_title: Edit API Key
description: Description
description_required: Description is required.
scope: Scope
global: Global
read-only: Read-only
created_modal:
title: API key created
api_key: API key
description: This key will not be displayed again. Make sure you take a copy before continuing.
delete_modal:
title: Delete API Key
content: Any applications or scripts using this key will no longer be able to access the API. This is permanent!
ai_settings:
enabled:
label: AI enabled
check: Enable AI features
text: The AI model must be configured correctly before it can be used.
provider:
label: Provider
api_host:
label: API host
msg: API host is required
api_key:
label: API key
check: Check
check_success: "Connection successful."
msg: API key is required
model:
label: Model
msg: Model is required
add_success: AI settings updated successfully.
conversations:
topic: Topic
helpful: Helpful
unhelpful: Unhelpful
created: Created
action: Action
empty: No conversations found.
delete_modal:
title: Delete conversation
content: Are you sure you want to delete this conversation? This is permanent!
delete_success: Conversation deleted successfully.
mcp:
mcp_server:
label: MCP server
switch: Enabled
type:
label: Type
url:
label: URL
http_header:
label: HTTP header
text: Please replace {key} with the API Key.
form:
optional: (選填)
empty: 不能為空
@@ -2329,6 +2437,7 @@ ui:
user_normal: This user is already normal.
user_suspended: This user has been suspended.
user_deleted: This user has been deleted.
user_added: User has been added successfully.
badge_activated: This badge has been activated.
badge_inactivated: This badge has been inactivated.
users_deleted: These users have been deleted.
+5 -3
View File
@@ -25,9 +25,9 @@ import (
"path/filepath"
"github.com/apache/answer/internal/base/data"
"github.com/apache/answer/internal/base/path"
"github.com/apache/answer/internal/base/server"
"github.com/apache/answer/internal/base/translator"
"github.com/apache/answer/internal/cli"
"github.com/apache/answer/internal/router"
"github.com/apache/answer/internal/service/service_config"
"github.com/apache/answer/pkg/writer"
@@ -98,7 +98,7 @@ func (c *AllConfig) SetEnvironmentOverrides() {
// ReadConfig read config
func ReadConfig(configFilePath string) (c *AllConfig, err error) {
if len(configFilePath) == 0 {
configFilePath = filepath.Join(cli.ConfigFileDir, cli.DefaultConfigFileName)
configFilePath = filepath.Join(path.ConfigFileDir, path.DefaultConfigFileName)
}
c = &AllConfig{}
config, err := viper.NewWithPath(configFilePath)
@@ -117,7 +117,9 @@ func ReadConfig(configFilePath string) (c *AllConfig, err error) {
func RewriteConfig(configFilePath string, allConfig *AllConfig) error {
buf := bytes.Buffer{}
enc := yaml.NewEncoder(&buf)
defer enc.Close()
defer func() {
_ = enc.Close()
}()
enc.SetIndent(2)
if err := enc.Encode(allConfig); err != nil {
return err
+51
View File
@@ -0,0 +1,51 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package constant
const (
AIConfigProvider = "ai_config.provider"
)
const (
DefaultAIPromptConfigZhCN = `你是一个智能助手可以帮助用户查询系统中的信息用户问题%s
你可以使用以下工具来查询系统信息
- get_questions: 搜索系统中已存在的问题使用这个工具可以获取问题列表后注意需要使用 get_answers_by_question_id 获取问题的答案
- get_answers_by_question_id: 根据问题ID获取该问题的所有答案
- get_comments: 搜索评论信息
- get_tags: 搜索标签信息
- get_tag_detail: 获取特定标签的详细信息
- get_user: 搜索用户信息
- semantic_search: 通过语义相似度搜索问题和答案当用户的问题与现有内容概念相关但可能不匹配确切关键词时使用此工具 get_questions 关键词搜索返回较差结果时请使用 semantic_search
请根据用户的问题智能地使用这些工具来提供准确的答案如果需要查询系统信息请先使用相应的工具获取数据`
DefaultAIPromptConfigEnUS = `You are an intelligent assistant that can help users query information in the system. User question: %s
You can use the following tools to query system information:
- get_questions: Search for existing questions in the system. After using this tool to get the question list, you need to use get_answers_by_question_id to get the answers to the questions
- get_answers_by_question_id: Get all answers for a question based on question ID
- get_comments: Search for comment information
- get_tags: Search for tag information
- get_tag_detail: Get detailed information about a specific tag
- get_user: Search for user information
- semantic_search: Search questions and answers by semantic meaning. Use this when the user's question relates conceptually to existing content but may not match exact keywords. When get_questions keyword search returns poor results, use semantic_search instead.
Please intelligently use these tools based on the user's question to provide accurate answers. If you need to query system information, please use the appropriate tools to get the data first.`
)
+3
View File
@@ -42,6 +42,9 @@ const (
ConfigCacheTime = 1 * time.Hour
ConnectorUserExternalInfoCacheKey = "answer:connector:"
ConnectorUserExternalInfoCacheTime = 10 * time.Minute
ConnectorOAuthStateCacheKey = "answer:connector:oauth-state:"
ConnectorOAuthStateCacheTime = 10 * time.Minute
ConnectorOAuthBindStateCacheTime = 5 * time.Minute
SiteMapQuestionCacheKeyPrefix = "answer:sitemap:question:%d"
SiteMapQuestionCacheTime = time.Hour
SitemapMaxSize = 50000
+7
View File
@@ -23,3 +23,10 @@ const (
AcceptLanguageFlag = "Accept-Language"
ShortIDFlag = "Short-ID-Enabled"
)
type ContextKey string
const (
AcceptLanguageContextKey ContextKey = ContextKey(AcceptLanguageFlag)
ShortIDContextKey ContextKey = ContextKey(ShortIDFlag)
)
+3
View File
@@ -43,6 +43,9 @@ const (
ColorSchemeLight = "light"
ColorSchemeDark = "dark"
ColorSchemeSystem = "system"
ThemeLayoutFullWidth = "Full-width"
ThemeLayoutFixedWidth = "Fixed-width"
)
const (
+18 -3
View File
@@ -20,15 +20,30 @@
package constant
const (
// SiteTypeLegal\SiteTypeLegal\SiteTypeWrite The following items will no longer be used.
SiteTypeLegal = "legal"
SiteTypeInterface = "interface"
SiteTypeWrite = "write"
SiteTypeGeneral = "general"
SiteTypeInterface = "interface"
SiteTypeBranding = "branding"
SiteTypeWrite = "write"
SiteTypeLegal = "legal"
SiteTypeSeo = "seo"
SiteTypeLogin = "login"
SiteTypeCustomCssHTML = "css-html"
SiteTypeTheme = "theme"
SiteTypePrivileges = "privileges"
SiteTypeUsers = "users"
SiteTypeAdvanced = "advanced"
SiteTypeQuestions = "questions"
SiteTypeTags = "tags"
SiteTypeUsersSettings = "users_settings"
SiteTypeInterfaceSettings = "interface_settings"
SiteTypePolicies = "policies"
SiteTypeSecurity = "security"
SiteTypeAI = "ai"
SiteTypeFeatureToggle = "feature-toggle"
SiteTypeMCP = "mcp"
)
+1 -1
View File
@@ -47,7 +47,7 @@ type Data struct {
func NewData(db *xorm.Engine, cache cache.Cache) (*Data, func(), error) {
cleanup := func() {
log.Info("closing the data resources")
db.Close()
_ = db.Close()
}
return &Data{DB: db, Cache: cache}, cleanup, nil
}
+8 -9
View File
@@ -21,18 +21,18 @@ package handler
import (
"errors"
"github.com/apache/answer/internal/base/constant"
"net/http"
"github.com/apache/answer/internal/base/reason"
"github.com/apache/answer/internal/base/validator"
"github.com/gin-gonic/gin"
myErrors "github.com/segmentfault/pacman/errors"
"github.com/segmentfault/pacman/log"
"net/http"
)
// HandleResponse Handle response body
func HandleResponse(ctx *gin.Context, err error, data interface{}) {
lang := GetLang(ctx)
func HandleResponse(ctx *gin.Context, err error, data any) {
lang := GetLangByCtx(ctx)
// no error
if err == nil {
ctx.JSON(http.StatusOK, NewRespBodyData(http.StatusOK, reason.Success, data).TrMsg(lang))
@@ -61,9 +61,8 @@ func HandleResponse(ctx *gin.Context, err error, data interface{}) {
}
// BindAndCheck bind request and check
func BindAndCheck(ctx *gin.Context, data interface{}) bool {
lang := GetLang(ctx)
ctx.Set(constant.AcceptLanguageFlag, lang)
func BindAndCheck(ctx *gin.Context, data any) bool {
lang := GetLangByCtx(ctx)
if err := ctx.ShouldBind(data); err != nil {
log.Errorf("http_handle BindAndCheck fail, %s", err.Error())
HandleResponse(ctx, myErrors.New(http.StatusBadRequest, reason.RequestFormatError), nil)
@@ -79,8 +78,8 @@ func BindAndCheck(ctx *gin.Context, data interface{}) bool {
}
// BindAndCheckReturnErr bind request and check
func BindAndCheckReturnErr(ctx *gin.Context, data interface{}) (errFields []*validator.FormErrorField) {
lang := GetLang(ctx)
func BindAndCheckReturnErr(ctx *gin.Context, data any) (errFields []*validator.FormErrorField) {
lang := GetLangByCtx(ctx)
if err := ctx.ShouldBind(data); err != nil {
log.Errorf("http_handle BindAndCheck fail, %s", err.Error())
HandleResponse(ctx, myErrors.New(http.StatusBadRequest, reason.RequestFormatError), nil)
+11 -10
View File
@@ -27,18 +27,19 @@ import (
"github.com/segmentfault/pacman/i18n"
)
// GetLang get language from header
func GetLang(ctx *gin.Context) i18n.Language {
acceptLanguage := ctx.GetHeader(constant.AcceptLanguageFlag)
if len(acceptLanguage) == 0 {
return i18n.DefaultLanguage
}
return i18n.Language(acceptLanguage)
}
// GetLangByCtx get language from header
func GetLangByCtx(ctx context.Context) i18n.Language {
acceptLanguage, ok := ctx.Value(constant.AcceptLanguageFlag).(i18n.Language)
if ginCtx, ok := ctx.(*gin.Context); ok {
acceptLanguage, ok := ginCtx.Get(constant.AcceptLanguageFlag)
if ok {
if acceptLanguage, ok := acceptLanguage.(i18n.Language); ok {
return acceptLanguage
}
return i18n.DefaultLanguage
}
}
acceptLanguage, ok := ctx.Value(constant.AcceptLanguageContextKey).(i18n.Language)
if ok {
return acceptLanguage
}
+2 -2
View File
@@ -34,7 +34,7 @@ type RespBody struct {
// response message
Message string `json:"msg"`
// response data
Data interface{} `json:"data"`
Data any `json:"data"`
}
// TrMsg translate the reason cause as a message
@@ -63,7 +63,7 @@ func NewRespBodyFromError(e *errors.Error) *RespBody {
}
// NewRespBodyData new response body with data
func NewRespBodyData(code int, reason string, data interface{}) *RespBody {
func NewRespBodyData(code int, reason string, data any) *RespBody {
return &RespBody{
Code: code,
Reason: reason,
+14 -2
View File
@@ -23,11 +23,23 @@ import (
"context"
"github.com/apache/answer/internal/base/constant"
"github.com/gin-gonic/gin"
)
// GetEnableShortID get language from header
// GetEnableShortID get short id flag from context
func GetEnableShortID(ctx context.Context) bool {
flag, ok := ctx.Value(constant.ShortIDFlag).(bool)
// Check gin context first (set by ShortIDMiddleware via ctx.Set)
if ginCtx, ok := ctx.(*gin.Context); ok {
flag, ok := ginCtx.Get(constant.ShortIDFlag)
if ok {
if flag, ok := flag.(bool); ok {
return flag
}
return false
}
}
// Fallback for non-gin contexts (e.g., SitemapCron uses context.WithValue)
flag, ok := ctx.Value(constant.ShortIDContextKey).(bool)
if ok {
return flag
}
+10 -4
View File
@@ -20,20 +20,26 @@
package middleware
import (
"strings"
"github.com/apache/answer/internal/base/constant"
"github.com/apache/answer/internal/base/handler"
"github.com/apache/answer/internal/base/translator"
"github.com/gin-gonic/gin"
"github.com/segmentfault/pacman/i18n"
"golang.org/x/text/language"
"strings"
)
const maxAcceptLanguageLength = 256
// ExtractAndSetAcceptLanguage extract accept language from header and set to context
func ExtractAndSetAcceptLanguage(ctx *gin.Context) {
// The language of our front-end configuration, like en_US
lang := handler.GetLang(ctx)
tag, _, err := language.ParseAcceptLanguage(string(lang))
acceptLanguage := ctx.GetHeader(constant.AcceptLanguageFlag)
if len(acceptLanguage) > maxAcceptLanguageLength {
ctx.Set(constant.AcceptLanguageFlag, i18n.LanguageEnglish)
return
}
tag, _, err := language.ParseAcceptLanguage(acceptLanguage)
if err != nil || len(tag) == 0 {
ctx.Set(constant.AcceptLanguageFlag, i18n.LanguageEnglish)
return
+51
View File
@@ -0,0 +1,51 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package middleware
import (
"github.com/apache/answer/internal/base/handler"
"github.com/apache/answer/internal/base/reason"
"github.com/gin-gonic/gin"
"github.com/segmentfault/pacman/errors"
)
// AuthAPIKey middleware to authenticate API key
func (am *AuthUserMiddleware) AuthAPIKey() gin.HandlerFunc {
return func(ctx *gin.Context) {
token := ExtractToken(ctx)
if len(token) == 0 {
handler.HandleResponse(ctx, errors.Unauthorized(reason.UnauthorizedError), nil)
ctx.Abort()
return
}
pass, err := am.authService.AuthAPIKey(ctx, ctx.Request.Method == "GET", token)
if err != nil {
handler.HandleResponse(ctx, errors.Unauthorized(reason.UnauthorizedError), nil)
ctx.Abort()
return
}
if !pass {
handler.HandleResponse(ctx, errors.Unauthorized(reason.UnauthorizedError), nil)
ctx.Abort()
return
}
ctx.Next()
}
}
+45 -2
View File
@@ -80,7 +80,7 @@ func (am *AuthUserMiddleware) Auth() gin.HandlerFunc {
func (am *AuthUserMiddleware) EjectUserBySiteInfo() gin.HandlerFunc {
return func(ctx *gin.Context) {
mustLogin := false
siteInfo, _ := am.siteInfoCommonService.GetSiteLogin(ctx)
siteInfo, _ := am.siteInfoCommonService.GetSiteSecurity(ctx)
if siteInfo != nil {
mustLogin = siteInfo.LoginRequired
}
@@ -116,6 +116,10 @@ func (am *AuthUserMiddleware) MustAuthWithoutAccountAvailable() gin.HandlerFunc
ctx.Abort()
return
}
// Check API key scope
if am.AuthAPIKeyScope(ctx, token) {
return
}
userInfo, err := am.authService.GetUserCacheInfo(ctx, token)
if err != nil || userInfo == nil {
handler.HandleResponse(ctx, errors.Unauthorized(reason.UnauthorizedError), nil)
@@ -141,6 +145,10 @@ func (am *AuthUserMiddleware) MustAuthAndAccountAvailable() gin.HandlerFunc {
ctx.Abort()
return
}
// Check API key scope
if am.AuthAPIKeyScope(ctx, token) {
return
}
userInfo, err := am.authService.GetUserCacheInfo(ctx, token)
if err != nil || userInfo == nil {
handler.HandleResponse(ctx, errors.Unauthorized(reason.UnauthorizedError), nil)
@@ -184,7 +192,22 @@ func (am *AuthUserMiddleware) AdminAuth() gin.HandlerFunc {
return
}
if userInfo != nil {
if userInfo.EmailStatus == entity.EmailStatusToBeVerified {
_ = am.authService.RemoveAdminUserCacheInfo(ctx, token)
handler.HandleResponse(ctx, errors.Forbidden(reason.EmailNeedToBeVerified),
&schema.ForbiddenResp{Type: schema.ForbiddenReasonTypeInactive})
ctx.Abort()
return
}
if userInfo.UserStatus == entity.UserStatusSuspended {
_ = am.authService.RemoveAdminUserCacheInfo(ctx, token)
handler.HandleResponse(ctx, errors.Forbidden(reason.UserSuspended),
&schema.ForbiddenResp{Type: schema.ForbiddenReasonTypeUserSuspended})
ctx.Abort()
return
}
if userInfo.UserStatus == entity.UserStatusDeleted {
_ = am.authService.RemoveAdminUserCacheInfo(ctx, token)
handler.HandleResponse(ctx, errors.Unauthorized(reason.UnauthorizedError), nil)
ctx.Abort()
return
@@ -197,7 +220,7 @@ func (am *AuthUserMiddleware) AdminAuth() gin.HandlerFunc {
func (am *AuthUserMiddleware) CheckPrivateMode() gin.HandlerFunc {
return func(ctx *gin.Context) {
resp, err := am.siteInfoCommonService.GetSiteLogin(ctx)
resp, err := am.siteInfoCommonService.GetSiteSecurity(ctx)
if err != nil {
ShowIndexPage(ctx)
ctx.Abort()
@@ -211,6 +234,26 @@ func (am *AuthUserMiddleware) CheckPrivateMode() gin.HandlerFunc {
ctx.Next()
}
}
func (am *AuthUserMiddleware) AuthAPIKeyScope(ctx *gin.Context, accessToken string) (apiHaveNoScope bool) {
if !strings.HasPrefix(accessToken, "sk_") {
return false
}
var err error
pass, err := am.authService.AuthAPIKey(ctx, ctx.Request.Method == "GET", accessToken)
if err != nil {
handler.HandleResponse(ctx, errors.Forbidden(reason.ForbiddenError), nil)
ctx.Abort()
return true
}
if !pass {
handler.HandleResponse(ctx, errors.Forbidden(reason.ForbiddenError), nil)
ctx.Abort()
return true
}
return false
}
func ShowIndexPage(ctx *gin.Context) {
ctx.Header("content-type", "text/html;charset=utf-8")
ctx.Header("X-Frame-Options", "DENY")
-1
View File
@@ -80,7 +80,6 @@ func (am *AvatarMiddleware) AvatarThumb() gin.HandlerFunc {
}
ctx.Abort()
return
} else {
urlInfo, err := url.Parse(uri)
if err != nil {
+47
View File
@@ -0,0 +1,47 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package middleware
import (
"github.com/apache/answer/internal/base/handler"
"github.com/apache/answer/internal/base/reason"
"github.com/gin-gonic/gin"
"github.com/segmentfault/pacman/errors"
"github.com/segmentfault/pacman/log"
)
// AuthMcpEnable check mcp is enabled
func (am *AuthUserMiddleware) AuthMcpEnable() gin.HandlerFunc {
return func(ctx *gin.Context) {
mcpConfig, err := am.siteInfoCommonService.GetSiteMCP(ctx)
if err != nil {
handler.HandleResponse(ctx, errors.InternalServer(reason.UnknownError), nil)
ctx.Abort()
return
}
if mcpConfig != nil && mcpConfig.Enabled {
ctx.Next()
return
}
handler.HandleResponse(ctx, errors.Forbidden(reason.ForbiddenError), nil)
ctx.Abort()
log.Error("abort mcp auth middleware, get mcp config error: ", err)
}
}
+1
View File
@@ -22,6 +22,7 @@ package middleware
import (
"encoding/json"
"fmt"
"github.com/apache/answer/internal/base/handler"
"github.com/apache/answer/internal/base/reason"
"github.com/apache/answer/internal/repo/limit"
+62
View File
@@ -0,0 +1,62 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package middleware
import (
"net/http"
"runtime/debug"
"strings"
"github.com/apache/answer/internal/base/handler"
"github.com/apache/answer/internal/base/reason"
"github.com/gin-gonic/gin"
"github.com/segmentfault/pacman/log"
)
func Recovery(apiPrefixes ...string) gin.HandlerFunc {
return func(ctx *gin.Context) {
defer func() {
if err := recover(); err != nil {
log.Errorf("panic recovered: %v\n%s", err, debug.Stack())
// Headers/body already flushed (SSE or any streamed response).
// We can no longer rewrite the response cleanly; just stop the chain.
if ctx.Writer.Written() {
ctx.Abort()
return
}
path := ctx.Request.URL.Path
for _, p := range apiPrefixes {
if strings.HasPrefix(path, p) {
ctx.AbortWithStatusJSON(http.StatusInternalServerError,
handler.NewRespBody(http.StatusInternalServerError, reason.UnknownError).
TrMsg(handler.GetLangByCtx(ctx)),
)
return
}
}
ctx.AbortWithStatus(http.StatusInternalServerError)
}
}()
ctx.Next()
}
}
+120
View File
@@ -0,0 +1,120 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package middleware
import (
"encoding/json"
"net/http"
"net/http/httptest"
"testing"
"github.com/gin-gonic/gin"
)
// Panic on an API path returns the project's unified JSON 500.
func TestRecovery_APIPathPanic(t *testing.T) {
gin.SetMode(gin.TestMode)
r := gin.New()
r.Use(Recovery("/api"))
r.GET("/api/panic", func(ctx *gin.Context) {
panic("test panic")
})
w := httptest.NewRecorder()
req, _ := http.NewRequest(http.MethodGet, "/api/panic", nil)
r.ServeHTTP(w, req)
if w.Code != http.StatusInternalServerError {
t.Errorf("expected 500, got %d", w.Code)
}
var body map[string]any
if err := json.Unmarshal(w.Body.Bytes(), &body); err != nil {
t.Fatalf("response is not valid JSON: %v", err)
}
if body["reason"] != "base.unknown" {
t.Errorf("unexpected reason: %v", body["reason"])
}
}
// Panic on a non-API path returns a bare 500 with no body, so the browser can
// render its own error page instead of showing raw JSON.
func TestRecovery_NonAPIPathPanic(t *testing.T) {
gin.SetMode(gin.TestMode)
r := gin.New()
r.Use(Recovery("/api"))
r.GET("/page", func(ctx *gin.Context) {
panic("test panic")
})
w := httptest.NewRecorder()
req, _ := http.NewRequest(http.MethodGet, "/page", nil)
r.ServeHTTP(w, req)
if w.Code != http.StatusInternalServerError {
t.Errorf("expected 500, got %d", w.Code)
}
if w.Body.Len() != 0 {
t.Errorf("expected empty body for non-API path, got: %q", w.Body.String())
}
}
// Panic after the response has already started writing (SSE / streamed
// responses). The middleware must not touch the response — status and body
// already on the wire stay untouched, no JSON gets appended.
func TestRecovery_PanicAfterResponseStarted(t *testing.T) {
gin.SetMode(gin.TestMode)
r := gin.New()
r.Use(Recovery("/api"))
r.GET("/api/stream", func(ctx *gin.Context) {
ctx.Writer.WriteHeader(http.StatusOK)
_, _ = ctx.Writer.Write([]byte("partial data"))
panic("test panic after write")
})
w := httptest.NewRecorder()
req, _ := http.NewRequest(http.MethodGet, "/api/stream", nil)
r.ServeHTTP(w, req)
if w.Code != http.StatusOK {
t.Errorf("expected status to remain 200 (already flushed), got %d", w.Code)
}
if w.Body.String() != "partial data" {
t.Errorf("expected body to remain 'partial data' (no error JSON appended), got: %q", w.Body.String())
}
}
// Normal requests pass through unaffected.
func TestRecovery_NoPanic(t *testing.T) {
gin.SetMode(gin.TestMode)
r := gin.New()
r.Use(Recovery("/api"))
r.GET("/api/ok", func(ctx *gin.Context) {
ctx.String(http.StatusOK, "ok")
})
w := httptest.NewRecorder()
req, _ := http.NewRequest(http.MethodGet, "/api/ok", nil)
r.ServeHTTP(w, req)
if w.Code != http.StatusOK {
t.Errorf("expected 200, got %d", w.Code)
}
}
+2 -2
View File
@@ -41,11 +41,11 @@ func (am *AuthUserMiddleware) VisitAuth() gin.HandlerFunc {
return
}
siteLogin, err := am.siteInfoCommonService.GetSiteLogin(ctx)
siteSecurity, err := am.siteInfoCommonService.GetSiteSecurity(ctx)
if err != nil {
return
}
if !siteLogin.LoginRequired {
if !siteSecurity.LoginRequired {
ctx.Next()
return
}
+1 -1
View File
@@ -27,7 +27,7 @@ import (
)
// Help xorm page helper
func Help(page, pageSize int, rowsSlicePtr interface{}, rowElement interface{}, session *xorm.Session) (total int64, err error) {
func Help(page, pageSize int, rowsSlicePtr any, rowElement any, session *xorm.Session) (total int64, err error) {
page, pageSize = ValPageAndPageSize(page, pageSize)
sliceValue := reflect.Indirect(reflect.ValueOf(rowsSlicePtr))
+3 -3
View File
@@ -25,8 +25,8 @@ import (
// PageModel page model
type PageModel struct {
Count int64 `json:"count"`
List interface{} `json:"list"`
Count int64 `json:"count"`
List any `json:"list"`
}
// PageCond page condition
@@ -36,7 +36,7 @@ type PageCond struct {
}
// NewPageModel new page model
func NewPageModel(totalRecords int64, records interface{}) *PageModel {
func NewPageModel(totalRecords int64, records any) *PageModel {
sliceValue := reflect.Indirect(reflect.ValueOf(records))
if sliceValue.Kind() != reflect.Slice {
panic("not a slice")
+53
View File
@@ -0,0 +1,53 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package path
import (
"path/filepath"
"sync"
)
const (
DefaultConfigFileName = "config.yaml"
DefaultCacheFileName = "cache.db"
DefaultReservedUsernamesConfigFileName = "reserved-usernames.json"
)
var (
ConfigFileDir = "/conf/"
UploadFilePath = "/uploads/"
I18nPath = "/i18n/"
CacheDir = "/cache/"
formatAllPathOnce sync.Once
)
func FormatAllPath(dataDirPath string) {
formatAllPathOnce.Do(func() {
ConfigFileDir = filepath.Join(dataDirPath, ConfigFileDir)
UploadFilePath = filepath.Join(dataDirPath, UploadFilePath)
I18nPath = filepath.Join(dataDirPath, I18nPath)
CacheDir = filepath.Join(dataDirPath, CacheDir)
})
}
// GetConfigFilePath get config file path
func GetConfigFilePath() string {
return filepath.Join(ConfigFileDir, DefaultConfigFileName)
}
+128
View File
@@ -0,0 +1,128 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package queue
import (
"context"
"sync"
"github.com/segmentfault/pacman/log"
)
type Service[T any] interface {
// Send enqueues a message to be processed asynchronously.
Send(ctx context.Context, msg T)
// RegisterHandler sets the handler function for processing messages.
RegisterHandler(handler func(ctx context.Context, msg T) error)
// Close gracefully shuts down the queue, waiting for pending messages to be processed.
Close()
}
// Queue is a generic message queue service that processes messages asynchronously.
// It is thread-safe and supports graceful shutdown.
type Queue[T any] struct {
name string
queue chan T
handler func(ctx context.Context, msg T) error
mu sync.RWMutex
closed bool
wg sync.WaitGroup
}
// New creates a new queue with the given name and buffer size.
func New[T any](name string, bufferSize int) *Queue[T] {
q := &Queue[T]{
name: name,
queue: make(chan T, bufferSize),
}
q.startWorker()
return q
}
// Send enqueues a message to be processed asynchronously.
// It will block if the queue is full.
func (q *Queue[T]) Send(ctx context.Context, msg T) {
q.mu.RLock()
defer q.mu.RUnlock()
if q.closed {
log.Warnf("[%s] queue is closed, dropping message", q.name)
return
}
select {
case q.queue <- msg:
log.Debugf("[%s] enqueued message: %+v", q.name, msg)
case <-ctx.Done():
log.Warnf("[%s] context cancelled while sending message", q.name)
}
}
// RegisterHandler sets the handler function for processing messages.
// This is thread-safe and can be called at any time.
func (q *Queue[T]) RegisterHandler(handler func(ctx context.Context, msg T) error) {
q.mu.Lock()
defer q.mu.Unlock()
q.handler = handler
}
// Close gracefully shuts down the queue, waiting for pending messages to be processed.
func (q *Queue[T]) Close() {
q.mu.Lock()
if q.closed {
q.mu.Unlock()
return
}
q.closed = true
q.mu.Unlock()
close(q.queue)
q.wg.Wait()
log.Infof("[%s] queue closed", q.name)
}
// startWorker starts the background goroutine that processes messages.
func (q *Queue[T]) startWorker() {
q.wg.Go(func() {
for msg := range q.queue {
q.processMessage(msg)
}
})
}
// processMessage handles a single message with proper synchronization.
func (q *Queue[T]) processMessage(msg T) {
q.mu.RLock()
handler := q.handler
q.mu.RUnlock()
if handler == nil {
log.Warnf("[%s] no handler registered, dropping message: %+v", q.name, msg)
return
}
// Use background context for async processing
// TODO: Consider adding timeout or using a derived context
if err := handler(context.TODO(), msg); err != nil {
log.Errorf("[%s] handler error: %v", q.name, err)
}
}

Some files were not shown because too many files have changed in this diff Show More