A colonist hit by a bear, for example, would end up with the following injury in the Health tab:
For languages such as Romanian, French, Italian, Japanese, Spanish and probably others, the order in the parenthesis has to be reversed:
teeth = dinți
However there doesn't seem to be a way to this. I suspect it's because of hardcoded code, more specifically in Hediff_Injury.cs, the LabelInBrackets method:
More specifically this section in the second if statement:
I don't know C#, but a format string (something like "{0} {1}", specifiable in the XMLs) could be used there.
QuoteBite (Grizzly teeth)
For languages such as Romanian, French, Italian, Japanese, Spanish and probably others, the order in the parenthesis has to be reversed:
Quotebite = mușcătură
Mușcătură (dinți de Grizzly)
teeth = dinți
However there doesn't seem to be a way to this. I suspect it's because of hardcoded code, more specifically in Hediff_Injury.cs, the LabelInBrackets method:
Code Select
public override string LabelInBrackets
{
get
{
StringBuilder stringBuilder = new StringBuilder();
stringBuilder.Append(base.LabelInBrackets);
if (sourceHediffDef != null)
{
if (stringBuilder.Length != 0)
{
stringBuilder.Append(", ");
}
stringBuilder.Append(sourceHediffDef.label);
}
else if (source != null)
{
if (stringBuilder.Length != 0)
{
stringBuilder.Append(", ");
}
stringBuilder.Append(source.label);
if (sourceBodyPartGroup != null)
{
stringBuilder.Append(" ");
stringBuilder.Append(sourceBodyPartGroup.LabelShort);
}
}
HediffComp_GetsPermanent hediffComp_GetsPermanent = this.TryGetComp<HediffComp_GetsPermanent>();
if (hediffComp_GetsPermanent != null && hediffComp_GetsPermanent.IsPermanent && hediffComp_GetsPermanent.PainCategory != 0)
{
if (stringBuilder.Length != 0)
{
stringBuilder.Append(", ");
}
stringBuilder.Append(("PainCategory_" + hediffComp_GetsPermanent.PainCategory).Translate());
}
return stringBuilder.ToString();
}
}
More specifically this section in the second if statement:
Code Select
stringBuilder.Append(source.label);
if (sourceBodyPartGroup != null)
{
stringBuilder.Append(" ");
stringBuilder.Append(sourceBodyPartGroup.LabelShort);
}
I don't know C#, but a format string (something like "{0} {1}", specifiable in the XMLs) could be used there.