blob: ff7bef26db6bbc86b66335ffd1805b6124fff543 [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.
//
= DevFaqRenamingMenuItem
:jbake-type: wiki
:jbake-tags: wiki, devfaq, needsreview
:jbake-status: published
:keywords: Apache NetBeans wiki DevFaqRenamingMenuItem
:description: Apache NetBeans wiki DevFaqRenamingMenuItem
:toc: left
:toc-title:
:syntax: true
=== 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 `Bundle.properties` which gives a label for it. Then you can create a file in your suite project like
`branding/modules/''jarname''.jar/''path''/Bundle.properties`
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 link: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 link:http://wiki.netbeans.org/DevFaqRenamingMenuItem[http://wiki.netbeans.org/DevFaqRenamingMenuItem] ,
that was last modified by NetBeans user Jglick
on 2011-12-14T00:19:11Z.
*NOTE:* This document was automatically converted to the AsciiDoc format on 2018-02-07, and needs to be reviewed.