Not a problem.  Here's a tip to alter things without editing the jars
themselves:

Within the WEB-INF of both magnoliaAuthor and magnoliaPublic, you can
create a folder called 'classes' to put custom classes and resources. 
Anything here is available to the webapp using the standard classloader
mechanism that also loads the classes and resources from .jar files.  In
the event of a naming conflict where a resource in the 'classes' folder
is named identically to one in a jar, the classes directory version
takes presidence. 

My suggestion of creating the folder structure
classes/info/magnolia/module/admintemplates in WEB-INF and adding
message_templating_custom_en.properties to it effectively overrides the
equivalent file packaged in the magnolia-2.1-RC2.jar file.  This can be
done with anything in any of the jars.

--David

Robert Van Overmeiren wrote:

>I'm not a schooled Java developer, but do understand that the class
>loader builds the things in the 'work' directory from the classes in the
>JAR files when the engine is started.
>
>My IDE lets me mount the JAR file and add key/value pairs, but the JAR
>is 'Read-Only'.
>
>I can't save the changes.
>
>I chmod'ed the JAR 777, but still can't save.
>
>Guess its time for servlet school.
>
>-----Original Message-----
>From: [email protected] [mailto:[EMAIL PROTECTED] 
>Sent: Friday, July 22, 2005 10:12 AM
>To: [email protected]
>Subject: Re: [magnolia-user] Can you still use a literal string for a
>label or description?
>
>They are actually stored in magnolia-2.1-RC2.jar
>
>You can create this file path in the WEB-INF folder of magnoliaAuthor
>and magnoliaPublic to make custom resources:
>classes/info/magnolia/module/admintemplate/messages_templating_custom_en
>.properties
>
>Restart the web app to make them appear.
>
>--David
>
>Robert Van Overmeiren wrote:
>
>  
>
>>You mean the files in
>>'/work/Catalina/localhost/magnoliaAuthor/loader/info/magnolia/module/ad
>>m
>>ininterface'?
>>
>>    
>>
>>From this I gather that the labels & descriptions are now dynamic in 
>  
>
>>support of the new internationalization functionality.
>>
>>If I'm creating my own labels & descriptions, do I need to add them to 
>>the 'messages_en.properties' text file so the CMS can pull them in?
>>
>>I suppose they would all need corresponding translations in all the 
>>other properties files to maintain the support for the 14 languages?
>>
>>-----Original Message-----
>>From: [email protected] [mailto:[EMAIL PROTECTED]
>>Sent: Friday, July 22, 2005 9:05 AM
>>To: [email protected]
>>Subject: Re: [magnolia-user] Can you still use a literal string for a 
>>label or description?
>>
>>Ooops. Meant info.magnolia.module.admininterface
>>
>>
>>David Smith wrote:
>>
>> 
>>
>>    
>>
>>>Hunted for this one myself. Look @ info.magnolia.admininterface for a 
>>>load of i18n property files.
>>>
>>>--David
>>>
>>>Robert Van Overmeiren wrote:
>>>
>>>   
>>>
>>>      
>>>
>>>>Hello,
>>>>
>>>>In Magnolia 2.0, the dialog form lables where things like 'Main 
>>>>title' & 'Content title'.
>>>>
>>>>In 2.1 RC2, they're like 'dialog.pageProperties.tabGeneral.label' & 
>>>>'dialog.pageProperties.tabGeneral.contentTitle.label'.
>>>>
>>>>The descriptions are like this too.
>>>>
>>>>These seem to be a paths or pointers to content rather than a literal
>>>>     
>>>>
>>>>        
>>>>
>> 
>>
>>    
>>
>>>>string.
>>>>
>>>>Can you still use a literal string for a label or description?
>>>>
>>>>Where do these new paths get their content from, or how do you define
>>>>     
>>>>
>>>>        
>>>>
>> 
>>
>>    
>>
>>>>what you want the labels & descriptions to be?
>>>>
>>>>Regards,
>>>>Bob V
>>>>
>>>>----------------------------------------------------------------
>>>>for list details see
>>>>http://www.magnolia.info/en/magnolia/developer.html
>>>>----------------------------------------------------------------
>>>>
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>   
>>>
>>>      
>>>
>>--
>>David Smith
>>Network Operations Supervisor
>>Department of Entomology
>>Cornell University
>>2132 Comstock Hall
>>Ithaca, NY 14853
>>Phone: (607) 255-9571
>>Fax: (607) 255-0940
>>
>>
>>----------------------------------------------------------------
>>for list details see
>>http://www.magnolia.info/en/magnolia/developer.html
>>----------------------------------------------------------------
>>
>>----------------------------------------------------------------
>>for list details see
>>http://www.magnolia.info/en/magnolia/developer.html
>>----------------------------------------------------------------
>> 
>>
>>    
>>
>
>
>--
>David Smith
>Network Operations Supervisor
>Department of Entomology
>Cornell University
>2132 Comstock Hall
>Ithaca, NY 14853
>Phone: (607) 255-9571
>Fax: (607) 255-0940
>
>
>----------------------------------------------------------------
>for list details see
>http://www.magnolia.info/en/magnolia/developer.html
>----------------------------------------------------------------
>
>----------------------------------------------------------------
>for list details see
>http://www.magnolia.info/en/magnolia/developer.html
>----------------------------------------------------------------
>  
>


-- 
=======================================
David Smith
Network Operations Supervisor
Department of Entomology
College of Agriculture & Life Sciences
Cornell University
2132 Comstock Hall
Ithaca, NY  14853
Phone: 607.255.9571
Fax: 607.255.0939



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to