Create Common Properties file to remove redundant definitions

Description

Redundant property file key/value definitions (e.g. Submit) are a huge problem adding to the already burdensome process of translating Sakai. A common properties file loaded by all tools/components could clean up a lot of these redundancies.

See http://www-128.ibm.com/developerworks/java/library/j-bundles/ for strategies.

Environment

None

Test Plan

None

Activity

Show:

Jean-François Lévêque March 28, 2012 at 6:39 AM

Matthew Jones October 27, 2011 at 9:25 AM

I have a feeling that this would help for defining categories in SAK-16600. Going to write that up.

Beth Kirschner August 5, 2011 at 1:01 PM

Having the tools explicitly invoke the common bundle file would avoid ambiguity. Adding a global namespace to the properties key names could be used to identify the global bundle properties. This would require changing a broad range of code, but it could be done incrementally as well.

Jean-François Lévêque September 9, 2009 at 7:02 AM

The name config made me forget there already was localization in it.

I would favor a common directory in localization/bundles/src/bundle/org/sakaiproject/localization/bundle for these shared strings.

Instead of adding a test in ResourceLoader.getString(), I would favor tools explicitly using the common bundle properties.

What do you think?

Beth Kirschner September 9, 2009 at 6:41 AM

Perhaps the simplest fix would be something like this:

// ResourceLoader.getString() pseudo-code

if (requested property file has key/value)
return value;
else if (common property file has key/value)
return value;
else
return property key not found error;

The sakai/config/localization directory provides us a common location for a global properties file, that is accessible to all projects (Thanks Anthony!), so this shouldn't be that difficult of a task.

Duplicate

Details

Assignee

Reporter

Affects versions

Priority

Created December 6, 2007 at 12:23 AM
Updated August 21, 2012 at 8:50 AM
Resolved March 28, 2012 at 6:39 AM

Flag notifications