GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




Author Template to localize foreign languages
Posted Tuesday, June 28, 2011 - Post #28616
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
Translator
GenoPro version: 2.5.4.1

Last Login: Wednesday, September 17, 2014
Posts: 15, Visits: 102
Hi guys,

Been a while and I just noticed to my shock my language had dropped below 50%. One thing I noticed is that there seem to be a lot more phrase generation strings such as {0} objects selected.

That works for English where you have one form of a noun for 1 and another form for anything more than one, including 0. But a lot of languages are more complex than that (apologies if I'm asking something that's already been sorted but I searched for plural rules and couldn't find any).

Compare the ruleset Mozilla (the folk who do Firefox) have: https://developer.mozilla.org/en/Localization_and_Plurals

Is there anything comparable on GenoPro (yet)? I just want to ask before I re-start translation.

Cheers




Do, or do not. There is no try.
Am Faclair Beag iGàidhlig, bathar-bog na Gàidhlig: Firefox, LibreOffice ⁊ mòran a bharrachd


Tags:

Edited: Monday, February 20, 2012 by GenoProSupport
Posted Tuesday, July 12, 2011 - Post #28668
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
Translator
GenoPro version: 2.5.4.1

Last Login: Wednesday, September 17, 2014
Posts: 15, Visits: 102
Please don't all answer at the same time! Wink



Do, or do not. There is no try.
Am Faclair Beag iGàidhlig, bathar-bog na Gàidhlig: Firefox, LibreOffice ⁊ mòran a bharrachd
Posted Tuesday, July 12, 2011 - Post #28669
Forum Master

Forum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum MasterForum Master

Gamma
Moderators
Administrators
FamilyTrees.GenoPro.com
Customers
GenoPro version: 3.0.0.8

Last Login: Tuesday, October 11, 2016
Posts: 952, Visits: 10,073
The translation use the same technology as the Phrase generator use by Ron and others to create nice report.

If you have special plural rules (0,1,2, 2+ elements). You can do it with conditional.



Take your time and read this document: 
http://www.genopro.com/sdk/Report-Generator/Phrase/

There is PLENTY of example in it, if you have more questions you are welcome.
Posted Saturday, February 18, 2012 - Post #29812
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
Translator
GenoPro version: 2.5.4.1

Last Login: Wednesday, September 17, 2014
Posts: 15, Visits: 102
Ok, this is a bit over my head I'm afraid. Let's say we have this string:

The family tree has {0} individuals and is too big for the AutoArrange!


Gaelic requires different handling of nouns following this pattern:

1, 11 require form I (duine)
2, 12 require form II (dhuine)
3-10, 13-19 require form III (daoine)
0, 20+ require form IV (duine)

So how do I have to code that?




Do, or do not. There is no try.
Am Faclair Beag iGàidhlig, bathar-bog na Gàidhlig: Firefox, LibreOffice ⁊ mòran a bharrachd
Posted Monday, February 20, 2012 - Post #29815
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Moderators
Customers
Gamma
Translator
GenoPro version: 3.0.0.7

Last Login: Wednesday, September 20, 2017
Posts: 4,363, Visits: 21,485
Ideally, this has to be implemented inside GenoPro, unless you want to write your own function.  Looking at https://developer.mozilla.org/en/Localization_and_Plurals, it would not be too hard to implement.

Edited: Monday, February 20, 2012 by GenoProSupport
Posted Thursday, July 12, 2012 - Post #30359
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
Translator
GenoPro version: 2.5.4.1

Last Login: Wednesday, September 17, 2014
Posts: 15, Visits: 102
So how can I request that sort of thing is coded into GenoPro?

Addendum: Since response to this issue seems to be slow, would this workaround be ok? I found

[{?0=1} one more day][{!}{0} more days]


in the files. Which I re-modelled as

[{?0=1|11}{0} taigh][{?0=2|12}{0} thaigh][{?0=3|4|5|6|7|8|9|10|13|14|15|16|17|18|19|20}{0}taighean][{!}{0} taigh]


I'm not great shakes at code so feedback would be much appreciated.




Do, or do not. There is no try.
Am Faclair Beag iGàidhlig, bathar-bog na Gàidhlig: Firefox, LibreOffice ⁊ mòran a bharrachd


Edited: Saturday, July 28, 2012 by Akerbeltz
Posted Wednesday, August 01, 2012 - Post #30474
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
Translator
GenoPro version: 2.5.4.1

Last Login: Wednesday, September 17, 2014
Posts: 15, Visits: 102
Ok, thanks jcmorin ... I'm a tiny little bit closer now Crazy

I have entered this:
http://www.akerbeltz.org/Pics/GenoPro/plurals01.jpg

But in live, that gives me strange stuff if I select objects:
http://www.akerbeltz.org/Pics/GenoPro/plurals02.jpg

Since I can't add *all* number manually, I tried to do an "or else" function but that creates real havoc:
http://www.akerbeltz.org/Pics/GenoPro/plurals03.jpg

And I also does not like me using OR:
http://www.akerbeltz.org/Pics/GenoPro/plurals04.jpg
What am I doing wrong?




Do, or do not. There is no try.
Am Faclair Beag iGàidhlig, bathar-bog na Gàidhlig: Firefox, LibreOffice ⁊ mòran a bharrachd
Posted Tuesday, September 18, 2012 - Post #30662
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.0

Last Login: 2 hours ago
Posts: 2,510, Visits: 17,768
Having read your latest post, I had an attempt at this using the Phrase Editor.  The Else {!} applies to the immediately preceding conditional, so theretically to get the result you want you need to nest the clauses and should be able to use

Tha [{?0=1}{0} taigh][{!}[{?0=2}{0} thaigh][{!}[{?0=3}{0} taighean][{!}{0} taighaen]]]

But whilst this appears to work in the GenoPro Phrase Editor, when actually applied in a localization then the phrase template is not converted correctly as you have already discovered.

http://support.genopro.com/Uploads/Images/4b0f85fe-c331-4298-a2df-d3db.png

This seems therefore to be a real bug in GenoPro and perhaps is more easily fixed than the 'limitation' your refer too.

Perhaps Dan or JC could comment on this.





'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"
Posted Friday, September 28, 2012 - Post #30718
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Customers
Translator
GenoPro version: 2.5.4.1

Last Login: Wednesday, September 17, 2014
Posts: 15, Visits: 102
Just found another related bug.I was working on this:

The registration key '{0}' is not valid[ because it had expired [{?1=1}yesterday][{!}{1} days ago]].


and since Gaelic does not allow "days ago" until you get past 2, I tried

[{?1=1}an-dè][{?1=2}a-bhòin-dè][{!}{1} làithean air ais]


I get the right forms (ignoring the bad plurals) but for yesterday I now get this weird one:

an-dè1 làithean air ais




Do, or do not. There is no try.
Am Faclair Beag iGàidhlig, bathar-bog na Gàidhlig: Firefox, LibreOffice ⁊ mòran a bharrachd
Posted Saturday, September 29, 2012 - Post #30723
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.0.1.0

Last Login: 2 hours ago
Posts: 2,510, Visits: 17,768
As before you need to nest the 'else' phrases
[{?1=1}an-dè][{!}[{?1=2}a-bhòin-dè][{!}{1} làithean air ais]]



'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse