Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
65b8f9ee
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
65b8f9ee
编写于
5月 16, 2012
作者:
A
alexsch
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7158928: [macosx] NLS: Please change the mnemonic assignment system
Reviewed-by: rupashka, serb
上级
81bd727b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
86 addition
and
108 deletion
+86
-108
make/com/apple/osxui/Makefile
make/com/apple/osxui/Makefile
+2
-6
make/common/internal/Resources.gmk
make/common/internal/Resources.gmk
+4
-0
src/macosx/classes/com/apple/laf/AquaLookAndFeel.java
src/macosx/classes/com/apple/laf/AquaLookAndFeel.java
+1
-1
src/macosx/classes/com/apple/laf/resources/aqua.properties
src/macosx/classes/com/apple/laf/resources/aqua.properties
+79
-101
未找到文件。
make/com/apple/osxui/Makefile
浏览文件 @
65b8f9ee
...
...
@@ -65,12 +65,8 @@ FILES_export = \
com/apple/laf/ScreenMenuPropertyHandler.java
\
com/apple/laf/ScreenMenuPropertyListener.java
#RESOURCE_BUNDLES_COMPILED_PROPERTIES += \
# com/apple/laf/resources/aqua.properties \
# com/apple/laf/resources/aqua_de.properties \
# com/apple/laf/resources/aqua_fr.properties \
# com/apple/laf/resources/aqua_ja.properties
RESOURCE_BUNDLES_COMPILED_PROPERTIES
+=
\
com/apple/laf/resources/aqua.properties
#
# Rules
...
...
make/common/internal/Resources.gmk
浏览文件 @
65b8f9ee
...
...
@@ -197,6 +197,10 @@ $(GENSRCDIR)/%.java: $(SHARE_SRC)/classes/%.properties
$(add-property-java-file)
$(GENSRCDIR)/%.java: $(GENSRCDIR)/%.properties
$(add-property-java-file)
ifdef PLATFORM_SRC_MACOS
$(GENSRCDIR)/%.java: $(PLATFORM_SRC_MACOS)/classes/%.properties
$(add-property-java-file)
endif
ifndef OPENJDK
$(GENSRCDIR)/%.java: $(CLOSED_PLATFORM_SRC)/classes/%.properties
$(add-property-java-file)
...
...
src/macosx/classes/com/apple/laf/AquaLookAndFeel.java
浏览文件 @
65b8f9ee
...
...
@@ -250,6 +250,7 @@ public class AquaLookAndFeel extends BasicLookAndFeel {
*/
private
void
initResourceBundle
(
final
UIDefaults
table
)
{
table
.
setDefaultLocale
(
Locale
.
getDefault
());
table
.
addResourceBundle
(
PKG_PREFIX
+
"resources.aqua"
);
try
{
final
ResourceBundle
aquaProperties
=
MacOSXResourceBundle
.
getMacResourceBundle
(
PKG_PREFIX
+
"resources.aqua"
);
final
Enumeration
<
String
>
propertyKeys
=
aquaProperties
.
getKeys
();
...
...
@@ -259,7 +260,6 @@ public class AquaLookAndFeel extends BasicLookAndFeel {
table
.
put
(
key
,
aquaProperties
.
getString
(
key
));
}
}
catch
(
final
Exception
e
)
{
table
.
addResourceBundle
(
PKG_PREFIX
+
"resources.aqua"
);
}
}
...
...
src/macosx/classes/com/apple/laf/resources/aqua.properties
浏览文件 @
65b8f9ee
...
...
@@ -36,45 +36,45 @@
# support.
############ FILE CHOOSER STRINGS #############
FileChooser.fileDescription
Text
=
Generic File
FileChooser.directoryDescription
Text
=
Directory
FileChooser.newFolderError
Text
=
Error occured during folder creation
FileChooser.fileDescription
.textAndMnemonic
=
Generic File
FileChooser.directoryDescription
.textAndMnemonic
=
Directory
FileChooser.newFolderError
.textAndMnemonic
=
Error occured during folder creation
FileChooser.newFolderErrorSeparator
=
:
FileChooser.acceptAllFileFilter
Text
=
All Files
FileChooser.cancelButton
Text
=
Cancel
FileChooser.saveButton
Text
=
Save
FileChooser.openButton
Text
=
Open
FileChooser.saveDialogTitle
Text
=
Save
FileChooser.openDialogTitle
Text
=
Open
FileChooser.updateButton
Text
=
Update
FileChooser.helpButton
Text
=
Help
FileChooser.directoryOpenButton
Text
=
Open
FileChooser.acceptAllFileFilter
.textAndMnemonic
=
All Files
FileChooser.cancelButton
.textAndMnemonic
=
Cancel
FileChooser.saveButton
.textAndMnemonic
=
Save
FileChooser.openButton
.textAndMnemonic
=
Open
FileChooser.saveDialogTitle
.textAndMnemonic
=
Save
FileChooser.openDialogTitle
.textAndMnemonic
=
Open
FileChooser.updateButton
.textAndMnemonic
=
Update
FileChooser.helpButton
.textAndMnemonic
=
Help
FileChooser.directoryOpenButton
.textAndMnemonic
=
Open
# File Size Units
FileChooser.fileSizeKiloBytes
=
{0} KB
FileChooser.fileSizeMegaBytes
=
{0} MB
FileChooser.fileSizeGigaBytes
=
{0} GB
//
Mac-specific
strings
FileChooser.saveTitle
Text
=
Save
FileChooser.openTitle
Text
=
Open
FileChooser.newFolderExistsError
Text
=
That name is already taken
FileChooser.chooseButton
Text
=
Choose
#
Mac-specific strings
FileChooser.saveTitle
.textAndMnemonic
=
Save
FileChooser.openTitle
.textAndMnemonic
=
Open
FileChooser.newFolderExistsError
.textAndMnemonic
=
That name is already taken
FileChooser.chooseButton
.textAndMnemonic
=
Choose
FileChooser.newFolderButton
Text
=
New Folder
FileChooser.newFolderTitle
Text
=
New Folder
FileChooser.fileNameLabel
Text
=
File:
FileChooser.saveDialogFileNameLabel
Text
=
Save As:
FileChooser.filesOfTypeLabel
Text
=
File Format:
FileChooser.newFolderButton
.textAndMnemonic
=
New Folder
FileChooser.newFolderTitle
.textAndMnemonic
=
New Folder
FileChooser.fileNameLabel
.textAndMnemonic
=
File:
FileChooser.saveDialogFileNameLabel
.textAndMnemonic
=
Save As:
FileChooser.filesOfTypeLabel
.textAndMnemonic
=
File Format:
FileChooser.desktopName
=
Desktop
FileChooser.newFolderPrompt
Text
=
Name of new folder:
FileChooser.newFolderPrompt
.textAndMnemonic
=
Name of new folder:
FileChooser.untitledFolderName
=
untitled folder
FileChooser.untitledFileName
=
untitled
FileChooser.createButton
Text
=
Create
FileChooser.createButton
.textAndMnemonic
=
Create
FileChooser.byDate
Text
=
Date Modified
FileChooser.by
NameText
=
Name
FileChooser.byDate
.textAndMnemonic
=
Date Modified
FileChooser.by
.textAndMnemonic
=
Name
FileChooser.newFolderAccessibleName
=
New Folder
FileChooser.mac.newFolder
=
untitled folder
...
...
@@ -82,76 +82,54 @@ FileChooser.mac.newFolder.subsequent=untitled folder {0}
############ COLOR CHOOSER STRINGS #############
ColorChooser.previewText
=
Preview
ColorChooser.okText
=
OK
ColorChooser.cancelText
=
Cancel
ColorChooser.resetText
=
Reset
# VK_XXX constant for 'ColorChooser.resetText' button to make mnemonic
ColorChooser.resetMnemonic
=
82
ColorChooser.sampleText
=
Sample Text Sample Text
ColorChooser.swatchesNameText
=
Swatches
ColorChooser.swatchesMnemonic
=
83
ColorChooser.swatchesDisplayedMnemonicIndex
=
0
ColorChooser.swatchesRecentText
=
Recent:
ColorChooser.hsbNameText
=
HSB
# Each of the ColorChooser types can define a mnemonic, as a KeyEvent.VK_XXX
# constant, and an index into the text to render the mnemonic as. The
# mnemonic is xxxMnemonic and the index of the character to underline is
# xxxDisplayedMnemonicIndex.
ColorChooser.hsbMnemonic
=
72
ColorChooser.hsbDisplayedMnemonicIndex
=
0
ColorChooser.hsbHueText
=
H
ColorChooser.hsbSaturationText
=
S
ColorChooser.hsbBrightnessText
=
B
ColorChooser.hsbRedText
=
R
ColorChooser.hsbGreenText
=
G
ColorChooser.hsbBlueText
=
B
ColorChooser.rgbNameText
=
RGB
ColorChooser.rgbMnemonic
=
71
ColorChooser.rgbDisplayedMnemonicIndex
=
1
ColorChooser.rgbRedText
=
Red
ColorChooser.rgbRedMnemonic
=
68
ColorChooser.rgbGreenText
=
Green
ColorChooser.rgbGreenMnemonic
=
78
ColorChooser.rgbBlueText
=
Blue
ColorChooser.rgbBlueMnemonic
=
66
ColorChooser.preview.textAndMnemonic
=
Preview
ColorChooser.ok.textAndMnemonic
=
OK
ColorChooser.cancel.textAndMnemonic
=
Cancel
ColorChooser.reset.textAndMnemonic
=
&Reset
ColorChooser.sample.textAndMnemonic
=
Sample Text Sample Text
ColorChooser.swatches.textAndMnemonic
=
&Swatches
ColorChooser.swatchesRecent.textAndMnemonic
=
Recent:
ColorChooser.hsb.textAndMnemonic
=
&HSB
ColorChooser.hsbHue.textAndMnemonic
=
H
ColorChooser.hsbSaturation.textAndMnemonic
=
S
ColorChooser.hsbBrightness.textAndMnemonic
=
B
ColorChooser.hsbRed.textAndMnemonic
=
R
ColorChooser.hsbGreen.textAndMnemonic
=
G
ColorChooser.hsbBlue.textAndMnemonic
=
B
ColorChooser.rgb.textAndMnemonic
=
R&GB
ColorChooser.rgbRed.textAndMnemonic
=
Re&d
ColorChooser.rgbGreen.textAndMnemonic
=
Gree&n
ColorChooser.rgbBlue.textAndMnemonic
=
&Blue
############ OPTION PANE STRINGS #############
# Mnemonic keys correspond to KeyEvent.VK_XXX constant
# We only define mnemonics for YES/NO, but for completeness you can
# define mnemonics for any of the buttons.
OptionPane.yesButtonText
=
Yes
OptionPane.yesButtonMnemonic
=
89
OptionPane.noButtonText
=
No
OptionPane.noButtonMnemonic
=
78
OptionPane.okButtonText
=
OK
OptionPane.okButtonMnemonic
=
0
OptionPane.cancelButtonText
=
Cancel
OptionPane.cancelButtonMnemonic
=
0
OptionPane.titleText
=
Select an Option
OptionPane.yesButton.textAndMnemonic
=
&Yes
OptionPane.noButton.textAndMnemonic
=
&No
OptionPane.okButton.textAndMnemonic
=
OK
OptionPane.cancelButton.textAndMnemonic
=
Cancel
OptionPane.title.textAndMnemonic
=
Select an Option
# Title for the dialog for the showInputDialog methods. Only used if
# the developer uses one of the variants that doesn't take a title.
OptionPane.inputDialog
Title
=
Input
OptionPane.inputDialog
.titleAndMnemonic
=
Input
# Title for the dialog for the showMessageDialog methods. Only used if
# the developer uses one of the variants that doesn't take a title.
OptionPane.messageDialog
Title
=
Message
OptionPane.messageDialog
.titleAndMnemonic
=
Message
############ Printing Dialog Strings ############
PrintingDialog.titleProgress
Text
=
Printing
PrintingDialog.titleAborting
Text
=
Printing (Aborting)
PrintingDialog.titleProgress
.textAndMnemonic
=
Printing
PrintingDialog.titleAborting
.textAndMnemonic
=
Printing (Aborting)
PrintingDialog.contentInitial
Text
=
Printing in progress...
PrintingDialog.contentInitial
.textAndMnemonic
=
Printing in progress...
# The following string will be formatted by a MessageFormat
# and {0} will be replaced by page number being printed
PrintingDialog.contentProgress
Text
=
Printed page {0}...
PrintingDialog.contentProgress
.textAndMnemonic
=
Printed page {0}...
PrintingDialog.contentAborting
Text
=
Printing aborting...
PrintingDialog.contentAborting
.textAndMnemonic
=
Printing aborting...
PrintingDialog.abortButtonText
=
Abort
PrintingDialog.abortButtonMnemonic
=
65
PrintingDialog.abortButtonDisplayedMnemonicIndex
=
0
PrintingDialog.abortButtonToolTipText
=
Abort Printing
PrintingDialog.abortButton.textAndMnemonic
=
&Abort
PrintingDialog.abortButtonToolTip.textAndMnemonic
=
Abort Printing
############ Internal Frame Strings ############
InternalFrame.iconButtonToolTip
=
Minimize
...
...
@@ -160,42 +138,42 @@ InternalFrame.restoreButtonToolTip=Restore
InternalFrame.closeButtonToolTip
=
Close
############ Internal Frame Title Pane Strings ############
InternalFrameTitlePane.restoreButton
Text
=
Restore
InternalFrameTitlePane.moveButton
Text
=
Move
InternalFrameTitlePane.sizeButton
Text
=
Size
InternalFrameTitlePane.minimizeButton
Text
=
Minimize
InternalFrameTitlePane.maximizeButton
Text
=
Maximize
InternalFrameTitlePane.closeButton
Text
=
Close
InternalFrameTitlePane.restoreButton
.textAndMnemonic
=
Restore
InternalFrameTitlePane.moveButton
.textAndMnemonic
=
Move
InternalFrameTitlePane.sizeButton
.textAndMnemonic
=
Size
InternalFrameTitlePane.minimizeButton
.textAndMnemonic
=
Minimize
InternalFrameTitlePane.maximizeButton
.textAndMnemonic
=
Maximize
InternalFrameTitlePane.closeButton
.textAndMnemonic
=
Close
############ Text strings #############
# Used for html forms
FormView.submitButton
Text
=
Submit Query
FormView.resetButton
Text
=
Reset
FormView.browseFileButton
Text
=
Browse...
FormView.submitButton
.textAndMnemonic
=
Submit Query
FormView.resetButton
.textAndMnemonic
=
Reset
FormView.browseFileButton
.textAndMnemonic
=
Browse...
############ Abstract Document Strings ############
AbstractDocument.styleChange
Text
=
style change
AbstractDocument.addition
Text
=
addition
AbstractDocument.deletion
Text
=
deletion
AbstractDocument.undo
Text
=
Undo
AbstractDocument.redo
Text
=
Redo
AbstractDocument.styleChange
.textAndMnemonic
=
style change
AbstractDocument.addition
.textAndMnemonic
=
addition
AbstractDocument.deletion
.textAndMnemonic
=
deletion
AbstractDocument.undo
.textAndMnemonic
=
Undo
AbstractDocument.redo
.textAndMnemonic
=
Redo
############ Abstract Button Strings ############
AbstractButton.click
Text
=
click
AbstractButton.click
.textAndMnemonic
=
click
############ Abstract Undoable Edit Strings ############
AbstractUndoableEdit.undo
Text
=
Undo
AbstractUndoableEdit.redo
Text
=
Redo
AbstractUndoableEdit.undo
.textAndMnemonic
=
Undo
AbstractUndoableEdit.redo
.textAndMnemonic
=
Redo
############ Combo Box Strings ############
ComboBox.togglePopup
Text
=
togglePopup
ComboBox.togglePopup
.textAndMnemonic
=
togglePopup
############ Progress Monitor Strings ############
ProgressMonitor.progress
Text
=
Progress...
ProgressMonitor.progress
.textAndMnemonic
=
Progress...
############ Split Pane Strings ############
SplitPane.leftButton
Text
=
left button
SplitPane.rightButton
Text
=
right button
SplitPane.leftButton
.textAndMnemonic
=
left button
SplitPane.rightButton
.textAndMnemonic
=
right button
# Used for Isindex
IsindexView.prompt
=
This is a searchable index. Enter search keywords:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录