From 9629944ab85c3a5147e13aaf02f21cc57831ce54 Mon Sep 17 00:00:00 2001 From: Robert Greene Date: Sun, 11 Jul 2004 15:06:41 +0000 Subject: [PATCH] Storage (aka domain) text. --- .../applecommander/storage/StorageBundle.java | 43 +++++ .../storage/StorageBundle.properties | 173 ++++++++++++++++++ 2 files changed, 216 insertions(+) create mode 100644 src/com/webcodepro/applecommander/storage/StorageBundle.java create mode 100644 src/com/webcodepro/applecommander/storage/StorageBundle.properties diff --git a/src/com/webcodepro/applecommander/storage/StorageBundle.java b/src/com/webcodepro/applecommander/storage/StorageBundle.java new file mode 100644 index 0000000..22ffff8 --- /dev/null +++ b/src/com/webcodepro/applecommander/storage/StorageBundle.java @@ -0,0 +1,43 @@ +/* + * AppleCommander - An Apple ][ image utility. + * Copyright (C) 2002-2004 by Robert Greene + * robgreene at users.sourceforge.net + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +package com.webcodepro.applecommander.storage; + +import com.webcodepro.applecommander.util.TextBundle; + +/** + * Manage the domain-specific ResourceBundle. Inheritance is used to + * allow logical groupings of ResourceBundles and to reuse the common metods. + * + * @author Rob Greene + */ +public class StorageBundle extends TextBundle { + private static StorageBundle instance; + + /** + * Get the singleton instance of the StorageBundle. + */ + public static TextBundle getInstance() { + if (instance == null) { + instance = new StorageBundle(); + instance.initialize(); + } + return instance; + } +} diff --git a/src/com/webcodepro/applecommander/storage/StorageBundle.properties b/src/com/webcodepro/applecommander/storage/StorageBundle.properties new file mode 100644 index 0000000..5bbb138 --- /dev/null +++ b/src/com/webcodepro/applecommander/storage/StorageBundle.properties @@ -0,0 +1,173 @@ +# Common +Name=Name +Type=Type +Prodos=ProDOS +Block=Block +TotalBlocks=Total Blocks +FreeBlocks=Free Blocks +UsedBlocks=Used Blocks +DeletedQ=Deleted? +Blocks=Blocks +DateFormat=MM/dd/yyyy +Deleted=Deleted +Locked=Locked +Destroy=Destroy +Read=Read +Rename=Rename +Write=Write +FileCreationNotSupported=Unable to create files at this time. +Filetype=Filetype +Modified=Modified +SizeInBytes=Size (bytes) +DiskNameN={0} (Disk {1}) +Dos33=DOS 3.3 +LockedQ=Locked? + +##### FIX ##### +############### + +# Disk +Disk.AllImages=All Emulator Images +Disk.140kDosImages=140K DOS Ordered Images (*.do, *.dsk) +Disk.140kNibbleImages=140K Nibbilized Images (*.nib) +Disk.140kProdosImages=140K ProDOS Ordered Images (*.po) +Disk.800kProdosImages=800K ProDOS Ordered Images (*.2mg, *.2img) +Disk.ApplePcImages=ApplePC Hard Disk Images (*.hdv) +Disk.CompressedImages=All Compressed Images +Disk.AllFiles=All Files +Disk.ResizeDiskError=Cannot resize a disk to be smaller than the current size\! + +# FormattedDisk +FormattedDisk.NullDate=-None- +FormattedDisk.FileName=File Name +FormattedDisk.DiskName=Disk Name +FormattedDisk.PhysicalSizeInBytes=Physical Size (bytes) +FormattedDisk.FreeSpaceInBytes=Free Space (bytes) +FormattedDisk.UsedSpaceInBytes=Used Space (bytes) +FormattedDisk.PhysicalSizeInKb=Physical Size (KB) +FormattedDisk.FreeSpaceInKb=Free Space (KB) +FormattedDisk.UsedSpaceInKb=Used Space (KB) +FormattedDisk.ArchiveOrder=Archive Order +FormattedDisk.2Img=2IMG +FormattedDisk.Unknown=Unknown +FormattedDisk.DiskFormat=Disk Format + +# DosOrder +DosOrder.UnrecognizedFormatError=Unrecognized DOS format\! +DosOrder.InvalidSizeError=The track ({0}) and sector ({1}) do not match the disk image size. + +# NibbleOrder +NibbleOrder.InvalidPhysicalSectorError=Unable to locate physical sector {0} on track {1} (\#{2}) + +# RdosFormatDisk +RdosFormatDisk.Rdos21=RDOS 2.1 +RdosFormatDisk.Size=Size +RdosFormatDisk.StartingBlock=Starting Block +RdosFormatDisk.Address=Address +RdosFormatDisk.IncorrectFileEntryError=Must have a RDOS file entry\! +RdosFormatDisk.IdentifierText=RDOS FORMATTED BY APPLECOMMANDER +RdosFormatDisk.InitialSystemFile=RDOS 2.1 FORMAT NOBOOT + +# RdosFileEntry +# Next entry is 24 characters long +RdosFileEntry.NotInUse= + +# ProdosFormatDisk +ProdosFormatDisk.InvalidDimensionError=Invalid dimension for isFree\! Did you call next first? +ProdosFormatDisk.Blank=BLANK +ProdosFormatDisk.UnableToAllocateSpaceError=Unable to allocate more space for another file\! +ProdosFormatDisk.VolumeAccess=Volume Access +ProdosFormatDisk.BitmapBlockNumber=Block Number of Bitmap +ProdosFormatDisk.CreationDate=Creation Date +ProdosFormatDisk.FileEntriesPerBlock=File Entries Per Block +ProdosFormatDisk.FileEntryLength=File Entry Length (bytes) +ProdosFormatDisk.ActiveFilesInRootDirectory=Active Files in Root Directory +ProdosFormatDisk.MinimumVersionProdos=Minimum ProDOS Version Required +ProdosFormatDisk.CreationVersionProdos=Volume Created By ProDOS Version +ProdosFormatDisk.VolumeName=Volume Name +ProdosFormatDisk.Created=Created +ProdosFormatDisk.Length=Length +ProdosFormatDisk.AuxType=Aux. Type +ProdosFormatDisk.Permissions=Permissions +ProdosFormatDisk.DirectoryQ=Directory? +ProdosFormatDisk.DirectoryHeader=Dir. Header +ProdosFormatDisk.KeyBlock=Key Block +ProdosFormatDisk.KeyType=Key Type +ProdosFormatDisk.Changed=Changed +ProdosFormatDisk.MinimumProdosVersion=Min. ProDOS Ver. +ProdosFormatDisk.ProdosVersion=ProDOS Ver. +ProdosFormatDisk.MustHaveEntry=Must have a ProDOS file entry\! +ProdosFormatDisk.UnknownStorageType=Unknown ProDOS storage type\! +ProdosFormatDisk.NotEnoughSpaceOnDiskError=This file requires {0} blocks but there are only {1} blocks available on the disk. +ProdosFormatDisk.ProdosDiskSizeDoesNotMatchError=The ProDOS physical disk size does not match the formatted size. +ProdosFormatDisk.NoFreeBlockAvailableError=Unable to locate a free block in the Volume Bitmap\! +ProdosFormatDisk.UnexpectedVolumeBitMapSizeError=The ProDOS Volume Bit Map is not the correct size. + +# ProdosFileEntry +ProdosFileEntry.NullDate= +ProdosFileEntry.Directory=Directory +ProdosFileEntry.Sapling=Sapling +ProdosFileEntry.Seedling=Seedling +ProdosFileEntry.Tree=Tree +ProdosFileEntry.UnknownFileType=Unknown ({0}) +ProdosFileEntry.Changed=Changed + +# PascalFormatDisk +PascalFormatDisk.Pascal=Pascal +PascalFormatDisk.InvalidPascalDirectory=Invalid Pascal directory. +PascalFormatDisk.FilesOnDisk=Files On Disk +PascalFormatDisk.LastAccessDate=Last Access Date +PascalFormatDisk.MostRecentDateSetting=Most Recent Date Setting +PascalFormatDisk.BytesInLastBlock=Bytes in last block +PascalFormatDisk.FirstBlock=First Block +PascalFormatDisk.LastBlock=Last Block +PascalFormatDisk.IncorrectFileEntryError=Must have a Pascal file entry\! + +# PascalFileEntry +PascalFileEntry.UnknownFiletype=unknown ({0}) +PascalFileEntry.PascalDateFormat=dd-MMM-yy + +# DosFormatDisk +DosFormatDisk.InvalidDimensionError=Invalid dimension for isFree\! Did you call next first? +DosFormatDisk.NoMoreSpaceError=Unable to allocate more space for another file\! +DosFormatDisk.DiskVolume=DISK VOLUME \#{0} +DosFormatDisk.Track=Track +DosFormatDisk.Sector=Sector +DosFormatDisk.TotalSectors=Total Sectors +DosFormatDisk.FreeSectors=Free Sectors +DosFormatDisk.UsedSectors=Used Sectors +DosFormatDisk.TracksOnDisk=Tracks On Disk +DosFormatDisk.SectorsOnDisk=Sectors On Disk +DosFormatDisk.Type=Type +DosFormatDisk.SizeInSectors=Size (sectors) +DosFormatDisk.TrackAndSectorList=Track/Sector List +DosFormatDisk.InvalidFileEntryError=Must have a DOS 3.3 file entry\! +DosFormatDisk.NotEnoughSectorsError=This file requires {0} sectors but there are only {1} sectors available on the disk. +DosFormatDisk.InvalidTrackAndSectorCombinationError=Invalid track ({0}), sector ({1}) combination. + +# DosFileEntry +DosFileEntry.DosFileEntryLengthError=A DOS 3.3 file entry must be {0} bytes long\! +DosFileEntry.UnableToSetAddressError=Unable to set address for DosFileEntry [{0}] + +# CpmFormatDisk +CpmFormatDisk.DiskName=CP/M Volume +CpmFormatDisk.Cpm=CP/M +CpmFormatDisk.BitmapLabel=CP/M 1K BLOCK +CpmFormatDisk.UserNumber=User\# + +# AppleWorksDataBaseFileFilter +AppleWorksDataBaseFileFilter.January=January +AppleWorksDataBaseFileFilter.February=February +AppleWorksDataBaseFileFilter.March=March +AppleWorksDataBaseFileFilter.April=April +AppleWorksDataBaseFileFilter.May=May +AppleWorksDataBaseFileFilter.June=June +AppleWorksDataBaseFileFilter.July=July +AppleWorksDataBaseFileFilter.August=August +AppleWorksDataBaseFileFilter.September=September +AppleWorksDataBaseFileFilter.October=October +AppleWorksDataBaseFileFilter.November=November +AppleWorksDataBaseFileFilter.December=December +AppleWorksDataBaseFileFilter.InvalidHeaderLengthError=AppleWorks Data Base file header lenth does not check. Aborting. +AppleWorksDataBaseFileFilter.InvalidDate=[Invalid Date={0}] +AppleWorksDataBaseFileFilter.InvalidTime=[Invalid Time={0}]