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