AmiTimeKeeper/text.c

132 lines
6.2 KiB
C
Raw Permalink Normal View History

2021-01-12 22:16:18 +00:00
/*-
* Copyright (c) 2020-2021 Carsten Sonne Larsen <cs@innolan.net>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#include "text.h"
// Settings
2021-01-31 19:10:59 +00:00
const char *prefsDir = "ENV:AmiTimeKeeper";
const char *prefsFile = "ENV:AmiTimeKeeper/timekeeper.prefs";
const char *persistentPrefsDir = "ENVARC:AmiTimeKeeper";
const char *persistentPrefsFile = "ENVARC:AmiTimeKeeper/timekeeper.prefs";
2021-01-12 22:16:18 +00:00
const char *prefsFileSearch = "Searching for preference in %s";
const char *prefsFileFound = "Found preference file";
const char *prefsFileNotFound = "Preference file not found";
const char *prefsFileSave = "Saving preferences in %s";
const char *fileOpenError = "Could not open preference file";
const char *fileSaveError = "Could not save preference file";
const char *fileReadError = "Error while reading file";
const char *fileWriteError = "Error while writing file";
const char *unknownSetting = "Found unknown setting in preference file: %s";
const char *foundSetting = "Found %s in preference file";
const char *foundWbSetting = "Found tooltype from icon: %s";
const char *foundCliSetting = "Got %s from CLI";
const char *integerError = "Value should be an integer: %s";
const char *yesNoError = "Value should be YES or NO, 1 or 0: %s";
const char *applyDefaultSettings = "Applying default values";
const char *applyFileSettings = "Applying values from preference file";
const char *applyCliSettings = "Applying values from CLI";
const char *applyWbSettings = "Applying values from tooltypes";
const char *effectiveSettings = "Listing runtime values";
const char *settingChangedLong = "%s changed: %ld -> %ld";
const char *settingChangedString = "%s changed: %s -> %s";
const char *settingSetLong = "%s is already set to %ld";
const char *settingSetString = "%s is already set to %s";
2021-01-31 19:10:59 +00:00
const char *settingTooLow = "%s < %ld (too low)";
const char *settingTooHigh = "%s > %ld (too high)";
const char *settingGreaterThan = "%s * 2 > %s";
const char *settingInvalid = "%s is invalid (%ld)";
2021-01-12 22:16:18 +00:00
const char *settingValueLong = "%s=%ld";
const char *settingValueString = "%s=%s";
const char *saveValueLong = "%s=%ld\n";
const char *saveValueString = "%s=%s\n";
const char *noValueString = "NO";
const char *yesValueString = "YES";
const char *falseValueString = "TRUE";
const char *trueValueString = "FALSE";
2021-01-31 19:10:59 +00:00
const char *validatingSettings = "Validating settings";
const char *validatedSettings = "Settings validated";
// Time zone
const char *applyTimeZone = "Setting local time zone from %s %s";
const char *tzSettingValid = "Found valid %s %s";
const char *tzSettingInvalid = "Found unknown %s %s";
const char *tzFromEnv = "environment variable";
const char *tzFromSet = "setting value in";
const char *tzWorkbench = "Workbench";
const char *tzPreferences = "preferences";
const char *tzChange = "Changing to %s on %s";
const char *tzDstAbbr = "DST";
const char *tzStdAbbr = "standard time";
const char *timezoneCur = "Current time zone is %s";
const char *timezoneStd = "Standard time zone is %s";
const char *timezoneDst = "DST time zone is %s";
const char *timezoneNoTrans = "There are no time zone transitions";
const char *tzChecker = "Timezone Checker";
const char *tzCheck = "Checking for time zone transition";
const char *tzTrans = "Performing time zone transition";
// Concat text
const char *Text2P = "%s %s";
2021-01-12 22:16:18 +00:00
// Common text
const char *TextEmpty = "Empty";
2021-01-31 19:10:59 +00:00
const char *TextStarting = "Starting";
const char *TextRestarting = "Restarting";
const char *TextStarted = "started";
const char *TextStopped = "stopped";
const char *TextAlreadyRunning = "is already running";
const char *TextNoStart = "Could not start";
const char *TextClosing = "Closing";
const char *TextOpened = "Opened";
const char *TextNoOpen = "Cannot open";
const char *TextFound = "Found";
2021-01-12 22:16:18 +00:00
// Error / debug messages
const char *TextPortInitError = "%s message port failed to initialize";
const char *TextInitComponent = "Initializing %s";
const char *TextPortCreated = "%s message port created";
const char *TextPortCleaned = "%s message port cleared";
const char *TextPortNotFound = "%s message port not found";
// ARexx / TimeCtrl
const char *TextSyncOn = "Synchronization is active";
const char *TextSyncOff = "Synchronization is deactivated";
const char *TextSyncAlreadyOn = "Synchronization is already active";
const char *TextSyncAlreadyOff = "Synchronization is already deactivated";
const char *TextNoResponses = "No responses from NTP server";
const char *TextNoClockAdjust = "Clock has not been adjusted";
2021-01-31 19:10:59 +00:00
const char *TextARexxCmdUnknown = "Unknown ARexx command";
const char *TextARexxParmUnknown = "Unknown parameter";
const char *TextARexxParmInvalid = "Invalid parameter value";
const char *TextARexxParmMiss = "Parameter is missing";
const char *TextARexxVarError = "Could not set ARexx variable: %ld";
const char *TextARexxVarValue = "ARexx variable %s = %s";
const char *TextARexxResult = "ARexx result: %s";
const char *TextARexxExecute1 = "Executing %s";
const char *TextARexxExecute2 = "Executing %s %s";
const char *TextARexxReceived = "Received %s";
const char *TextARexxShutdown = "Requesting shutdown";