2 * Copyright (C) 2007-2012 Mathieu Baudier
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org
.argeo
.demo
.i18n
;
18 import org
.eclipse
.osgi
.util
.NLS
;
21 * Centralizes all internationalized labels accross current application.
22 * Supports both RAP and RCP thanks to the NLSHelper. NOTE that the
23 * corresponding NLSHelperImpl must be available.
25 * thanks to {@link http
26 * ://eclipsesource.com/en/info/rcp-rap-single-sourcing-guideline/}
28 public class I18nDemoMessages
extends NLS
{
30 private static final String BUNDLENAME
= I18nDemoPlugin
.ID
+ ".messages"; // $NON-NLS−1$
33 public String OpenDialog_Title
;
34 public String OpenDialog_Message
;
39 public String SimpleMultitabEditor_MultiSectionPageTitle
;
40 public String SimpleMultitabEditor_SimplePageTitle
;
43 public String MultiSectionPage_DescriptionSectionTitle
;
44 public String MultiSectionPage_DescriptionSectionTxt
;
45 public String MultiSectionPage_DetailsSectionTitle
;
46 public String MultiSectionPage_PopupTitle
;
47 public String MultiSectionPage_PopupText
;
48 public String SimplePage_DescriptionTxt
;
51 public String MultiSectionPage_Btn1Lbl
;
52 public String MultiSectionPage_Btn2Lbl
;
53 public String MultiSectionPage_Btn3Lbl
;
55 // Code that enable handling of concurrent multi sessions locales
57 // initialize resource bundle
58 NLS
.initializeMessages(BUNDLENAME
, I18nDemoMessages
.class);
61 private I18nDemoMessages() {
64 public static I18nDemoMessages
get() {
65 return (I18nDemoMessages
) NLSHelper
.getMessages(BUNDLENAME
,
66 I18nDemoMessages
.class);