1 # Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
   2 #
   3 # Redistribution and use in source and binary forms, with or without
   4 # modification, are permitted provided that the following conditions
   5 # are met:
   6 #
   7 #   - Redistributions of source code must retain the above copyright
   8 #     notice, this list of conditions and the following disclaimer.
   9 #
  10 #   - Redistributions in binary form must reproduce the above copyright
  11 #     notice, this list of conditions and the following disclaimer in the
  12 #     documentation and/or other materials provided with the distribution.
  13 #
  14 #   - Neither the name of Oracle nor the names of its
  15 #     contributors may be used to endorse or promote products derived
  16 #     from this software without specific prior written permission.
  17 #
  18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  19 # IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  20 # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  21 # PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  22 # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  23 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  24 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  25 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  26 # LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  27 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  28 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29 #
  30 
  31 #
  32 # Resource strings for Notepad example
  33 
  34 Title=\u8BB0\u4E8B\u672C
  35 ElementTreeFrameTitle=\u5143\u7D20
  36 
  37 # file Menu definition
  38 #
  39 # Each of the strings that follow form a key to be
  40 # used as the basis of a menu item definition.
  41 #
  42 # open ->  Notepad.openAction
  43 # new  ->  Notepad.newAction
  44 # save ->  Notepad.saveAction
  45 # exit ->  Notepad.exitAction
  46 
  47 fileLabel=\u6587\u4EF6
  48 openLabel=\u6253\u5F00
  49 openImage=resources/open.gif
  50 newLabel=\u65B0\u5EFA
  51 newImage=resources/new.gif
  52 saveLabel=\u4FDD\u5B58
  53 saveImage=resources/save.gif
  54 exitLabel=\u9000\u51FA
  55 
  56 #
  57 # edit Menu definition
  58 #
  59 # cut   -> JTextComponent.cutAction
  60 # copy  -> JTextComponent.copyAction
  61 # paste -> JTextComponent.pasteAction
  62 
  63 editLabel=\u7F16\u8F91
  64 cutLabel=\u526A\u5207
  65 cutImage=resources/cut.gif
  66 copyLabel=\u590D\u5236
  67 copyImage=resources/copy.gif
  68 pasteLabel=\u7C98\u8D34
  69 pasteImage=resources/paste.gif
  70 undoLabel=\u64A4\u6D88
  71 redoLabel=\u91CD\u505A
  72 
  73 #
  74 # debug Menu definition
  75 #
  76 
  77 debugLabel=\u8C03\u8BD5
  78 dumpLabel=\u5C06\u6A21\u578B\u8F6C\u50A8\u5230 System.err
  79 showElementTreeLabel=\u663E\u793A\u5143\u7D20
  80 
  81 # toolbar definition
  82 #
  83 # Each of the strings that follow form a key to be
  84 # used as the basis of the tool definition.  Actions
  85 # are of course sharable, and in this case are shared
  86 # with the menu items.
  87 
  88 newTooltip=\u521B\u5EFA\u65B0\u6587\u4EF6
  89 openTooltip=\u6253\u5F00\u6587\u4EF6
  90 saveTooltip=\u4FDD\u5B58\u6587\u4EF6
  91 cutTooltip=\u526A\u5207\u9009\u5B9A\u5185\u5BB9\u5230\u526A\u5E16\u677F\u4E2D
  92 copyTooltip=\u590D\u5236\u9009\u5B9A\u5185\u5BB9\u5230\u526A\u5E16\u677F\u4E2D
  93 pasteTooltip=\u7C98\u8D34\u9009\u5B9A\u5185\u5BB9\u5230\u526A\u5E16\u677F\u4E2D