Ludeon Forums

RimWorld => Mods => Translations => Topic started by: Hiztaar on April 19, 2014, 02:15:11 PM

Title: Problems with "female" in non english languages
Post by: Hiztaar on April 19, 2014, 02:15:11 PM
I open this thread because of a french specificity.

First point :
The game uses the same translation for a human female and for a animal female. but in french we cannot use the same term as female = "Femme" for a human and "Femelle" for an animal.

As we have <Female>Femme</Female>, can we have a <FemaleAnimal>Femelle</FemaleAnimal> for the animals ?


Second point :
When the subject of a sentence is a female, we add a "e" in some occasions, for exemple :
- Male : John est allé à ...
- Femme : Jennifer est allée à ...

Can we have something like a CFEM key that could add a "e" is the subject of an action is female ?
Title: Re: Problems with "female" in French
Post by: Evul on April 19, 2014, 02:21:54 PM
Same issue in Swedish.
Female Human Kvinna
Female Animal Hona
Title: Re: Problems with "female" in French
Post by: AlyxMS on April 19, 2014, 02:23:02 PM
Same issue in Chinese.
Female Human 女性
Female Animal 雌性
Title: Re: Problems with "female" in non english languages
Post by: Hiztaar on April 19, 2014, 02:37:02 PM
A changed the name of the thread to show the multilingual problem :)
Title: Re: Problems with "female" in non english languages
Post by: TheEisbaer on April 19, 2014, 02:55:34 PM
Ha! Finally something that is not problematic to translate in german :D
In german its 'm�nnlich' (male) for Human and Animal, same for 'weiblich' (female) :)
Title: Re: Problems with "female" in non english languages
Post by: AcDie on April 19, 2014, 03:43:54 PM
Agree with above.
Quote from: Hiztaar on April 19, 2014, 02:37:02 PM
A changed the name of the thread to show the multilingual problem :)
Russian more problematic. In english for plural you just add "s" to end (mostly), e.g squirrel & squirrels.
But in russian you can't do same trick :( e.g белка & белки different words. I'm talking about event thing..
Ty plz think little about plural forms? :P
Title: Re: Problems with "female" in non english languages
Post by: Tynan on April 19, 2014, 04:13:10 PM
I was afraid of this. This is where translation gets hard.

Over time I'll try to include some of this functionality but I must admit it's much lower priority than just getting translation working in the first place. So I will address this stuff but please don't count on it soon.

Best thing you guys can do is come up with a short list of the most important things you'd want changed. For example, I might start by adding a <FemaleForAnimals> translation and using that on animals. And I could add a <labelPlural> to defs (adding 's' breaks even in English for some special words like cactus (cacti/cactuses) ).
Title: Re: Problems with "female" in non english languages
Post by: AcDie on April 19, 2014, 05:25:04 PM
Quote from: Tynan on April 19, 2014, 04:13:10 PM
I was afraid of this. This is where translation gets hard.

Over time I'll try to include some of this functionality but I must admit it's much lower priority than just getting translation working in the first place. So I will address this stuff but please don't count on it soon.

Best thing you guys can do is come up with a short list of the most important things you'd want changed. For example, I might start by adding a <FemaleForAnimals> translation and using that on animals. And I could add a <labelPlural> to defs (adding 's' breaks even in English for some special words like cactus (cacti/cactuses) ).
^ THIS take some time (maybe aN or b1 plans) :)
What can be _true_ for one language, may not for other... But plurals always pain inda ass at multilang...
We need to dig deeper guys ;D
Title: Re: Problems with "female" in non english languages
Post by: joeyeti on April 28, 2014, 07:42:05 AM
Yes, expanding on specific names would be the way in the end I guess.

What I am trying to use so far is something like this:

Instead of "Shooting at {0}." being translated literally into Slovak, I would use something like "Shooting at: {0}". In this way I do not need to use grammatic declination (which is not used in english in the way it is in many other languages) and instead leave the target definition/name in basic form.
Title: Re: Problems with "female" in non english languages
Post by: AlyxMS on June 05, 2014, 09:32:54 PM
Since "Asymmetric translations in various cases" on matis links to here I'll just post the asymmetric problem here.

The "female" problem.
In Chinese the male is different for animal and human too.

Also the "Growing" problem.
The option tab for growing zone (and hydro-something-something) is called growing.
When you click on the growing plant it is "growing".
It's fine in english since "growing" means both "growing up" and "planting"
It just doesn't work in Chinese.
Title: Re: Problems with "female" in non english languages
Post by: Geeves on June 07, 2014, 03:55:55 AM
When translating you need not translate every word individually, but instead translate the intended meaning.

So for growing(plant/crops) you need not translate it to a word that describes growing but the meaning.
I did this with the Dutch translation, and wrote down "aan het groeien".
Title: Re: Problems with "female" in non english languages
Post by: AlyxMS on June 08, 2014, 01:03:56 AM
Quote from: Geeves on June 07, 2014, 03:55:55 AM
When translating you need not translate every word individually, but instead translate the intended meaning.

So for growing(plant/crops) you need not translate it to a word that describes growing but the meaning.
I did this with the Dutch translation, and wrote down "aan het groeien".

Problem being there is no such word thanks for Chinese being the most effed up/complicated language in the whole universe.
Title: Re: Problems with "female" in non english languages
Post by: Lunatico9 on July 24, 2014, 04:28:01 PM
Problem happening with Italian too.
Title: Re: Problems with "female" in non english languages
Post by: Bog on July 26, 2014, 05:14:30 PM
Quote from: Tynan on April 19, 2014, 04:13:10 PM
I was afraid of this. This is where translation gets hard.

Over time I'll try to include some of this functionality but I must admit it's much lower priority than just getting translation working in the first place. So I will address this stuff but please don't count on it soon.

Best thing you guys can do is come up with a short list of the most important things you'd want changed. For example, I might start by adding a <FemaleForAnimals> translation and using that on animals. And I could add a <labelPlural> to defs (adding 's' breaks even in English for some special words like cactus (cacti/cactuses) ).
There's also more than just singular and plural.

A lot of languages have singular, dual, and plural, so the word changes if you're talking about 1 of said item, 2 of said items or 3+ of said items.

English actually used to be that way, but it's mostly died out. We now only have a few examples of it, and so far as I know not for specific objects, such as using "both" instead of "all", "either" instead of "any" or "neither" instead of "none".

In both modern Arabic and ancient Greek they use singular, dual and plural, on top of also having distinction of masculine, feminine and for the latter, neuter as well.  ::)

So to make the system work for all languages you might have to have:

<SingularMasculineHuman>
<SingularFeminineHuman>
<SingularNeuterHuman> (?)
<SingularMasculineAnimal>
<SingularFeminineAnimal>
<SingularNeuterAnimal>
<DualMasculineHuman>
<DualFeminineHuman>
<DualNeuterHuman> (?)
<DualMasculineAnimal>
<DualFeminineAnimal>
<DualNeuterAnimal>
<PluralMasculineHuman>
<PluralFeminineHuman>
<PluralNeuterHuman> (?)
<PluralMasculineAnimal>
<PluralFeminineAnimal>
<PluralNeuterAnimal>

(Traditionally, I doubt most languages have "neuter human", but it's possible. Of course now adays it might be necessary... neuter names for animals on the other hand are often used, sometimes for animals which have been, well, neutered, or creatures such as insects and turtles which aren't obviously male or female)

... and that's not getting into, say, cases which will need to be taken into account in the names of object in some languages and can in some cases can completely change the word, or change it in the middle of a word instead of adding something to the end, which would mean that you might have to multiply the size of the above list by a factor of 5 or more.

Here's an example chart from Koine Greek:
(http://www.ibiblio.org/koine/greek/lessons/nouns/article_declension.gif)
The example unfortunately doesn't have the dual chart. So imagine it being half again bigger.  :P

The good news is that Koine Greek isn't spoken by anybody but scholars today (as far as I know) so I doubt anybody will want it... but Arabic is very much alive and kicking, and even has something like 11 forms which have something to do with nouns, but I don't really know how they work or if they're applicable. I could never get my head around them.

Isn't grammar fun?  ;D
Title: Re: Problems with "female" in non english languages
Post by: Tynan on July 26, 2014, 05:18:29 PM
Indeed. It's for this reason that most games (e.g. big AAA games where the text _has_ to be perfect in all languages) simply cannot use generated or assembled text like this. They just can't do it. It's a terrible limitation. My solution is just to make it correct in English and hope that it's not too horrible in other languages. I'll try to add cases for other languages where it makes sense and can be done in a simple way, but the whole grid of possibilities won't be implemented.
Title: Re: Problems with "female" in non english languages
Post by: StorymasterQ on July 29, 2014, 09:46:47 PM
Yes, let's not try to implement something just so the Snow Biome could make sense to the Eskimo and their thousand words for snow. :p
Title: Re: Problems with "female" in non english languages
Post by: WMP on August 25, 2014, 10:16:36 AM
@Tynan, i thinks you are add if to xml translation files. For Polish, is problems with numbers - for example:
"4 cats" we translate: "4 koty", but: "5 cats" - "5 kotów".

I think about this translate code:
Original english translation:

<ShortCircuitRain>A {0} has short-circuited in the rain and started a fire.</ShortCircuitRain>


Polish translation with if:
<ShortCircuitRain>
   <ShortCircuitRain:if test="{0} = "baterie"">
      Podczas deszczu nastąpiło zwarcie w baterii i wybuchł pożar.
   </ShortCircuitRain:if>
   <ShortCircuitRain:if test="{0} = "elektrownia"">
      Podczas deszczu nastąpiło zwarcie w elektrowni i wybuchł pożar.
   </ShortCircuitRain:if>
   <ShortCircuitRain:otherwise>
      Podczas deszczu nastąpiło zwarcie w {0} i wybuchł pożar.
   </ShortCircuitRain:otherwise>
</ShortCircuitRain>
Title: Re: Problems with "female" in non english languages
Post by: Tynan on August 25, 2014, 10:33:46 AM
Quote from: WMP on August 25, 2014, 10:16:36 AM
@Tynan, i thinks you are add if to xml translation files. For Polish, is problems with numbers - for example:
"4 cats" we translate: "4 koty", but: "5 cats" - "5 kot�w".

I think about this translate code:
Original english translation:

<ShortCircuitRain>A {0} has short-circuited in the rain and started a fire.</ShortCircuitRain>


Polish translation with if:
<ShortCircuitRain>
   <ShortCircuitRain:if test="{0} = "baterie"">
      Podczas deszczu nastąpiło zwarcie w baterii i wybuchł pożar.
   </ShortCircuitRain:if>
   <ShortCircuitRain:if test="{0} = "elektrownia"">
      Podczas deszczu nastąpiło zwarcie w elektrowni i wybuchł pożar.
   </ShortCircuitRain:if>
   <ShortCircuitRain:otherwise>
      Podczas deszczu nastąpiło zwarcie w {0} i wybuchł pożar.
   </ShortCircuitRain:otherwise>
</ShortCircuitRain>


I'll write these in the translation problems bug. http://ludeon.com/mantis/view.php?id=683
Title: Re: Problems with "female" in non english languages
Post by: RawCode on August 27, 2014, 01:45:21 AM
Translation system should support assembly level translations and this will solve any possible issues.
Also this will allow runtime translations handled by code, not by static data.

<fieldname Class=Handler> arbitrary data that does not really matters since output handled by "Handler" but still passed into handler for processing </fieldname>

This will allow to solve "1 стул, 2 стула, 5 стульев" without any issues.

XML is fine and "noob friendly" but very very limited.
Title: Re: Problems with "female" in non english languages
Post by: ison on July 18, 2018, 08:07:05 PM
Addressed here (https://ludeon.com/forums/index.php?topic=42601.0)