(IAC-1497) - Removal of unsupported `translate` dependency
authorDavid Swan <david.swan@puppet.co.uk>
Tue, 16 Mar 2021 14:11:30 +0000 (14:11 +0000)
committerDavid Swan <david.swan@puppet.co.uk>
Tue, 16 Mar 2021 15:48:49 +0000 (15:48 +0000)
14 files changed:
.fixtures.yml
locales/config.yaml [deleted file]
locales/ja/puppetlabs-apt.po [deleted file]
locales/puppetlabs-apt.pot [deleted file]
manifests/backports.pp
manifests/conf.pp
manifests/init.pp
manifests/key.pp
manifests/params.pp
manifests/pin.pp
manifests/ppa.pp
manifests/setting.pp
manifests/source.pp
metadata.json

index 2d55ecf65e655aac1b983440db5be70e0edebe5d..0157d6ac2e416da17417b8b143b4af5e6ae64175 100644 (file)
@@ -2,8 +2,6 @@ fixtures:
   repositories:
     "stdlib":
       "repo": "https://github.com/puppetlabs/puppetlabs-stdlib.git"
-    "translate": 
-      "repo": "https://github.com/puppetlabs/puppetlabs-translate"
     facts: 'https://github.com/puppetlabs/puppetlabs-facts.git'
     puppet_agent: 'https://github.com/puppetlabs/puppetlabs-puppet_agent.git'
     provision: 'https://github.com/puppetlabs/provision.git'
diff --git a/locales/config.yaml b/locales/config.yaml
deleted file mode 100644 (file)
index 3f64263..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
----
-# This is the project-specific configuration file for setting up
-# fast_gettext for your project.
-gettext:
-  # This is used for the name of the .pot and .po files; they will be
-  # called <project_name>.pot?
-  project_name: puppetlabs-apt
-  # This is used in comments in the .pot and .po files to indicate what
-  # project the files belong to and should bea little more desctiptive than
-  # <project_name>
-  package_name: puppetlabs-apt
-  # The locale that the default messages in the .pot file are in
-  default_locale: en
-  # The email used for sending bug reports.
-  bugs_address: docs@puppet.com
-  # The holder of the copyright.
-  copyright_holder: Puppet, Inc.
-  # This determines which comments in code should be eligible for translation.
-  # Any comments that start with this string will be externalized. (Leave
-  # empty to include all.)
-  comments_tag: TRANSLATOR
-  # Patterns for +Dir.glob+ used to find all files that might contain
-  # translatable content, relative to the project root directory
-  source_files:
-      - './lib/**/*.rb'
-  
diff --git a/locales/ja/puppetlabs-apt.po b/locales/ja/puppetlabs-apt.po
deleted file mode 100644 (file)
index 1fe9d1d..0000000
+++ /dev/null
@@ -1,155 +0,0 @@
-# #-#-#-#-#  puppetlabs-apt.pot (puppetlabs-apt 6.0.0-27-gbb0f842)  #-#-#-#-#
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) 2018 Puppet, Inc.
-# This file is distributed under the same license as the puppetlabs-apt package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2018.
-#
-# #-#-#-#-#  puppetlabs-apt_metadata.pot (PACKAGE VERSION)  #-#-#-#-#
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2018-09-21T09:17:39+01:00\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: Eriko Kashiwagi <eriko.55@d5.dion.ne.jp>, 2018\n"
-"Language-Team: Japanese (Japan) (https://www.transifex.com/puppet/teams/41915/ja_JP/)\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Language: ja_JP\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-"X-Generator: Translate Toolkit 2.0.0\n"
-
-#. ./manifests/backports.pp:69
-msgid ""
-"If not on Debian or Ubuntu, you must explicitly pass location, release, "
-"repos, and key"
-msgstr "DebianまたはUbuntu以外の場合、場所、リリース、リポジトリ、およびキーを明示的に渡す必要があります。"
-
-#. ./manifests/backports.pp:95
-msgid "pin must be either a string, number or hash"
-msgstr "pinは、文字列、数値またはハッシュのいずれかである必要があります。"
-
-#. ./manifests/conf.pp:25
-msgid "Need to pass in content parameter"
-msgstr "contentパラメータを渡す必要があります。"
-
-#. ./manifests/init.pp:143 ./manifests/params.pp:8
-msgid "This module only works on Debian or derivatives like Ubuntu"
-msgstr "本モジュールは、DebianまたはUbuntuなどの派生OSでのみ動作します。"
-
-#. ./manifests/key.pp:47
-msgid "key with id %{_id} already ensured as absent"
-msgstr "id %{_id}のキーは、存在しないことが既に確認されています。"
-
-#. ./manifests/key.pp:81
-msgid "key with id %{_id} already ensured as present"
-msgstr "id %{_id}のキーは、存在することが既に確認されています。"
-
-#. ./manifests/key.pp:97
-msgid "Invalid 'ensure' value '%{_ensure}' for apt::key"
-msgstr "apt::keyの'%{_ensure}'の'ensure'の値が無効です。"
-
-#. ./manifests/params.pp:100
-msgid "Unable to determine value for fact os[\"name\"]"
-msgstr "fact os[\"name\"]の値を特定できません。"
-
-#. ./manifests/pin.pp:84
-msgid "parameters release, origin, and version are mutually exclusive"
-msgstr "パラメータrelease、origin、versionは相互に排他的です。"
-
-#. ./manifests/pin.pp:88
-msgid "parameter version cannot be used in general form"
-msgstr "パラメータのバージョンは、一般的な形式では使用できません"
-
-#. ./manifests/pin.pp:91
-msgid "parameters release and origin are mutually exclusive"
-msgstr "パラメータreleaseとoriginは相互に排他的です。"
-
-#. ./manifests/ppa.pp:30 ./manifests/source.pp:79
-msgid "os.distro.codename fact not available: release parameter required"
-msgstr "os.distro.codenameのfactが使用できません。releaseパラメータが必要です。"
-
-#. ./manifests/ppa.pp:34
-msgid "apt::ppa is not currently supported on Debian."
-msgstr "apt::ppaは、現在Debianではサポートされていません。"
-
-#. ./manifests/setting.pp:31
-msgid "apt::setting cannot have both content and source"
-msgstr "apt::settingがcontentとsourceの両方を持つことはできません。"
-
-#. ./manifests/setting.pp:35
-msgid "apt::setting needs either of content or source"
-msgstr "apt::settingには、contentまたはsourceのいずれかが必要です。"
-
-#. ./manifests/setting.pp:43
-msgid ""
-"apt::setting resource name/title must start with either 'conf-', 'pref-' or "
-"'list-'"
-msgstr "apt::settingのリソース名/タイトルの先頭は、'conf-'、'pref-'、'list-'にする必要があります。"
-
-#. ./manifests/setting.pp:49
-msgid "apt::setting priority must be an integer or a zero-padded integer"
-msgstr "apt::settingのpriorityは、整数またはゼロパディングされた整数にする必要があります。"
-
-#. ./manifests/source.pp:87
-msgid "cannot create a source entry without specifying a location"
-msgstr "場所を指定せずにソースエントリを作成することはできません。"
-
-#. ./manifests/source.pp:101
-msgid "key hash must contain at least an id entry"
-msgstr "キーハッシュには、少なくともidエントリを含める必要があります。"
-
-#. ./manifests/source.pp:140
-msgid "Received invalid value for pin parameter"
-msgstr "pinパラメータに無効な値を受信しました。"
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:124
-msgid "The file %{_value} does not exist"
-msgstr "ファイル%{_value}が存在しません。"
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:144
-msgid "%{_e} for %{_resource}"
-msgstr "%{_resource}の%{_e}"
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:146
-msgid "could not resolve %{_resource}"
-msgstr "%{_resource}を解決できませんでした。"
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:173
-msgid ""
-"The id in your manifest %{_resource} and the fingerprint from content/source"
-" don't match. Check for an error in the id and content/source is legitimate."
-msgstr ""
-"マニフェスト%{_resource}に含まれるidと、content/sourceのフィンガープリントが一致しません。idに間違いがないか、content/sourceが正当であるかを確認してください。"
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:191
-#: ../lib/puppet/provider/apt_key/apt_key.rb:227
-msgid ""
-"an unexpected condition occurred while trying to add the key: %{_resource}"
-msgstr "キー%{_resource}の追加中に、予期しない状況が発生しました。"
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:243
-msgid "This is a read-only property."
-msgstr "これは、読み込み専用のプロパティです。"
-
-#: ../lib/puppet/type/apt_key.rb:27
-msgid "ensure => absent and refresh => true are mutually exclusive"
-msgstr "ensure => absentとrefresh => trueは相互に排他的です。"
-
-#: ../lib/puppet/type/apt_key.rb:30
-msgid "The properties content and source are mutually exclusive."
-msgstr "プロパティcontentとsourceは相互に排他的です。 are mutually exclusive."
-
-#: ../lib/puppet/type/apt_key.rb:33
-msgid "The id should be a full fingerprint (40 characters), see README."
-msgstr "idは完全なフィンガープリント(40文字)である必要があります。READMEを参照してください。"
-
-#. metadata.json
-#: .summary
-msgid ""
-"Provides an interface for managing Apt source, key, and definitions with "
-"Puppet"
-msgstr "Aptソース、キー、および定義をPuppetで管理するためのインターフェースを提供します。"
diff --git a/locales/puppetlabs-apt.pot b/locales/puppetlabs-apt.pot
deleted file mode 100644 (file)
index 5fa70e2..0000000
+++ /dev/null
@@ -1,177 +0,0 @@
-# #-#-#-#-#  puppetlabs-apt.pot (puppetlabs-apt 6.0.0-27-gbb0f842)  #-#-#-#-#
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) 2018 Puppet, Inc.
-# This file is distributed under the same license as the puppetlabs-apt package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, 2018.
-#
-# #-#-#-#-#  puppetlabs-apt_metadata.pot (PACKAGE VERSION)  #-#-#-#-#
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"#-#-#-#-#  puppet.pot (PACKAGE VERSION)  #-#-#-#-#\n"
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2018-09-21 09:17:33 +0100\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Translate Toolkit 2.0.0\n"
-"#-#-#-#-#  puppetlabs-apt.pot (puppetlabs-apt 6.0.0-27-gbb0f842)  #-#-#-#-#\n"
-"Project-Id-Version: puppetlabs-apt 6.0.0-27-gbb0f842\n"
-"\n"
-"Report-Msgid-Bugs-To: docs@puppet.com\n"
-"POT-Creation-Date: 2018-09-21 09:27+0100\n"
-"PO-Revision-Date: 2018-09-21 09:27+0100\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"Language: \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
-"#-#-#-#-#  puppetlabs-apt_metadata.pot (PACKAGE VERSION)  #-#-#-#-#\n"
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To:\n"
-"POT-Creation-Date: 2018-09-21T09:17:39+01:00\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <LL@li.org>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"X-Generator: Translate Toolkit 2.0.0\n"
-
-#. ./manifests/backports.pp:69
-msgid ""
-"If not on Debian or Ubuntu, you must explicitly pass location, release, "
-"repos, and key"
-msgstr ""
-
-#. ./manifests/backports.pp:95
-msgid "pin must be either a string, number or hash"
-msgstr ""
-
-#. ./manifests/conf.pp:25
-msgid "Need to pass in content parameter"
-msgstr ""
-
-#. ./manifests/init.pp:143 ./manifests/params.pp:8
-msgid "This module only works on Debian or derivatives like Ubuntu"
-msgstr ""
-
-#. ./manifests/key.pp:47
-msgid "key with id %{_id} already ensured as absent"
-msgstr ""
-
-#. ./manifests/key.pp:81
-msgid "key with id %{_id} already ensured as present"
-msgstr ""
-
-#. ./manifests/key.pp:97
-msgid "Invalid 'ensure' value '%{_ensure}' for apt::key"
-msgstr ""
-
-#. ./manifests/params.pp:100
-msgid "Unable to determine value for fact os[\"name\"]"
-msgstr ""
-
-#. ./manifests/pin.pp:84
-msgid "parameters release, origin, and version are mutually exclusive"
-msgstr ""
-
-#. ./manifests/pin.pp:88
-msgid "parameter version cannot be used in general form"
-msgstr ""
-
-#. ./manifests/pin.pp:91
-msgid "parameters release and origin are mutually exclusive"
-msgstr ""
-
-#. ./manifests/ppa.pp:30 ./manifests/source.pp:79
-msgid "os.distro.codename fact not available: release parameter required"
-msgstr ""
-
-#. ./manifests/ppa.pp:34
-msgid "apt::ppa is not currently supported on Debian."
-msgstr ""
-
-#. ./manifests/setting.pp:31
-msgid "apt::setting cannot have both content and source"
-msgstr ""
-
-#. ./manifests/setting.pp:35
-msgid "apt::setting needs either of content or source"
-msgstr ""
-
-#. ./manifests/setting.pp:43
-msgid ""
-"apt::setting resource name/title must start with either 'conf-', 'pref-' or "
-"'list-'"
-msgstr ""
-
-#. ./manifests/setting.pp:49
-msgid "apt::setting priority must be an integer or a zero-padded integer"
-msgstr ""
-
-#. ./manifests/source.pp:87
-msgid "cannot create a source entry without specifying a location"
-msgstr ""
-
-#. ./manifests/source.pp:101
-msgid "key hash must contain at least an id entry"
-msgstr ""
-
-#. ./manifests/source.pp:140
-msgid "Received invalid value for pin parameter"
-msgstr ""
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:124
-msgid "The file %{_value} does not exist"
-msgstr ""
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:144
-msgid "%{_e} for %{_resource}"
-msgstr ""
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:146
-msgid "could not resolve %{_resource}"
-msgstr ""
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:173
-msgid ""
-"The id in your manifest %{_resource} and the fingerprint from content/source "
-"don't match. Check for an error in the id and content/source is legitimate."
-msgstr ""
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:191
-#: ../lib/puppet/provider/apt_key/apt_key.rb:227
-msgid ""
-"an unexpected condition occurred while trying to add the key: %{_resource}"
-msgstr ""
-
-#: ../lib/puppet/provider/apt_key/apt_key.rb:243
-msgid "This is a read-only property."
-msgstr ""
-
-#: ../lib/puppet/type/apt_key.rb:27
-msgid "ensure => absent and refresh => true are mutually exclusive"
-msgstr ""
-
-#: ../lib/puppet/type/apt_key.rb:30
-msgid "The properties content and source are mutually exclusive."
-msgstr ""
-
-#: ../lib/puppet/type/apt_key.rb:33
-msgid "The id should be a full fingerprint (40 characters), see README."
-msgstr ""
-
-#. metadata.json
-#: .summary
-msgid ""
-"Provides an interface for managing Apt source, key, and definitions with "
-"Puppet"
-msgstr ""
index 5949905c5e73273f2655b3d1c330b65dfa048998..39e6f6c0d8d81260514f56deadd53d17bd686b94 100644 (file)
@@ -72,7 +72,7 @@ class apt::backports (
   }
   if (!($facts['os']['name'] == 'Debian' or $facts['os']['name'] == 'Ubuntu')) {
     unless $location and $release and $repos and $key {
-      fail(translate('If not on Debian or Ubuntu, you must explicitly pass location, release, repos, and key'))
+      fail('If not on Debian or Ubuntu, you must explicitly pass location, release, repos, and key')
     }
   }
   unless $location {
@@ -98,7 +98,7 @@ class apt::backports (
       'release'  => $_release,
     }
   } else {
-    fail(translate('pin must be either a string, number or hash'))
+    fail('pin must be either a string, number or hash')
   }
 
   apt::source { 'backports':
index 9c1a59e81cffbfae1e64772853b0872f6da6a262..c27f0c1c0dcd683699caec9572739157468a57d7 100644 (file)
@@ -22,7 +22,7 @@ define apt::conf (
 
   unless $ensure == 'absent' {
     unless $content {
-      fail(translate('Need to pass in content parameter'))
+      fail('Need to pass in content parameter')
     }
   }
 
index a20748f4364da22559475dd67dcb605db47ef0df..3c96de81d1ae0ab0574e9dac12cf531cff64899c 100644 (file)
@@ -158,7 +158,7 @@ class apt (
 ) inherits apt::params {
 
   if $facts['os']['family'] != 'Debian' {
-    fail(translate('This module only works on Debian or derivatives like Ubuntu'))
+    fail('This module only works on Debian or derivatives like Ubuntu')
   }
 
   if $update['frequency'] {
index 87fe4e34c189d0263f24ca746af559848b97e41c..77e6095c87e7a0119e2c4c14b452a9ef6e7901ac 100644 (file)
@@ -48,7 +48,7 @@ define apt::key (
   case $ensure {
     /^(refreshed|present)$/: {
       if defined(Anchor["apt_key ${id} absent"]){
-        fail(translate('key with id %{_id} already ensured as absent'), {'_id' => id})
+        fail("key with id ${id} already ensured as absent")
       }
 
       if !defined(Anchor["apt_key ${id} present"]) {
@@ -83,7 +83,7 @@ define apt::key (
 
     absent: {
       if defined(Anchor["apt_key ${id} present"]){
-        fail(translate('key with id %{_id} already ensured as present', {'_id' => id}))
+        fail("key with id ${id} already ensured as present")
       }
 
       if !defined(Anchor["apt_key ${id} absent"]){
@@ -100,7 +100,7 @@ define apt::key (
     }
 
     default: {
-      fail translate('Invalid \'ensure\' value \'%{_ensure}\' for apt::key', {'_ensure' => ensure})
+      fail("Invalid \'ensure\' value \'${ensure}\' for apt::key")
     }
   }
 }
index 9a9257702a2732dcb6750d8b535f4fe645f4a1da..6167ea505d75adc7bc52d3442d1d0c6b546e4076 100644 (file)
@@ -5,7 +5,7 @@
 class apt::params {
 
   if $facts['os']['family'] != 'Debian' {
-    fail(translate('This module only works on Debian or derivatives like Ubuntu'))
+    fail('This module only works on Debian or derivatives like Ubuntu')
   }
 
   $root                 = '/etc/apt'
@@ -112,7 +112,7 @@ class apt::params {
       }
     }
     undef: {
-      fail(translate('Unable to determine value for fact os[\"name\"]'))
+      fail('Unable to determine value for fact os[\"name\"]')
     }
     default: {
       $ppa_options = undef
index 8145b7d4b6575c024c1435e803beb5ebda6ea334..9310653b2d77ea4887a10a022531e8c7599cca2e 100644 (file)
@@ -81,14 +81,14 @@ define apt::pin(
   if $packages_string != '*' { # specific form
     if ( $pin_release != '' and ( $origin != '' or $version != '' )) or
       ( $version != '' and ( $pin_release != '' or $origin != '' )) {
-      fail(translate('parameters release, origin, and version are mutually exclusive'))
+      fail('parameters release, origin, and version are mutually exclusive')
     }
   } else { # general form
     if $version != '' {
-      fail(translate('parameter version cannot be used in general form'))
+      fail('parameter version cannot be used in general form')
     }
     if ( $pin_release != '' and $origin != '' ) {
-      fail(translate('parameters release and origin are mutually exclusive'))
+      fail('parameters release and origin are mutually exclusive')
     }
   }
 
index 6a874ce3dc1fb38ec773f972f92fa76b76e3b378..311f81df0e79d72b309e5edd303c00a4f63fbe3c 100644 (file)
@@ -32,11 +32,11 @@ define apt::ppa(
   Boolean $package_manage        = false,
 ) {
   unless $release {
-    fail(translate('os.distro.codename fact not available: release parameter required'))
+    fail('os.distro.codename fact not available: release parameter required')
   }
 
   if $dist == 'Debian' {
-    fail(translate('apt::ppa is not currently supported on Debian.'))
+    fail('apt::ppa is not currently supported on Debian.')
   }
 
   if versioncmp($facts['os']['release']['full'], '14.10') >= 0 {
index 16124c31f51a2901986722e5d2a2c484908e0e42..6757f612260f6e59d5bc53afcc60ba9deedc612b 100644 (file)
@@ -28,11 +28,11 @@ define apt::setting (
 ) {
 
   if $content and $source {
-    fail(translate('apt::setting cannot have both content and source'))
+    fail('apt::setting cannot have both content and source')
   }
 
   if !$content and !$source {
-    fail(translate('apt::setting needs either of content or source'))
+    fail('apt::setting needs either of content or source')
   }
 
   $title_array = split($title, '-')
@@ -40,13 +40,13 @@ define apt::setting (
   $base_name = join(delete_at($title_array, 0), '-')
 
   assert_type(Pattern[/\Aconf\z/, /\Apref\z/, /\Alist\z/], $setting_type) |$a, $b| {
-    fail(translate("apt::setting resource name/title must start with either 'conf-', 'pref-' or 'list-'"))
+    fail("apt::setting resource name/title must start with either 'conf-', 'pref-' or 'list-'")
   }
 
   if $priority !~ Integer {
     # need this to allow zero-padded priority.
     assert_type(Pattern[/^\d+$/], $priority) |$a, $b| {
-      fail(translate('apt::setting priority must be an integer or a zero-padded integer'))
+      fail('apt::setting priority must be an integer or a zero-padded integer')
     }
   }
 
index 2c3d4b84cb0e718020820be8c508b69865d98672..bc4675b78963ecbb7804cac83676d3960845539e 100644 (file)
@@ -76,7 +76,7 @@ define apt::source(
     if $facts['os']['distro']['codename'] {
       $_release = $facts['os']['distro']['codename']
     } else {
-      fail(translate('os.distro.codename fact not available: release parameter required'))
+      fail('os.distro.codename fact not available: release parameter required')
     }
   } else {
     $_release = $release
@@ -84,7 +84,7 @@ define apt::source(
 
   if $ensure == 'present' {
     if ! $location {
-      fail(translate('cannot create a source entry without specifying a location'))
+      fail('cannot create a source entry without specifying a location')
     }
     elsif ($::apt::proxy['https_acng']) and ($location =~ /(?i:^https:\/\/)/) {
       $_location = regsubst($location, 'https://','http://HTTPS///')
@@ -106,7 +106,7 @@ define apt::source(
   if $key {
     if $key =~ Hash {
       unless $key['id'] {
-        fail(translate('key hash must contain at least an id entry'))
+        fail('key hash must contain at least an id entry')
       }
       $_key = merge($::apt::source_key_defaults, $key)
     } else {
@@ -145,7 +145,7 @@ define apt::source(
         'origin'   => $host,
       }
     } else {
-      fail(translate('Received invalid value for pin parameter'))
+      fail('Received invalid value for pin parameter')
     }
     create_resources('apt::pin', { "${name}" => $_pin })
   }
index 1dfa5d54283b4f31462db4ff8a93fca589c1d10e..2bb036fc6a757fa634a171ce42d59b7028cfb55e 100644 (file)
     {
       "name": "puppetlabs/stdlib",
       "version_requirement": ">= 4.16.0 < 8.0.0"
-    },
-    {
-      "name": "puppetlabs/translate",
-      "version_requirement": ">= 1.0.0 < 3.0.0"
     }
   ],
   "operatingsystem_support": [