Ludeon Forums

Ludeon Forums

  • November 26, 2022, 09:41:19 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

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.

Messages - mecatxis

Pages: [1] 2 3
1
Translations / Re: Request: Help check the language workers for accuracy
« on: September 17, 2018, 02:27:06 PM »
For {0_objective} could i have
"la" if is female. Otherwise "lo".
?

Thanks

2
Translations / keyed translation format in "floatMenu". Bug?
« on: September 13, 2018, 03:49:47 PM »
I am translating
Code: [Select]
  <TradeWith>Trade with {0}</TradeWith> for
Code: [Select]
  <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
« on: September 13, 2018, 03:09:07 PM »
From the keyed file "Enums.xml"

 
Code: [Select]
<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
Translations / Re: Request: Help check the language workers for accuracy
« on: September 13, 2018, 02:36:09 PM »
Quote
I 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:
Code: [Select]
"Esteu segur que voleu fer fora {1_definite}?"

5
Translations / Re: Request: Help check the language workers for accuracy
« on: September 13, 2018, 03:12:40 AM »
Quote
I 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
Translations / Re: Request: Help check the language workers for accuracy
« on: September 11, 2018, 05:07:53 AM »
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
Translations / Re: Request: Help check the language workers for accuracy
« on: September 08, 2018, 06:27:47 AM »
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
Quote
words 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
Translations / Re: Request: Help check the language workers for accuracy
« on: September 07, 2018, 02:20:42 PM »
Quote
If 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
Translations / Re: Request: Help check the language workers for accuracy
« on: September 06, 2018, 03:33:21 PM »
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:

Code: [Select]
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:

Code: [Select]
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
Bugs / Re: 0.19 Memory trouble due to Translation errors?
« on: August 22, 2018, 05:34:29 AM »
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?
« on: 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?
« on: 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
« on: August 16, 2018, 09:59:28 AM »
Cool history, but I cannot load most of the images.

14
General Discussion / Re: How to plan amount of raw food ingredients?
« on: August 10, 2018, 04:45:33 AM »
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
« on: 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.

Pages: [1] 2 3