Source Code Cross Referenced for LocaleUtil.java in  » Portal » stringbeans-3.5 » com » nabhinc » portal » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » stringbeans 3.5 » com.nabhinc.portal.core 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /* 
002:         * (C) Copyright 2006 Nabh Information Systems, Inc. 
003:         * 
004:         * This program is free software; you can redistribute it and/or
005:         * modify it under the terms of the GNU General Public License 
006:         * as published by the Free Software Foundation; either version 2
007:         * of the License, or (at your option) any later version.
008:         * 
009:         * This program is distributed in the hope that it will be useful,
010:         * but WITHOUT ANY WARRANTY; without even the implied warranty of 
011:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
012:         * GNU General Public License for more details.
013:         * 
014:         * You should have received a copy of the GNU General Public License
015:         * along with this program; if not, write to the Free Software 
016:         * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
017:         * 
018:         */
019:        package com.nabhinc.portal.core;
020:
021:        import java.io.IOException;
022:        import java.util.Enumeration;
023:        import java.util.HashMap;
024:        import java.util.Iterator;
025:        import java.util.Locale;
026:        import java.util.Properties;
027:        import java.util.Set;
028:
029:        import javax.servlet.ServletConfig;
030:
031:        import com.nabhinc.util.IOUtil;
032:
033:        /**
034:         *  
035:         *
036:         * @author Padmanabh Dabke
037:         * (c) 2006 Nabh Information Systems, Inc. All Rights Reserved.
038:         */
039:        public class LocaleUtil {
040:            public static final int CHARSET = 0;
041:            public static final int PAGE_DIRECTION = 1;
042:            public static final int APP_TITLE = 2; //TODO: Remove
043:            public static final int ALL_RIGHTS_RESERVED = 3;
044:            public static final int WEEKDAYS = 4;
045:            public static final int MONTH_NAMES = 5;
046:            public static final int DATE_FORMAT = 6;
047:            public static final int LOCALE_NAME = 7; // TODO: Not being used
048:
049:            public static final int WELCOME = 8;
050:            public static final int LOGOUT = 9;
051:            public static final int PERSONALIZE_TOPLINK = 10; //TODO: Remove
052:            public static final int EDIT_PROFILE_TOPLINK = 11; //TODO Remove
053:            public static final int MY_PORTAL_TOPLINK = 12;
054:            public static final int EXIT_TOPLINK = 13;
055:
056:            public static final int DELETE_PORTLET_TOOLTIP = 14;
057:            public static final int MINIMIZE_PORTLET_TOOLTIP = 15;
058:            public static final int RESTORE_MODE_TOOLTIP = 16;
059:            public static final int MAXIMUM_MODE_TOOLTIP = 17;
060:            public static final int DETACHED_MODE_TOOLTIP = 18;
061:            public static final int VIEW_PORTLET_MODE_TOOLTIP = 19;
062:            public static final int EDIT_PORTLET_MODE_TOOLTIP = 20;
063:            public static final int HELP_PORTLET_MODE_TOOLTIP = 21;
064:
065:            public static final int SECURE_URL_TOOLTIP = 22;
066:            public static final int NON_SECURE_URL_TOOLTIP = 23;
067:
068:            public static final int DELETE_PORTLET_CONFIRM = 24;
069:            public static final int DELETE_PAGE_CONFIRM = 25;
070:            public static final int UNMODIFIABLE_TOOLTIP = 26;
071:            public static final int DELETE_PAGE_TOOLTIP = 27;
072:            public static final int EDIT_PAGE_TOOLTIP = 28;
073:            public static final int DELETE_PAGE_DENY_TOOLTIP = 29;
074:
075:            public static final int DONE_LABEL = 30;
076:            public static final int APPLY_LABEL = 31;
077:            public static final int CONTINUE_LABEL = 32;
078:            public static final int DELETE_LABEL = 33;
079:            public static final int CANCEL_LABEL = 34;
080:            public static final int SAVE_LABEL = 35;
081:            public static final int RESET_LABEL = 36;
082:            public static final int ADD_LABEL = 37;
083:
084:            public static final int PORTAL_CONFIGURATION = 38;
085:            public static final int CREATE_PAGE = 39;
086:            public static final int DELETE_PAGE = 40;
087:            public static final int EDIT_PAGE = 41;
088:
089:            public static final int COLOR_SCHEME = 42;
090:            public static final int PREFERRED_LANG = 43;
091:            public static final int DEFAULT_PAGE = 44;
092:
093:            public static final int PAGE_REFRESH = 45;
094:            public static final int REFRESH_NEVER = 46;
095:            public static final int REFRESH_15_SECONDS = 47;
096:            public static final int REFRESH_30_SECONDS = 48;
097:            public static final int REFRESH_1_MINUTE = 49;
098:            public static final int REFRESH_5_MINUTES = 50;
099:            public static final int REFRESH_15_MINUTES = 51;
100:
101:            public static final int CHOOSE_PAGE_LAYOUT = 52;
102:
103:            public static final int DELETE_PAGE_DENY = 53;
104:            public static final int SUCCESS_CREATE_PAGE_MESSAGE = 54;
105:
106:            public static final int CHOOSE_PORTLET_FORM_TITLE = 55;
107:
108:            public static final int DEFAULT_NEW_PAGE_NAME = 56;
109:            public static final int PAGE_NAME_LABEL = 57;
110:            public static final int PAGE_WIDTH_LABEL = 58;
111:            public static final int MENU_WIDTH_LABEL = 59;
112:            public static final int PORTLET_WIDTH_LABEL = 60;
113:            public static final int MENU_OPTION_LABEL = 61;
114:            public static final int NO_SELECTION_OPTION_LABEL = 62;
115:
116:            public static final int PAGE_CONTENT_FORM_TITLE = 63;
117:            public static final int GRID_COLUMN_HEADER_LABEL = 64;
118:            public static final int HIDE_BORDER_HEADER_LABEL = 65;
119:            public static final int HIDE_TITLE_HEADER_LABEL = 66;
120:
121:            public static final int MENU_OPTION_MOVE_UP_LABEL = 67;
122:            public static final int MENU_OPTION_MOVE_DOWN_LABEL = 68;
123:            public static final int MENU_ADD_NEW_OPTION_LABEL = 69;
124:
125:            public static final int DELETE_TOOLTIP = 70;
126:            public static final int MOVE_LEFT_TOOLTIP = 71;
127:            public static final int MOVE_RIGHT_TOOLTIP = 72;
128:            public static final int MOVE_UP_TOOLTIP = 73;
129:            public static final int MOVE_DOWN_TOOLTIP = 74;
130:            public static final int HIDE_TITLE_TOOLTIP = 75;
131:            public static final int SHOW_TITLE_TOOLTIP = 76;
132:            public static final int HIDE_BORDER_TOOLTIP = 77;
133:            public static final int SHOW_BORDER_TOOLTIP = 78;
134:
135:            public static final int PORTLET_DIRECTORY_LINK_LABEL = 79;
136:            public static final int NO_PREFERENCE_LANG_LABEL = 80;
137:
138:            public static final int LOGOUT_CONFIRMATION = 81;
139:            //public static final int LOGIN_LABEL = 80;
140:
141:            public static final int ERROR_GENERAL_TITLE = 82;
142:            public static final int ERROR_GENERAL_HEADER = 83;
143:            public static final int ERROR_GENERAL_MESSAGE = 84;
144:            public static final int ERROR_404_HEADER = 85;
145:            public static final int ERROR_404_MESSAGE = 86;
146:            public static final int ERROR_500_HEADER = 87;
147:            public static final int ERROR_500_MESSAGE = 88;
148:            public static final int ERROR_APP_CONF_MESSAGE = 89;
149:            public static final int ERROR_MALFORMED_URL_MESSAGE = 90;
150:            public static final int ERROR_USER_CONF_MESSAGE = 91;
151:            public static final int ERROR_PROCESS_ACTION_MESSAGE = 92;
152:
153:            public static final int HOME_PAGE_TOPLINK = 93;
154:            public static final int SIGN_IN_TOPLINK = 94;
155:            public static final int NO_CONTENT_MESSAGE = 95;
156:
157:            public static final int TOP_ROW_PORTLET_HEADER_LABEL = 96;
158:            public static final int BOTTOM_ROW_PORTLET_HEADER_LABEL = 97;
159:            public static final int MAIN_TAB_PORTLET_HEADER_LABEL = 98;
160:            public static final int TAB_OPTION_HEADER_LABEL = 99;
161:            public static final int TAB_HEADER_OPTION_LABEL = 100;
162:            public static final int PORTLET_HEADER_LABEL = 101;
163:            public static final int OPTION_LEVEL_HEADER_LABEL = 102;
164:            public static final int ADDITIONAL_PORTLET_HEADER_LABEL = 103;
165:            public static final int LEFT_COLUMN_PORTLET_HEADER_LABEL = 104;
166:            public static final int RIGHT_COLUMN_PORTLET_HEADER_LABEL = 105;
167:            public static final int MAIN_TREE_PORTLET_HEADER_LABEL = 106;
168:            public static final int TREE_HEADER_LABEL = 107;
169:            public static final int TREE_HEADER_OPTION_LABEL = 108;
170:            public static final int MAIN_MENU_PORTLET_HEADER_LABEL = 109;
171:            public static final int MENU_HEADER_OPTION_LABEL = 110;
172:            public static final int ABOVE_MENU_PORTLET_HEADER_LABEL = 111;
173:            public static final int BELOW_MENU_PORTLET_HEADER_LABEL = 112;
174:            public static final int ROOT_LEVEL_LABEL = 113;
175:            public static final int NO_PORTLET_SELECTED_MESSAGE_LABEL = 114;
176:            public static final int CHANGE_LABEL = 115;
177:            public static final int CREATE_NEW_PAGE_TOOLTIP = 116;
178:
179:            public static final int NEW_PAGE_ORDER_SELECTION_LABEL = 117;
180:            public static final int PAGE_REORDER_SELECTION_LABEL = 118;
181:            public static final int LAST_ORDER_OPTION_LABEL = 119;
182:            public static final int EMBEDDED_PAGE_LABEL = 120;
183:            public static final int PRECONFIGURED_PAGES_HEADER_LABEL = 121;
184:            public static final int MY_PAGES_LABEL = 122;
185:            public static final int PAGE_MANAGEMENT_HEADER = 123;
186:            public static final int GENERAL_PREFERENCES_HEADER = 124;
187:            public static final int EMBEDDED_PAGE_FOOTNOTE = 125;
188:            public static final int REFRESH_PORTLET_TOOLTIP = 126;
189:            public static final int ADMIN_PORTLET_MODE_TOOLTIP = 127;
190:
191:            public static final int MAIN_CASCADING_PORTLET_HEADER_LABEL = 128;
192:            public static final int CASCADING_HEADER_LABEL = 129;
193:            public static final int CASCADING_HEADER_OPTION_LABEL = 130;
194:
195:            public static final int MAIN_HORIZONTAL_MENU_PORTLET_HEADER_LABEL = 131;
196:            public static final int HORIZONTAL_MENU_HEADER_LABEL = 132;
197:
198:            public static final int CAPTCHA_ANSWER = 133;
199:            public static final int ERROR_CAPTCHA_ANSWER_MESSAGE = 134;
200:            public static final int ERROR_LOGIN_INVALID_MESSAGE = 135;
201:            public static final int ERROR_LOGIN_INTERNAL_MESSAGE = 136;
202:
203:            // moved from login_constants
204:            public static final int USERNAME = 137;
205:            public static final int PASSWORD = 138;
206:            public static final int FIRST_NAME = 139;
207:            public static final int LAST_NAME = 140;
208:            public static final int BUSINESS_PHONE = 141;
209:            public static final int EMAIL = 142;
210:
211:            public static final int LOGIN_LABEL = 143;
212:            public static final int NOT_REGISTERED = 144; //TODO: Obsolete
213:            public static final int SIGN_UP_NOW = 145;
214:            public static final int FORGOT_PASSWORD = 146; //TODO: Obsolete
215:            public static final int RESET_PASSWORD = 147;
216:
217:            public static final int NEW_USER_EMAIL_SUBJECT = 148;
218:            public static final int NEW_USER_EMAIL_MESSAGE = 149;
219:            public static final int FAILED_SEND_EMAIL_ERROR_MESSAGE = 150;
220:            public static final int SUCCESS_SEND_CONFIRM_MESSAGE = 151;
221:            public static final int EMAIL_REGARDS = 152;
222:
223:            public static final int FAILED_TO_SAVE_ERROR_MESSAGE = 153;
224:            public static final int USER_NOT_FOUND_ERROR_MESSAGE = 154;
225:            public static final int GOTO_LOGIN_FORM_LABEL = 155;
226:            //public static final int CANCEL_LABEL = 150;
227:            public static final int RESET_PASSWORD_EMAIL_SUBJECT = 156;
228:            public static final int RESET_PASSWORD_EMAIL_MESSAGE = 157;
229:            public static final int SUCCESS_SEND_RESET_PASSWORD_MESSAGE = 158;
230:
231:            public static final int REGISTER_ERROR_MESSAGE_HEADER = 159; //TODO: Removed
232:            public static final int USER_REGISTRATION_FORM_TITLE = 160; //TODO: Removed
233:            public static final int REGISTER_LABEL = 161;
234:            public static final int RESET_PASSWORD_FORM_TITLE = 162;
235:            public static final int RESET_PASSWORD_LABEL = 163;
236:
237:            public static final int FORM_FOOTNOTES = 164;
238:            public static final int REGISTER_FORM_NOTES = 165;
239:            public static final int RESET_PASSWORD_FORM_NOTES = 166;
240:
241:            public static final int REMEMBER_MY_USERNAME_LABEL = 167;
242:            public static final int REMEMBER_ME_LABEL = 168;
243:
244:            public static final int FORGOT_USERNAME = 169;
245:            public static final int REQUEST_USERNAME = 170;
246:            public static final int REQUEST_USERNAME_EMAIL_SUBJECT = 171;
247:            public static final int REQUEST_USERNAME_EMAIL_MESSAGE = 172;
248:            public static final int SUCCESS_SEND_USERNAME_MESSAGE = 173;
249:            public static final int REQUEST_USERNAME_FORM_TITLE = 174;
250:            public static final int REQUEST_USERNAME_LABEL = 175;
251:            public static final int REQUEST_USERNAME_FORM_NOTES = 176;
252:
253:            public static final int ERROR_REG_USERNAME_BLANK = 177;
254:            public static final int ERROR_REG_USERNAME_LENGTH = 178;
255:            public static final int ERROR_REG_FIRST_NAME_BLANK = 179;
256:            public static final int ERROR_REG_FIRST_NAME_LENGTH = 180;
257:            public static final int ERROR_REG_LAST_NAME_BLANK = 181;
258:            public static final int ERROR_REG_LAST_NAME_LENGTH = 182;
259:            public static final int ERROR_REG_PHONE_NUMBER_LENGTH = 183;
260:            public static final int ERROR_REG_EMAIL_LENGTH = 184;
261:            public static final int ERROR_REG_EMAIL_BLANK = 185;
262:            public static final int ERROR_REG_USERNAME_EXIST = 186;
263:            public static final int ERROR_REG_EMAIL_EXIST = 187;
264:
265:            public static final int ERROR_ACCESS_DENIED_MESSAGE = 188;
266:
267:            public static final int MAIN_CONTENT_SELECTION_HEADER_LABEL = 189;
268:            public static final int NEW_USER_EMAIL_NOTES = 190;
269:            public static final int TEMPORARY_PASSWORD = 191;
270:            public static final int RESET_PASSWORD_EMAIL_NOTES = 192;
271:            public static final int REQUESTED_USERNAME = 193;
272:            public static final int REQUESTED_USERNAME_EMAIL_NOTES = 194;
273:
274:            private static ServletConfig servletConfig = null;
275:            private static Properties defaultProps = new Properties();
276:            private static HashMap localeMap = new HashMap();
277:            private static HashMap propertyMap = new HashMap();
278:
279:            public static void init(ServletConfig config) throws IOException {
280:                LocaleUtil.servletConfig = config;
281:                reinit();
282:            }
283:
284:            @SuppressWarnings("unchecked")
285:            public static void reinit() throws IOException {
286:
287:                Set localeFiles = LocaleUtil.servletConfig.getServletContext()
288:                        .getResourcePaths("/WEB-INF/locales/");
289:                if (localeFiles != null) {
290:                    defaultProps.clear();
291:                    localeMap.clear();
292:                    propertyMap.clear();
293:
294:                    Iterator localeIter = localeFiles.iterator();
295:                    defaultProps.load(LocaleUtil.servletConfig
296:                            .getServletContext().getResourceAsStream(
297:                                    "/WEB-INF/locales/sb_default.properties"));
298:                    IOUtil.convertToUTF(defaultProps, "ISO-8859-1");
299:                    localeMap.put("default", getLocaleLabels(defaultProps));
300:                    propertyMap.put("default", defaultProps);
301:
302:                    while (localeIter.hasNext()) {
303:                        String localePath = (String) localeIter.next();
304:                        String filename = localePath.substring(localePath
305:                                .lastIndexOf("/") + 1);
306:                        if (!(filename.startsWith("sb_") && filename
307:                                .endsWith(".properties"))
308:                                || (filename.equals("sb_default.properties")))
309:                            continue;
310:                        Properties props = new java.util.Properties();
311:                        props.load(LocaleUtil.servletConfig.getServletContext()
312:                                .getResourceAsStream(localePath));
313:                        IOUtil.convertToUTF(props, "ISO-8859-1");
314:
315:                        // Add keys missing in the locale but defined in default
316:                        Enumeration defaultKeys = defaultProps.keys();
317:                        while (defaultKeys.hasMoreElements()) {
318:                            String key = (String) defaultKeys.nextElement();
319:                            if (props.get(key) == null) {
320:                                props.put(key, defaultProps.get(key));
321:                            }
322:                        }
323:
324:                        String loc = filename.substring(3, filename
325:                                .indexOf("."));
326:                        propertyMap.put(loc, props);
327:                        localeMap.put(loc, getLocaleLabels(props));
328:                    }
329:                }
330:            }
331:
332:            public static Properties getProperties(String locale) {
333:                Properties prop = (Properties) LocaleUtil.propertyMap
334:                        .get(locale);
335:                if (prop == null)
336:                    return defaultProps;
337:                return prop;
338:
339:            }
340:
341:            public static Properties getDefaultLocaleProperties() {
342:                return LocaleUtil.defaultProps;
343:
344:            }
345:
346:            public static String getDefaultLocaleValue(String key) {
347:                String val = defaultProps.getProperty(key);
348:                if (val == null)
349:                    return key;
350:                return val;
351:            }
352:
353:            public static String getLocalizedValue(String key,
354:                    Properties localeProps) {
355:                if (key == null)
356:                    return null;
357:                String val = localeProps.getProperty(key);
358:                if (val == null)
359:                    return key;
360:                return val;
361:            }
362:
363:            public static String getLocalizedValue(String key, String locality) {
364:                Properties prop = (Properties) LocaleUtil.propertyMap
365:                        .get(locality);
366:                if (prop == null)
367:                    prop = defaultProps;
368:                String val = prop.getProperty(key);
369:                if (val == null)
370:                    return key;
371:                return val;
372:            }
373:
374:            public static HashMap getLocaleMap() {
375:                return LocaleUtil.localeMap;
376:            }
377:
378:            public static String[] getLocalizedStringArray(Locale locale) {
379:                String[] sArray = (String[]) localeMap.get(locale.toString());
380:                if (sArray == null)
381:                    return (String[]) localeMap.get("default");
382:                return sArray;
383:            }
384:
385:            public static Properties getLocaleProperties(String locality) {
386:                return (Properties) propertyMap.get(locality);
387:            }
388:
389:            public static Properties getLocaleProperties(Locale locale) {
390:                Properties props = (Properties) propertyMap.get(locale
391:                        .toString());
392:                if (props == null)
393:                    return defaultProps;
394:                return props;
395:            }
396:
397:            private static String[] getLocaleLabels(Properties props) {
398:                return new String[] {
399:                        props.getProperty("sb.charset"), /* 0 */
400:                        props.getProperty("sb.page_direction"), /* 1 */
401:                        props.getProperty("sb.portal.title"), /* 2 *///TODO: REmove
402:                        props.getProperty("sb.all_rights_reserved"), /* 3 */
403:                        props.getProperty("sb.weekdays"), /* 5 */
404:                        props.getProperty("sb.month_names"), /* 6 */
405:                        props.getProperty("sb.date_format"), /* 7 */
406:                        props.getProperty("sb.locale_name"), /* 8 *///TODO: REMOVE
407:
408:                        props.getProperty("sb.portal.welcome"), /* 9 */
409:                        props.getProperty("sb.portal.logout"), /* 10 */
410:                        props.getProperty("sb.portal.personalize_toplink"), /* 11 *///TODO: REMOVE
411:                        props.getProperty("sb.portal.edit_profile_toplink"), /* 12 *///TODO: REMOVE
412:                        props.getProperty("sb.portal.my_portal_toplink"), /* 13 *///TODO: replaced by: my_toplink
413:                        props.getProperty("sb.portal.exit_toplink"), /* 14 *///TODO: replaced by: logout_toplink
414:
415:                        props.getProperty("sb.portal.delete_portlet_tooltip"), /* 15 */
416:                        props.getProperty("sb.portal.minimize_mode_tooltip"), /* 16 */
417:                        props.getProperty("sb.portal.restore_mode_tooltip"), /* 17 */
418:                        props.getProperty("sb.portal.maximum_mode_tooltip"), /* 18 */
419:                        props.getProperty("sb.portal.detached_mode_tooltip"), /* 19 */
420:                        props
421:                                .getProperty("sb.portal.view_portlet_mode_tooltip"), /* 20 */
422:                        props
423:                                .getProperty("sb.portal.edit_portlet_mode_tooltip"), /* 21 */
424:                        props
425:                                .getProperty("sb.portal.help_portlet_mode_tooltip"), /* 22 */
426:
427:                        props.getProperty("sb.portal.secure_url_icon_tooltip"), /* 23 */
428:                        props
429:                                .getProperty("sb.portal.non_secure_url_icon_tooltip"), /* 24 */
430:
431:                        props
432:                                .getProperty("sb.personalize.delete_portlet_confirm_message"), /* 25 */
433:                        props
434:                                .getProperty("sb.personalize.delete_page_confirm_message"), /* 26 */
435:                        props
436:                                .getProperty("sb.personalize.unmodifiable_page_tooltip"), /* 27 */
437:                        props.getProperty("sb.personalize.delete_page_tooltip"), /* 28 */
438:                        props.getProperty("sb.personalize.edit_page_tooltip"), /* 29 */
439:                        props
440:                                .getProperty("sb.personalize.delete_page_deny_message"), /* 30 */
441:
442:                        props.getProperty("sb.personalize.done_label"), /* 31 */
443:                        props.getProperty("sb.personalize.apply_label"), /* 32 */
444:                        props.getProperty("sb.personalize.continue_label"), /* 33 */
445:                        props.getProperty("sb.personalize.delete_label"), /* 34 */
446:                        props.getProperty("sb.personalize.cancel_label"), /* 35 */
447:                        props.getProperty("sb.personalize.save_label"), /* 36 */
448:                        props.getProperty("sb.personalize.reset_label"), /* 37 */
449:                        props.getProperty("sb.personalize.add_label"), /* 38 */
450:
451:                        props
452:                                .getProperty("sb.personalize.portal_config_header"), /* 39 */
453:                        props.getProperty("sb.personalize.create_page_header"), /* 40 */
454:                        props.getProperty("sb.personalize.delete_page_header"), /* 41 */
455:                        props.getProperty("sb.personalize.edit_page_header"), /* 42 */
456:
457:                        props.getProperty("sb.personalize.theme_option_label"), /* 43 */
458:                        props
459:                                .getProperty("sb.personalize.preferred_languange_option_label"), /* 44 */
460:                        props
461:                                .getProperty("sb.personalize.default_page_option_label"), /* 45 */
462:
463:                        props
464:                                .getProperty("sb.personalize.page_refresh_option_label"), /* 46 */
465:                        props
466:                                .getProperty("sb.personalize.refresh_never_option_label"), /* 47 */
467:                        props
468:                                .getProperty("sb.personalize.refresh_15_seconds_option_label"), /* 48 */
469:                        props
470:                                .getProperty("sb.personalize.refresh_30_seconds_option_label"), /* 49 */
471:                        props
472:                                .getProperty("sb.personalize.refresh_1_minute_option_label"), /* 50 */
473:                        props
474:                                .getProperty("sb.personalize.refresh_5_minutes_option_label"), /* 51 */
475:                        props
476:                                .getProperty("sb.personalize.refresh_15_minutes_option_label"), /* 52 */
477:
478:                        props
479:                                .getProperty("sb.personalize.choose_page_layout_option_label"), /* 53 */
480:
481:                        props
482:                                .getProperty("sb.personalize.delete_page_deny_message"), /* 54 */
483:                        props
484:                                .getProperty("sb.personalize.success_create_page_message"), /* 55 */
485:
486:                        props
487:                                .getProperty("sb.personalize.choose_portlet_form_title"), /* 56 */
488:
489:                        props
490:                                .getProperty("sb.personalize.default_new_page_name"),
491:                        props.getProperty("sb.personalize.page_name_label"),
492:                        props.getProperty("sb.personalize.page_width_label"),
493:                        props.getProperty("sb.personalize.menu_width_label"),
494:                        props.getProperty("sb.personalize.portlet_width_label"),
495:                        props.getProperty("sb.personalize.menu_option_label"),
496:                        props
497:                                .getProperty("sb.personalize.no_selection_option_label"),
498:
499:                        props
500:                                .getProperty("sb.personalize.page_content_form_title"),
501:                        props
502:                                .getProperty("sb.personalize.grid_column_header_label"),
503:                        props
504:                                .getProperty("sb.personalize.hide_border_header_label"),
505:                        props
506:                                .getProperty("sb.personalize.hide_title_header_label"),
507:
508:                        props
509:                                .getProperty("sb.personalize.menu_option_move_up_label"),
510:                        props
511:                                .getProperty("sb.personalize.menu_option_move_down_label"),
512:                        props
513:                                .getProperty("sb.personalize.menu_add_new_option_label"),
514:
515:                        props
516:                                .getProperty("sb.personalize.delete_portlet_tooltip"),
517:                        props.getProperty("sb.personalize.move_left_tooltip"),
518:                        props.getProperty("sb.personalize.move_right_tooltip"),
519:                        props.getProperty("sb.personalize.move_up_tooltip"),
520:                        props.getProperty("sb.personalize.move_down_tooltip"),
521:                        props.getProperty("sb.personalize.hide_title_tooltip"),
522:                        props.getProperty("sb.personalize.show_title_tooltip"),
523:                        props.getProperty("sb.personalize.hide_border_tooltip"),
524:                        props.getProperty("sb.personalize.show_border_tooltip"),
525:
526:                        props
527:                                .getProperty("sb.personalize.portlet_directory_link_label"),
528:                        props
529:                                .getProperty("sb.personalize.no_preference_lang_selected_label"),
530:                        props.getProperty("sb.portal.logout_confirmation"),
531:                        //props.getProperty("sb.portal.login_label"),
532:
533:                        props.getProperty("sb.error.title"),
534:                        props.getProperty("sb.error.header"),
535:                        props.getProperty("sb.error.general_msg"),
536:                        props.getProperty("sb.error.404_header"),
537:                        props.getProperty("sb.error.404_msg"),
538:                        props.getProperty("sb.error.500_header"),
539:                        props.getProperty("sb.error.500_msg"),
540:                        props.getProperty("sb.error.app_conf_error_msg"),
541:                        props.getProperty("sb.error.malformed_url_error_msg"),
542:                        props.getProperty("sb.error.user_conf_error_msg"),
543:                        props.getProperty("sb.error.process_action_error_msg"),
544:
545:                        props.getProperty("sb.portal.home_page_portallink"),
546:                        props.getProperty("sb.portal.sign_in_portallink"),
547:                        props.getProperty("sb.portal.no_content_message"),
548:                        props
549:                                .getProperty("sb.personalize.top_row_portlet_header"),
550:                        props
551:                                .getProperty("sb.personalize.bottom_row_portlet_header"),
552:                        props
553:                                .getProperty("sb.personalize.main_tab_portlet_header"),
554:
555:                        props
556:                                .getProperty("sb.personalize.tab_option_label_header"),
557:                        props
558:                                .getProperty("sb.personalize.tab_header_option_label"),
559:
560:                        props
561:                                .getProperty("sb.personalize.portlet_selection_header"),
562:                        props.getProperty("sb.personalize.option_level_header"),
563:                        props
564:                                .getProperty("sb.personalize.additional_portlet_header"),
565:                        props
566:                                .getProperty("sb.personalize.left_column_portlet_header"),
567:                        props
568:                                .getProperty("sb.personalize.right_column_portlet_header"),
569:                        props
570:                                .getProperty("sb.personalize.main_tree_portlet_header"),
571:                        props
572:                                .getProperty("sb.personalize.tree_option_label_header"),
573:                        props
574:                                .getProperty("sb.personalize.tree_header_option_label"),
575:                        props
576:                                .getProperty("sb.personalize.main_menu_portlet_header"),
577:                        props
578:                                .getProperty("sb.personalize.menu_header_option_label"),
579:                        props
580:                                .getProperty("sb.personalize.portlet_above_menu_panel_header"),
581:                        props
582:                                .getProperty("sb.personalize.portlet_below_menu_panel_header"),
583:                        props.getProperty("sb.personalize.root_level_label"),
584:                        props
585:                                .getProperty("sb.personalize.no_portlet_selected_message"),
586:                        props.getProperty("sb.personalize.change_label"),
587:                        props
588:                                .getProperty("sb.personalize.create_new_page_tooltip"),
589:                        props
590:                                .getProperty("sb.personalize.new_page_order_selection_label"),
591:                        props
592:                                .getProperty("sb.personalize.page_reorder_selection_label"),
593:                        props
594:                                .getProperty("sb.personalize.last_order_option_label"),
595:                        props.getProperty("sb.personalize.embedded_page_label"),
596:                        props
597:                                .getProperty("sb.personalize.preconfigured_pages_header_label"),
598:                        props.getProperty("sb.personalize.my_pages_label"),
599:                        props
600:                                .getProperty("sb.personalize.page_management_header"),
601:                        props
602:                                .getProperty("sb.personalize.general_preferences_header"),
603:                        props
604:                                .getProperty("sb.personalize.embedded_pages_footnote"),
605:                        props.getProperty("sb.portal.refresh_portlet_tooltip"),
606:                        props
607:                                .getProperty("sb.portal.admin_portlet_mode_tooltip"),
608:
609:                        props
610:                                .getProperty("sb.personalize.main_cascading_portlet_header"),
611:                        props
612:                                .getProperty("sb.personalize.cascading_option_label_header"),
613:                        props
614:                                .getProperty("sb.personalize.cascading_header_option_label"),
615:
616:                        props
617:                                .getProperty("sb.personalize.main_horizontal_menu_portlet_header"),
618:                        props
619:                                .getProperty("sb.personalize.horizontal_menu_option_label_header"),
620:
621:                        props.getProperty("sb.portal.captcha_answer_label"),
622:                        props
623:                                .getProperty("sb.portal.error.invalid_captcha_answer_msg"),
624:                        props.getProperty("sb.portal.error.login_invalid_msg"),
625:                        props
626:                                .getProperty("sb.portal.error.login_internal_error_msg"),
627:
628:                        // moved from login_common.jsp
629:                        props.getProperty("sb.portal.login_username_label"),
630:                        props.getProperty("sb.portal.login_password_label"),
631:                        props.getProperty("sb.portal.login_first_name_label"),
632:                        props.getProperty("sb.portal.login_last_name_label"),
633:                        props
634:                                .getProperty("sb.portal.login_business_phone_label"),
635:                        props.getProperty("sb.portal.login_email_label"),
636:
637:                        props.getProperty("sb.portal.login_label"),
638:                        props.getProperty("sb.portal.login_not_registered"), //TODO: Obsolete
639:                        props.getProperty("sb.portal.login_sign_up"),
640:                        props.getProperty("sb.portal.login_forgot_password"), //TODO: Obsolete
641:                        props.getProperty("sb.portal.login_reset_password"),
642:
643:                        props
644:                                .getProperty("sb.portal.register_email_confirm_subjet"),
645:                        props
646:                                .getProperty("sb.portal.register_email_confirm_message"),
647:                        props
648:                                .getProperty("sb.portal.register_failed_send_email_error_message"),
649:                        props
650:                                .getProperty("sb.portal.register_success_send_confirm_message"),
651:                        props.getProperty("sb.portal.register_email_regards"),
652:
653:                        props
654:                                .getProperty("sb.portal.register_failed_to_save_error_message"), //TODO: Remove
655:                        props
656:                                .getProperty("sb.portal.register_user_not_found_error_message"), //TODO: Remove
657:                        props
658:                                .getProperty("sb.portal.register_goto_login_form_label"), //TODO: Remove
659:                        //props.getProperty("sb.portal.cancel_label"),
660:                        props
661:                                .getProperty("sb.portal.login_reset_password_email_subject"),
662:                        props
663:                                .getProperty("sb.portal.login_reset_password_email_message"),
664:                        props
665:                                .getProperty("sb.portal.login_success_send_reset_password_message"),
666:
667:                        props
668:                                .getProperty("sb.portal.register_error_message_header"), //TODO: Remove
669:                        props.getProperty("sb.portal.register_form_title"), //TODO: Remove
670:                        props
671:                                .getProperty("sb.portal.register_submit_button_label"),
672:                        props
673:                                .getProperty("sb.portal.login_reset_password_form_title"),
674:                        props
675:                                .getProperty("sb.portal.login_reset_password_submit_button_label"),
676:
677:                        props.getProperty("sb.portal.form_footnotes"), //TODO: Remove
678:                        props.getProperty("sb.portal.register_form_notes"),
679:                        props
680:                                .getProperty("sb.portal.login_reset_password_form_notes"),
681:                        props
682:                                .getProperty("sb.portal.login_remember_my_username_label"),
683:                        props.getProperty("sb.portal.login_remember_me_label"),
684:
685:                        props.getProperty("sb.portal.login_forgot_username"),
686:                        props.getProperty("sb.portal.login_request_username"),
687:                        props
688:                                .getProperty("sb.portal.login_request_username_email_subject"),
689:                        props
690:                                .getProperty("sb.portal.login_request_username_email_message"),
691:                        props
692:                                .getProperty("sb.portal.login_success_send_username_message"),
693:                        props
694:                                .getProperty("sb.portal.login_request_username_form_title"),
695:                        props
696:                                .getProperty("sb.portal.login_request_username_label"),
697:                        props
698:                                .getProperty("sb.portal.login_request_username_form_notes"),
699:
700:                        props
701:                                .getProperty("sb.portal.error.register_username_blank"),
702:                        props
703:                                .getProperty("sb.portal.error.register_username_max_length"),
704:                        props
705:                                .getProperty("sb.portal.error.register_first_name_blank"),
706:                        props
707:                                .getProperty("sb.portal.error.register_first_name_max_length"),
708:                        props
709:                                .getProperty("sb.portal.error.register_last_name_blank"),
710:                        props
711:                                .getProperty("sb.portal.error.register_last_name_max_length"),
712:                        props
713:                                .getProperty("sb.portal.error.register_email_blank"),
714:                        props
715:                                .getProperty("sb.portal.error.register_email_max_length"),
716:                        props
717:                                .getProperty("sb.portal.error.register_phone_max_length"),
718:                        props
719:                                .getProperty("sb.portal.error.register_username_exist"),
720:                        props
721:                                .getProperty("sb.portal.error.register_email_exist"),
722:
723:                        props.getProperty("sb.error.access_denied_error_msg"),
724:                        props
725:                                .getProperty("sb.personalize.main_content_selection_header"),
726:                        props.getProperty("sb.portal.register_email_notes"),
727:                        props
728:                                .getProperty("sb.portal.register_temp_password_label"),
729:                        props
730:                                .getProperty("sb.portal.login_reset_password_email_notes"),
731:                        props
732:                                .getProperty("sb.portal.login_send_requested_username_label"),
733:                        props
734:                                .getProperty("sb.portal.login_send_username_email_notes")
735:
736:                };
737:
738:            }
739:
740:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.