#
# Copyright (c) 2008--2015 Red Hat, Inc.
#
# This software is licensed to you under the GNU General Public License,
# version 2 (GPLv2). There is NO WARRANTY for this software, express or
# implied, including the implied warranties of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2
# along with this software; if not, see
# http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
#
# Red Hat trademarks are not licensed under GPLv2. No permission is
# granted to use or replicate Red Hat trademarks that are incorporated
# in this software or its documentation.
#
#
"""Spacewalk Synchronization Tool Messages

Copyright (c) 2002--2015 Red Hat, Inc.
All rights reserved.
"""

import gettext

t = gettext.translation("spacewalk-backend-server", fallback=True)
_ = t.gettext

failed_step = _(
    """
ERROR: executing step %s. Error is:
%s
"""
)

file_dir_error = _(
    """
ERROR: there was a problem accessing the channel data from your temporary
       repository. Did you migrate all of the data from the channel ISOs
       do this directory? If so, please recheck the channels ISOs, ensure
       that you have them all, and then iteratively remount and repopulate
       the temporary repository (%s).
"""
)

syncer_error = _(
    """
ERROR: there was a problem synchronizing the information.
       Error message: %s
"""
)

sw_iss_not_available = _(
    """
ERROR: There was a problem communicating with the ISS Master.
       Depending on the specific error details, please review your configuration,
       basic network connectivity, and/or name resolution, and try again.
       Error message: %s
"""
)

parent_channel_error = _(
    """
ERROR: a child-channel cannot be synced without its parent being synced as
       well. A parent needs to be either (a) previously synced or (b) synced
       in tandem with the desired child-channel. Missing parents for this
       transaction:
       %s
"""
)

invalid_channel_family_error = _(
    """
ERROR: you are not entitled to sync a channel in this set of channels.
Please contact your SUSE Multi-Linux Manager contact
%s"""
)

not_enough_diskspace = _("  ERROR: not enough free space (%s KB) on device.")

package_fetch_successful = _("    %3d/%s Fetch successful: %s (%s bytes)")
package_fetch_extinct = _("    Extinct package:  %s")
package_fetch_total_size = _("   Total size: %s")
package_fetch_remain_size_time = _(
    "      Downloaded %s of %s. Estimated remaining time: %s"
)
package_fetch_failed = _("    Fetch unsuccessful: %s")
package_fetch_summary = _("   RPM fetch summary: %s")
package_fetch_summary_success = _("       success: %d")
package_fetch_summary_failed = _("       failed:  %d")
package_fetch_summary_extinct = _("       extinct: %d")

package_parsing = _("   Retrieving / parsing *relevant* package metadata: %s (%s)")
erratum_parsing = _("   Retrieving / parsing errata data: %s (%s)")
kickstart_parsing = _("   Retrieving / parsing kickstart data: %s (%s)")
kickstart_downloading = _("   Retrieving / parsing kickstart tree files: %s (%s)")
package_importing = _("   Importing *relevant* package metadata: %s (%s)")
warning_slow = _("   * WARNING: this may be a slow process.")
link_channel_packages = _("Linking packages to channels")
errata_importing = _("   Importing *relevant* errata: %s (%s)")
kickstart_import_nothing_to_do = _("   No new kickstartable tree to import")
kickstart_importing = _("Importing kickstartable trees (%d)")
kickstart_imported = _("Imported kickstartable trees (%d)")
