# -*-shell-script-*-

# constant definitions and translation bootstraps. depends on bashlib

###
#
# This code is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library 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
# Lesser General Public License for more details.
# 
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#
# Copyright 2002-2004 Mike Hearn (mike@navi.cx)
#
###


TEST_PASS=0
TEST_PASS_RIGHT_VERSION=1
TEST_FAIL=50
TEST_FAIL_WRONG_VERSION=51

# Internationalized strings
export TEXTDOMAIN=autopackage
export TEXTDOMAINDIR="$autopackage_prefix/share/locale"

################################################################################
## general messages for install, query, uninstall, verify, setup, unsetup

intl_ABORTED=$"Action aborted."
intl_ACCESS_DENIED=$"Access denied - installation of packages is restricted on this system."
intl_ASSERTION_NOT_REACHED=$"A theoretically unreachable section of code was executed.\nThis program is in an inconsistant state and will be terminated."
intl_BAD_CONFIG_VERSION=$"Bad config file version. Please rerun setup."
intl_CHECKING_FOR_GLIBC_SYMBOL_VERSIONS=$"required C library versions"
intl_CLEANING=$"Cleaning up ... "
intl_CONFIGURING=$"Configuring ... "
intl_DONE=$"done"
intl_DONE_WITH_WARNINGS=$"done with warnings"
intl_ERRORS=$"ERRORS: "
intl_FAILED=$"failed"
intl_FAIL=$"FAIL: "
intl_FAILSAFE=$"Failsafe section '%s' has been triggered by the following line:"
intl_FE_TERMINATED_ABNORMALLY=$"Frontend terminated abnormally."
intl_FILE_NOT_READABLE=$"File is unable to be read. File: %s"
intl_INSTALL_ERROR=$"Package %s could not be installed."
intl_INSTALLING_AUTOPACKAGE=$"Installing Autopackage..."
intl_INSTALLING_CONFIG=$"Installing configuration files..."
intl_INSTALLING_CORE=$"Installing $SHORTNAME core files..."
intl_INSTALLING_DATA=$"Installing $SHORTNAME data files..."
intl_INSTALLING_DESKTOP=$"Installing menu items..."
intl_INSTALLING_EXE=$"Installing executables..."
intl_INSTALLING_FILE=$"Copying files to %s"
intl_INSTALLING_GCONF_SCHEMA=$"Installing default settings... "
intl_INSTALLING_GNOME2_APP_ENTRY=$"Installing GNOME 2 application registry entries..."
intl_INSTALLING_GNOME2_MIME=$"Installing GNOME 2 file type information (MIME)..."
intl_INSTALLING_ICON=$"Installing icons..."
intl_INSTALLING_ICON_THEME=$"Installing icon themes..."
intl_INSTALLING_INFO=$"Installing info pages..."
intl_INSTALLING=$"Installing to %s ... "
intl_INSTALLING_KDE_MIMEAPP=$"Installing KDE file associations..."
intl_INSTALLING_KDE_MIME=$"Installing KDE file type information (MIME)..."
intl_INSTALLING_LIB=$"Installing libraries..."
intl_INSTALLING_LINK=$"Linking from %s to %s"
intl_INSTALLING_MAN=$"Installing manual pages for section %s..."
intl_INSTALLING_MIME=$"Installing file type information (MIME)..."
intl_INSTALLING_PATH_NOT_IN_LINKER_CACHE=$"Libraries are being placed in a location that isn't registered with the linker cache."
intl_INSTALLING_PATH_NOT_IN_LINKER_CACHE_SOLUTION=$"You should either place %s in /etc/ld.so.conf or install as a user."
intl_INSTALLING_SOUND=$"Installing sounds..."
intl_INSTALLING_SOUND_THEME=$"Installing sound themes..."
intl_INSTALLING_UPDATING_LINKER=$"Updating linker cache..."
intl_INSTALLING_UPDATING_MIME=$"Updating file association (MIME) database..."
intl_INSTALL_SUCCESS=$"Package %s installed successfully."
intl_MAKING=$"Making ... "
intl_NO_DISK_SPACE=$"You don't have enough disk space for %s in prefix %s, you need at least %s bytes"
intl_PACKAGE_ALREADY_INSTALLED=$"The selected package is already installed, removing"
intl_PACKAGE_BROKEN=$"Verify failed, one or more components are broken."
intl_PACKAGE_COULD_NOT_FIND=$"Could not find '%s'. Try using the native package manager for $AUTOPACKAGE_DISTRIBUTION_DESCRIPTION ($AUTOPACKAGE_DISTRIBUTION_MANAGER) to install a package with similar name to '%s'. "
intl_PACKAGE_NOT_AUTOPACKAGE=$"package is in the database but was not installed by autopackage";
intl_PACKAGE_NOT_FOUND=$"Package %s was not found."
intl_PACKAGE_SPECIFY=$"Must specify a package name for this action."
intl_PASSED=$"passed"
intl_PREFIX_NOT_SPECIFIED=$"If you give the --prefix option, you need to specify a prefix as the next argument"
intl_PREP_ERROR=$"Unable to prepare package %s."
intl_PREP_ROOTINSTALLONLY=$"'%s' requires a global installation. Restart installation as super user (root)."
intl_PROGRESSBAR_EXTRACTING_FILES=$"Extracting files"
intl_PROTOCOL_MISMATCH=$"Protocol version mismatch, was asked for %s - ensure your installation of autopackage is correct"
intl_UNINSTALLING_AUTOPACKAGE=$"Removing Autopackage version %s ... "
intl_UNINSTALLING=$"Removing %s ... "
intl_UNINSTALLING_WOULD_BREAK=$"Removing this package would break:"
intl_UNINSTALL_DO_IT_ANYWAY=$"If you'd like to uninstall anyway, run package remove -f %s"
intl_UNINSTALL_MUST_BE_ROOT=$"package was installed by root, so you must be root to remove the package."
intl_UNINSTALL_NO_SUDO=$"You are running as root, but this package was installed to your home directory.\nIf you're using sudo, you don't need it this time."
intl_UNKNOWN_OPTION=$"Unknown option %s"
intl_UPDATING_DB=$"Updating package database..."
intl_WARNING=$"WARNING: "
intl_YESNO=$"Please type y for yes, or n for no"


intl_INSTALLER_HELP=$"autopackage help

  -p, --prefix   Sets the prefix that the package will install to
  -f, --force    Overrides fatal warnings to force the install to proceed
  -d, --debug    Extracts but does not automatically run the installer
  -x, --extract  Extracts the package and returns
  -g, --gtkfe    Forces the usage of the graphical GTK based frontend
  -t, --ttyfe    Forces the usage of the text based terminal frontend
  -h, --help     Display this help screen
"

intl_UNSUPPORTED_CPU_ARCH=$"Sorry, this package is incompatible with your CPU architecture.

It needs `bold`%s`normal`, you have `bold`%s`normal`. Try checking where you got this package to
see if there is a compatible version.

If not, try asking the software maintainer if they would be willing to
produce a package for your architecture, or alternatively you may be
able to compile from source."

intl_SESSION_ROLLBACK=$"Invoking session rollback and returning the computer to its
previous state before this installation procedure was started."

intl_NEED_SYMBOLS=$"Your copy of glibc, a core system library, is too old for this package.
You need at least the following symbols in glibc: %s.

This error normally means that whoever built the package did not build it correctly.
Please report the contents of this message to the provider of this package, and
ask them to rebuild it using apbuild.

Upgrading glibc is highly dangerous, so we recommend in this situation that you
compile the app you want to install from the sources if possible. Sorry :("
# I guess we could add more detail here, it's not like users would be able to understand even what this is


################################################################################
## units

intl_UNIT_BYTE=$"bytes"
intl_UNIT_KILOBYTE=$"KB"
intl_UNIT_MEGABYTE=$"MB"
intl_UNIT_GIGABYTE=$"GB"


################################################################################
## autopackage ttyfe

intl_APKG_TTYFE_CAN_REMOVE_WITH=$"Remove this package by running `bold`package remove %s`normal` from the command line."
intl_APKG_TTYFE_CONNECTING=$"Connecting, please wait"
intl_APKG_TTYFE_DOWNLOAD_BANNER=$"Downloading %s"
intl_APKG_TTYFE_DOWNLOAD_INITIALIZING=$"Initializing"
intl_APKG_TTYFE_FAILED_INSTALL_PACKAGES_PLURAL=$"The following packages failed to install correctly:"
intl_APKG_TTYFE_FAILED_INSTALL_PACKAGES_SINGULAR=$"The following package failed to install correctly:"
intl_APKG_TTYFE_FAILED_RECOMMENDS_PLURAL=$"The following software could be installed to enhance this package:"
intl_APKG_TTYFE_FAILED_RECOMMENDS_SINGULAR=$"The following software could be installed to enhance this package:"
intl_APKG_TTYFE_INSTALLING=$"Installing"
intl_APKG_TTYFE_INSTALL_SUCCESS_PLURAL=$"The following %s packages were successfully installed:"
intl_APKG_TTYFE_INSTALL_SUCCESS_SINGULAR=$"The following package was successfully installed:"
intl_APKG_TTYFE_MENU_ENTRY_PLURAL=$"The following menu entries are now available:"
intl_APKG_TTYFE_MENU_ENTRY_SINGULAR=$"The following menu entry is now available: %s"
intl_APKG_TTYFE_NEGOTIATING=$"Negotiating"
intl_APKG_TTYFE_PREPARING=$"Preparing"
intl_APKG_TTYFE_RECOMMENDED=$"recommended"
intl_APKG_TTYFE_SEARCHING=$"searching"
intl_APKG_TTYFE_TESTING=$"Checking for %s ... "
intl_APKG_TTYFE_TOTALSIZE=$"The installation size was %s."
intl_APKG_TTYFE_VERIFY_BAD=$"Verify failed: one or more components are broken or not present." # is this actually used?
intl_APKG_TTYFE_VERIFYING=$"Verifying"
intl_APKG_TTYFE_VERIFY_OK=$"Verify successful: all required components for this package are present."

################################################################################
## makeinstaller

intl_MAKEINSTALLER_HELP=$"autopackage installer builder
Usage from source directory root:
    makeinstaller [--mkspec] | [\"apspec-filename1\" \"apspec-filename2\" ... ]

If --mkspec is given, makeinstaller will print a sample specfile to standard
output. You can use this as a starting point for writing a new specfile.

If --mkspec is not given, makeinstaller will create a new .package based
on the given specfiles. If no specfile filename is declared then
spec filename autopackage/default.apspec will be used.

The script will create a software package that will
be written to the file specified in the spec file.

Options:
   -s     Split mode: will output .payload and .meta files
          rather than a single .package file
   -b     Both mode: will output split packages AND a complete
          .package file
   -c     Do not run './configure' when building this package
          (only useful if you use prepareBuild)
   -m     Do not run 'make' when building this package
          (only useful if you use prepareBuild)
   -x     Generate luau XML package files
   -h     Show this help screen
"

intl_MAKEINSTALLER_BAD_SKELETON=$"Bad skeleton for %s, not in ASCII text format"
intl_MAKEINSTALLER_BINARY_LINKS_X11=$"%s dynamically links against %s, please link statically."
intl_MAKEINSTALLER_BUILDING=$"Building installer for %s"
intl_MAKEINSTALLER_EXTRACT_COPY_FAIL=$"Could not extract files: `bold; blue`%s`normal`"
intl_MAKEINSTALLER_FILES_AVAILABLE=$"Perhaps you need to update the specfile? The following files are in that directory:"
intl_MAKEINSTALLER_IMPORTING=$"Importing files to %s"
intl_MAKEINSTALLER_IMPORTING_SYMLINK=$"Importing a symlink (%s), is that intentional?"
intl_MAKEINSTALLER_NO_AUTOPACKAGETARGET=$"No AutopackageTarget found in the specfile for language %s, default to \"1.0\"."
intl_MAKEINSTALLER_NO_BUILDPREP=$"No BuildPrepare section found in the specfile. Is that intended?"
intl_MAKEINSTALLER_NO_BUILDUNPREP=$"You have a BuildPrepare section but no BuildUnprepare"
intl_MAKEINSTALLER_NO_DESCRIPTION=$"No description found in the specfile for language %s."
intl_MAKEINSTALLER_NO_DISPLAYNAME=$"No DisplayName key found in the [Meta] section. You need one"
intl_MAKEINSTALLER_NO_IMPORTS=$"No [Imports] section found."
intl_MAKEINSTALLER_NO_INSTALLER=$"No install script found in the specfile, this is required"
intl_MAKEINSTALLER_NO_INTERFACEVERSION_KEY=$"Shared libraries are in payload, but no InterfaceVersion key is set?"
intl_MAKEINSTALLER_NO_MD5SUM_FOUND=$"No md5sum executable was found."
intl_MAKEINSTALLER_NO_PREP=$"No prep script [Prepare] found in the specfile, you might want one of these"
intl_MAKEINSTALLER_NO_ROOTNAME_VERSION=$"There is no version part of the rootname. You probably want to add ':\$SOFTWAREVERSION' to the end"
intl_MAKEINSTALLER_NO_ROOTNAME=$"You forgot the RootName key in the [Meta] section. That's pretty important you know :)"
intl_MAKEINSTALLER_NO_SHORTNAME=$"No ShortName key found in the [Meta] section."
intl_MAKEINSTALLER_NO_SKELETON=$"Could not locate skeleton package for \"%s\""
intl_MAKEINSTALLER_NO_SPECFILE_FOUND=$"%s could not be found"
intl_MAKEINSTALLER_NO_UNINSTALLER=$"No uninstaller script found in the specfile, you should add one"
intl_MAKEINSTALLER_NO_VERSION=$"No SoftwareVersion key found in the [Meta] section, please add one"
intl_MAKEINSTALLER_PACKAGE_DIRECTORY=$"Using this package as a sealed installer requires that %s is included in the autopackage/packages directory."
intl_MAKEINSTALLER_PLACED_IN_BOTH=$"Complete package will be placed in %s and partial packages in %s and %s"
intl_MAKEINSTALLER_PLACED_IN_MULTI=$"Package will be placed in %s and %s"
intl_MAKEINSTALLER_PLACED_IN=$"Package will be placed in %s"
intl_MAKEINSTALLER_PREPARE_FAILED=$"Prepare failed. Please refer to above messages to see why."
intl_MAKEINSTALLER_PROCESSING_BINARIES=$"Scanning and stripping ELF binaries ... "
intl_MAKEINSTALLER_SCANNING_BINARIES=$"Checking ELF binaries for highest GLIBC versions used ... "
intl_MAKEINSTALLER_SKEL_MISSING_VERSION=$"skeleton file (%s) is missing version"
intl_MAKEINSTALLER_SYMBOLS_TOO_NEW=$"Symbols from glibc 2.3 were found. Consider using apbuild to allow users of older distros to run this binary."
intl_MAKEINSTALLER_TRY_CVS=$"Try running cvs update in the skeletons directory to get the latest files"
intl_MAKEINSTALLER_X86_ONLY=$"Sorry, autopackage is x86 only for now. Please do not request non-x86 architectures."

################################################################################
## package

intl_PACKAGE_VERSION=$"autopackage %s, (c) 2002-2004 the autopackage crew"
intl_PACKAGE_HELP=$"Usage: package <action> [options] [package name]

This is the autopackage management tool.

A package name can either be a short name (such as "gimp") or a root name, for
instance @gimp.org/gimp/1.4

Actions:
  info        : Print information about the named package, either from the
                 database, online or a file.
  remove      : Removes the named package.
  uninstall   : Alias for remove
  
  files       : List installed files of the named package.
  list        : Show all packages installed.
  log         : Show log of the named package.
  
  install     : Retrieves either from the network or local media the named
                 package, then installs it.
  verify      : Checks the package to see if the installation has been broken.
  
  version     : Prints autopackage version information. [ -v or --version ]
  help        : Prints autopackage help information.    [ -h or --help ]

Options for install:
  -F filename : File containing single line entries of packages to install.

Options for info:
  -p filename : Print information from the specified package file.

Options for remove:
  -f          : Force removal even when it would break other packages.
  -F filename : File containing single line entries of packages to remove.
"

intl_PACKAGE_UNKNOWN_COMMAND=$"The action '%s' is unknown. Run 'package --help' to see a list of possible actions."


################################################################################
## package info

       intl_PACKAGE_INFO_SHORTNAME=$"Short Name   : %s"
     intl_PACKAGE_INFO_DISPLAYNAME=$"Display Name : %s"
        intl_PACKAGE_INFO_ROOTNAME=$"Root Name    : %s"
 intl_PACKAGE_INFO_SOFTWAREVERSION=$"Version      : %s"
intl_PACKAGE_INFO_INTERFACEVERSION=$"Interface    : %s"
  intl_PACKAGE_INFO_PACKAGEVERSION=$"Revision     : %s"
      intl_PACKAGE_INFO_MAINTAINER=$"Maintainer   : %s"
         intl_PACKAGE_INFO_LICENSE=$"License      : %s"
 intl_PACKAGE_INFO_ROOTINSTALLONLY=$"Root Install : %s"
        intl_PACKAGE_INFO_DATABASE=$"Database     : %s"
       intl_PACKAGE_INFO_BUILDHOST=$"Build Host   : %s"
  intl_PACKAGE_INFO_TIMESTAMPBUILD=$"Build Date   : %s"
intl_PACKAGE_INFO_TIMESTAMPINSTALL=$"Install Date : %s"
            intl_PACKAGE_INFO_SIZE=$"Install Size : %s"
             intl_PACKAGE_INFO_MD5=$"Package MD5  : %s"
        intl_PACKAGE_INFO_PACKAGER=$"Packager     : %s"
             intl_PACKAGE_INFO_URL=$"URL          : %s"
         intl_PACKAGE_INFO_SUMMARY=$"Summary      : %s"
     intl_PACKAGE_INFO_DESCRIPTION=$"Description  :
%s"

intl_PACKAGE_INFO_DATABASE_GLOBAL=$"System"
intl_PACKAGE_INFO_DATABASE_USER=$"User"


################################################################################
## setup/unsetup

intl_APKG_BANNER=$"
--------------------------------------------------------------------------
  autopackage - the distro neutral packaging framework for Linux systems
--------------------------------------------------------------------------
"

intl_SETUP_UPGRADE_GETOPT=$"Autopackage has detected an old version of the getopt program.
Autopackage requires the enhanced version of getopt to run correctly.
"

intl_SETUP_START=$"This script will:
 * Check for required version of getopt
 * Create directory for packages as /var/packages
 * Create symlinks from /usr/bin to the executables
     in $apkg_main_dir
 * Create symlink from /usr/share/autopackage
     to $apkg_main_dir/share
 * Create symlink from /usr/libexec/autopackage
     to $apkg_main_dir/libexec
 * Create configuration file as /etc/autopackage/config
     - By default, autopackage will update the linker cache if installed to
       a non-standard prefix. This can be turned off in the config file.
 * Install CVS module apbuild for the apgcc executable

      Press Enter to INSTALL autopackage tools or Ctrl-C to CANCEL."

intl_SETUP_FINISH=$"Autopackage setup is finished and completed."

intl_UNSETUP_START=$"This script will:
 * Remove directory for packages as /var/packages
 * Remove symlinks from /usr/bin to the executables in autopackage/main
 * Remove symlink from /usr/share/autopackage to autopackage/main/share
 * Remove symlink from /usr/libexec/autopackage to autopackage/main/libexec
 * Remove configuration file as /etc/autopackage
 * Remove installation of CVS module apbuild

      Press Enter to REMOVE autopackage tools or Ctrl-C to CANCEL."

intl_UNSETUP_FINISH=$"Autopackage is removed and completed."

intl_SETUP_YOU_HAVE_GTK=$"GTK2 is available on this system.

Graphical user interface support will be enabled if possible.

* If you need to download the package, it will take approximately *
* 25 seconds on a dialup modem connection                         *
"
intl_SETUP_THANKYOU=$"Thank you for your patience. Installation of your package will now proceed.
You should not have to install the autopackage support code again."
intl_SETUP_RUN_EXEC_BASH=$"Please run 'exec bash' in each terminal to update your path."
intl_SETUP_VERSION_REQUIREMENT=$"The version of %s needs to be upgraded to version %s or higher."
intl_SETUP_CANT_FIND_CONFIG=$"Unable to find the autopackage configuration file, even though autopackage has just been installed. Please report this bug."

################################################################################
## .desktop file

# following are action menus RMB for .desktop files added during setupDesktopFile called from installDesktop
DESKTOP_ACTION_REMOVE="[Desktop Action Apkg-Remove]
Exec=package remove \"%s\"
Name[de]=Entfernen Paket
Name[en]=Remove Package
Name[es]=Quite El Paquete
Name[fr]=Enlevez Le Paquet
Name[it]=Rimuova Il Pacchetto
Name[nl]=Pakket Verwijderen
Name=Remove Package
"

DESKTOP_ACTION_VERIFY="[Desktop Action Apkg-Verify]
Exec=package verify \"%s\"
Name[de]=Validieren Paket
Name[en]=Verify Package
Name[es]=Verifique El Paquete
Name[fr]=Vérifier l'emballage
Name[it]=Verifichi Il Pacchetto
Name[nl]=Pakket Controleren
Name=Verify Package
"

DESKTOP_ACTION_UPDATE="[Desktop Action Apkg-Update]
Exec=package update \"%s\"
Icon=gnome-sync.png
Name[de]=Aktualisieren Paket
Name[en]=Update Package
Name[es]=Paquete De la Actualización
Name[fr]=Paquet de Mise à jour
Name[it]=Pacchetto Aggiornamento
Name[nl]=Pakket Bijwerken
Name=Update Package
"
