Git Product home page Git Product logo

Comments (7)

squidfunk avatar squidfunk commented on May 31, 2024 1

Thanks for reporting! Fixed in bde889f.

Yes, we're currently not able to use full-width numbers, so switching to half-width to be consistent is likely to be our best option. We could add whitespace left and right, if that makes reading any easier, but then we should also adjust that for:

  "search.result.more.one": "このページ内にもう1件見つかりました",
  "search.result.more.other": "このページ内にあと#件見つかりました",

We'll be working on improving internationalization in the future, as we want to provide the best experience possible!

from mkdocs-material.

squidfunk avatar squidfunk commented on May 31, 2024 1

FYI, whether or not to add spaces around half-width characters within Japanese sentences is a point of contention. My preference is to add spaces, but there are also people who don't like it. Even within a single company, there is no consistency. For example, spaces are added in the UI within macOS, but not on Apple's website (apple.com).

Thanks for the clarification! Then let's just leave it like that for now, as translations can also be quite simply overridden. I'll let you know when we start working on better translations support ✌️

Let's keep this issue open until released ☺️

from mkdocs-material.

squidfunk avatar squidfunk commented on May 31, 2024 1

Released as part of 9.5.19

from mkdocs-material.

gh640 avatar gh640 commented on May 31, 2024

Screenshots

English (correct):

Screenshot 2024-04-25 at 9 11 34

Japanese (incorrect):

Screenshot 2024-04-25 at 9 06 09

from mkdocs-material.

gh640 avatar gh640 commented on May 31, 2024

By the way, currently the translation for readtime.one is "このページは約1分で読めます" ("This page takes about 1 minute to read"). The "1" here is a full-width character.

But for numbers greater than 1 (in the case of readtime.other), a half-width character is used. To improve consistency, I think it would be better to use a half-width "1" for readtime.one as follows:

このページは約1分で読めます

from mkdocs-material.

gh640 avatar gh640 commented on May 31, 2024

@squidfunk

Thank you for your quick response! I have confirmed that the issue has been resolved by running a sample with master after bde889f :D

We could add whitespace left and right, if that makes reading any easier, but then we should also adjust that for:

You are right. FYI, whether or not to add spaces around half-width characters within Japanese sentences is a point of contention. My preference is to add spaces, but there are also people who don't like it. Even within a single company, there is no consistency. For example, spaces are added in the UI within macOS, but not on Apple's website (apple.com).

If there is an opportunity in the future when internationalization is improved, I would love to contribute.

I will close this issue. If there are any problems, please reopen it. Thanks :)

from mkdocs-material.

gh640 avatar gh640 commented on May 31, 2024

Yay! Thank you.

Yes, please reach out when the time comes ✌️

from mkdocs-material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.