Если en=Terminus (TTF), то что будет у русского языка?
Assistant
Если шрифт "Terminus" обозначается как TTF (TrueType Font) для английского языка, то и для русского языка этот шрифт будет называться так же, так как название шрифта и его формат не зависят от языка.
Иными словами:
en = Terminus (TTF)
ru = Терминус (TTF)
Шрифт Terminus поддерживает множество языков, включая русский, поэтому внутри шрифта будут присутствовать все необходимые символы для отображения текста на русском языке.
User
Переведи на русский с адаптацией:
#. actor name
#: Actors:1
msgid "Niko"
msgstr ""
#. actor name
#: Actors:2
msgid "Alula"
msgstr ""
#. actor name
#: Actors:3
msgid "Rue"
msgstr ""
#. actor name
#: Actors:4
msgid "Silver"
msgstr ""
#. actor name
#: Actors:5
msgid "invisible"
msgstr ""
#. actor name
#: Actors:6
msgid "Plight"
msgstr ""
#. actor name
#: Actors:7
msgid "Cedric"
msgstr ""
#. actor name
#: Actors:8
msgid "Proto"
msgstr ""
#. item name
#: Items:54
msgid "DEBUG SAVE"
msgstr ""
#. item description
#: Items:54
msgid "USE THIS TO SAVE"
msgstr ""
#. item name
#: Items:79
msgid "Pancake Recipe"
msgstr ""
#. item description
#: Items:79
msgid "How to make mama's special pancakes!"
msgstr ""
#: Scripts/Window_Item:99
msgid "No item selected."
msgstr ""
========================================
How to create a Fan Translation:
This is a guide on how to create a localization for "OneShot: The Pancake Episode". With these instructions pretty much anyone should be able to create a localization for OneShot TPE all on their own.
========================================
Decide on a language code:
This should be 2 to 5 characters long, preferably lowercase. Also, it is recommended you use the existing ISO 639-1 language code for your language if it already exists, since this is what the game will read from the computer (or steam) to determine what language to use by default. For example, for Dutch the language code would be "nl". You can see a list of most language codes here: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
========================================
Add your language to "language_fonts.ini"
Located in the "Languages" folder, this is the main file the game uses to decide what languages actually exist for the game. It's also where you define what font the game will use. For languages that use the Latin alphabet, you should be fine using "Terminus (TTF)", but if your language has special characters not supported by the existing fonts, you'll need to add your font to the "Fonts" folder. Any true type font (.ttf) should work, and the game will automatically scan this folder on start and load the fonts here.
The line you add here will be in the format of "{language_code}={font_name}". It needs to be on its own separate line from the other entries (there should be one line already in the file for English).
========================================
Add your language to the internal "language_fonts.ini" and "language_sizes.ini":
These files are located in the "Languages/internal" folder. They're in a similar format to the main "language_fonts.ini", but these files specify what font and font size the Input settings menu uses. Just like with the other file, the font you specify here needs to be in the "Fonts" folder.
The line you add to language_fonts.ini will be in the format of "{language_code}={font_name}", and in languages_sizes.ini will be in the format of "{language_code}={font_size}"
========================================
Create the main .po file for your language
In the "Languages" folder, you'll need to create a po file for your language, with the name formatted like "{language_code}.po" (for example, "nl.po" for Dutch). Use the "template.po" file as the basis for your po file by making a copy of it and renaming it for your language code.
Assistant
Вот подробная пошаговая инструкция на русском языке:
========================================
Как создать фанатский перевод:
Это руководство по созданию локализации для "OneShot: The Pancake Episode". С помощью этих инструкций практически любой человек сможет создать локализацию для OneShot TPE самостоятельно.
========================================
Выбор кода языка:
Код языка должен состоять из 2-5 символов, предпочтительно в нижнем регистре. Также рекомендуется использовать существующий код языка по ISO 639-1, если он уже существует, поскольку игра будет считывать этот код с компьютера (или Steam), чтобы определить используемый по умолчанию язык. Например, для голландского язык будет иметь код "nl". Список большинства кодов языков можно найти здесь: https://ru.wikipedia.org/wiki/Список_кодов_ISO_639-1.
========================================
Добавьте ваш язык в "language_fonts.ini"
Этот файл находится в папке "Languages". Это основной файл, который игра использует для определения доступных языков. Здесь также указывается, какой шрифт будет использовать игра. Для языков, использующих латинский алфавит, подойдет шрифт "Terminus (TTF)", но если ваш язык имеет специальные символы, не поддерживаемые существующими шрифтами, вам нужно добавить ваш шрифт в папку "Fonts". Любой шрифт формата TrueType (.ttf) должен работать, и игра автоматически просканирует эту папку при запуске и загрузит шрифты.
Строка, которую вы добавляете, должна быть в формате "{language_code}={font_name}". Она должна быть на отдельной строке от других записей (в файле уже должна быть одна строка для английского языка).
========================================
Добавьте ваш язык во внутренние "language_fonts.ini" и "language_sizes.ini":
Эти файлы находятся в папке "Languages/internal". Они имеют похожий формат, как и основной "language_fonts.ini", но эти файлы указывают, какой шрифт и размер шрифта использовать в меню настроек ввода. Так же, как и в другом файле, шрифт, который вы указываете здесь, должен находиться в папке "Fonts".
Строка, которую вы добавляете в language_fonts.ini, будет в формате "{language_code}={font_name}", а в languages_sizes.ini в формате "{language_code}={font_size}".
========================================
Создание основного .po файла для вашего языка
В папке "Languages" вам нужно создать po файл для вашего языка, с именем в формате "{language_code}.po" (например, "nl.po" для голландского). Используйте файл "template.po" в качестве основы для своего po файла, сделайте его копию и переименуйте под ваш код языка.
User
Если en=WenQuanYi Micro Hei, то как должно быть у русского языка?
Assistant
Если в английской локализации используется шрифт "WenQuanYi Micro Hei", то для русской локализации, если этот шрифт поддерживает кириллицу (а он действительно поддерживает), можно использовать тот же шрифт. Это поможет сохранить единообразие визуального стиля игры и упростит процесс настройки.
Таким образом:
ru=WenQuanYi Micro Hei
В файлах конфигурации вы можете добавить код для русского языка с соответствующим шрифтом:
В language_fonts.ini:
ini
ru=WenQuanYi Micro Hei
Во внутреннем language_fonts.ini:
ini
ru=WenQuanYi Micro Hei
В language_sizes.ini (если нужен определенный размер шрифта):
ini
ru=12 # или другой необходимый размер
Если же потребуется изменить шрифт на другой, нужно убедиться, что выбранный шрифт поддерживает кириллицу и добавлен в папку с шрифтами (Fonts).
Этот перевод сохраняет смысл оригинала и делает текст понятным для русскоязычных пользователей.
User
#: CommonEvents/plight is waiting:14:text
msgid "@plight_worry 1 minute and 1 second."
msgstr ""
#: CommonEvents/plight is waiting:17:text
msgid "@plight_worry \v[29] minutes and 1 second."
msgstr ""
#: CommonEvents/plight is waiting:23:text
msgid "@plight_worry 1 minute and \v[30] seconds."
msgstr ""
#: CommonEvents/plight is waiting:26:text
msgid "@plight_worry \v[29] minutes and \v[30] seconds."
msgstr ""
#: CommonEvents/ling random dialogue:3:text
msgid "@niko Pancakes are MY favorite food,\> \@niko_speak but what's yours?"
msgstr ""
#: CommonEvents/ling random dialogue:4:text
msgid "@ling_hm Good question!\>\n\@ling I'm not sure if I have one..."
msgstr ""
#: CommonEvents/ling random dialogue:5:text
msgid "@ling_smile ...because it changes all the time!"
msgstr ""
Assistant
Вот перевод указанных строк на русский язык:
po
#: CommonEvents/plight is waiting:14:text
msgid "@plight_worry 1 minute and 1 second."
msgstr "@plight_беспокойство 1 минуту и 1 секунду."
#: CommonEvents/plight is waiting:17:text
msgid "@plight_worry \\v[29] minutes and 1 second."
msgstr "@plight_беспокойство \\v[29] минут и 1 секунду."
#: CommonEvents/plight is waiting:23:text
msgid "@plight_worry 1 minute and \\v[30] seconds."
msgstr "@plight_беспокойство 1 минуту и \\v[30] секунд."
#: CommonEvents/plight is waiting:26:text
msgid "@plight_worry \\v[29] minutes and \\v[30] seconds."
msgstr "@plight_беспокойство \\v[29] минут и \\v[30] секунд."
#: CommonEvents/ling random dialogue:3:text
msgid "@niko Pancakes are MY favorite food,\\> \\@niko_speak but what's yours?"
msgstr "@niko Блинчики — это МОЯ любимая еда,\\> \\@niko_speak а какая твоя?"
#: CommonEvents/ling random dialogue:4:text
msgid "@ling_hm Good question!\\>\\n\\@ling I'm not sure if I have one..."
msgstr "@ling_hm Хороший вопрос!\\>\\n\\@ling Не уверен(а), что у меня есть любимая..."
#: CommonEvents/ling random dialogue:5:text
msgid "@ling_smile ...because it changes all the time!"
msgstr "@ling_smile ...потому что это всё время меняется!"
Этот перевод сохраняет смысл оригинала и делает текст понятным для русскоязычных пользователей.
User
MKXP internal strings (OneShot).
msgid ""
msgstr ""
#: screen.cpp:51
msgctxt "TRSTR_JOURNAL_TITLE"
msgid "The Journal"
msgstr ""
#: settingsmenu.cpp:89
msgctxt "TRSTR_KEYBIND_A"
msgid "A Button"
msgstr ""
Этот перевод сохраняет смысл оригинала и делает текст понятным для русскоязычных пользователей.
User
#: CommonEvents/ling random dialogue:9:text
msgid "@ling Have you ever had steamed buns, Niko?"
msgstr ""
#: CommonEvents/ling random dialogue:10:text
msgid "@ling_smile I've been making them a lot lately!"
msgstr ""
#: CommonEvents/ling random dialogue:11:text
msgid "@niko_speak I've only heard of them!\>\n\@niko5 Is it like bread?"
msgstr ""
#: CommonEvents/ling random dialogue:12:text
msgid "@ling Kinda! But most of them have things inside."
msgstr ""
#: CommonEvents/ling random dialogue:13:text
msgid "@niko2 Bread has things inside it too!"
msgstr ""
#: CommonEvents/ling random dialogue:14:text
msgid "@niko_83c Like flour."
msgstr ""
#: CommonEvents/ling random dialogue:18:text
msgid "@ling_hm Sometimes I like to mix sugar in my water before I drink it."
msgstr ""
#: CommonEvents/ling random dialogue:19:text
msgid "@niko_83c I do that with syrup and milk!"
msgstr ""
Assistant
Вот перевод указанных строк на русский язык:
po
#: CommonEvents/ling random dialogue:9:text
msgid "@ling Have you ever had steamed buns, Niko?"
msgstr "@ling Нико, ты когда-нибудь пробовал паровые булочки?"
#: CommonEvents/ling random dialogue:10:text
msgid "@ling_smile I've been making them a lot lately!"
msgstr "@ling_smile В последнее время я готовлю их часто!"
#: CommonEvents/ling random dialogue:11:text
msgid "@niko_speak I've only heard of them!\\>\\n\\@niko5 Is it like bread?"
msgstr "@niko_speak Я только слышал о них!\\>\\n\\@niko5 Это похоже на хлеб?"
#: CommonEvents/ling random dialogue:12:text
msgid "@ling Kinda! But most of them have things inside."
msgstr "@ling Вроде того! Но в большинстве из них есть что-то внутри."
#: CommonEvents/ling random dialogue:13:text
msgid "@niko2 Bread has things inside it too!"
msgstr "@niko2 В хлебе тоже есть что-то внутри!"
#: CommonEvents/ling random dialogue:14:text
msgid "@niko_83c Like flour."
msgstr "@niko_83c Например, мука."
#: CommonEvents/ling random dialogue:18:text
msgid "@ling_hm Sometimes I like to mix sugar in my water before I drink it."
msgstr "@ling_hm Иногда мне нравится добавлять сахар в воду перед тем, как ее пить."
#: CommonEvents/ling random dialogue:19:text
msgid "@niko_83c I do that with syrup and milk!"
msgstr "@niko_83c Я так делаю с сиропом и молоком!"
Этот перевод сохраняет смысл оригинального текста и делает его понятным для русскоязычных пользователей.
Not yet included in a published release.
This file contains the majority of the text in the game that needs to be translated. It acts as a string map, mapping the original English strings in the game to the target language's strings. The game reads this .po file as is, so you don't need to worry about doing anything to compile it to a .loc file (which is how the game used to handle localizations). For editing this file I'd recommend either using poedit or a simple text editor like notepad++. "msgid" is the original english string, and "msgstr" is the translation for it.
Also if the target language is one that was localized in the Steam release of OneShot it can be a good idea to reference the existing po file for that release when creating one for TPE, since TPE shares some common strings with the original OneShot release (for example, the strings used in the title screen and settings menu).
========================================
Create the internal .po file for your language
In the "Languages/internal" folder, you'll need to create another po file for your language, with the name formatted like "{language_code}.po" (for example, "nl.po" for Dutch). Like before, you based this off of the "template.po" file that's been provided in the folder.
Unlike the main .po file, I would recommend NOT using poedit for this file, but just using a simple text editor like notepad++. This is because the game expects the strings in this file to be in a very specific order, and poedit has a habit of adding an empty msgid/msgstr pair to the beginning of the file to store some metadata. So do not use poedit for this file.
========================================
Image files that need to be localized
Some of the Pictures used in the game need to be localized. Within this download is included a folder of those pictures, in PSD format. These psd files have a layer of the image with and without text, to make for easier editing.
These pictures will need to be placed in a subfolder in the Picture folders, with the subfolder name being the language code. For example, if the original picture was seq3_3, and the localized language code was "ja", then the original filepath for the picture would be "Pictures/seq3_3.png", and the localized image's filepath would be "Pictures/ja/seq3_3.png".
========================================
Packaging and Distribution
I'm not actually very familiar with how people distribute fanmade mods or patchs for games these days, but Clickteam's Patch Maker might be a good start for figuring out how to make a patch for your language, once you've finished making your changes.
And once you have your translation complete and packed up, you can then distribute it via some file-sharing service (like google drive or something). Also, please ONLY distribute the files you've modified, and not the entire game directory containing the base game.
If you want the translation to be bundled with the base game you can reach out to me via "x.com" DMs (@GIRakaCHEEZER) and maybe we can work something out.
Этот файл содержит большинство текста в игре, который нужно перевести. Он действует как карта строк, связывая оригинальные английские строки в игре с строками на целевом языке. Игра считывает этот po файл как есть, поэтому вам не нужно компилировать его в файл .loc (как это делалось раньше). Для редактирования этого файла я рекомендую использовать либо poedit, либо простой текстовый редактор, как notepad++. "msgid" - это оригинальная английская строка, а "msgstr" - ее перевод.
Если целевой язык был локализован в Steam версии OneShot, полезно использовать существующий po файл для той версии при создании локализации для TPE, так как TPE использует некоторые общие строки с оригинальной версией OneShot (например, строки, используемые в титульном экране и меню настроек).
========================================
Создание внутреннего .po файла для вашего языка
В папке "Languages/internal" вам нужно создать еще один po файл для вашего языка, с именем в формате "{language_code}.po" (например, "nl.po" для голландского). Как и ранее, используйте файл "template.po" в папке в качестве основы.
В отличие от основного po файла, я НЕ рекомендую использовать poedit для этого файла, а использовать простой текстовый редактор, как notepad++. Это связано с тем, что игра ожидает строки в этом файле в очень определенном порядке, а poedit имеет привычку добавлять пустую пару msgid/msgstr в начало файла для хранения метаданных. Поэтому не используйте poedit для этого файла.
========================================
Файлы изображений, которые необходимо локализовать
Некоторые изображения, используемые в игре, нужно локализовать. В комплекте с этим руководством включена папка с этими изображениями в формате PSD. Эти PSD файлы имеют слой изображения с текстом и без текста, чтобы облегчить редактирование.
Эти изображения нужно будет поместить в подпапку внутри папки "Pictures", имя подпапки должно быть кодом языка. Например, если оригинальное изображение называлось seq3_3, и код локализованного языка был "ja", то исходный путь к изображению будет "Pictures/seq3_3.png", а путь к локализованному изображению будет "Pictures/ja/seq3_3.png".
========================================
Упаковка и распространение
Лично я не очень хорошо знаком с тем, как люди распространяют фанатские моды или патчи для игр в наше время, но программа Clickteam's Patch Maker может быть хорошим стартом для создания патча для вашего языка после завершения всех изменений.
После завершения перевода и упаковки его можно распространять через какие-либо файлообменные сервисы (например, Google Drive или что-то подобное). Пожалуйста, распространяйте только измененные файлы, а не всю директорию игры с базовой игрой.
Если вы хотите, чтобы перевод был включен в базовую игру, вы можете связаться со мной через личные сообщения на "x.com" (@GIRakaCHEEZER), и, возможно, мы сможем что-то решить.