hammer_cli_foreman_tasks 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/hammer_cli_foreman_tasks/i18n.rb +24 -0
- data/lib/hammer_cli_foreman_tasks/recurring_logic.rb +2 -2
- data/lib/hammer_cli_foreman_tasks/task.rb +1 -1
- data/lib/hammer_cli_foreman_tasks/version.rb +1 -1
- data/locale/Makefile +57 -0
- data/locale/README.md +18 -0
- data/locale/en/hammer_cli_foreman_tasks.po +93 -0
- data/locale/hammer_cli_foreman_tasks.pot +129 -0
- metadata +7 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e08456719989bef2b947764f5da8bdd36677855d
|
|
4
|
+
data.tar.gz: 7e5cfe2be5b590da04d022172f41e23dbe24c7a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb7245f9cbe82902705d77160ac82848b17505f08a45065f65244a8d405c773d37fe80ee7609c617be97b36ee2c4e94a3dc68ffec1e06e5990654b1eff05fb9a
|
|
7
|
+
data.tar.gz: daea674196ecb2d620654331174dc3586ec9cf0a2be695cf66f909b5c91837ad5dd156d938baa2591841b43fb6882f2a02b22c480037da8b1f35d6306401bfe7
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
require 'hammer_cli/i18n'
|
|
2
|
+
|
|
3
|
+
module HammerCLIForemanTasks
|
|
4
|
+
module I18n
|
|
5
|
+
|
|
6
|
+
class LocaleDomain < HammerCLI::I18n::LocaleDomain
|
|
7
|
+
|
|
8
|
+
def translated_files
|
|
9
|
+
Dir.glob(File.join(File.dirname(__FILE__), '../**/*.rb'))
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def locale_dir
|
|
13
|
+
File.join(File.dirname(__FILE__), '../../locale')
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def domain_name
|
|
17
|
+
'hammer_cli_foreman_tasks'
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
HammerCLI::I18n.add_domain(HammerCLIForemanTasks::I18n::LocaleDomain.new)
|
|
@@ -4,8 +4,8 @@ module HammerCLIForemanTasks
|
|
|
4
4
|
|
|
5
5
|
class ListCommand < HammerCLIForeman::ListCommand
|
|
6
6
|
output do
|
|
7
|
-
field :id, _('
|
|
8
|
-
field :cron_line, _('
|
|
7
|
+
field :id, _('ID')
|
|
8
|
+
field :cron_line, _('Cron line')
|
|
9
9
|
field :end_time, _('End time')
|
|
10
10
|
field :iteration, _('Iteration')
|
|
11
11
|
field :state, _('State')
|
data/locale/Makefile
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#
|
|
2
|
+
# Makefile for PO merging and MO generation. More info in the README.
|
|
3
|
+
#
|
|
4
|
+
# make all-mo (default) - generate MO files
|
|
5
|
+
# make check - check translations using translate-tool
|
|
6
|
+
# make tx-update - download and merge translations from Transifex
|
|
7
|
+
# make clean - clean everything
|
|
8
|
+
#
|
|
9
|
+
DOMAIN = hammer-cli-foreman-tasks
|
|
10
|
+
VERSION = $(shell ruby -e 'require "rubygems";spec = Gem::Specification::load("../hammer_cli_foreman_tasks.gemspec");puts spec.version')
|
|
11
|
+
POTFILE = $(DOMAIN).pot
|
|
12
|
+
MOFILE = $(DOMAIN).mo
|
|
13
|
+
POFILES = $(shell find . -name '$(DOMAIN).po')
|
|
14
|
+
MOFILES = $(patsubst %.po,%.mo,$(POFILES))
|
|
15
|
+
POXFILES = $(patsubst %.po,%.pox,$(POFILES))
|
|
16
|
+
EDITFILES = $(patsubst %.po,%.edit.po,$(POFILES))
|
|
17
|
+
|
|
18
|
+
%.mo: %.po
|
|
19
|
+
mkdir -p $(shell dirname $@)/LC_MESSAGES
|
|
20
|
+
msgfmt -o $(shell dirname $@)/LC_MESSAGES/$(MOFILE) $<
|
|
21
|
+
|
|
22
|
+
# Generate MO files from PO files
|
|
23
|
+
all-mo: $(MOFILES)
|
|
24
|
+
|
|
25
|
+
# Check for malformed strings
|
|
26
|
+
%.pox: %.po
|
|
27
|
+
msgfmt -c $<
|
|
28
|
+
pofilter --nofuzzy -t variables -t blank -t urls -t emails -t long -t newlines \
|
|
29
|
+
-t endwhitespace -t endpunc -t puncspacing -t options -t printf -t validchars --gnome $< > $@
|
|
30
|
+
cat $@
|
|
31
|
+
! grep -q msgid $@
|
|
32
|
+
|
|
33
|
+
check: $(POXFILES)
|
|
34
|
+
|
|
35
|
+
# Unify duplicate translations
|
|
36
|
+
uniq-po:
|
|
37
|
+
for f in $(shell find ./ -name "*.po") ; do \
|
|
38
|
+
msguniq $$f -o $$f ; \
|
|
39
|
+
done
|
|
40
|
+
|
|
41
|
+
tx-pull: $(EDITFILES)
|
|
42
|
+
tx pull -f
|
|
43
|
+
for f in $(POFILES) ; do \
|
|
44
|
+
sed -i 's/^\("Project-Id-Version: \).*$$/\1$(DOMAIN) $(VERSION)\\n"/' $$f; \
|
|
45
|
+
done
|
|
46
|
+
|
|
47
|
+
# Extract strings and update the .pot, prepare .edit.po files
|
|
48
|
+
extract-strings:
|
|
49
|
+
bundle exec rake gettext:find
|
|
50
|
+
|
|
51
|
+
# Merge .edit.po into .po
|
|
52
|
+
update-po:
|
|
53
|
+
bundle exec rake gettext:find
|
|
54
|
+
|
|
55
|
+
tx-update: extract-strings tx-pull $(MOFILES)
|
|
56
|
+
git commit -m "i18n - extracting new, pulling from tx" ../locale
|
|
57
|
+
-echo Changes commited!
|
data/locale/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Updating the translations
|
|
2
|
+
-------------------------
|
|
3
|
+
|
|
4
|
+
1. Check if there are any new languages with progress more than 50% on [transifex](https://www.transifex.com/projects/p/foreman/resource/hammer-cli-foreman-tasks/). If so, do the following for each of the new languages:
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
mkdir locale/<lang>
|
|
8
|
+
cp locale/hammer_cli_foreman_discovery.pot locale/<lang>/hammer_cli_foreman_discovery.po
|
|
9
|
+
```
|
|
10
|
+
2. Make sure you have `transifex-client` installed
|
|
11
|
+
|
|
12
|
+
3. Update the translations. From GIT repo root directory run:
|
|
13
|
+
|
|
14
|
+
```
|
|
15
|
+
make -C locale tx-update
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
It will download translations from transifex, generates `mo` files, updates strings in `pot` file and wraps all the changes in a new commit. Transifex automatically updates its strings when the commit is pushed to Github.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# English translations for hammer_cli_foreman_tasks package.
|
|
2
|
+
# Copyright (C) 2016 THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
|
+
# This file is distributed under the same license as the hammer_cli_foreman_tasks package.
|
|
4
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
|
|
5
|
+
#
|
|
6
|
+
msgid ""
|
|
7
|
+
msgstr ""
|
|
8
|
+
"Project-Id-Version: hammer_cli_foreman_tasks 0.0.9\n"
|
|
9
|
+
"Report-Msgid-Bugs-To: \n"
|
|
10
|
+
"PO-Revision-Date: 2016-02-10 13:03-0500\n"
|
|
11
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
12
|
+
"Language-Team: English\n"
|
|
13
|
+
"Language: en\n"
|
|
14
|
+
"MIME-Version: 1.0\n"
|
|
15
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
16
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
17
|
+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
|
18
|
+
"\n"
|
|
19
|
+
|
|
20
|
+
msgid "ID"
|
|
21
|
+
msgstr ""
|
|
22
|
+
|
|
23
|
+
msgid "Cron line"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
msgid "End time"
|
|
27
|
+
msgstr ""
|
|
28
|
+
|
|
29
|
+
msgid "Iteration"
|
|
30
|
+
msgstr ""
|
|
31
|
+
|
|
32
|
+
msgid "State"
|
|
33
|
+
msgstr ""
|
|
34
|
+
|
|
35
|
+
msgid "Recurring logic cancelled."
|
|
36
|
+
msgstr ""
|
|
37
|
+
|
|
38
|
+
msgid "Could not cancel the recurring logic."
|
|
39
|
+
msgstr ""
|
|
40
|
+
|
|
41
|
+
msgid "Recurring logic related actions."
|
|
42
|
+
msgstr ""
|
|
43
|
+
|
|
44
|
+
msgid "Show the progress of the task"
|
|
45
|
+
msgstr ""
|
|
46
|
+
|
|
47
|
+
msgid "Name"
|
|
48
|
+
msgstr ""
|
|
49
|
+
|
|
50
|
+
msgid "Owner"
|
|
51
|
+
msgstr ""
|
|
52
|
+
|
|
53
|
+
msgid "Started at"
|
|
54
|
+
msgstr ""
|
|
55
|
+
|
|
56
|
+
msgid "Ended at"
|
|
57
|
+
msgstr ""
|
|
58
|
+
|
|
59
|
+
msgid "Result"
|
|
60
|
+
msgstr ""
|
|
61
|
+
|
|
62
|
+
msgid "Task action"
|
|
63
|
+
msgstr ""
|
|
64
|
+
|
|
65
|
+
msgid "Task errors"
|
|
66
|
+
msgstr ""
|
|
67
|
+
|
|
68
|
+
msgid "Resume all tasks paused in error state"
|
|
69
|
+
msgstr ""
|
|
70
|
+
|
|
71
|
+
msgid "Total tasks found paused in error state"
|
|
72
|
+
msgstr ""
|
|
73
|
+
|
|
74
|
+
msgid "Total tasks resumed"
|
|
75
|
+
msgstr ""
|
|
76
|
+
|
|
77
|
+
msgid "Resumed tasks"
|
|
78
|
+
msgstr ""
|
|
79
|
+
|
|
80
|
+
msgid "Task identifier"
|
|
81
|
+
msgstr ""
|
|
82
|
+
|
|
83
|
+
msgid "Total tasks failed to resume"
|
|
84
|
+
msgstr ""
|
|
85
|
+
|
|
86
|
+
msgid "Failed tasks"
|
|
87
|
+
msgstr ""
|
|
88
|
+
|
|
89
|
+
msgid "Total tasks skipped"
|
|
90
|
+
msgstr ""
|
|
91
|
+
|
|
92
|
+
msgid "Skipped tasks"
|
|
93
|
+
msgstr ""
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# SOME DESCRIPTIVE TITLE.
|
|
2
|
+
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
|
3
|
+
# This file is distributed under the same license as the hammer_cli_foreman_tasks package.
|
|
4
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
|
5
|
+
#
|
|
6
|
+
#, fuzzy
|
|
7
|
+
msgid ""
|
|
8
|
+
msgstr ""
|
|
9
|
+
"Project-Id-Version: hammer_cli_foreman_tasks 0.0.9\n"
|
|
10
|
+
"Report-Msgid-Bugs-To: \n"
|
|
11
|
+
"POT-Creation-Date: 2016-02-18 10:36-0500\n"
|
|
12
|
+
"PO-Revision-Date: 2016-02-18 10:36-0500\n"
|
|
13
|
+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
|
14
|
+
"Language-Team: LANGUAGE <LL@li.org>\n"
|
|
15
|
+
"Language: \n"
|
|
16
|
+
"MIME-Version: 1.0\n"
|
|
17
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
18
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
19
|
+
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
|
20
|
+
|
|
21
|
+
#: ../lib/hammer_cli_foreman_tasks/recurring_logic.rb:7
|
|
22
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:25
|
|
23
|
+
msgid "ID"
|
|
24
|
+
msgstr ""
|
|
25
|
+
|
|
26
|
+
#: ../lib/hammer_cli_foreman_tasks/recurring_logic.rb:8
|
|
27
|
+
msgid "Cron line"
|
|
28
|
+
msgstr ""
|
|
29
|
+
|
|
30
|
+
#: ../lib/hammer_cli_foreman_tasks/recurring_logic.rb:9
|
|
31
|
+
msgid "End time"
|
|
32
|
+
msgstr ""
|
|
33
|
+
|
|
34
|
+
#: ../lib/hammer_cli_foreman_tasks/recurring_logic.rb:10
|
|
35
|
+
msgid "Iteration"
|
|
36
|
+
msgstr ""
|
|
37
|
+
|
|
38
|
+
#: ../lib/hammer_cli_foreman_tasks/recurring_logic.rb:11
|
|
39
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:30
|
|
40
|
+
msgid "State"
|
|
41
|
+
msgstr ""
|
|
42
|
+
|
|
43
|
+
#: ../lib/hammer_cli_foreman_tasks/recurring_logic.rb:25
|
|
44
|
+
msgid "Recurring logic cancelled."
|
|
45
|
+
msgstr ""
|
|
46
|
+
|
|
47
|
+
#: ../lib/hammer_cli_foreman_tasks/recurring_logic.rb:26
|
|
48
|
+
msgid "Could not cancel the recurring logic."
|
|
49
|
+
msgstr ""
|
|
50
|
+
|
|
51
|
+
#: ../lib/hammer_cli_foreman_tasks/recurring_logic.rb:33
|
|
52
|
+
msgid "Recurring logic related actions."
|
|
53
|
+
msgstr ""
|
|
54
|
+
|
|
55
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:14
|
|
56
|
+
msgid "Show the progress of the task"
|
|
57
|
+
msgstr ""
|
|
58
|
+
|
|
59
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:26
|
|
60
|
+
msgid "Name"
|
|
61
|
+
msgstr ""
|
|
62
|
+
|
|
63
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:27
|
|
64
|
+
msgid "Owner"
|
|
65
|
+
msgstr ""
|
|
66
|
+
|
|
67
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:28
|
|
68
|
+
msgid "Started at"
|
|
69
|
+
msgstr ""
|
|
70
|
+
|
|
71
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:29
|
|
72
|
+
msgid "Ended at"
|
|
73
|
+
msgstr ""
|
|
74
|
+
|
|
75
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:31
|
|
76
|
+
msgid "Result"
|
|
77
|
+
msgstr ""
|
|
78
|
+
|
|
79
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:33
|
|
80
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:54
|
|
81
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:63
|
|
82
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:72
|
|
83
|
+
msgid "Task action"
|
|
84
|
+
msgstr ""
|
|
85
|
+
|
|
86
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:34
|
|
87
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:55
|
|
88
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:64
|
|
89
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:73
|
|
90
|
+
msgid "Task errors"
|
|
91
|
+
msgstr ""
|
|
92
|
+
|
|
93
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:45
|
|
94
|
+
msgid "Resume all tasks paused in error state"
|
|
95
|
+
msgstr ""
|
|
96
|
+
|
|
97
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:48
|
|
98
|
+
msgid "Total tasks found paused in error state"
|
|
99
|
+
msgstr ""
|
|
100
|
+
|
|
101
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:50
|
|
102
|
+
msgid "Total tasks resumed"
|
|
103
|
+
msgstr ""
|
|
104
|
+
|
|
105
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:51
|
|
106
|
+
msgid "Resumed tasks"
|
|
107
|
+
msgstr ""
|
|
108
|
+
|
|
109
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:52
|
|
110
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:61
|
|
111
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:70
|
|
112
|
+
msgid "Task identifier"
|
|
113
|
+
msgstr ""
|
|
114
|
+
|
|
115
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:59
|
|
116
|
+
msgid "Total tasks failed to resume"
|
|
117
|
+
msgstr ""
|
|
118
|
+
|
|
119
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:60
|
|
120
|
+
msgid "Failed tasks"
|
|
121
|
+
msgstr ""
|
|
122
|
+
|
|
123
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:68
|
|
124
|
+
msgid "Total tasks skipped"
|
|
125
|
+
msgstr ""
|
|
126
|
+
|
|
127
|
+
#: ../lib/hammer_cli_foreman_tasks/task.rb:69
|
|
128
|
+
msgid "Skipped tasks"
|
|
129
|
+
msgstr ""
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hammer_cli_foreman_tasks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nečas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-02-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: powerbar
|
|
@@ -58,10 +58,15 @@ files:
|
|
|
58
58
|
- lib/hammer_cli_foreman_tasks.rb
|
|
59
59
|
- lib/hammer_cli_foreman_tasks/async_command.rb
|
|
60
60
|
- lib/hammer_cli_foreman_tasks/helper.rb
|
|
61
|
+
- lib/hammer_cli_foreman_tasks/i18n.rb
|
|
61
62
|
- lib/hammer_cli_foreman_tasks/recurring_logic.rb
|
|
62
63
|
- lib/hammer_cli_foreman_tasks/task.rb
|
|
63
64
|
- lib/hammer_cli_foreman_tasks/task_progress.rb
|
|
64
65
|
- lib/hammer_cli_foreman_tasks/version.rb
|
|
66
|
+
- locale/Makefile
|
|
67
|
+
- locale/README.md
|
|
68
|
+
- locale/en/hammer_cli_foreman_tasks.po
|
|
69
|
+
- locale/hammer_cli_foreman_tasks.pot
|
|
65
70
|
homepage: https://github.com/theforeman/hammer-cli-foreman-tasks
|
|
66
71
|
licenses:
|
|
67
72
|
- GPL-3
|