Closed Bug 477831 Opened 15 years ago Closed 5 years ago

Expose new plural l10n API to c++ callers

Categories

(Core :: Internationalization: Localization, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: humph, Unassigned)

References

(Blocks 5 open bugs, )

Details

(Keywords: student-project)

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.
Blocks: 484252
Blocks: 500403
Keywords: student-project
Blocks: 561627
Blocks: 561628
(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 ?
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?
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.
Blocks: 855488
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.
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

Resolving WONTFIX in favor of Fluent now.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.