How do new locales work, do I just grab one of the .lng files, translate and
then ask someone with commit rights to commit and add the new locale? I'd like
to do Scots Gaelic.
How to add a new locale
- Posts: 4
- Joined: 22 Aug 2011
- Posts: 4
- Joined: 22 Aug 2011
I've got a follow up question too. I've played around with it a bit and I was
using an existing locale (Spanish) to fake mine so I could see the strings in
the interface. It throws a wobbly around the plural rule though:
nplurals=4; plural=(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n < 20) ? 2 : 3;
Not entirely sure why, it works fine in Pootle/Virtaal for other Gaelic
projects - do I have to adjust it for this project?
Thanks
using an existing locale (Spanish) to fake mine so I could see the strings in
the interface. It throws a wobbly around the plural rule though:
nplurals=4; plural=(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n < 20) ? 2 : 3;
Not entirely sure why, it works fine in Pootle/Virtaal for other Gaelic
projects - do I have to adjust it for this project?
Thanks
- Posts: 4
- Joined: 22 Aug 2011
Small addendum: Ok, I need to drop the
> nplurals=4; plural=
bit but it still doesn't work
> nplurals=4; plural=
bit but it still doesn't work
- Site Admin
- Posts: 7251
- Joined: 9 Dec 2007
> How do new locales work, do I just grab one of the .lng files
Yes. There are a few other little things, but they don't matter right now.
> ask someone with commit rights
That would be me.
>I'd like to do Scots Gaelic.
Awesome, I'm looking forward to integrate it!
> do I have to adjust it for this project?
Yes, slightly. The following header information should do:
<plural forms>4</plural forms>
<plural definition>(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n <
20) ? 2 : 3</plural definition>
Yes. There are a few other little things, but they don't matter right now.
> ask someone with commit rights
That would be me.
>I'd like to do Scots Gaelic.
Awesome, I'm looking forward to integrate it!
> do I have to adjust it for this project?
Yes, slightly. The following header information should do:
<plural forms>4</plural forms>
<plural definition>(n==1 || n==11) ? 0 : (n==2 || n==12) ? 1 : (n > 2 && n <
20) ? 2 : 3</plural definition>
- Posts: 4
- Joined: 22 Aug 2011
Ah that ; at the end LOL
Ok, that's all working great now. I emailed you the file already but I'm not
sure if it was the right email - if yes, let me know and I'll email you the
latest with that plural bug fixed?
So what are the other little things I need to do?
Thanks
Ok, that's all working great now. I emailed you the file already but I'm not
sure if it was the right email - if yes, let me know and I'll email you the
latest with that plural bug fixed?
So what are the other little things I need to do?
Thanks