From f2bbabbd7df68f7894e8ff302e035aed7523f460 Mon Sep 17 00:00:00 2001 From: Melissa Stone Date: Mon, 20 Aug 2018 11:22:29 -0700 Subject: (PUP-9053) Enable localization --- locales/config.yaml | 24 ++++++++++++++++++++ locales/puppetlabs-host_core.pot | 48 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 locales/config.yaml create mode 100644 locales/puppetlabs-host_core.pot diff --git a/locales/config.yaml b/locales/config.yaml new file mode 100644 index 0000000..1db99f5 --- /dev/null +++ b/locales/config.yaml @@ -0,0 +1,24 @@ +# 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 .pot? + project_name: puppetlabs-host_core + # 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 + # + package_name: puppetlabs-host_core + # 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/puppetlabs-host_core.pot b/locales/puppetlabs-host_core.pot new file mode 100644 index 0000000..079f394 --- /dev/null +++ b/locales/puppetlabs-host_core.pot @@ -0,0 +1,48 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) 2018 Puppet, Inc. +# This file is distributed under the same license as the puppetlabs-host_core package. +# FIRST AUTHOR , 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: puppetlabs-host_core 1.0.0-2-g10dd80a\n" +"\n" +"Report-Msgid-Bugs-To: docs@puppet.com\n" +"POT-Creation-Date: 2018-08-20 11:22-0700\n" +"PO-Revision-Date: 2018-08-20 11:22-0700\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \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" + +#: ../lib/puppet/provider/host/parsed.rb:36 +msgid "%{attr} is a required attribute for hosts" +msgstr "" + +#: ../lib/puppet/type/host.rb:30 +msgid "Invalid IP address %{value}" +msgstr "" + +#: ../lib/puppet/type/host.rb:49 +msgid "Host aliases cannot include whitespace" +msgstr "" + +#: ../lib/puppet/type/host.rb:50 +msgid "Host aliases cannot be an empty string. Use an empty array to delete all host_aliases " +msgstr "" + +#: ../lib/puppet/type/host.rb:58 +msgid "Comment cannot include newline" +msgstr "" + +#: ../lib/puppet/type/host.rb:84 +msgid "Invalid host name" +msgstr "" + +#: ../lib/puppet/type/host.rb:88 +msgid "Hostname cannot include newline" +msgstr "" -- cgit v1.2.3 From 38cf0b5f0f2b9511b00e878c50e86c4bc991935a Mon Sep 17 00:00:00 2001 From: Melissa Stone Date: Mon, 20 Aug 2018 11:23:23 -0700 Subject: (PUP-9052) Bump puppet req to at least puppet 6 --- metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metadata.json b/metadata.json index 97f439c..b34ca72 100644 --- a/metadata.json +++ b/metadata.json @@ -83,7 +83,7 @@ "requirements": [ { "name": "puppet", - "version_requirement": ">= 4.7.0 < 7.0.0" + "version_requirement": ">= 6.0.0 < 7.0.0" } ], "pdk-version": "1.6.0", -- cgit v1.2.3 From cf269ebe929ba5d120700d7f8cb0b228c8d02458 Mon Sep 17 00:00:00 2001 From: Melissa Stone Date: Mon, 20 Aug 2018 11:24:44 -0700 Subject: Prep for the 1.0.1 release --- CHANGELOG.md | 8 ++++++++ metadata.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fded49a..542f8c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,16 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org). +## [1.0.1] - 2018-08-20 +### Added +- (PUP-9053) Enable localization +### Changed +- (PUP-9052) Bump puppet req to at least puppet 6 +- Include puppet 6 and remove default role + ## [1.0.0] - 2018-07-13 ### Summary This is the initial release of the extracted host module +[1.0.1]: https://github.com/puppetlabs/puppetlabs-host_core/compare/1.0.0...1.0.1 [1.0.0]: https://github.com/puppetlabs/puppetlabs-host_core/releases/tag/1.0.0 diff --git a/metadata.json b/metadata.json index b34ca72..3dc1dd7 100644 --- a/metadata.json +++ b/metadata.json @@ -1,6 +1,6 @@ { "name": "puppetlabs-host_core", - "version": "1.0.0", + "version": "1.0.1", "author": "Puppet Labs", "summary": "Installs and manages host entries", "license": "Apache-2.0", -- cgit v1.2.3