Last Comment Bug 477831 - Expose new plural l10n API to c++ callers
: Expose new plural l10n API to c++ callers
Status: NEW
: student-project
Product: Core
Classification: Components
Component: Localization (show other bugs)
: Trunk
: All All
: -- normal with 2 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
:
Mentors:
https://developer.mozilla.org/En/Loca...
Depends on:
Blocks: 484252 500403 561627 561628 855488 516787 905943
  Show dependency treegraph
 
Reported: 2009-02-10 09:52 PST by David Humphrey (:humph)
Modified: 2014-11-24 00:59 PST (History)
17 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description David Humphrey (:humph) 2009-02-10 09:52:52 PST
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.
Comment 1 Shriram (irc: Mavericks) Away 2011-10-03 14:45:42 PDT
(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 Robert Kaiser 2011-10-04 05:10:29 PDT
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 Axel Hecht [:Pike] 2011-10-04 05:27:43 PDT
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.
Comment 4 Srishti 2013-04-06 09:45:41 PDT
Hi I am interested in working on this bug,can anyone guide me on how to get started with it?
Comment 5 Zibi Braniecki [:gandalf][:zibi] 2013-04-08 08:28:06 PDT
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 Axel Hecht [:Pike] 2013-06-25 02:20:18 PDT
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.
Comment 7 Mark Banner (:standard8) 2013-06-25 02:38:18 PDT
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.

Note You need to log in before you can comment on or make changes to this bug.