Home » Eclipse Projects » Eclipse Platform » customize strings/messages from WorkbenchMessages 
 |   |   |  
| Re: customize strings/messages from WorkbenchMessages [message #329082 is a reply to message #329051] | 
Thu, 12 June 2008 04:47    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Still thinking on the line of customizing English strings, I am just  
wondering if there is no recommended way at the moment, then is it  
possible to have extension point where messages.properties file can be  
specified? Something like  
 http://publib.boulder.ibm.com/infocenter/sametime/v7r5m1/ind ex.jsp?topic=/com.ibm.help.sametime.admin.doc/st_adm_comm_cu stommessage_t.html 
 
Any thoughts/suggestions? 
Thanks. 
- Parvez 
 
 
PC wrote: 
> Hi Ed, 
>  
> Yes, I am looking to change basic English strings which are in  
> messages.properties under "org.eclipse.ui.internal" package and  
> WorkbenchMessages class reads it. 
>  
> In my workspace, I have created a nl fragment for  
> "org.eclipse.ui.workbench" plugin and other language properties files  
> (like messages_de.properties) are picked up from it (earlier  
> Fragment-Host value was wrong), but I am not sure what do for English  
> strings i.e. messages.properties. 
>  
> Any suggestions? 
>  
> Thanks. 
>  
> - Parvez 
>  
> Ed Merks wrote: 
>> Parvez, 
>> 
>> I think you'd need to open the jar and change the *.properties file  
>> with.   Translations typically do this by providing *.properties files  
>> that are applicable when in the corresponding locale.  Are you looking  
>> to do that, or to change the basic English strings? 
>> 
>> 
>> PC wrote: 
>>> Hi, 
>>> 
>>> I think earlier I posted in wrong group  
>>> ( http://dev.eclipse.org/newslists/news.eclipse.technology.bab el/msg00080.html)  
>>> 
>>> 
>>> I want to override/customize certain strings/messages from  
>>> WorkbenchMessages 
>>> 
>>> But as this is in internal package i.e. org.eclipse.ui.internal 
>>> So just wondering is there right way to do it? 
>>> 
>>> Any help will be appreciated. 
>>> 
>>> 
>>> Thanks. 
>>> - Parvez
 |  
 |  
  |  
| Re: customize strings/messages from WorkbenchMessages [message #329086 is a reply to message #329082] | 
Thu, 12 June 2008 06:49    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=236829 
 
PC wrote: 
> Still thinking on the line of customizing English strings, I am just  
> wondering if there is no recommended way at the moment, then is it  
> possible to have extension point where messages.properties file can be  
> specified? Something like  
>  http://publib.boulder.ibm.com/infocenter/sametime/v7r5m1/ind ex.jsp?topic=/com.ibm.help.sametime.admin.doc/st_adm_comm_cu stommessage_t.html  
>  
>  
> Any thoughts/suggestions? 
> Thanks. 
> - Parvez 
>  
>  
> PC wrote: 
>> Hi Ed, 
>> 
>> Yes, I am looking to change basic English strings which are in  
>> messages.properties under "org.eclipse.ui.internal" package and  
>> WorkbenchMessages class reads it. 
>> 
>> In my workspace, I have created a nl fragment for  
>> "org.eclipse.ui.workbench" plugin and other language properties files  
>> (like messages_de.properties) are picked up from it (earlier  
>> Fragment-Host value was wrong), but I am not sure what do for English  
>> strings i.e. messages.properties. 
>> 
>> Any suggestions? 
>> 
>> Thanks. 
>> 
>> - Parvez 
>> 
>> Ed Merks wrote: 
>>> Parvez, 
>>> 
>>> I think you'd need to open the jar and change the *.properties file  
>>> with.   Translations typically do this by providing *.properties  
>>> files that are applicable when in the corresponding locale.  Are you  
>>> looking to do that, or to change the basic English strings? 
>>> 
>>> 
>>> PC wrote: 
>>>> Hi, 
>>>> 
>>>> I think earlier I posted in wrong group  
>>>> ( http://dev.eclipse.org/newslists/news.eclipse.technology.bab el/msg00080.html)  
>>>> 
>>>> 
>>>> I want to override/customize certain strings/messages from  
>>>> WorkbenchMessages 
>>>> 
>>>> But as this is in internal package i.e. org.eclipse.ui.internal 
>>>> So just wondering is there right way to do it? 
>>>> 
>>>> Any help will be appreciated. 
>>>> 
>>>> 
>>>> Thanks. 
>>>> - Parvez
 |  
 |  
  |  
| Re: customize strings/messages from WorkbenchMessages [message #329088 is a reply to message #329082] | 
Thu, 12 June 2008 08:29    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: merks.ca.ibm.com 
 
Parvez, 
 
No, the English strings are not designed to be replaced.  Imagine  
multiple different plugins trying to do that and then all running in one  
application: which replacement wins?  So opening the jar and changing  
the properties seems like the only way to go (other than perhaps faking  
a locale and treating the strings you want to replace as translations  
for that locale)... 
 
 
PC wrote: 
> Still thinking on the line of customizing English strings, I am just  
> wondering if there is no recommended way at the moment, then is it  
> possible to have extension point where messages.properties file can be  
> specified? Something like  
>  http://publib.boulder.ibm.com/infocenter/sametime/v7r5m1/ind ex.jsp?topic=/com.ibm.help.sametime.admin.doc/st_adm_comm_cu stommessage_t.html  
> 
> 
> Any thoughts/suggestions? 
> Thanks. 
> - Parvez 
> 
> 
> PC wrote: 
>> Hi Ed, 
>> 
>> Yes, I am looking to change basic English strings which are in  
>> messages.properties under "org.eclipse.ui.internal" package and  
>> WorkbenchMessages class reads it. 
>> 
>> In my workspace, I have created a nl fragment for  
>> "org.eclipse.ui.workbench" plugin and other language properties files  
>> (like messages_de.properties) are picked up from it (earlier  
>> Fragment-Host value was wrong), but I am not sure what do for English  
>> strings i.e. messages.properties. 
>> 
>> Any suggestions? 
>> 
>> Thanks. 
>> 
>> - Parvez 
>> 
>> Ed Merks wrote: 
>>> Parvez, 
>>> 
>>> I think you'd need to open the jar and change the *.properties file  
>>> with.   Translations typically do this by providing *.properties  
>>> files that are applicable when in the corresponding locale.  Are you  
>>> looking to do that, or to change the basic English strings? 
>>> 
>>> 
>>> PC wrote: 
>>>> Hi, 
>>>> 
>>>> I think earlier I posted in wrong group  
>>>> ( http://dev.eclipse.org/newslists/news.eclipse.technology.bab el/msg00080.html)  
>>>> 
>>>> 
>>>> I want to override/customize certain strings/messages from  
>>>> WorkbenchMessages 
>>>> 
>>>> But as this is in internal package i.e. org.eclipse.ui.internal 
>>>> So just wondering is there right way to do it? 
>>>> 
>>>> Any help will be appreciated. 
>>>> 
>>>> 
>>>> Thanks. 
>>>> - Parvez
 |  
 |  
  |  
| Re: customize strings/messages from WorkbenchMessages [message #329089 is a reply to message #329088] | 
Thu, 12 June 2008 08:46    | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Why faking a locale. The last part of the locale is designed to be  
application specific. 
 
messages_de_AT_beso.properties at least it is for ResourceBundle I don't  
know how NLS uses this kind of thing. 
 
Tom 
 
Ed Merks schrieb: 
> Parvez, 
>  
> No, the English strings are not designed to be replaced.  Imagine  
> multiple different plugins trying to do that and then all running in one  
> application: which replacement wins?  So opening the jar and changing  
> the properties seems like the only way to go (other than perhaps faking  
> a locale and treating the strings you want to replace as translations  
> for that locale)... 
>  
>  
> PC wrote: 
>> Still thinking on the line of customizing English strings, I am just  
>> wondering if there is no recommended way at the moment, then is it  
>> possible to have extension point where messages.properties file can be  
>> specified? Something like  
>>  http://publib.boulder.ibm.com/infocenter/sametime/v7r5m1/ind ex.jsp?topic=/com.ibm.help.sametime.admin.doc/st_adm_comm_cu stommessage_t.html  
>> 
>> 
>> Any thoughts/suggestions? 
>> Thanks. 
>> - Parvez 
>> 
>> 
>> PC wrote: 
>>> Hi Ed, 
>>> 
>>> Yes, I am looking to change basic English strings which are in  
>>> messages.properties under "org.eclipse.ui.internal" package and  
>>> WorkbenchMessages class reads it. 
>>> 
>>> In my workspace, I have created a nl fragment for  
>>> "org.eclipse.ui.workbench" plugin and other language properties files  
>>> (like messages_de.properties) are picked up from it (earlier  
>>> Fragment-Host value was wrong), but I am not sure what do for English  
>>> strings i.e. messages.properties. 
>>> 
>>> Any suggestions? 
>>> 
>>> Thanks. 
>>> 
>>> - Parvez 
>>> 
>>> Ed Merks wrote: 
>>>> Parvez, 
>>>> 
>>>> I think you'd need to open the jar and change the *.properties file  
>>>> with.   Translations typically do this by providing *.properties  
>>>> files that are applicable when in the corresponding locale.  Are you  
>>>> looking to do that, or to change the basic English strings? 
>>>> 
>>>> 
>>>> PC wrote: 
>>>>> Hi, 
>>>>> 
>>>>> I think earlier I posted in wrong group  
>>>>> ( http://dev.eclipse.org/newslists/news.eclipse.technology.bab el/msg00080.html)  
>>>>> 
>>>>> 
>>>>> I want to override/customize certain strings/messages from  
>>>>> WorkbenchMessages 
>>>>> 
>>>>> But as this is in internal package i.e. org.eclipse.ui.internal 
>>>>> So just wondering is there right way to do it? 
>>>>> 
>>>>> Any help will be appreciated. 
>>>>> 
>>>>> 
>>>>> Thanks. 
>>>>> - Parvez 
 
 
--  
B e s t S o l u t i o n . at 
 ------------------------------------------------------------ -------- 
Tom Schindl                                          JFace-Committer 
 ------------------------------------------------------------ --------
 |  
 |  
  |  
| Re: customize strings/messages from WorkbenchMessages [message #329090 is a reply to message #329089] | 
Thu, 12 June 2008 09:31   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
> Ed Merks schrieb: 
 >> 
 >> No, the English strings are not designed to be replaced. 
Sometimes a word could have a different meaning in a tool which is  
targeted for a specific industry e.g. resource, perspective etc. 
 
Though I see the point that different plugins overriding same thing, but  
these scenarios can be applied to any other objects as well. 
There were other thoughts: 
a. Class can be removed from internal package so that individual can  
provide another messages.properties. 
b. messages.properties file from user defined nl fragment should be  
given preference. 
 
 
But now I tried messages_en.properties instead of messages.properties in  
fragment and it worked. 
 
 
Thanks Ed and Tom. 
 
Regards, 
Parvez 
 
 
 
Tom Schindl wrote: 
> Why faking a locale. The last part of the locale is designed to be  
> application specific. 
>  
> messages_de_AT_beso.properties at least it is for ResourceBundle I don't  
> know how NLS uses this kind of thing. 
>  
> Tom 
>  
> Ed Merks schrieb: 
>> Parvez, 
>> 
>> No, the English strings are not designed to be replaced.  Imagine  
>> multiple different plugins trying to do that and then all running in  
>> one application: which replacement wins?  So opening the jar and  
>> changing the properties seems like the only way to go (other than  
>> perhaps faking a locale and treating the strings you want to replace  
>> as translations for that locale)... 
>> 
>> 
>> PC wrote: 
>>> Still thinking on the line of customizing English strings, I am just  
>>> wondering if there is no recommended way at the moment, then is it  
>>> possible to have extension point where messages.properties file can  
>>> be specified? Something like  
>>>  http://publib.boulder.ibm.com/infocenter/sametime/v7r5m1/ind ex.jsp?topic=/com.ibm.help.sametime.admin.doc/st_adm_comm_cu stommessage_t.html  
>>> 
>>> 
>>> Any thoughts/suggestions? 
>>> Thanks. 
>>> - Parvez 
>>> 
>>> 
>>> PC wrote: 
>>>> Hi Ed, 
>>>> 
>>>> Yes, I am looking to change basic English strings which are in  
>>>> messages.properties under "org.eclipse.ui.internal" package and  
>>>> WorkbenchMessages class reads it. 
>>>> 
>>>> In my workspace, I have created a nl fragment for  
>>>> "org.eclipse.ui.workbench" plugin and other language properties  
>>>> files (like messages_de.properties) are picked up from it (earlier  
>>>> Fragment-Host value was wrong), but I am not sure what do for  
>>>> English strings i.e. messages.properties. 
>>>> 
>>>> Any suggestions? 
>>>> 
>>>> Thanks. 
>>>> 
>>>> - Parvez 
>>>> 
>>>> Ed Merks wrote: 
>>>>> Parvez, 
>>>>> 
>>>>> I think you'd need to open the jar and change the *.properties file  
>>>>> with.   Translations typically do this by providing *.properties  
>>>>> files that are applicable when in the corresponding locale.  Are  
>>>>> you looking to do that, or to change the basic English strings? 
>>>>> 
>>>>> 
>>>>> PC wrote: 
>>>>>> Hi, 
>>>>>> 
>>>>>> I think earlier I posted in wrong group  
>>>>>> ( http://dev.eclipse.org/newslists/news.eclipse.technology.bab el/msg00080.html)  
>>>>>> 
>>>>>> 
>>>>>> I want to override/customize certain strings/messages from  
>>>>>> WorkbenchMessages 
>>>>>> 
>>>>>> But as this is in internal package i.e. org.eclipse.ui.internal 
>>>>>> So just wondering is there right way to do it? 
>>>>>> 
>>>>>> Any help will be appreciated. 
>>>>>> 
>>>>>> 
>>>>>> Thanks. 
>>>>>> - Parvez 
>  
>
 |  
 |  
  |   
Goto Forum:
 
 Current Time: Tue Nov 04 06:20:14 EST 2025 
 Powered by  FUDForum. Page generated in 0.07906 seconds  
 |