Translation Guidelines: Difference between revisions

From Thrive Developer Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 9: Line 9:
== BBCode ==
== BBCode ==


Some text in the game use [https://en.wikipedia.org/wiki/BBCode BBCode] markup, these bbcodes is used to format texts (strings) into a more richer form. You can typically identify them with this syntax: <code>[tag]content[/tag]</code> in the strings. Normal bbcode tags like bold <code>[b]</code> etc. can have their content translated normally. In addition to default bbcodes already supported by Godot, Thrive uses custom bbcodes that acts as an extension of the default ones (parsed into normal bbcodes internally) and are mainly used as helpers for Thrive-specific purposes. These custom bbcodes slightly differs from their default counterparts functionality-wise and is marked with <code>thrive</code> namespace in the tag e.g. <code>['''thrive''':compound]</code>. As such it is important to keep in mind the correct way of handling these custom bbcodes while translating.
Some text in the game use [https://en.wikipedia.org/wiki/BBCode BBCode] markup, these bbcodes is used to format texts (strings) into a more richer form. You can typically identify them with this syntax: <code>[tag]content[/tag]</code> in the strings. Normal bbcode tags like bold <code>[b]</code> etc. can have their content translated normally. In addition to the default bbcodes already supported by Godot, Thrive uses custom bbcodes that acts as an extension of the default ones (parsed into normal bbcodes internally) and are mainly used as helpers for Thrive-specific purposes. These custom bbcodes slightly differs from their default counterparts functionality-wise and is marked with <code>thrive</code> namespace in the tag e.g. <code>['''thrive''':compound]</code>. As such it is important to keep in mind the correct way of handling these custom bbcodes while translating.


=== List of custom BBcode tags ===
=== List of custom BBcode tags ===

Revision as of 04:00, 30 July 2021

This page has some guidelines for making translations for Thrive.

You can translate Thrive on the dedicated site. More technical instructions for translating are in the main repo.

No machine translations

If you do not speak a language, do not translate it or vote on suggestions. Don't use machine translations (Google Translate etc.) unless you are familiar with the target language and can rewrite the translation to be correct and idiomatic in the target language.

BBCode

Some text in the game use BBCode markup, these bbcodes is used to format texts (strings) into a more richer form. You can typically identify them with this syntax: [tag]content[/tag] in the strings. Normal bbcode tags like bold [b] etc. can have their content translated normally. In addition to the default bbcodes already supported by Godot, Thrive uses custom bbcodes that acts as an extension of the default ones (parsed into normal bbcodes internally) and are mainly used as helpers for Thrive-specific purposes. These custom bbcodes slightly differs from their default counterparts functionality-wise and is marked with thrive namespace in the tag e.g. [thrive:compound]. As such it is important to keep in mind the correct way of handling these custom bbcodes while translating.

List of custom BBcode tags

Note: Thrive BBCode tags use keys (not to be confused with input keys, marked as <key> in the descriptions below) to look up information from the game configuration json and must not be translated.

Compound

Compound tag is used to display formatted name of a compound along with its associated icon, can be defined with the default form:

[thrive:compound type="<key>"][/thrive:compound]

Where the value (key) for type attribute is the compound's internal name. Notice that the content is empty, this is intended by default and it will be automatically filled with the default compound name based on the given type according to the current in-game locale. If for a specific language grammatical reasons you need to change this, a translation can be set by putting it as the content, for example: [thrive:compound type="atp"]ATP:ksi[/thrive:compound], this will override the default compound name.

Note: Currently a fallback syntax is supported by having the tag as [thrive:compound]<key>[/thrive:compound]. This is obsolete and may be removed in the near future.

Input

Input tag is used to display a key prompt image of the primary input event for an action (like "G" for engulfing), can be defined simply with:

[thrive:input]<key>[/thrive:input]

Typical usage form:

[thrive:input]g_toggle_engulfing[/thrive:input].

Reconstructing made-up words

Many words used in Thrive aren't real words. Instead they have been constructed specifically for use in Thrive. These should be attempted to be translated in the same way they are formed for English.

For example the word "Chemoplast" is made up of the parts "chemo" and "plast", which can be separately translated. For example a possible Finnish translation would be "kemo" and "plasti" to form "kemoplasti". This way translations can be done to reconstruct what the word could look like if Thrive was developed in the target language. Some terms can be left as-is if no good reconstruction can be done.

What should also be kept in mind is the pattern that organelles follow in the target language. The reconstructed organelle names should be made to conform to the patterns that real organelle names follow in the target language. This will also apply to words made up for later stages.

Some more examples were mentioned on the forums.

No broken translation

Please don't submit broken translations (other than as suggestions) on the translation site as if those end up in the game (someone doesn't remove it), then the game might be unplayable in the language you are translating. It is always better to let the default English text be used rather than an inadequate translation.

Dismissing checks

Some of the automated checks on the translation website can be false positives. As such they can be dismissed if the translation is correct and styling is good for the target language.

Key name translations

If you look to the right-hand side there is an info panel about each piece of text. If the source location contains "key_mapping/KeyNames.cs" then it means that, that translation is for a key name. Keys should be translated as a commonly accepted name for them in the translated language. If there isn't one used then whatever is usually printed in keyboards in that country should be used, this often seems to match what the English name for the key is.

Due to the way Godot passes us the name, some key names are pretty simple like "HOME", but might conflict with other translations. If such cases are found we'll handle this by differentiating the key and the other word translation.

Merging from Weblate

This is a note for developers: translation commits need to be merged normally otherwise weblate will not be happy and will keep complaining about conflicts.