Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - mecatxis

#1
For {0_objective} could i have
"la" if is female. Otherwise "lo".
?

Thanks
#2
I am translating
  <TradeWith>Trade with {0}</TradeWith>
for
  <TradeWith>Negocia amb {0_definite}</TradeWith>

getting: Negocia amb the Barry, comerciant (Nord Athinumys)
expected: Negocia amb la Barry, comerciant (Nord Athinumys)

So the article is not translated as expected.

#3
Translations / Some help with new formats please
September 13, 2018, 03:09:07 PM
From the keyed file "Enums.xml"

  <HungerLevel_Exhausted>Exhausted</HungerLevel_Exhausted>
  I need to have "Esgotat" if he is a man and "Esgotada" if she is a woman.

How sould I do it?
#4
Quote from: mecatxis on September 13, 2018, 03:12:40 AM
QuoteI do not speak this language at all (though same family language.). So, what is wrong with
- "Esteu segur que voleu fer fora {1_label} ?"
or
- "Esteu segur que voleu fer fora {1_nameDef} ?"

I will try to explain better. I am trying to use "WithDefiniteArticle" in the translation of the sentence "Do you really want to banish {1_label}" (this is how it shows in the original file).

I expected to get "Esteu segur que voleu fer fora el John" or "Esteu segur que voleu fer fora la Mary" depending on the gender of the subject.

I am asking how do i should implement the "WithDefiniteArticle" worker.

I finally found the answer: "Esteu segur que voleu fer fora {1_definite}?"
#5
QuoteI do not speak this language at all (though same family language.). So, what is wrong with
- "Esteu segur que voleu fer fora {1_label} ?"
or
- "Esteu segur que voleu fer fora {1_nameDef} ?"

I will try to explain better. I am trying to use "WithDefiniteArticle" in the translation of the sentence "Do you really want to banish {1_label}" (this is how it shows in the original file).

I expected to get "Esteu segur que voleu fer fora el John" or "Esteu segur que voleu fer fora la Mary" depending on the gender of the subject.

I am asking how do i should implement the "WithDefiniteArticle" worker.

#6
I am trying to implement it, but not guessing how is supposed to work. Checking for "Do you really want to banish {1_label}?":

1 - Esteu segur que voleu fer fora WithDefiniteArticle({1_label})?
Got "Esteu segur que voleu fer fora WithDefiniteArticle(Pree, Herborista)?"

2 - Esteu segur que voleu fer fora (WithDefiniteArticle({1_label}))?
Got "Esteu segur que voleu fer fora (WithDefiniteArticle(Pree, Herborista))?"

3 - Esteu segur que voleu fer fora {WithDefiniteArticle(1_label)}?
Gets "Esteu segur que voleu fer fora ?

Other combinations give similar wrong results. Can anybody help?
#7
Pluralize in Catalan.
You can find the rule here: http://mylanguages.org/catalan_plural.php
Usualy only needs to add -s

Finishing with -a changes to -es, except for ça goes to ces, -ca goes to -ques, -qua goes to -qües, -ja goes to -ges, -ga goes to -gues.

Finishing with -s. Basicaly:
- finishing with -às goes to -assos
- finishing with -és goes to -essos
- finishing with -es goes to -esos
- finishing with -és goes to -issos
- finishing with -ós, òs or monosyllables (hard to know automatically) ending with -os goes to -ossos
- finishing with -ús goes to -ussos

The hard thing will be
Quotewords ending in a stressed vowel form the plural by adding (-ns)
. Does any other language solved this problem? Any idea how to detect a stressed syllabe?

- UPDATED
I misunderstood the problem.It is as easy as words ending in "àéèíòóú" pluralize adding -ns. Thanks!

#8
QuoteIf it's indefinite, it's a name, and the first character is either a vowel or h: use either 'l or 'n depending on the gender.
If it's definite, it's a name, and the first character is either a vowel or h: use either 'l or 'n depending on the gender.
If it's definite, it's not a name, and the first character is either a vowel or h: always use 'l

it is not 'l. It is l', as in l'Oriol (man) or l'Hortènsia (woman)

I can work with this simplification of the rule , more or less.

Here is the complete rule https://www.cursdecatala.com/en/catalan-apostrophe/


#9
Thanks Ison!

I am reworking for Catalan. I am not a programmer, so please, excuse my mistakes and misunderstandings.
The article should be contracted when started with vowel or h (el Carles, l'Òscar, la Rosa, l'Anna). There is some exceptions if the first syllable is tonic an others, but i understand it will be very difficult to tract. so:

public override string WithIndefiniteArticle(string str, Gender gender, bool plural = false, bool name = false)
{
if( name )
char first = str[0];
if (IsVowelorh(first)
{
return (gender == Gender.Female ? "l/'" : "n/'") + str;
}
else
{
return (gender == Gender.Female ? "la " : "el ") + str;
}
else if( plural )
return (gender == Gender.Female ? "unes " : "uns ") + str;
else
return (gender == Gender.Female ? "una " : "un ") + str;
}
public override string WithDefiniteArticle(string str, Gender gender, bool plural = false, bool name = false)
{
if( name )
char first = str[0];
if (IsVowelorh(first)
{
return (gender == Gender.Female ? "l/'" : "n/'") + str;
}
else
{
return (gender == Gender.Female ? "la " : "el ") + str;
}
else if( plural )
return (gender == Gender.Female ? "les " : "els ") + str;
else
return (gender == Gender.Female ? "la " : "el ") + str;
}
public bool IsVowelorh(char ch)
{
return "aeiouàèéíòóúïüAEIOUÀÈÉÍÒÓÚÏÜ".IndexOf(ch) >= 0;
}


Ordinals can change depending on number and the gender of the thing counted. I have seen them treated on some workers. I don't know if is possible something like this:

public override string OrdinalNumber(int number, Gender gender)
{
if ( gender == Gender.Female)
{
return number + "a";
}
else
{
if( int == 1 or int == 3)
return number + "r";
else if (int == 2)
return number + "n";
else if (int == 4)
return number + "t";
else
return number + "è";
}
}



Thanks again! Very good job!
#10
Checking the log file, looks like the error is related to a battle between a bear and a deer.

I checked my RulePackCombat file and  it looks fine to me.

Can anybody double check it?

UPDATE

I had finally found a missing ">" from a "->" code. I will check if it is solved.

[attachment deleted due to age]
#11
Bugs / 0.19 Memory trouble due to Translation errors?
August 22, 2018, 04:59:03 AM
Hi

I know the translations has many errors. I am working on it. Can it be the cause of the hi memory consumption?

I left you the log file

[attachment deleted due to age]
#12
General Discussion / Re: Debug log location?
August 21, 2018, 03:28:25 AM
By now (0.19.1998) it is in /tmp/Rimworld.log on a GNU/Linux system
#13
Stories / Re: Rimworld Monastics
August 16, 2018, 09:59:28 AM
Cool history, but I cannot load most of the images.
#14
You can avoid hunting, but growing is a must do. I always have one or more paws dedicated to farm. In early game you can survive on harvesting in some biomes, but as soon as you are three colonist and have some cattle and pets, you will have difficult times without farming.
#15
General Discussion / Re: Claustrophobia
August 10, 2018, 04:41:16 AM
I think you should let them see the sun every now and then. If you spent a hole month inside a cave you will become crazy too!

Maybe put some entertaiment outside.