开源软件名称(OpenSource Name):HearthstoneAccess/Localization开源软件地址(OpenSource Url):https://github.com/HearthstoneAccess/Localization开源编程语言(OpenSource Language):开源软件介绍(OpenSource Introduction):Hearthstone Access LocalizationThis repository contains all the text used by Hearthstone Access. The en-US locale represents American English and is the only officially supported language. However, people are encouraged to contribute translations for their native languages so they can be included in Hearthstone Access releases. ContributingAll text for a given language lives in a file called In order to localize Hearthstone Access into a new language, the easiest way is to start with the In order to test the translations themselves, you can copy the edited file into your Strings folder in your Hearthstone installation directory. Under a normal American English Hearthstone installation, this would mean copying the file to File formatHearthstone Access uses the already existing Hearthstone's translation system. Under this system, each piece of text consists of: Key Value Comment. Note that there's a tab between the Key, Value and Comment. Each entry should also end with a newline character. Text formatStatic textFor static text, all that's needed is to provide the exact value for the key, with an optional comment. This would look something like:
Note the tab spaces in between the Key, Value and comment. Dynamic textFor dynamic text, users should write the static text around placeholder elements. Placeholder elements are numbers inside curly brackets such as {0} and {1}. As an example:
In this example, {0} will be replaced by the game with the correct key. Note that the en-US file specifies what every number represents in the number, often providing examples in more complex phrases. PluralsIn some cases and languages, a given text may require different variations depending on whether it refers to one or multiple entities. Using an example:
In this example, the word Note that in some cases, the distinction between singular and plural is not dependent on the number. For example, the phrase As with all text, contributors are advised to read the American English file first in order to get familiar with the system. Gender nounsSome languages make use of gender nouns. However, due to the huge amount of cards that exist today, there are no plans to support gender nouns anytime soon. If your language requires gender nouns in dynamic text, please try to work around it using phrases that don't require them as much. Using ordinal numbers as an example, you can simply configure them so they read as normal digits and configure any text that uses them as if it were refering to Special keysThe file includes a few special keys which are used to format various text strings. These entries begin with Optional keyboard key overridesThe file includes a special key which can be used to override how certain keyboard commands are read. These keys begin with
Note that this may not be needed depending on the language or speech synthesiser you happen to be using. Getting helpIf you're not familiar with git or have any other questions, you can find someone able to help in the #localization Discord channel on the Hearthstone Access Discord server. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论