]> git.argeo.org Git - lgpl/argeo-commons.git/blob - i18n/I18nDemoMessages.java
Prepare next development cycle
[lgpl/argeo-commons.git] / i18n / I18nDemoMessages.java
1 /*
2 * Copyright (C) 2007-2012 Mathieu Baudier
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16 package org.argeo.demo.i18n;
17
18 import org.eclipse.osgi.util.NLS;
19
20 /**
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.
24 *
25 * thanks to {@link http
26 * ://eclipsesource.com/en/info/rcp-rap-single-sourcing-guideline/}
27 */
28 public class I18nDemoMessages extends NLS {
29
30 private static final String BUNDLENAME = I18nDemoPlugin.ID + ".messages"; // $NON-NLS−1$
31
32 // Errors & warnings
33 public String OpenDialog_Title;
34 public String OpenDialog_Message;
35
36 // Commands
37
38 // Editor
39 public String SimpleMultitabEditor_MultiSectionPageTitle;
40 public String SimpleMultitabEditor_SimplePageTitle;
41
42 // Pages
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;
49
50 // Buttons
51 public String MultiSectionPage_Btn1Lbl;
52 public String MultiSectionPage_Btn2Lbl;
53 public String MultiSectionPage_Btn3Lbl;
54
55 // Code that enable handling of concurrent multi sessions locales
56 static {
57 // initialize resource bundle
58 NLS.initializeMessages(BUNDLENAME, I18nDemoMessages.class);
59 }
60
61 private I18nDemoMessages() {
62 }
63
64 public static I18nDemoMessages get() {
65 return (I18nDemoMessages) NLSHelper.getMessages(BUNDLENAME,
66 I18nDemoMessages.class);
67 }
68 }