Giter VIP home page Giter VIP logo

Comments (1)

hkrn avatar hkrn commented on June 21, 2024

Short Answer (but not enough)

Editing the following file and add the phrase corresponding to the language and country code (e.g. en_US) to phrase repeatly.
emapp/resources/translations/translations.yml

Unfortunately, this is not enough. There is another problem as described in the Long Answer.

Long Answer

nanoem uses ImGui for most parts. Therefore, nanoem have to handle the parts that the OS does for it. Among them, fonts are particularly problematic.

nanoem uses the Genei font as its built-in font. This is a good option if you are only using English or Japanese. However, in most cases, other languages cannot be displayed because they do not contain the corresponding characters.

For example, the confirmation dialog before loading official Genshin Impact's MMD models uses Simplified Chinese, which nanoem cannot display correctly due to as describe above. This is a known problem (一部文字が「?」と出て表示されない), but we have not been able to solve it. 

nanoem internally implements font loading for fonts other than the built-in fonts (but there is no place where it is used), but it effectively assumes the use of Genei font. The layout is designed in such a way that the use of non-Genei fonts may result in layout corruption. Therefore, the translator must check and decide which font is best. In addition, because of the use of embedded fonts, it may be necessary to modify the fonts, specifically, to add glyphs.

From the above, the answer is that adding languages is such a difficult issue that it affects the design depending on the target language, and it does not end with simply adding translations.

from nanoem.

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.