발견 경로 제목에서 %{filter} 번역

다음 텍스트를 독일어로 번역하는 데 어려움을 겪고 있습니다: 다음 텍스트

독일어에서는 'hot’이나 'unread’와 같은 형용사가 문맥에 따라 형태가 변하기 때문에, 정적인 %{filter} 하나만으로는 문법적으로 작동하지 않습니다.

다른 언어에서도 동일한 문제가 발생하는가요? @translators, 여러분의 언어에서는 이 문제를 어떻게 해결하고 계신가요?

한 가지 생각한 아이디어는, 영어에서 현재 'all’이 빠져 있는 문자열에 'all’을 추가하는 것입니다. 예를 들어, "all %{filter} topics in %{category}"처럼요. 하지만 모든 곳에 'all’을 추가하는 것은 과할 수도 있습니다.

독일어에서 형용사 어미가 어떻게 변하는지 보여주는 표입니다:

%{filter} “All %{filter} topics” “%{filter} topics in %{category}”
latest Alle aktuellen Themen Aktuelle Themen in %{category}
top Alle angesagten Themen Angesagte Themen in %{category}
hot Alle heißen Themen Heiße Themen in %{category}
new Alle neuen Themen Neue Themen in %{category}
unread Alle ungelesenen Themen Ungelesene Themen in %{category}
unseen Alle ungesehenen Themen Ungesehene Themen in %{category}

또한 category_tag:에서 %{tags}가 항상 하나 이상의 태그를 가리키는지 궁금했습니다. 위 줄들에서는 단일 태그에는 %{tag}, 복수 태그에는 %{tags}가 사용되지만, 카테고리과 단일 태그를 함께 사용하는 버전을 찾지 못했습니다.

참고로 말씀드리는 문자열들
    discovery:
      headings:
        all:
          default: "All %{filter} topics"
          posted: "All topics you’ve posted in"
          bookmarks: "All topics you’ve bookmarked"

        category:
          default: "%{filter} topics in %{category}"
          posted: "Topics in %{category} you’ve posted in"
          bookmarks: "Topics in %{category} you’ve bookmarked"

        no_tags:
          all_default: "All topics without tags"
          category_default: "%{filter} topics in %{category} without tags"
          all:
            posted: "All topics without tags you've posted in"
            bookmarks: "All topics without tags you've bookmarked"
          category:
            posted: "Topics in %{category} without tags you've posted in"
            bookmarks: "Topics in %{category} without tags you've bookmarked"

        single_tag:
          default: "%{filter} topics tagged %{tag}"
          posted: "Topics tagged %{tag} you've posted in"
          bookmarks: "Topics tagged %{tag} you’ve bookmarked"

        multi_tag:
          default: "%{filter} topics tagged %{tags}"
          posted: "Topics tagged %{tags} you've posted in"
          bookmarks: "Topics tagged %{tags} you’ve bookmarked"

        category_tag:
          default: "%{filter} topics in %{category} tagged %{tags}"
          posted: "Topics in %{category} tagged %{tags} you’ve posted in"
          bookmarks: "Topics in %{category} tagged %{tags} you’ve bookmarked"

        categories: "All categories"

        filter_labels:
          latest: "Latest"
          top: "Top"
          new: "New"
          unread: "Unread"
          hot: "Hot"
          unseen: "Unseen"

3개의 좋아요

피드백을 주셔서 감사합니다, @Moin. 해당 기능을 담당하는 팀원에게 전달했습니다. 다만, 예상하시듯 문자열이 꽤 많이 추가되어야 하므로 가장 적은 저항을 겪는 해결 방법을 찾아봐야 할 것 같습니다.

1개의 좋아요

아, 이제 이해가네요… 다른 피드백을 받을 때까지 번역 시도를 보류하는 것이 좋을 것 같습니다. 대부분의 언어에 적합한 해결책이 있기를 바랍니다. 이러한 항목을 문장처럼 구성하는 것이 지나치게 야심 찬 시도였을 수도 있고, 더 단순한 브레드크럼(breadcrumb) 형태로 만드는 것이 더 나을 수도 있습니다.

좋은 지적입니다. 필터를 사용하여 카테고리와 다중 태그를 함께 사용할 수 없으므로 단수 형태를 사용해야 합니다. %{tag}로 변경하겠습니다.

3개의 좋아요

A11Y: Update accessible headings for more flexible translations - Pull Request #32863%EC%97%90%EC%84%9C - discourse/discourse - GitHub 이 제목들을 재구성했습니다.

이제 각 라우트에는 번역할 전체 문자열이 있습니다:

2개의 좋아요