001/* 002 * This library is part of OpenCms - 003 * the Open Source Content Management System 004 * 005 * Copyright (c) Alkacon Software GmbH & Co. KG (http://www.alkacon.com) 006 * 007 * This library is free software; you can redistribute it and/or 008 * modify it under the terms of the GNU Lesser General Public 009 * License as published by the Free Software Foundation; either 010 * version 2.1 of the License, or (at your option) any later version. 011 * 012 * This library is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 015 * Lesser General Public License for more details. 016 * 017 * For further information about Alkacon Software, please see the 018 * company website: http://www.alkacon.com 019 * 020 * For further information about OpenCms, please see the 021 * project website: http://www.opencms.org 022 * 023 * You should have received a copy of the GNU Lesser General Public 024 * License along with this library; if not, write to the Free Software 025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 026 */ 027 028package org.opencms.gwt.client.ui.history; 029 030import org.opencms.gwt.client.Messages; 031 032/** 033 * Message provider for the history dialog.<p> 034 */ 035public class CmsHistoryMessages { 036 037 /** 038 * Message accessor.<p> 039 * 040 * @return the message string 041 */ 042 public static String captionConfirm() { 043 044 return Messages.get().key(Messages.GUI_CONFIRM_REVERT_TITLE_0); // Revert 045 } 046 047 /** 048 * Message accessor.<p> 049 * 050 * @return the message string 051 */ 052 public static String columnModificationDate() { 053 054 return Messages.get().key(Messages.GUI_HISTORY_MODIFICATION_DATE_0); 055 } 056 057 /** 058 * Message accessor.<p> 059 * 060 * @return the message string 061 */ 062 public static String columnPath() { 063 064 return Messages.get().key(Messages.GUI_HISTORY_COLUMN_PATH_0); // Path 065 } 066 067 /** 068 * Message accessor.<p> 069 * 070 * @return the message string 071 */ 072 public static String columnPreview() { 073 074 return ""; 075 } 076 077 /** 078 * Message accessor.<p> 079 * 080 * @return the message string 081 */ 082 public static String columnPublishDate() { 083 084 return Messages.get().key(Messages.GUI_HISTORY_PUBLISH_DATE_0); 085 } 086 087 /** 088 * Message accessor.<p> 089 * 090 * @return the message string 091 */ 092 public static String columnReplace() { 093 094 return ""; 095 } 096 097 /** 098 * Message accessor.<p> 099 * 100 * @return the message string 101 */ 102 public static String columnSize() { 103 104 return Messages.get().key(Messages.GUI_HISTORY_COLUMN_SIZE_0); 105 } 106 107 /** 108 * Message accessor.<p> 109 * 110 * @return the message string 111 */ 112 public static String columnUserLastModified() { 113 114 return Messages.get().key(Messages.GUI_HISTORY_MODIFICATION_USER_0); 115 } 116 117 /** 118 * Message accessor.<p> 119 * 120 * @return the message string 121 */ 122 public static String columnVersion() { 123 124 return "V"; 125 } 126 127 /** 128 * Message accessor.<p> 129 * 130 * @return the message string 131 */ 132 public static String dialogTitle() { 133 134 return Messages.get().key(Messages.GUI_HISTORY_DIALOG_TITLE_0); // History 135 } 136 137 /** 138 * Message accessor.<p> 139 * 140 * @return the message string 141 */ 142 public static String historyDialogText() { 143 144 return Messages.get().key(Messages.GUI_HISTORY_DIALOG_TEXT_0); 145 146 } 147 148 /** 149 * Message accessor.<p> 150 * 151 * @return the message string 152 */ 153 public static String noHistoryVersions() { 154 155 return Messages.get().key(Messages.GUI_HISTORY_NO_VERSIONS_0); 156 } 157 158 /** 159 * Message accessor.<p> 160 * 161 * @return the message string 162 */ 163 public static String offline() { 164 165 return Messages.get().key(Messages.GUI_HISTORY_OFFLINE_0); 166 } 167 168 /** 169 * Message accessor.<p> 170 * 171 * @return the message string 172 */ 173 public static String online() { 174 175 return Messages.get().key(Messages.GUI_HISTORY_OFFLINE_0); 176 } 177 178 /** 179 * Message accessor.<p> 180 * 181 * @return the message string 182 */ 183 public static String textConfirm() { 184 185 return Messages.get().key(Messages.GUI_HISTORY_REVERT_CONFIRMATION_0); 186 187 // return "Do you really want to revert this content?"; 188 } 189 190 /** 191 * Message accessor.<p> 192 * 193 * @return the message string 194 */ 195 public static String titlePreview() { 196 197 return Messages.get().key(Messages.GUI_HISTORY_PREVIEW_HELP_0); 198 } 199 200 /** 201 * Message accessor.<p> 202 * 203 * @return the message string 204 */ 205 public static String titleRevert() { 206 207 return Messages.get().key(Messages.GUI_HISTORY_REVERT_HELP_0); 208 } 209 210}