macaw-ruby 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -1
- data/bin/macaw +109 -3
- data/lib/macaw/i18n/de.yml +173 -0
- data/lib/macaw/i18n/en.yml +162 -0
- data/lib/macaw/i18n/es.yml +162 -0
- data/lib/macaw/i18n/fr.yml +168 -0
- data/lib/macaw/i18n/it.yml +159 -0
- data/lib/macaw/i18n/nl.yml +10 -0
- data/lib/macaw/i18n/pt-BR.yml +157 -0
- data/lib/macaw/i18n/pt.yml +155 -0
- data/lib/macaw/i18n/ru.yml +163 -0
- data/lib/macaw/i18n/tr.yml +148 -0
- data/lib/macaw/version.rb +1 -1
- data/macaw.gemspec +2 -0
- metadata +40 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 862b16802662d0b1b7f7ccd2ee3a17c03e1aa926
|
4
|
+
data.tar.gz: 853614a0cbc74934ae90ee9e6d3bbfe06c0d5522
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32fa0d98422804811b7a226b9862c657c99fafddc0c7b63bcfa2eecb6e930270edc0a375182f90862b5fbc8020c77f4b91df7147b177ece1b090d21001cb4e8c
|
7
|
+
data.tar.gz: 0a77a89ee4b09e6c119372fe1214012a28dadff380d3b9a5d0e1d932331e5ed84c84aa83e5539269f4dd422f94cebdf44e213b3edfe5a1bf36be23b67a92948a
|
data/Gemfile.lock
CHANGED
@@ -1,18 +1,22 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
macaw-ruby (0.0.
|
4
|
+
macaw-ruby (0.0.12)
|
5
|
+
i18n
|
5
6
|
json_pure
|
6
7
|
os
|
7
8
|
require_all
|
9
|
+
trollop
|
8
10
|
|
9
11
|
GEM
|
10
12
|
remote: https://rubygems.org/
|
11
13
|
specs:
|
14
|
+
i18n (0.6.9)
|
12
15
|
json_pure (1.8.1)
|
13
16
|
os (0.9.6)
|
14
17
|
rake (10.3.2)
|
15
18
|
require_all (1.3.2)
|
19
|
+
trollop (2.0)
|
16
20
|
|
17
21
|
PLATFORMS
|
18
22
|
ruby
|
data/bin/macaw
CHANGED
@@ -2,16 +2,105 @@
|
|
2
2
|
|
3
3
|
require 'yaml'
|
4
4
|
require 'pp'
|
5
|
-
|
5
|
+
require_relative '../lib/macaw'
|
6
|
+
require_relative '../lib/macaw/version'
|
6
7
|
require 'json/pure'
|
7
8
|
require 'os'
|
8
9
|
require 'shellwords'
|
10
|
+
require 'optparse'
|
11
|
+
require 'timeout'
|
12
|
+
require 'i18n'
|
9
13
|
|
10
14
|
def error(msg)
|
11
15
|
puts msg
|
12
16
|
exit 1
|
13
17
|
end
|
14
18
|
|
19
|
+
puts [
|
20
|
+
' __ __ ',
|
21
|
+
'| \/ | __ _ ___ __ ___ __',
|
22
|
+
'| |\/| |/ _` |/ __/ _` \ \ /\ / /',
|
23
|
+
'| | | | (_| | (_| (_| |\ V V / ',
|
24
|
+
'|_| |_|\__,_|\___\__,_| \_/\_/ ',
|
25
|
+
' ',
|
26
|
+
].join("\n")
|
27
|
+
|
28
|
+
CONTRIBUTORS = [
|
29
|
+
'Alan Munn',
|
30
|
+
'Andrew Stacey',
|
31
|
+
'Brent Longborough',
|
32
|
+
'Clemens Niederberger',
|
33
|
+
'David Carlisle',
|
34
|
+
'Enrico Gregorio',
|
35
|
+
'Francesco Endrici',
|
36
|
+
'Gonzalo Medina',
|
37
|
+
'Harish Kumar',
|
38
|
+
'?lhan Polat',
|
39
|
+
'Joseph Wright',
|
40
|
+
'Marco Daniel',
|
41
|
+
'Mikaδl Maunier',
|
42
|
+
'Patrick Gundlach',
|
43
|
+
'Rasmus Roulund',
|
44
|
+
'Sergey Ulyanov',
|
45
|
+
'Stefan Kottwitz'
|
46
|
+
].join(', ')
|
47
|
+
|
48
|
+
I18n.enforce_available_locales = true
|
49
|
+
I18n.load_path = Dir[File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'macaw', 'i18n', '*.yml'))]
|
50
|
+
I18n.default_locale = :en
|
51
|
+
|
52
|
+
def options!
|
53
|
+
[true, false].collect{|dryrun|
|
54
|
+
opts = OptionParser.new{|parser|
|
55
|
+
parser.banner = "#{I18n.t('help.usage')}: macaw [options] FILE"
|
56
|
+
parser.separator ""
|
57
|
+
|
58
|
+
parser.on('-L', '--language LANG', I18n.t('help.language')){|lang|
|
59
|
+
begin
|
60
|
+
I18n.locale = lang.intern
|
61
|
+
rescue I18n::InvalidLocale
|
62
|
+
if !dryrun
|
63
|
+
puts "#{lang.inspect} is not among the supported languages #{I18n.available_locales.inspect}"
|
64
|
+
exit
|
65
|
+
end
|
66
|
+
end
|
67
|
+
}
|
68
|
+
|
69
|
+
parser.on('-l', '--log', I18n.t('help.log'))
|
70
|
+
|
71
|
+
parser.on('-t', '--timeout SECONDS', I18n.t('help.timeout')){|timeout|
|
72
|
+
Integer(timeout)
|
73
|
+
}
|
74
|
+
|
75
|
+
parser.on('-v', '--verbose', I18n.t('help.verbose'))
|
76
|
+
|
77
|
+
parser.on_tail('-h', '--help', '--usage', I18n.t('help.help')){
|
78
|
+
if !dryrun
|
79
|
+
puts parser.help
|
80
|
+
exit
|
81
|
+
end
|
82
|
+
}
|
83
|
+
|
84
|
+
parser.on_tail('-V', '--version', I18n.t('help.version')){
|
85
|
+
if !dryrun
|
86
|
+
puts "macaw #{Macaw::VERSION} - #{I18n.t('header.Slogan')}\nCopyright (c) 2012, Paulo Roberto Massa Cereda\n"
|
87
|
+
puts I18n.t('header.AllRightsReserved')
|
88
|
+
puts "\n"
|
89
|
+
puts I18n.t('msg.SpecialThanks', :contributors => CONTRIBUTORS).gsub(/(.{1,#{60}})(?: +|$)\n?|(.{#{60}})/, "\\1\\2\n")
|
90
|
+
exit
|
91
|
+
end
|
92
|
+
}
|
93
|
+
}
|
94
|
+
if dryrun
|
95
|
+
opts.parse!(ARGV.dup)
|
96
|
+
else
|
97
|
+
opts.parse!
|
98
|
+
end
|
99
|
+
}.last
|
100
|
+
end
|
101
|
+
|
102
|
+
OPTS=options!
|
103
|
+
|
15
104
|
error("No filename to process") if ARGV.size == 0
|
16
105
|
error("Expected exactly one filename to process #{ARGV.inspect}") if ARGV.size != 1
|
17
106
|
if File.file?(ARGV[0])
|
@@ -52,14 +141,19 @@ class JSON::Pure::Parser
|
|
52
141
|
end
|
53
142
|
|
54
143
|
class Macaw
|
144
|
+
@@log = nil
|
145
|
+
|
55
146
|
def initialize(tex)
|
56
147
|
@file = tex
|
57
148
|
@base = File.basename(@file, File.extname(@file))
|
58
149
|
end
|
150
|
+
attr_reader :file, :base
|
59
151
|
|
60
152
|
def self.run(file)
|
61
153
|
Macaw.load_rules
|
62
154
|
macaw = Macaw.new(file)
|
155
|
+
@@log = File.open(@base + '.log') if OPTS[:log]
|
156
|
+
|
63
157
|
IO.readlines(file).each{|line|
|
64
158
|
next unless line =~ /^% arara: /
|
65
159
|
line.strip!
|
@@ -99,8 +193,20 @@ class Macaw
|
|
99
193
|
def self.system(cmd)
|
100
194
|
cmd = cmd.compact.join(' ') if cmd.is_a?(Array)
|
101
195
|
puts cmd
|
102
|
-
|
103
|
-
|
196
|
+
|
197
|
+
output = ''
|
198
|
+
begin
|
199
|
+
if OPTS[:timeout]
|
200
|
+
Timeout::timeout(OPTS[:timeout]) { output = `#{cmd}` }
|
201
|
+
else
|
202
|
+
output = `#{cmd}`
|
203
|
+
end
|
204
|
+
rescue Timeout::Error
|
205
|
+
throw "#{cmd}: timed out after #{OPTS[:timeout]} seconds"
|
206
|
+
end
|
207
|
+
|
208
|
+
@@log.write(output) if @@log
|
209
|
+
print output if OPTS[:verbose]
|
104
210
|
return output if $?.to_i == 0
|
105
211
|
throw "#{cmd}: #{$?}"
|
106
212
|
end
|
@@ -0,0 +1,173 @@
|
|
1
|
+
---
|
2
|
+
de:
|
3
|
+
log:
|
4
|
+
WelcomeMessage: Willkommen zu arara %{0}!
|
5
|
+
ProcessingFile: Bearbeitung der Datei ''%{0}'', bitte warten.
|
6
|
+
Done: Fertig.
|
7
|
+
ExceptionRaised: 'Eine Ausnahme mit folgender Nachricht ist durch arara ausgelöst
|
8
|
+
worden:'
|
9
|
+
ReadyToRunCommands: Bereit zum Start der Anweisungen.
|
10
|
+
CommandName: 'Verarbeitung von: ''''%{0}''''.'
|
11
|
+
Command: 'Anweisung: %{0}'
|
12
|
+
CommandSuccess: "''%{0}'' wurde erfolgreich ausgeführt."
|
13
|
+
CommandFailure: "''%{0}'' gibt einen Fehlerwert zurück."
|
14
|
+
AllCommandsSuccess: Alle Anweisungen wurden erfolgreich ausgeführt.
|
15
|
+
OutputLogging: 'Ausgabe des Protokolls:'
|
16
|
+
CommandNotFound: "''%{0}'' wurde nicht im Suchpfad gefunden. Ausführungsversuch:
|
17
|
+
%{1}"
|
18
|
+
DirectiveFound: Anweisung in Zeile %{0} mit %{1} gefunden.
|
19
|
+
RuleFound: Aufgabe ''%{0}'' gefunden in ''%{1}''.
|
20
|
+
NoDirectivesFound: Keine Anweisungen in ''%{0}'' gefunden.
|
21
|
+
help:
|
22
|
+
Version: Ausgabe der Version.
|
23
|
+
Help: Ausgabe der Hilfe.
|
24
|
+
Log: Erstelle eine Protokolldatei (.log-Datei).
|
25
|
+
Verbose: Gebe das Protokoll der Anweisungen aus.
|
26
|
+
Timeout: Deklariere die Zeitbeschränkung je Anweisung (in Millisekunden).
|
27
|
+
Language: Lege die Sprache der Anwendung fest.
|
28
|
+
DryRun: Gehe durch alle definierten Anweisungen ohne sie auszuführen.
|
29
|
+
MaximumNumberOfLoops: Setze die maximale Anzahl an Schleifendurchgängen.
|
30
|
+
header:
|
31
|
+
Slogan: Das coole TeX Automatisierungstool
|
32
|
+
AllRightsReserved: Alle Rechte vorbehalten!
|
33
|
+
msg:
|
34
|
+
NoDirectivesFound: Ich habe keine Anweisungen in ''%{0}'' gefunden und daher nichts
|
35
|
+
getan. Ist es das, was du wirklich wolltest.
|
36
|
+
SpecialThanks: Ein besonderes Danke geht an Alan Munn, Andrew Stacey, Brent Longborough,
|
37
|
+
Christopher Hughes, Clemens Niederberger, David Carlisle, Enrico Gregorio, Francesco
|
38
|
+
Endrici, Gonzalo Medina, Harish Kumar, Heiko Oberdiek, İlhan Polat, Joseph Wright,
|
39
|
+
Marco Daniel, Mikaël Maunier, Nicola Talbot, Patrick Gundlach, Rasmus Roulund,
|
40
|
+
Sergey Ulyanov, Stefan Kottwitz und viele andere, die dieses bescheidene Tool
|
41
|
+
ermöglichten.
|
42
|
+
RunningCommand: Verarbeite %{0}...
|
43
|
+
Success: ERFOLGREICH
|
44
|
+
Failure: FEHLERHAFT
|
45
|
+
Status: 'Status:'
|
46
|
+
yamlerror:
|
47
|
+
Context: 'Kontext: %{0}'
|
48
|
+
Problem: 'Problem: %{0}'
|
49
|
+
ErrorLocation: Fehler in Zeile %{0}, Spalte %{1}.
|
50
|
+
error:
|
51
|
+
FileDoesNotExistWithExtensionsList: Es tut mir Leid, aber die Datei ''%{0} %{1}''
|
52
|
+
existiert nicht. Beachte bitte, dass wenn du nur den Dateinamen (ohne Endung)
|
53
|
+
oder eine unbekannte Dateiendung angegeben hast, arara stets versucht nach unterstützten
|
54
|
+
Dateiendungen in der Reihenfolge %{1} zu suchen. Du kannst die Reihenfolge bzw.
|
55
|
+
das Suchmuster ändern oder sogar neue Dateiendung hinzufügen. Bitte konsolidiere
|
56
|
+
die Dokumentation, um mehr über dieses und andere Features zu erfahren.
|
57
|
+
FileDoesNotExist: Datei ''%{0}'' existiert nicht.
|
58
|
+
CommandNotFound: Es tut mir Leid, aber die Anweisung der Aufgabe ''%{0}'' konnte
|
59
|
+
nicht gefunden werden. Bist du dir sicher, dass die Anweisung ''%{1}'' korrekt
|
60
|
+
oder über die Systempfade zugänglich ist?
|
61
|
+
InvalidYAMLConfigurationFile: 'Es tut mir Leid, aber deine arara Konfigurationsdatei
|
62
|
+
ist unzulässig. Dies kann aus einem unzulässigen oder fehlenden YAML Eintrag
|
63
|
+
resultieren. Ich versuchte mein Bestes, um einen Auszug der Fehlermeldung zu
|
64
|
+
machen. Hier ist es:'
|
65
|
+
InvalidConfigurationFile: Uh-oh, die Konfigurationsdatei scheint unzulässig zu
|
66
|
+
sein. Bist du dir sicher, dass es sich um eine korrekt erstellte YAML-Datei
|
67
|
+
handelt? Leider kann arara nicht fortsetzen, bis eine passende Konfigurationsdatei
|
68
|
+
bereitgestellt wird.
|
69
|
+
InvalidLanguageConfigurationFile: 'Housten, wir haben ein Problem. Leider ist
|
70
|
+
die in der Konfigurationsdatei spezifizierte Sprache nicht zulässig. Momentan
|
71
|
+
kann arara die folgenden Sprachen unterstützen: %{0}. Stelle sicher, dass eine
|
72
|
+
gültige Sprache gewählt wird oder entferne den Eintrag aus deiner Konfigurationsdatei
|
73
|
+
(der Sprachschlüssel ist optional), ansonsten kann arara nicht ausgeführt werden.'
|
74
|
+
InvalidFiletypesConfigurationFile: Es tut mir Leid, aber es scheint, dass du eine
|
75
|
+
benutzerdefinierte Konfigurationsdatei nutzt, bei der weder die Dateiendung
|
76
|
+
noch das Muster definiert wurde. Beides wird zum Fortfahren benötigt. Bitte
|
77
|
+
behebe diesen Fehler in deiner Konfigurationsdatei und versuche es erneut.
|
78
|
+
PathRuntimeErrorConfigurationFile: 'Es tut mir Leid, aber einer der Einträge des
|
79
|
+
Suchpfades in deiner Konfigurationsdatei hat eine nicht verfügbare Variable
|
80
|
+
im Zusammenhang mit dem Pfad: %{0}'
|
81
|
+
PathIOErrorConfigurationFile: Es tut mir Leid, aber einer der Einträge des Suchpfades
|
82
|
+
in deiner Konfigurationsdatei hat eine ungültige Verzeichnisstruktur. Kannst
|
83
|
+
du einen Blick darauf werfen?
|
84
|
+
InvalidYAMLDirective: 'Es scheint, als gäbe es eine deformierte Anweisung in der
|
85
|
+
Zeile %{0}. Die Anweisung kann einen Fehler in der YAML-Syntax aufweisen bzw.
|
86
|
+
einen ungültiger Eintrag haben. Ich versuchte mein Bestes, um einen Auszug der
|
87
|
+
Fehlermeldung zu machen. Hier ist es:'
|
88
|
+
DirectiveEmptyCurlyBrackets: Die Anweisung %{0} in Zeile %{1} hat ein leeres geschweiftes
|
89
|
+
Klammerpaar. Beachte bitte, dass arara für eine klare Syntax optimiert ist,
|
90
|
+
wenn kein Parameter übergeben wird, sollte auch keine Klammer angegeben werden.
|
91
|
+
Um den Fehler zu beseitigen, reicht es aus, die geschweiften Klammern zu entfernen
|
92
|
+
oder ein Argument für die Anweisung zu übergeben.
|
93
|
+
DirectiveInvalidArgumentList: Die Anweisung %{0} in Zeile %{1} hat einen unzulässigen
|
94
|
+
Argumenttypen. Das Argument %{2} ist ein reserviertes Schlüsselwort von arara
|
95
|
+
und verlangt stets eine Liste.
|
96
|
+
DirectiveReservedKeyword: Die Anweisung %{0} in Zeile %{1} hat einen unzulässigen
|
97
|
+
Argumentnamen. Der Name %{2} ist ein reserviertes Schlüsselwort von arara und
|
98
|
+
repräsentiert jedes Element in der Liste %{3}. Bitte wähle einen anderen Namen
|
99
|
+
als Argument.
|
100
|
+
DirectiveListError: Die Anweisung ''%{0}'' in Zeile ''%{1}'' hat einen unzulässigen
|
101
|
+
Argumenttypen. Nur die Argumente ''files'' und ''items'' können eine liste haben.
|
102
|
+
Beides sind reservierte Schlüsselwörter von arara.
|
103
|
+
InvalidDirective: Anscheinend gibt es eine ungültige Direktive in der Zeile %{0}.
|
104
|
+
Bitte prüfe und behebe es.
|
105
|
+
DirectiveGenericError: Die Anweisung ''%{0}'' in Zeile ''%{1}'' scheint deformiert
|
106
|
+
zu sein. Es kann ein Fehler in der YAML-Syntax oder eine falsche Zuordnung sein.
|
107
|
+
InvalidLanguage: 'Es tut mir Leid, aber die gewählte Sprache ist nicht verfügbar.
|
108
|
+
Im Moment werden folgende Sprachen unterstützt:'
|
109
|
+
RuleNotFound: Uh-oh, Ich konnte die Regel ''%{0}'' im Suchpfad nicht finden. Kannst
|
110
|
+
du bitte prüfen, ob der Regelname korrekt ist und die Regel durch den Suchpfad
|
111
|
+
gefunden wird?
|
112
|
+
InvalidYAMLRule: 'Es scheint, dass die Aufgabe ''''%{0}'''' einen Fehler in der
|
113
|
+
YAML-Syntax hat oder ein ungültiges Feld nutzt. Kannst du einen Blick auf die
|
114
|
+
Datei ''''%{0}.yaml'''' im Pfad ''''%{1}'''' werfen. Ich versuchte mein Bestes,
|
115
|
+
um die Fehlermeldung auszuwerfen. Hier ist sie:'
|
116
|
+
InvalidRule: Uh-oh, Die Aufgabe ''%{0}'' scheint ungültig zu sein. Bist du dir
|
117
|
+
sicher, dass die Datei ''%{0}.yaml'' im Pfad ''%{1}'' eine gültige YAML file
|
118
|
+
ist?
|
119
|
+
EmptyIdentifierRule: Ein Problem in der Aufgabe ''%{0}'' wurde festgestellt. Die
|
120
|
+
Datei ''%{0}.yaml'' im Pfad ''%{1}'' verlangt einen gültigen Bezeichner (identifier).
|
121
|
+
Kannst du es beheben?
|
122
|
+
EmptyNameRule: Ein Problem in der Aufgabe ''%{0}'' wurde festgestellt. Die Datei
|
123
|
+
''%{0}.yaml'' im Pfad ''%{1}'' verlangt einen gültigen Dateinamen. Kannst du
|
124
|
+
es beheben?
|
125
|
+
ForbiddenIdentifierRule: Uh-oh, die Aufgabe ''%{0}'' (Referenzierung auf Datei
|
126
|
+
''%{0}.yaml'' im Pfad ''%{1}'') hat einen ungültigen Argumenteinbezeichner.
|
127
|
+
''%{2}'' ist ein reserviertes Schlüsselwort und kann daher nicht genutzt werden.
|
128
|
+
Kannst du einen anderen Namen nutzen?
|
129
|
+
EmptyArgumentsListRule: 'Ein Problem wurde in der Aufgabe ''''%{0}'''' festgestellt.
|
130
|
+
Die Datei ''''%{0}.yaml'''' im Pfad ''''%{1}'''' verlangt eine validierte Liste
|
131
|
+
an Argumenten. Kannst du es beheben? Beachte, dass die Liste der Argumente auch
|
132
|
+
leer sein kann. Es ist aber unbedingt notwendig, dass das Argument explizit
|
133
|
+
angeben wird: ''''arguments: []''''.'
|
134
|
+
WrongIdentifierRule: 'Uh-oh, die Aufgabe ''''%{0}'''' (Referenzierung auf Datei
|
135
|
+
''''%{0}.yaml'''' im Pfad ''''%{1}'''') hat einen falschen Identifier: ''''identifier''''
|
136
|
+
- Es wurde ''''%{0}'''' anstelle von ''''%{2}'''' erwartet. Kannst du es beheben?'
|
137
|
+
ArgumentsNotDefinedInRule: 'Oh nein, es gibt Argumente in der Anweisung ''''%{0}'''',
|
138
|
+
welche nicht in der Regel ''''%{0}.yaml'''' im Pfad ''''%{1}'''' definiert wurden.
|
139
|
+
Du kannst sie aus der Anweisung ''''%{0}'''' entfernen oder als Liste von Argumenten
|
140
|
+
in der Regel ''''%{0}.yaml'''' ergänzen. Hier sind sie: %{2}'
|
141
|
+
DefaultValueRuntimeErrorRule: 'Es tut mir Leid, aber der Defaultwert für das Argument
|
142
|
+
''''%{0}'''' der Aufgabe ''''%{1}'''' (Referenzierung auf Datei ''''%{0}.yaml''''
|
143
|
+
im Pfad ''''%{1}'''') hat eine ungültige Variable/Methode im Regelkontext: ''''%{3}'''''
|
144
|
+
FlagRuntimeErrorRule: 'Es tut mir Leid, aber der Flag für das Argument ''''%{0}''''
|
145
|
+
der Aufgabe ''''%{1}'''' (Referenzierung auf Datei ''''%{0}.yaml'''' im Pfad
|
146
|
+
''''%{1}'''') hat eine ungültige Variable/Methode im Regelkontext: ''''%{3}'''''
|
147
|
+
DuplicatedCommandElementsRule: Uh-oh, in der Aufgabe ''%{0}'' werden beide Felder
|
148
|
+
''command'' und ''commands'' verwendet (Referenzierung auf Datei ''%{0}.yaml''
|
149
|
+
im Pfad ''%{1}''). Du kannst nur eine der Anweisungen auswählen. Sollte deine
|
150
|
+
Aufgabe von einem einzelnen Kommando abhängen, kannst du ''command'' optimieren.
|
151
|
+
Sollte deine Regel mehrere Anweisungen benötigen, könnte das Feld ''commands''
|
152
|
+
geeignet sein.
|
153
|
+
MissingCommandElementsRule: Uh-oh, die Aufgabe ''%{0}'' (Referenzierung auf Datei
|
154
|
+
''%{0}.yaml'' im Pfad ''%{1}'') hat keines der Elemente ''command'' oder ''commands''.
|
155
|
+
Du musst nur eine der Anweisungen auswählen. Sollte deine Aufgabe von einem
|
156
|
+
einzelnen Kommando abhängen, kannst du ''command'' optimieren. Sollte deine
|
157
|
+
Regel mehrere Anweisungen benötigen, könnte das Feld ''commands'' geeignet sein.
|
158
|
+
CommandRuntimeErrorRule: 'Es tut mir Leid, aber das Kommando, welches in der Aufgabe
|
159
|
+
''''%{0}'''' (Referenzierung auf Datei ''''%{0}.yaml'''' im Pfad ''''%{1}'''')
|
160
|
+
genutzt wird, hat eine ungültige Variable/Methode im Regelsinn: ''''%{2}'''''
|
161
|
+
XMLFileNotFound: Es tut mir Leid, aber ich konnte die ''%{0}'' im aktuellen Verzeichnis
|
162
|
+
nicht finden.
|
163
|
+
XMLBadEncoding: Es tut mir Leid, aber anscheinend hat ''%{0}'' eine schlechte
|
164
|
+
Zeichencodierung. Lösche die Datei und versuche es erneut.
|
165
|
+
XMLMalformedFile: Es tut mir Leid, aber ''%{0}'' scheint deformiert zu sein. Lösche
|
166
|
+
die Datei und versuche es erneut.
|
167
|
+
XMLAccess: Es tut mir Leid, aber ich konnte nicht auf ''%{0}'' zugreifen. Bitte
|
168
|
+
prüfe die Verzeichnisrechte und versuche es erneut.
|
169
|
+
ConditionalNotBoolean: Es tut mir Leid, aber die folgende Bedingung kann nicht
|
170
|
+
zu einem Boole'schen Wert aufgelöst werden. Bitte schreibe es um und versuche
|
171
|
+
es erneut.
|
172
|
+
ConditionalRuntimeError: 'Es tut mir Leid, aber eine der Bedingungen hat eine
|
173
|
+
nicht verfügbare Variable in der Auswertung: ''''%{0}'''''
|
@@ -0,0 +1,162 @@
|
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
help:
|
4
|
+
language: set the application language
|
5
|
+
log: generate a log output
|
6
|
+
timeout: set execution timeout
|
7
|
+
verbose: print the command output
|
8
|
+
version: print the application version
|
9
|
+
usage: Usage
|
10
|
+
rights: All rights reserved.
|
11
|
+
Version: print the application version
|
12
|
+
Help: print the help message
|
13
|
+
Log: generate a log output
|
14
|
+
Verbose: print the command output
|
15
|
+
Timeout: set the execution timeout (in milliseconds)
|
16
|
+
Language: set the application language
|
17
|
+
DryRun: go through all the motions of running a command, but with no actual calls
|
18
|
+
MaximumNumberOfLoops: set the maximum number of loops
|
19
|
+
log:
|
20
|
+
WelcomeMessage: Welcome to arara %{0}!
|
21
|
+
ProcessingFile: Processing file ''%{0}'', please wait.
|
22
|
+
Done: Done.
|
23
|
+
ExceptionRaised: 'Arara raised an exception with the following message:'
|
24
|
+
ReadyToRunCommands: Ready to run commands.
|
25
|
+
CommandName: Running ''%{0}''.
|
26
|
+
Command: 'Command: %{0}'
|
27
|
+
CommandSuccess: "''%{0}'' was successfully executed."
|
28
|
+
CommandFailure: "''%{0}'' returned an error status."
|
29
|
+
AllCommandsSuccess: All commands were successfully executed.
|
30
|
+
OutputLogging: 'Output logging:'
|
31
|
+
CommandNotFound: "''%{0}'' was not found in the path. Execution attempt: %{1}"
|
32
|
+
DirectiveFound: Directive found in line %{0} with %{1}.
|
33
|
+
RuleFound: Task ''%{0}'' found in ''%{1}''.
|
34
|
+
NoDirectivesFound: No directives found in ''%{0}''.
|
35
|
+
header:
|
36
|
+
Slogan: The cool TeX automation tool
|
37
|
+
AllRightsReserved: All rights reserved.
|
38
|
+
msg:
|
39
|
+
NoDirectivesFound: I didn''t find any directives in ''%{0}'', and so didn''t do
|
40
|
+
anything. Is that what you really wanted?
|
41
|
+
SpecialThanks: A special thanks goes to %{contributors}, and many others for making this humble tool possible.
|
42
|
+
RunningCommand: Running %{0}...
|
43
|
+
Success: SUCCESS
|
44
|
+
Failure: FAILURE
|
45
|
+
Status: 'Status:'
|
46
|
+
yamlerror:
|
47
|
+
Context: 'Context: %{0}'
|
48
|
+
Problem: 'Problem: %{0}'
|
49
|
+
ErrorLocation: Error found in line %{0}, column %{1}.
|
50
|
+
error:
|
51
|
+
FileDoesNotExistWithExtensionsList: I''m sorry, but the file ''%{0} %{1}'' does
|
52
|
+
not exist. Note that when you provide only the basename (i.e, the filename without
|
53
|
+
the extension) or with an unknown extension, arara will try to look for files
|
54
|
+
ending with the predefined extensions %{1} in that order. You can override the
|
55
|
+
order, the search pattern or even add support for new extensions through the
|
56
|
+
configuration file. Please refer to the arara manual to learn more about this
|
57
|
+
feature.
|
58
|
+
FileDoesNotExist: File ''%{0}'' does not exist.
|
59
|
+
CommandNotFound: "\\nI''m sorry, but the command from the ''%{0}'' task could
|
60
|
+
not be found. Are you sure the command ''%{1}'' is correct, or even accessible
|
61
|
+
from the system path?"
|
62
|
+
InvalidYAMLConfigurationFile: 'I''m sorry, but apparently your arara configuration
|
63
|
+
file is invalid, that is, it has invalid or missing YAML entries. Unfortunately,
|
64
|
+
arara cannot proceed until the error is fixed. I tried my best to dump the error
|
65
|
+
message, so here it is:'
|
66
|
+
InvalidConfigurationFile: Uh-oh, the configuration file appears to be invalid.
|
67
|
+
Are you sure it's a proper YAML file? Unfortunately, arara cannot proceed until
|
68
|
+
a proper configuration file is provided.
|
69
|
+
InvalidLanguageConfigurationFile: 'Houston, we have a problem. Sadly, the language
|
70
|
+
set in the configuration file is not valid. Currently, arara can provide support
|
71
|
+
for the following languages: %{0}. Make sure to choose a valid language or remove
|
72
|
+
the entry from the configuration file (the field is optional), otherwise arara
|
73
|
+
cannot proceed.'
|
74
|
+
InvalidFiletypesConfigurationFile: I'm sorry, but it seems your configuration
|
75
|
+
file has customized filetypes with neither the extension or pattern defined.
|
76
|
+
Both are required in order to continue. Please fix this error in your configuration
|
77
|
+
file and try again.
|
78
|
+
PathRuntimeErrorConfigurationFile: 'I''''m sorry, but one of the entries of the
|
79
|
+
search path in your configuration file has an unavailable variable in the path
|
80
|
+
context: ''''%{0}'''''
|
81
|
+
PathIOErrorConfigurationFile: I'm sorry, but one of the entries of the search
|
82
|
+
path in your configuration file has a malformed directory structure. Could you
|
83
|
+
take a look at it?
|
84
|
+
InvalidYAMLDirective: 'It appears there is a malformed directive found at line
|
85
|
+
%{0}, that is, a directive that might have a YAML syntax error or an invalid
|
86
|
+
field. I tried my best to dump the error message, so here it is:'
|
87
|
+
DirectiveEmptyCurlyBrackets: Directive ''%{0}'' at line %{1} has empty curly brackets.
|
88
|
+
Note that arara opts for a cleaner syntax when a directive has no parameters.
|
89
|
+
To fix it, it''s enough to either remove the curly brackets or provide the arguments
|
90
|
+
for the directive.
|
91
|
+
DirectiveInvalidArgumentList: Directive ''%{0}'' at line %{1} has an invalid argument
|
92
|
+
type. The argument ''%{2}'' is a reserved arara keyword and always requires
|
93
|
+
a list.
|
94
|
+
DirectiveReservedKeyword: Directive ''%{0}'' at line %{1} has an invalid argument
|
95
|
+
name. The name ''%{2}'' is a reserved arara keyword representing every element
|
96
|
+
in the ''%{3}'' list. Please, pick another name for that argument.
|
97
|
+
DirectiveListError: Directive ''%{0}'' at line %{1} has an invalid argument type.
|
98
|
+
Only the arguments ''files'' and ''items'' can have a list. Both are reserved
|
99
|
+
arara keywords.
|
100
|
+
InvalidDirective: Apparently, there''s an invalid directive at line %{0}. Please
|
101
|
+
take a look and fix it.
|
102
|
+
DirectiveGenericError: Directive ''%{0}'' at line %{1} seems to be malformed.
|
103
|
+
It might be a YAML syntax error or a wrong mapping.
|
104
|
+
InvalidLanguage: 'I''m sorry, but the language code you chose is invalid. Currently,
|
105
|
+
the following languages are supported:'
|
106
|
+
RuleNotFound: Uh-oh, I could not find the ''%{0}'' rule in the search path. Could
|
107
|
+
you take a look if the rule name is correct and if the rule is accessible through
|
108
|
+
the search path?
|
109
|
+
InvalidYAMLRule: 'It appears that the ''''%{0}'''' task has a YAML syntax error
|
110
|
+
or an invalid field. Could you take a look at the ''''%{0}.yaml'''' file located
|
111
|
+
at ''''%{1}''''. I tried my best to dump the error message, so here it is:'
|
112
|
+
InvalidRule: Uh-oh, the ''%{0}'' task appears to be invalid. Are you sure the
|
113
|
+
''%{0}.yaml'' file located at ''%{1}'' is a proper YAML file?
|
114
|
+
EmptyIdentifierRule: A problem was detected in the ''%{0}'' task. The ''%{0}.yaml''
|
115
|
+
file located at ''%{1}'' requires a valid identifier. Could you fix it?
|
116
|
+
EmptyNameRule: A problem was detected in the ''%{0}'' task. The ''%{0}.yaml''
|
117
|
+
file located at ''%{1}'' requires a valid name. Could you fix it?
|
118
|
+
ForbiddenIdentifierRule: Uh-oh, the ''%{0}'' task (referencing the ''%{0}.yaml''
|
119
|
+
file located at ''%{1}'') has an invalid argument identifier. ''%{2}'' is a
|
120
|
+
reserved keyword, so it cannot be used. Could you use another name?
|
121
|
+
EmptyArgumentsListRule: 'A problem was detected in the ''''%{0}'''' task. The
|
122
|
+
''''%{0}.yaml'''' file located at ''''%{1}'''' requires a valid list of arguments.
|
123
|
+
Could you fix it? Note that the list of arguments can also be empty, but it
|
124
|
+
is still necessary to define it explicitly (with ''''arguments: []'''').'
|
125
|
+
WrongIdentifierRule: Uh-oh, the ''%{0}'' task (referencing the ''%{0}.yaml'' file
|
126
|
+
located at ''%{1}'') has the wrong identifier - ''%{0}'' was expected, rather
|
127
|
+
than ''%{2}''. Could you fix it?
|
128
|
+
ArgumentsNotDefinedInRule: 'Oh no, there are arguments used in the diretive ''''%{0}''''
|
129
|
+
which are not defined in the ''''%{0}.yaml'''' rule located at ''''%{1}''''.
|
130
|
+
You can either remove them from the ''''%{0}'''' directive or add them to the
|
131
|
+
list of arguments in the ''''%{0}.yaml'''' rule. Here they are: %{2}'
|
132
|
+
DefaultValueRuntimeErrorRule: 'I''''m sorry, but the default value set for the
|
133
|
+
argument ''''%{0}'''' of the ''''%{1}'''' task (referencing the ''''%{1}.yaml''''
|
134
|
+
file located at ''''%{2}'''') has an unavailable variable/method in the rule
|
135
|
+
context: ''''%{3}'''''
|
136
|
+
FlagRuntimeErrorRule: 'I''''m sorry, but the flag set for the argument ''''%{0}''''
|
137
|
+
of the ''''%{1}'''' task (referencing the ''''%{1}.yaml'''' file located at
|
138
|
+
''''%{2}'''') has an unavailable variable/method in the rule context: ''''%{3}'''''
|
139
|
+
DuplicatedCommandElementsRule: Uh-oh, both ''command'' and ''commands'' fields
|
140
|
+
are set in the ''%{0}'' task (referencing the ''%{0}.yaml'' file located at
|
141
|
+
''%{1}''). You need to pick only one of them. If your task only relies on a
|
142
|
+
single command, you can opt for ''command''; if your rule requires a set of
|
143
|
+
commands, maybe the ''commands'' field is more suitable.
|
144
|
+
MissingCommandElementsRule: Uh-oh, the ''%{0}'' task (referencing the ''%{0}.yaml''
|
145
|
+
file located at ''%{1}'') does not have either the ''command'' or ''commands''
|
146
|
+
elements. You need to pick only one of them. If your task only relies on a single
|
147
|
+
command, you can opt for ''command''; if your rule requires a set of commands,
|
148
|
+
maybe the ''commands'' field is more suitable.
|
149
|
+
CommandRuntimeErrorRule: 'I''''m sorry, but the command set for the ''''%{0}''''
|
150
|
+
task (referencing the ''''%{0}.yaml'''' file located at ''''%{1}'''') has an
|
151
|
+
unavailable variable/method in the rule context: ''''%{2}'''''
|
152
|
+
XMLFileNotFound: I''m sorry, but I could not find ''%{0}'' in the current directory.
|
153
|
+
XMLBadEncoding: I''m sorry, but apparently ''%{0}'' has a bad encoding. Delete
|
154
|
+
the file and try again.
|
155
|
+
XMLMalformedFile: I''m sorry, but ''%{0}'' seems to be malformed. Delete the file
|
156
|
+
and try again.
|
157
|
+
XMLAccess: I''m sorry, but I could not access ''%{0}''. Please check the directory
|
158
|
+
permissions and try again.
|
159
|
+
ConditionalNotBoolean: 'I''m sorry, but the following conditional does not resolve
|
160
|
+
to a boolean value. Please rewrite it and try again:'
|
161
|
+
ConditionalRuntimeError: 'I''''m sorry, but one of the conditionals has an unavailable
|
162
|
+
variable in the evaluation context: ''''%{0}'''''
|