Ludeon Forums

Ludeon Forums

  • May 25, 2019, 03:18:09 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: New keyed translations format  (Read 5589 times)

Elevator

  • Drifter
  • **
  • Posts: 67
  • Refugee
    • View Profile
Re: New keyed translations format
« Reply #15 on: March 23, 2019, 12:53:14 PM »

Quote
Plurale tantum - a noun that appears only in the plural form and does not have a singular variant for referring to a single object, (in czech) door, scissors, pants, etc.
I agree with @morticinus. Russian language works the same way.
Logged

ison

  • Developer
  • Planetologist
  • *****
  • Posts: 2138
    • View Profile
Re: New keyed translations format
« Reply #16 on: April 01, 2019, 11:40:50 AM »

Hi Ison
The Czech language has three genders. Male, female, neuter. I'm beginning to rework some sentences to sound better. I'm using {0_gender? A: B: C}.
However, I also need to have the D variant like this: {0_gender? A : B : C : D } + added WordInfo/Gender/Plural.txt
(maybe to future customizable like this: {0_gender? A : B : C : D : etc : etc }, only if easy to add)

Hmm, I understand. Some nouns are always plural in some languages so even if you know that {0} refers to only 1 object you still need to use the plural form sometimes. Your proposed solution works, though I see some minor problems with it. What if the plural form also depended on the gender? We'd need A : B : C : D : E : F. What if {0} already referred to multiple objects? (e.g. "cats" or "dogs"), would "A" be translated to "cats" or "cat" and then you'd have to use D, E, F? It's a bit confusing. Maybe what we need is something like this: {0_count ? {0_gender ? A : B : C} : {0_gender ? A : B : C}}. It's getting a bit complex, we'd need to pass the "count" information everywhere in our code.
Logged

morticinus

  • Muffalo
  • *
  • Posts: 8
  • Refugee
    • View Profile
Re: New keyed translations format
« Reply #17 on: April 06, 2019, 08:15:44 AM »

Hi Ison,
I don't know if we understand each other. Maybe, I described it wrong.

I need to improve this:

Our system can easily tell the gender of a pawn, but it can't tell the gender of any other object. This means that if you want to use a gender conditional expression on, for example, items, then you need to provide some lookup tables by creating the following files in your language folder:
WordInfo/Gender/Male.txt
WordInfo/Gender/Female.txt
WordInfo/Gender/Neuter.txt
and add one word per line to each file, e.g.: (Male.txt)
Code: [Select]
sword
computer
keyboard

then if an object whose label is "sword" is passed, its _gender will be male.

This makes it possible to do this:
Code: [Select]
{THING_label} is {THING_gender ? beautiful1 : beautiful2}where "beautiful" is different based on the THING's gender (which happens in some languages).

{0_gender? A : B } = great for Backstories.xml (used for verbs, adjectives, pronouns (male, female)....etc
{0_gender? A : B : C} = this works great in Keyed folder (primarily for objects) but I can't always use it
{0_gender? A : B : C : D} = I need this for great translation improvements (A Female.txt, B Male.txt, C Neuter.txt, D xxxxx.txt (Plural.txt??))
__________________________________________________________________________________________________
Example using of {0_gender ? A : B : C : D} for label "flower" (Female.txt):
-- {THING_label} is {THING_gender ? beautiful1 : beautiful2 : beautiful3 : beautiful4}.

Singular form - "flower" (translated to květina) is in the file Female.txt
Code: [Select]
květina //flower
baterie  //battery
židle  //chair
...

Result:
-- Flower is beautiful2.


__________________________________________________________________________________________________
Example using of {0_gender ? A : B : C : D} for label "doors" (Plural.txt):
-- {THING_label} is {THING_gender ? beautiful1 : beautiful2 : beautiful3 : beautiful4}.

Plurale tantum form - "doors" (translated to dveře - only plural form in Czech) is in the file Plural.txt
Code: [Select]
dveře //doors
nůžky //scissors
kalhoty //pants
...

Result:
Doors is beautiful4


__________________________________________________________________________________________________
Example using of {0_gender ? A : B : C} for label "dog/cat/pig" (Male.txt/Female.txt/Neuter.txt):
-- {0_label} is {0_gender ? beautiful1 : beautiful2 : beautiful3}.

Result:
-- Dog is beautiful1.
-- Cat is beautiful2.
-- Pig is beautiful3.

I would keep a simple system.
This system will help me many problems.

Thank you.
Logged

MaBo974

  • Muffalo
  • *
  • Posts: 14
  • Refugee
    • View Profile
Re: New keyed translations format
« Reply #18 on: April 09, 2019, 03:55:52 PM »

Hi Ison, I think there is an error with the  definition of {x_objective} for Italian language. I've recently change the Interactions_Prisoner.xml file like this:

Code: [Select]
<li>r_logentry->[INITIATOR_nameDef] ha promesso a [RECIPIENT_nameDef] dei [goodthingMas], chiedendo a [RECIPIENT_objective] di unirsi.</li>
All fine except [RECIPIENT_objective] was translated as "la"; it should be "lei" for female and "lui" for male.

Please let me know if you need more info.

Thanks and have a nice day.
Logged

Arczi008TV

  • Muffalo
  • *
  • Posts: 4
  • Refugee
    • View Profile
Re: New keyed translations format
« Reply #19 on: May 04, 2019, 06:27:04 PM »

PAWN_gender not working in Keyed/Skills.xml
amateur has 2 gender like actor/actress 
Logged
Pages: 1 [2]