Bug 252625 - Use the plugin id field during the generation of the language packs
Summary: Use the plugin id field during the generation of the language packs
Status: NEW
Alias: None
Product: Babel
Classification: Technology
Component: Server (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Kit Lo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 254429
Blocks:
  Show dependency tree
 
Reported: 2008-10-29 13:20 EDT by Antoine Toulmé CLA
Modified: 2008-11-10 10:08 EST (History)
0 users

See Also:


Attachments
The patch (1.72 KB, patch)
2008-11-10 09:40 EST, Antoine Toulmé CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Toulmé CLA 2008-10-29 13:20:49 EDT
Bug 248917 introduced a new field in the files table to handle the plugin id, so that we don't use a regexp to determine the plugin id during the lang pack generation.

This is very useful when we use Babel over repositories that don't respect the particular layout Eclipse forces on repositories.

However this change was not affecting generate1.php as it had been heavily modified at the time.
Comment 1 Antoine Toulmé CLA 2008-11-10 09:40:27 EST
Created attachment 117434 [details]
The patch

Adding the patch - please approve and I will commit.
Comment 2 Kit Lo CLA 2008-11-10 09:56:34 EST
Antoine, untill bug 254429 is fixed, there is still a possibility that the plugin_id from file_row is blank. Shouldn't we fallback to the old way of extracting the plugin_id from the file name when the plugin_id from file_row is blank?
Comment 3 Antoine Toulmé CLA 2008-11-10 10:07:31 EST
As 254459 states, that row is empty only in the case that the file is not processed because it was deleted before the use of the plugin id.

Those files are not in the map files anymore and we should not be generating them in the first place.

I agree we should fix 254429 one way or another before marking this issue as fixed.