Menu

#9 Too many properties files in a resource bundle.

closed-fixed
None
9
2005-02-01
2005-01-31
No

[Submitted by Bart Vanhaute from eclipse-plugins.info]

The plugin is picking up too many files as part of one
resource bundle. For instance, the following will all
belong to one editor page:

x.properties
x_en.properties
x_fr.properties
x-1.properties
x-1_en.properties.
....

It looks like the regular expression for selecting
files is not strict enough : maybe try something like
"^"+name+"(_[a-z][a-z])?(_[A-Z][A-Z])?(_.*)?\."+extension+"$"

Discussion

  • Pascal Essiembre

    • status: open --> closed-fixed
     
  • Pascal Essiembre

    Logged In: YES
    user_id=1012642

    The regex pattern was adapted to something close to proposed
    solution. The new pattern is:

    "^" + name +
    "((_[a-z]{2})|(_[a-z]{2}_[A-Z]{2})|(_[a-z]{2}_[A-Z]{2}_\w*))?\."
    + extension + "$"

     

Log in to post a comment.