Please accept my apologies if this is received twice in the list. As I sent
it a while ago, and it hasn't appeared, I'm just checking that all is ok.
Fwd:
Turbine is having trouble finding my .properties files for the localization.
I've tried quite a few places, in fact I have them littered all over the
place (only two...it's just a test).
my code is...
String headings[] = {Localization.getString(data,"newapp.CDADMIN.CDtable.0"),
Localization.getString(data, "newapp.CDADMIN.CDtable.1"),
Localization.getString(data, "newapp.CDADMIN.CDtable.2"),
Localization.getString(data, "newapp.CDADMIN.CDtable.3"),
Localization.getString(data, "newapp.CDADMIN.CDtable.4")," "};
context.put("headings", headings);
In my TR.props file I have...
# -------------------------------------------------------------------
#
# A D D I T I O N A L P R O P E R T I E S
#
# -------------------------------------------------------------------
# The full path name to an additional properties file. Properties in
# this file will be included in this property set. Duplicate name
# values will be replaced, so be careful.
#
# Default: none
# -------------------------------------------------------------------
include = Flux.properties
include = newappresources_en.properties
include = newappresources_es.properties
[Wed Jul 11 18:44:08 GMT+02:00 2001] -- INFO -- Start Initializing service
(late): LocalizationService
[Wed Jul 11 18:44:08 GMT+02:00 2001] -- INFO -- Finish Initializing service
(late): LocalizationService
[Wed Jul 11 18:44:08 GMT+02:00 2001] -- ERROR -- Turbine.handleException:
Can't find bundle for base name newappresources, locale es es_es es_es en
[Wed Jul 11 18:44:08 GMT+02:00 2001] -- ERROR --
Exception: java.util.MissingResourceException: Can't find bundle for base
name newappresources, locale es es_es es_es en
Stack Trace follows:
java.util.MissingResourceException: Can't find bundle for base name
newappresources, locale es es_es es_es en
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:70
7) at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:559)
at
org.apache.turbine.services.localization.TurbineLocalizationService.getBundle
(TurbineLocalizationService.java:246) at
org.apache.turbine.services.localization.TurbineLocalizationService.getBundle
(TurbineLocalizationService.java:189) at
org.apache.turbine.services.localization.Localization.getString(Localization.
java:124) at
org.mycompany.newapp.modules.screens.CdAdminView.doBuildTemplate(CdAdminView.
java:91)
-------------------------------------------------------
Saimon
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]