L10N of alert dialog
authorJaroslav Tulach <jtulach@netbeans.org>
Tue, 15 Jul 2014 21:16:36 +0200
changeset 731d45df29f6d6f
parent 730 ef743bfe7561
child 732 f6c0850b49b9
L10N of alert dialog
boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java
boot-fx/src/main/resources/org/netbeans/html/boot/fx/Bundle.properties
     1.1 --- a/boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java	Tue Jul 15 21:03:41 2014 +0200
     1.2 +++ b/boot-fx/src/main/java/org/netbeans/html/boot/fx/FXBrwsr.java	Tue Jul 15 21:16:36 2014 +0200
     1.3 @@ -43,6 +43,7 @@
     1.4  package org.netbeans.html.boot.fx;
     1.5  
     1.6  import java.net.URL;
     1.7 +import java.util.ResourceBundle;
     1.8  import java.util.concurrent.CountDownLatch;
     1.9  import java.util.concurrent.Executors;
    1.10  import java.util.logging.Level;
    1.11 @@ -146,8 +147,9 @@
    1.12                  final Stage dialogStage = new Stage();
    1.13                  dialogStage.initModality(Modality.WINDOW_MODAL);
    1.14                  dialogStage.initOwner(stage);
    1.15 -                dialogStage.setTitle("Warning");
    1.16 -                final Button button = new Button("Close");
    1.17 +                ResourceBundle r = ResourceBundle.getBundle("org/netbeans/html/boot/fx/Bundle"); // NOI18N
    1.18 +                dialogStage.setTitle(r.getString("AlertTitle")); // NOI18N
    1.19 +                final Button button = new Button(r.getString("AlertCloseButton")); // NOI18N
    1.20                  final Text text = new Text(t.getData());
    1.21                  VBox box = new VBox();
    1.22                  box.setAlignment(Pos.CENTER);
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/boot-fx/src/main/resources/org/netbeans/html/boot/fx/Bundle.properties	Tue Jul 15 21:16:36 2014 +0200
     2.3 @@ -0,0 +1,42 @@
     2.4 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     2.5 +#
     2.6 +# Copyright 2014 Oracle and/or its affiliates. All rights reserved.
     2.7 +#
     2.8 +# Oracle and Java are registered trademarks of Oracle and/or its affiliates.
     2.9 +# Other names may be trademarks of their respective owners.
    2.10 +#
    2.11 +# The contents of this file are subject to the terms of either the GNU
    2.12 +# General Public License Version 2 only ("GPL") or the Common
    2.13 +# Development and Distribution License("CDDL") (collectively, the
    2.14 +# "License"). You may not use this file except in compliance with the
    2.15 +# License. You can obtain a copy of the License at
    2.16 +# http://www.netbeans.org/cddl-gplv2.html
    2.17 +# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
    2.18 +# specific language governing permissions and limitations under the
    2.19 +# License.  When distributing the software, include this License Header
    2.20 +# Notice in each file and include the License file at
    2.21 +# nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
    2.22 +# particular file as subject to the "Classpath" exception as provided
    2.23 +# by Oracle in the GPL Version 2 section of the License file that
    2.24 +# accompanied this code. If applicable, add the following below the
    2.25 +# License Header, with the fields enclosed by brackets [] replaced by
    2.26 +# your own identifying information:
    2.27 +# "Portions Copyrighted [year] [name of copyright owner]"
    2.28 +#
    2.29 +# If you wish your version of this file to be governed by only the CDDL
    2.30 +# or only the GPL Version 2, indicate your decision by adding
    2.31 +# "[Contributor] elects to include this software in this distribution
    2.32 +# under the [CDDL or GPL Version 2] license." If you do not indicate a
    2.33 +# single choice of license, a recipient has the option to distribute
    2.34 +# your version of this file under either the CDDL, the GPL Version 2 or
    2.35 +# to extend the choice of license to its licensees as provided above.
    2.36 +# However, if you add GPL Version 2 code and therefore, elected the GPL
    2.37 +# Version 2 license, then the option applies only if the new code is
    2.38 +# made subject to such option by the copyright holder.
    2.39 +#
    2.40 +# Contributor(s):
    2.41 +#
    2.42 +# Portions Copyrighted 2014 Sun Microsystems, Inc.
    2.43 +
    2.44 +AlertTitle=Warning
    2.45 +AlertCloseButton=Close