Expose new plural l10n API to c++ callers

NEW
Unassigned

Status

()

Core
Localization
8 years ago
3 years ago

People

(Reporter: humph, Unassigned)

Tracking

(Blocks: 5 bugs, {student-project})

Trunk
student-project
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

8 years ago
Spin-off from bug 460287 comment 60...

It would be good to have a way from C++ to do l10n pluralization the same way that can be done from js now.

Updated

8 years ago
Blocks: 484252
Blocks: 500403
(Reporter)

Updated

8 years ago
Keywords: student-project
Blocks: 561627
Blocks: 561628

Updated

7 years ago
Blocks: 516787
(In reply to David Humphrey (:humph) from comment #0)
> Spin-off from bug 460287 comment 60...
> 
> It would be good to have a way from C++ to do l10n pluralization the same
> way that can be done from js now.

Would MDN Docs suffice to write up Mozilla standard C++ implementation ?

Comment 2

6 years ago
I'm not sure if it's a good idea to actually have someone work on this when we are working on getting the L20n system finalized that will bring this and more anyhow.

Axel, gandalf, what's your take on this?

Comment 3

6 years ago
There's no timeline on l20n, and doing this doesn't have impact on l20n or not.

I'd argue against a C++ implementation, but if someone can come up with a good C++ API to our js implementation, I'd not be opposed. No idea how to best go about that, though.

Updated

4 years ago
Blocks: 855488

Comment 4

4 years ago
Hi I am interested in working on this bug,can anyone guide me on how to get started with it?
Srishti: Join us on IRC at #l10n and we can talk about this. My IRC handle is gandalf, other people that may help you start with this bug are stas or pike.

Comment 6

4 years ago
As it came up on irc:

The first helping step needed here is which kind of IDL we should use. Then a js-implemented service can implement an interface by using the existing plurals module.
I'd suggest something simple like this one for the idl:

http://mxr.mozilla.org/comm-central/source/mail/components/nsIMailGlue.idl

This would be exposed to javascript & c++. The service for that example is here:

http://mxr.mozilla.org/comm-central/source/mail/components/mailGlue.js

and it is registered here:

http://hg.mozilla.org/comm-central/annotate/dd35e67c6af4/mail/components/mailComponents.manifest#l16

Obviously the real service would want to be in toolkit somewhere.
Blocks: 905943
You need to log in before you can comment on or make changes to this bug.