blob: ffbff3e1e973e08f474d1d26267d86198a23f9b9 [file] [log] [blame]
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
===Some module in the IDE etc. already has a menu item I can use. I just want to rename it. Can I?===
If you are creating a custom application (e.g. '''Standalone Application''' in suite project properties) you specify a ''branding'' for the application. You can then override localized text strings from platform modules without modifying those modules directly; the overrides will be active whenever your branding is selected (this part is taken care of for you by the suite build harness). You will need to locate the module which defines the menu item and find the localized <tt>Bundle.properties</tt> which gives a label for it. Then you can create a file in your suite project like
<tt>branding/modules/''jarname''.jar/''path''/Bundle.properties</tt>
containing definitions of overridden labels.
When you enable branding on a suite the IDE automatically brands a few bundle strings for the main window title and so on, so you can look at these files for examples.
The Branding menu item on a suite (or Maven app project) lets you search for other strings and override them easily.
See also [http://bits.netbeans.org/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/i18n-branding.html Technical details]
---------
Applies to: NetBeans 5.0, 5.5, 6.x
===Apache Migration Information===
The content in this page was kindly donated by Oracle Corp. to the
Apache Software Foundation.
This page was exported from http://wiki.netbeans.org/DevFaqRenamingMenuItem ,
that was last modified by NetBeans user Jglick
on 2011-12-14T00:19:11Z.