Bug 223036 - Need API into the Babel server
Summary: Need API into the Babel server
Status: NEW
Alias: None
Product: Babel
Classification: Technology
Component: Server (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Babel server inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: api
Depends on: 255775
Blocks: 279016
  Show dependency tree
 
Reported: 2008-03-17 23:33 EDT by Nigel Westbury CLA
Modified: 2022-08-12 11:28 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nigel Westbury CLA 2008-03-17 23:33:52 EDT
The Babel runtime plug-in allows users to provide translations from within the target application.  These translations need to be sent to the Babel server.  Also, the runtime plug-in should fetch the latest translations from the server before showing the translation dialog because users may not have the latest language packs.  There may also be other uses for an API into the babel server.

The API should allow a plug-in to fetch data given a key that consists of the following components:

bundle symbolic name
file path of the properties file
key
locale

The API should also allow us to put a value.  This is a little more complex because data can only be submitted within the context of a bugzilla account.

The Babel runtime plug-in allows users to translate all messages that appear in an editor, view, or dialog.  Therefore it will typically request a number of messages at once, but most if not all are likely to be in a single property file.  Therefore it would improve performance if the API allowed multiple keys to be passed.
Comment 1 Bjorn Freeman-Benson CLA 2008-03-17 23:35:45 EDT
The API calls need to include the bugzilla login and password, at least for those calls that do writes to the database.
Comment 2 Pascal Essiembre CLA 2008-04-20 22:17:28 EDT
To integrate nicely with the Messages Editor, here is a wish list for the runtime API:

- Being able to get all keys for a resource bundle at once.
- Being able to get all values for a given key at once (all locales).
- Capability to rename/delete/add a key.
- Being able to save just one key/value.

If the idea of "batch" mode is to be supported, then a being able to read/write a stream that represents a resource bundle (expected Java Properties format) would work great as well (not sure how individual changes would be tracked efficiently).
Comment 3 Eclipse Genie CLA 2014-09-19 15:09:22 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Eclipse Genie CLA 2016-09-09 07:08:38 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Eclipse Genie CLA 2018-08-31 10:46:13 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Eclipse Genie CLA 2020-08-21 06:53:00 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 7 Eclipse Genie CLA 2022-08-12 11:28:33 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.