Инсталирайте Steam
вход
|
език
Опростен китайски (简体中文)
Традиционен китайски (繁體中文)
Японски (日本語)
Корейски (한국어)
Тайландски (ไทย)
Чешки (Čeština)
Датски (Dansk)
Немски (Deutsch)
Английски (English)
Испански — Испания (Español — España)
Испански — Латинска Америка (Español — Latinoamérica)
Гръцки (Ελληνικά)
Френски (Français)
Италиански (Italiano)
Индонезийски (Bahasa Indonesia)
Унгарски (Magyar)
Холандски (Nederlands)
Норвежки (Norsk)
Полски (Polski)
Португалски (Português)
Бразилски португалски (Português — Brasil)
Румънски (Română)
Руски (Русский)
Финландски (Suomi)
Шведски (Svenska)
Турски (Türkçe)
Виетнамски (Tiếng Việt)
Украински (Українська)
Докладване на проблем с превода
I am trying to translate this game into Japanese.
I have two problems at the moment.
The first is a problem with line breaks.
English automatically breaks lines with a space, but Japanese does not put a space between each word.
Some other games have a zero-width space per character so that line breaks are automatically inserted.
I tried this in this game, but zero-width spaces did not cause a line break.
The second problem is that the tour pop-up window does not disappear.
When clicking on the icon in the top left corner, each window extends downwards, but the tour pop-up appears on the right side and does not disappear.
In GameText.txt, the display is as follows.
;A tour is available for {0}. \nClick the button to launch the tour
;Click to launch a tour of {0}
If it is left in English, there is no problem, but if translated into Japanese, the pop-up remains displayed.
The problem with line breaks in particular cannot be solved at the moment without manually inserting spaces, which is troubling.
Please help.
Thanks very much for your work on the Japanese localization.
Do you know the character code for the zero-width space that you are trying to use? We could add that to our list of characters that we use for line breaks.
For the tours, it's probably easiest to just leave the titles untranslated for now. We will eventually get a solution to this, but at the moment we are relying on the English text to reference the tour steps.
Thanks
Elliot
Thank you for your answer.
The character code for zero width spaces is U+200B in Unicode.
I will do as you say about the tour.
Thanks for the beta update.
I have confirmed that I can break lines with zero-width spaces.
However, zero-width spaces appear the same width as normal spaces.
Short sentences often have a width of zero, but longer sentences, such as those containing line breaks, will have the same width as a space.
Is it possible to improve this?
Look out for this build at the end of next week.
Thanks for the beta update.
I have checked and there is still space width available.
In the screenshot of the link below, there are spaces in the text on the right and in the button text.
https://steamcommunity.com/sharedfiles/filedetails/?id=3427418366
Is it possible to improve this?
To explain how the zero-width spaces are used: when rendering text with word-wrap (i.e. long multi-line text) then the spaces are used to determine when to break onto a new line. When rendering CJK characters that use zero-width spaces, no additional full-width spaces are added.
So any spacing you are seeing is coming from the font itself. I note that the comma and full-stop characters seem to have extra space after them, but as I understand it that is normal.
GameEvents files using zero-width spaces had not yet been uploaded.
The version you have checked is the version with manual single-byte spaces.
I have just uploaded a file with zero-width spaces, so please check it when you have time.
To optimize text rendering performance I'm character-sniffing for CJK characters and only enable zero-width space line breaks when I detect a paragraph using CJK. In the next build I'll add the zero-width space itself as a valid indicator of CJK text.
In the meantime you can achieve the same result by removing the zero-width spaces from the start of paragraphs.
I have confirmed that this works well once the zero-width space is removed from the beginning of the paragraph.
However, this is not a problem if the paragraph starts with kanji, but does not work if it starts with hiragana.
Japanese is a messy language, with a mixture of kanji, hiragana and katakana...
Would adding the zero-width space itself as a valid indicator for CJK text solve the problem?
...it looks like Hiragana starts at decimal 12353, Katakana starts at 12448 and Hangul starts at 4352. Looks like some kana characters around 6900 also.
Does that sound right?
I'll extend the range of character codes to cover all of the above. Maybe just everything at 4352 and above.
I think that's right.
We don't need Kana around 6900.
General issue wich need improvement - there are terms in the GameText.txt that are used in the game in different situations/contexts, but are spelled identically and use one and the same entry in the said file, like "dismiss, general....". This makes sense in English, but not in other languages. Often you need to use completely different words (translate) for different situations.
Second issue: translating of terms 'Race, Expansion, Proximity and Government' displayed in the game-start settings-window "Start New game - Other Empires" in the top-menu-line below "Add new Empire" is immposible. As I understand that words takes from dll file, but if we translate it in that file game crashes (not loaded).
And thrid wich also so upset: First greeting-/starting-message of ALL races at the beginig of new game (right after the beginning of a new game, when the players are informed about their race, etc) can't be translated also due to that text don't located in any of the files we have access.