1 31 32 package org.opencms.i18n; 33 34 import java.util.Locale ; 35 36 45 public abstract class A_CmsMessageBundle implements I_CmsMessageBundle { 46 47 52 public static I_CmsMessageBundle[] getOpenCmsMessageBundles() { 53 54 return new I_CmsMessageBundle[] { 55 org.opencms.cache.Messages.get(), 56 org.opencms.configuration.Messages.get(), 57 org.opencms.db.Messages.get(), 58 org.opencms.db.generic.Messages.get(), 59 org.opencms.file.Messages.get(), 60 org.opencms.file.collectors.Messages.get(), 61 org.opencms.file.types.Messages.get(), 62 org.opencms.flex.Messages.get(), 63 org.opencms.i18n.Messages.get(), 64 org.opencms.importexport.Messages.get(), 65 org.opencms.jsp.Messages.get(), 66 org.opencms.jsp.util.Messages.get(), 67 org.opencms.loader.Messages.get(), 68 org.opencms.lock.Messages.get(), 69 org.opencms.mail.Messages.get(), 70 org.opencms.main.Messages.get(), 71 org.opencms.module.Messages.get(), 72 org.opencms.monitor.Messages.get(), 73 org.opencms.report.Messages.get(), 74 org.opencms.scheduler.Messages.get(), 75 org.opencms.scheduler.jobs.Messages.get(), 76 org.opencms.search.Messages.get(), 77 org.opencms.search.documents.Messages.get(), 78 org.opencms.security.Messages.get(), 79 org.opencms.setup.Messages.get(), 80 org.opencms.setup.xml.Messages.get(), 81 org.opencms.site.Messages.get(), 82 org.opencms.staticexport.Messages.get(), 83 org.opencms.synchronize.Messages.get(), 84 org.opencms.util.Messages.get(), 85 org.opencms.validation.Messages.get(), 86 org.opencms.widgets.Messages.get(), 87 org.opencms.workflow.Messages.get(), 88 org.opencms.workplace.Messages.get(), 89 org.opencms.workplace.commons.Messages.get(), 90 org.opencms.workplace.comparison.Messages.get(), 91 org.opencms.workplace.editors.Messages.get(), 92 org.opencms.workplace.explorer.Messages.get(), 93 org.opencms.workplace.galleries.Messages.get(), 94 org.opencms.workplace.list.Messages.get(), 95 org.opencms.workplace.threads.Messages.get(), 96 org.opencms.workplace.tools.Messages.get(), 97 org.opencms.xml.Messages.get(), 98 org.opencms.xml.content.Messages.get(), 99 org.opencms.xml.page.Messages.get(), 100 org.opencms.xml.types.Messages.get()}; 101 } 102 103 106 public CmsMessageContainer container(String key) { 107 108 return container(key, null); 109 } 110 111 114 public CmsMessageContainer container(String key, Object arg0) { 115 116 return container(key, new Object [] {arg0}); 117 } 118 119 122 public CmsMessageContainer container(String key, Object arg0, Object arg1) { 123 124 return container(key, new Object [] {arg0, arg1}); 125 } 126 127 130 public CmsMessageContainer container(String key, Object arg0, Object arg1, Object arg2) { 131 132 return container(key, new Object [] {arg0, arg1, arg2}); 133 } 134 135 138 public CmsMessageContainer container(String message, Object [] args) { 139 140 return new CmsMessageContainer(this, message, args); 141 } 142 143 146 public CmsMessages getBundle() { 147 148 Locale locale = CmsLocaleManager.getDefaultLocale(); 149 if (locale == null) { 150 locale = Locale.getDefault(); 151 } 152 return getBundle(locale); 153 } 154 155 158 public CmsMessages getBundle(Locale locale) { 159 160 return new CmsMessages(getBundleName(), locale); 161 } 162 163 166 public String toString() { 167 168 StringBuffer result = new StringBuffer (); 169 170 result.append('['); 171 result.append(this.getClass().getName()); 172 result.append(", bundle: "); 173 result.append(getBundle()); 174 result.append(']'); 175 176 return result.toString(); 177 } 178 } | Popular Tags |