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