제목에서 이미 언급했듯이: 커뮤니티 건강 대시보드의 그래프 제목 문자열이 로컬라이즈되지 않은 것 같습니다:
보고서 탭으로 전환하면 로컬라이즈된 제목이 표시됩니다:
그러나 개별 보고서/그래프를 살펴보면 다시 영어 제목이 사용되며, 표 헤더의 '일(day)'과 '개수(count)'도 로컬라이즈되지 않았습니다:
1개의 좋아요
tvavrda
(Tomas Vavrda)
12월 31, 2024, 11:41오전
2
1개의 좋아요
sam
(Sam Saffron)
1월 1, 2025, 10:53오후
3
팀에 이 문제를 알렸지만, 언제 해결될지에 대한 일정은 아직 없습니다.
이 부분을 개선하기 위해 PR을 만들어 보시겠어요?
2개의 좋아요
tvavrda
(Tomas Vavrda)
1월 1, 2025, 11:13오후
5
나에게는 좀 어려울 것 같네요
그리고 지금 말씀드리고 있는 바로 그 알림 메일에는 In Reply To 제목이 현지화되지 않았는데, 메일의 나머지 부분은 번역된 것처럼 보입니다.
4개의 좋아요
martin
(Martin Brennan)
1월 2, 2025, 2:22오전
6
이 문제를 수정해야 합니다:
main ← fix/report-i18n
merged 03:05AM - 02 Jan 25 UTC
Our bulk report endpoint uses `hijack`, which does not
use the current user's l… ocale via the `with_resolved_locale`
method in `ApplicationController`. This is happening because
we are doing `around_action` to set the locale, then calling
the code in the block inside the action directly when we use
`hijack`.
We can fix this by capturing `I18n.locale` when starting the
hijack then using `I18n.with_locale` when evaluating the
block inside `hijack`, this way the translations will always
use the correct locale based on the current user.
c.f. https://meta.discourse.org/t/titles-on-graphs-in-community-health-dashboard-are-not-localized/302776/5
“답글” 문제의 경우, 체코어 번역이 다소 부족한 것으로 보입니다. 독일어 server.de.yml 파일에는 user_notifications.in_reply_to가 있지만 server.cs.yml에는 없습니다. 키가 누락된 경우 번역은 영어로 대체됩니다.
6개의 좋아요
tvavrda
(Tomas Vavrda)
1월 2, 2025, 8:49오전
7
죄송합니다, 맞습니다. 제가 혼란을 겪었네요. 그 문장을 4일 전에 번역했는데, 어제까지는 잘 작동할 것 같았어요. 다만 번역본이 아직 커밋되지 않았습니다.
수정해 주셔서 감사합니다. 이제 잘 작동합니다!!
1개의 좋아요
tvavrda
(Tomas Vavrda)
1월 2, 2025, 2:04오후
8
툴팁이 번역되어 있지 않다는 것을 확인했습니다.
관련 코드 조각도 찾았습니다:
return i18n("admin.dashboard.reports.trend_title", {
percent,
prev,
current,
});
}
changeTitle(valAtT1, valAtT2, prevPeriodString) {
const change = this.percentChangeString(valAtT1, valAtT2);
let title = "";
if (change) {
title += `${change} change. `;
}
title += `Was ${number(valAtT1)} ${prevPeriodString}.`;
return title;
}
@discourseComputed("yesterdayCount")
yesterdayCountTitle(yesterdayCount) {
return this.changeTitle(this.valueAt(2), yesterdayCount, "two days ago");
저는 C# 개발자라서 PR을 만들 수 없습니다.
2개의 좋아요
martin
(Martin Brennan)
1월 3, 2025, 12:09오전
9
야, C#은 JavaScript와 꽤 비슷하잖아! 그걸 찾아줘서 고마워. JS를 I18n을 사용하도록 수정하는 PR을 만들게.
1개의 좋아요
martin
(Martin Brennan)
1월 3, 2025, 1:04오전
10
이로써 다른 문제도 해결되지만, 다음 번역 라운드까지 실질적인 변경 사항은 확인되지 않을 것입니다:
main ← fix/report-percent-tooltip
merged 01:20AM - 03 Jan 25 UTC
Use i18n in the JS code instead of concatenating English
strings.
c.f. https… ://meta.discourse.org/t/titles-on-graphs-in-community-health-dashboard-are-not-localized/302776/8?u=martin
1개의 좋아요
tvavrda
(Tomas Vavrda)
1월 3, 2025, 10:08오전
11
그게 전부ではありません. PR에 대한 코멘트를 달았는데 이미 병합이 되어 있어서, 혹시 보실 수 있을지 모르겠습니다.
아래에 더 많은 번역이 있습니다(“2주 전”과 “지난 30일 동안”).
2개의 좋아요
martin
(Martin Brennan)
1월 6, 2025, 4:48오전
12
다음 PR에서는 이 문제들과 Gerhard가 추가한 코멘트도 함께 수정될 것입니다!
main ← ux/more-admin-dash-translations
merged 11:49PM - 06 Jan 25 UTC
Followup 8d5c4ecc3398611764a4459c0e92f0fb90edd90f
Implement review suggestion… s from https://github.com/discourse/discourse/pull/30541
after merge, and also fix other hardcoded strings on this
dashboard.
2개의 좋아요
tvavrda
(Tomas Vavrda)
1월 10, 2025, 4:09오후
13
같은 문제를 다루는 다른 주제들이 있는 것 같습니다. 그것들을 모두 올려놓기(bump)는 원하지 않습니다. 올바른 처리 방법은 무엇일까요? 그냥 방치해야 할까요, 아니면 어떤 방식으로 업데이트하거나 닫아야 할까요?
Reports, along with their locale strings, are being cached in the server’s locale, such that users with a differing locale will see an incorrect locale on some reports - should Discourse also pass a localization string in reports so that reports are properly localized?
EG, this is a screenshot of a default EN site, with a sr user:
[Screen Shot 2019-12-13 at 11.37.29 AM]
Hello community ,
I noticed that the strings in the admin/moderator dashboard are not being translated. Tried multiple languages and it keeps those strings in English.
[image]
I wanted to add translations to those strings in Crowdin but those strings already have translations. So I ran a search query and found out this topic:
It looks like there was a PR but was not merged at the end.
Was there any progress with that issue?
Thank you
I have found some strings that are translated in Transifex, but doesn’t appear translated in production. They are in Admin>Dashboard: Signups, Topics, Posts, Daily Engaged Users, New Contributors, Top Referred Topics, Trending Search Terms, Users per Type… (with its corresponding tooltips).
This issue is common to all languages. I have checked different locales (French, German, Catalan…), and the strings always appear untranslated.
2개의 좋아요
우선 정말 감사합니다! 그동안 댓글을 달 시간이 부족했는데, 이제 대시보드에서 로컬라이제이션이 훨씬 더 널리 적용되고 있는 것을 확인했습니다.
여전히 발견한 작은 문제 하나: 보고서 개요 페이지로 돌아가는 링크가 로컬라이제이션이 적용되지 않은 것 같습니다.
그리고 사이트 설정에 대한 권장 사항도 영어로 표시됩니다:
Moin
1월 18, 2025, 4:25오후
15
로컬라이즈되어 있습니다. "상세 로컬라이제이션(verbose localization) "을 활성화하면 숫자가 포함되어 있음을 확인할 수 있습니다.
이것들은 단지 새로운 문자열일 뿐이며, 두 가지 모두 4일 전에 독일어로 번역되었지만, 번역은 일주일에 한 번만 병합됩니다. 따라서 번역이 병합된 후에 추가된(또는 약간 전에 추가되었지만 누군가가 제시간에 번역할 시간이 없었던) 완전히 새로운 문자열은 영어로 대체됩니다. 번역은 다음번 번역 병합 시(보통 화요일 ) 추가되며, 업데이트 후 이를 확인할 수 있습니다.
2개의 좋아요