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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b9be3ed264551d27b6cc2d0d0b8961985c7f97a8
4
- data.tar.gz: 9c8a41cba686576e6ca81f5de338d15b8f738abe
3
+ metadata.gz: 6733221bba7193b68884db49e4c8cdbff56edf46
4
+ data.tar.gz: 031a61aee4e22b1099ae3a4e215a29b087e8cd50
5
5
  SHA512:
6
- metadata.gz: 5fb645b1a34f5c5df1e4e5f23538e0fcba20c9624aeb9459a818aa08bdd6907683ddfae1d80f7985343d190b5c25f001add8098bc06ef985b82aa2cd3c384ae9
7
- data.tar.gz: ed7cf1556424f7fea003e880cc45a1136cb91fe30c887cbf20217f4432948f54fcbc2f654ca3d991db8afd0df3b55e1af687b7061c3ff76b9b8434be5a3319fb
6
+ metadata.gz: f26343656999e8b58ce48b51190d89a9d6f5eb3ecf091a376ff8367bf1b5f5b062fbb590a28b7a7f7d63a48d1e533716c3a1ec3baf6125018eecabf456d6c297
7
+ data.tar.gz: 0441292113bbb4cbb34efbbc2176d514bfc0f8753add307dda7045088f0eacbfb38067a03526ce1fa102bd8b369460ce0771efb1fc672a9f61661dbf5b650041
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  pkg
2
2
  test.*
3
+ arara
data/Gemfile.lock CHANGED
@@ -1,27 +1,27 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- macaw-ruby (0.0.33)
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('.')}; #{vars(ens).inspect} vs #{vars(ls).inspect}" if vars(ens) != vars(ls)
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 :tr do
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.usage')}: macaw [options] FILE"
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
- print (options.progress && !force ? '.' : line) if @@options.verbose || @@options.progress || force
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
 
@@ -1,23 +1,23 @@
1
1
  ---
2
2
  de:
3
3
  log:
4
- WelcomeMessage: Willkommen zu arara %{0}!
5
- ProcessingFile: Bearbeitung der Datei ''%{file}'', bitte warten.
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 arara ausgelöst
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: ''''%{0}''''.'
10
+ CommandName: 'Verarbeitung von: "%{0}".'
11
11
  Command: 'Anweisung: %{0}'
12
- CommandSuccess: "''%{0}'' wurde erfolgreich ausgeführt."
13
- CommandFailure: "''%{0}'' gibt einen Fehlerwert zurück."
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: "''%{0}'' wurde nicht im Suchpfad gefunden. Ausführungsversuch:
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 ''%{0}'' gefunden in ''%{1}''.
20
- NoDirectivesFound: Keine Anweisungen in ''%{0}'' gefunden.
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 ''%{file}'' gefunden und daher nichts
35
- getan. Ist es das, was du wirklich wolltest.
36
- SpecialThanks: Ein besonderes Danke geht an %{contributors} und viele andere, die dieses bescheidene Tool
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 ''%{0} %{1}''
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, arara stets versucht nach unterstützten
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 ''%{file}'' existiert nicht.
54
- CommandNotFound: Es tut mir Leid, aber die Anweisung der Aufgabe ''%{0}'' konnte
55
- nicht gefunden werden. Bist du dir sicher, dass die Anweisung ''%{1}'' korrekt
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 arara Konfigurationsdatei
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 arara nicht fortsetzen, bis eine passende Konfigurationsdatei
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 arara die folgenden Sprachen unterstützen: %{languages}. Stelle sicher, dass eine
68
- gültige Sprache gewählt wird oder entferne den Eintrag aus deiner Konfigurationsdatei
69
- (der Sprachschlüssel ist optional), ansonsten kann arara nicht ausgeführt werden.'
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 arara für eine klare Syntax optimiert ist,
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 arara
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 arara und
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 ''%{0}'' in Zeile ''%{1}'' hat einen unzulässigen
97
- Argumenttypen. Nur die Argumente ''files'' und ''items'' können eine liste haben.
98
- Beides sind reservierte Schlüsselwörter von arara.
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 ''%{0}'' in Zeile ''%{1}'' scheint deformiert
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 ''%{0}'' im Suchpfad nicht finden. Kannst
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 ''''%{0}'''' einen Fehler in der
109
- YAML-Syntax hat oder ein ungültiges Feld nutzt. Kannst du einen Blick auf die
110
- Datei ''''%{0}.yaml'''' im Pfad ''''%{1}'''' werfen. Ich versuchte mein Bestes,
111
- um die Fehlermeldung auszuwerfen. Hier ist sie:'
112
- InvalidRule: Uh-oh, Die Aufgabe ''%{0}'' scheint ungültig zu sein. Bist du dir
113
- sicher, dass die Datei ''%{0}.yaml'' im Pfad ''%{1}'' eine gültige YAML file
114
- ist?
115
- EmptyIdentifierRule: Ein Problem in der Aufgabe ''%{0}'' wurde festgestellt. Die
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 ''%{0}'' wurde festgestellt. Die Datei
119
- ''%{0}.yaml'' im Pfad ''%{1}'' verlangt einen gültigen Dateinamen. Kannst du
120
- es beheben?
121
- ForbiddenIdentifierRule: Uh-oh, die Aufgabe ''%{0}'' (Referenzierung auf Datei
122
- ''%{0}.yaml'' im Pfad ''%{1}'') hat einen ungültigen Argumenteinbezeichner.
123
- ''%{2}'' ist ein reserviertes Schlüsselwort und kann daher nicht genutzt werden.
124
- Kannst du einen anderen Namen nutzen?
125
- EmptyArgumentsListRule: 'Ein Problem wurde in der Aufgabe ''''%{0}'''' festgestellt.
126
- Die Datei ''''%{0}.yaml'''' im Pfad ''''%{1}'''' verlangt eine validierte Liste
127
- an Argumenten. Kannst du es beheben? Beachte, dass die Liste der Argumente auch
128
- leer sein kann. Es ist aber unbedingt notwendig, dass das Argument explizit
129
- angeben wird: ''''arguments: []''''.'
130
- WrongIdentifierRule: 'Uh-oh, die Aufgabe ''''%{0}'''' (Referenzierung auf Datei
131
- ''''%{0}.yaml'''' im Pfad ''''%{1}'''') hat einen falschen Identifier: ''''identifier''''
132
- - Es wurde ''''%{0}'''' anstelle von ''''%{2}'''' erwartet. Kannst du es beheben?'
133
- ArgumentsNotDefinedInRule: 'Oh nein, es gibt Argumente in der Anweisung ''''%{0}'''',
134
- welche nicht in der Regel ''''%{0}.yaml'''' im Pfad ''''%{1}'''' definiert wurden.
135
- Du kannst sie aus der Anweisung ''''%{0}'''' entfernen oder als Liste von Argumenten
136
- in der Regel ''''%{0}.yaml'''' ergänzen. Hier sind sie: %{2}'
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
- ''''%{0}'''' der Aufgabe ''''%{1}'''' (Referenzierung auf Datei ''''%{0}.yaml''''
139
- im Pfad ''''%{1}'''') hat eine ungültige Variable/Methode im Regelkontext: ''''%{3}'''''
140
- FlagRuntimeErrorRule: 'Es tut mir Leid, aber der Flag für das Argument ''''%{0}''''
141
- der Aufgabe ''''%{1}'''' (Referenzierung auf Datei ''''%{0}.yaml'''' im Pfad
142
- ''''%{1}'''') hat eine ungültige Variable/Methode im Regelkontext: ''''%{3}'''''
143
- DuplicatedCommandElementsRule: Uh-oh, in der Aufgabe ''%{0}'' werden beide Felder
144
- ''command'' und ''commands'' verwendet (Referenzierung auf Datei ''%{0}.yaml''
145
- im Pfad ''%{1}''). Du kannst nur eine der Anweisungen auswählen. Sollte deine
146
- Aufgabe von einem einzelnen Kommando abhängen, kannst du ''command'' optimieren.
147
- Sollte deine Regel mehrere Anweisungen benötigen, könnte das Feld ''commands''
148
- geeignet sein.
149
- MissingCommandElementsRule: Uh-oh, die Aufgabe ''%{0}'' (Referenzierung auf Datei
150
- ''%{0}.yaml'' im Pfad ''%{1}'') hat keines der Elemente ''command'' oder ''commands''.
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 ''command'' optimieren. Sollte deine
153
- Regel mehrere Anweisungen benötigen, könnte das Feld ''commands'' geeignet sein.
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
- ''''%{0}'''' (Referenzierung auf Datei ''''%{0}.yaml'''' im Pfad ''''%{1}'''')
156
- genutzt wird, hat eine ungültige Variable/Methode im Regelsinn: ''''%{2}'''''
157
- XMLFileNotFound: Es tut mir Leid, aber ich konnte die ''%{0}'' im aktuellen Verzeichnis
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 ''%{0}'' eine schlechte
160
- Zeichencodierung. Lösche die Datei und versuche es erneut.
161
- XMLMalformedFile: Es tut mir Leid, aber ''%{0}'' scheint deformiert zu sein. Lösche
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 ''%{0}'' zugreifen. Bitte
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: ''''%{0}'''''
171
+ nicht verfügbare Variable in der Auswertung: "%{0}"'
@@ -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
- Progress: print dots for progress
14
- log:
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''t find any directives in '%{file}', and so didn't do
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 this humble tool possible.
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'm sorry, but the file '%{0} %{1}' does
47
- not exist. Note that when you provide only the basename (i.e, the filename without
48
- the extension) or with an unknown extension, arara will try to look for files
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 arara manual to learn more about this
52
+ configuration file. Please refer to the macaw manual to learn more about this
52
53
  feature.
53
- FileDoesNotExist: File '%{file}' does not exist.
54
- CommandNotFound: "\\nI''m sorry, but the command from the ''%{0}'' task could
55
- not be found. Are you sure the command ''%{1}'' is correct, or even accessible
56
- from the system path?"
57
- InvalidYAMLConfigurationFile: 'I''m sorry, but apparently your arara configuration
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
- arara cannot proceed until the error is fixed. I tried my best to dump the error
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, arara cannot proceed until
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, arara can provide support
66
- for the following languages: %{languages}. Make sure to choose a valid language or remove
67
- the entry from the configuration file (the field is optional), otherwise arara
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''''m sorry, but one of the entries of the
74
- search path in your configuration file has an unavailable variable in the path
75
- context: ''''%{0}'''''
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 ''%{0}'' at line %{1} has empty curly brackets.
83
- Note that arara opts for a cleaner syntax when a directive has no parameters.
84
- To fix it, it''s enough to either remove the curly brackets or provide the arguments
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 ''%{0}'' at line %{1} has an invalid argument
87
- type. The argument ''%{2}'' is a reserved arara keyword and always requires
88
- a list.
89
- DirectiveReservedKeyword: Directive ''%{0}'' at line %{1} has an invalid argument
90
- name. The name ''%{2}'' is a reserved arara keyword representing every element
91
- in the ''%{3}'' list. Please, pick another name for that argument.
92
- DirectiveListError: Directive ''%{0}'' at line %{1} has an invalid argument type.
93
- Only the arguments ''files'' and ''items'' can have a list. Both are reserved
94
- arara keywords.
95
- InvalidDirective: Apparently, there''s an invalid directive at line %{0}. Please
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 ''%{0}'' at line %{1} seems to be malformed.
98
- It might be a YAML syntax error or a wrong mapping.
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 ''%{0}'' rule in the search path. Could
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 ''''%{0}'''' task has a YAML syntax error
105
- or an invalid field. Could you take a look at the ''''%{0}.yaml'''' file located
106
- at ''''%{1}''''. I tried my best to dump the error message, so here it is:'
107
- InvalidRule: Uh-oh, the ''%{0}'' task appears to be invalid. Are you sure the
108
- ''%{0}.yaml'' file located at ''%{1}'' is a proper YAML file?
109
- EmptyIdentifierRule: A problem was detected in the ''%{0}'' task. The ''%{0}.yaml''
110
- file located at ''%{1}'' requires a valid identifier. Could you fix it?
111
- EmptyNameRule: A problem was detected in the ''%{0}'' task. The ''%{0}.yaml''
112
- file located at ''%{1}'' requires a valid name. Could you fix it?
113
- ForbiddenIdentifierRule: Uh-oh, the ''%{0}'' task (referencing the ''%{0}.yaml''
114
- file located at ''%{1}'') has an invalid argument identifier. ''%{2}'' is a
115
- reserved keyword, so it cannot be used. Could you use another name?
116
- EmptyArgumentsListRule: 'A problem was detected in the ''''%{0}'''' task. The
117
- ''''%{0}.yaml'''' file located at ''''%{1}'''' requires a valid list of arguments.
118
- Could you fix it? Note that the list of arguments can also be empty, but it
119
- is still necessary to define it explicitly (with ''''arguments: []'''').'
120
- WrongIdentifierRule: Uh-oh, the ''%{0}'' task (referencing the ''%{0}.yaml'' file
121
- located at ''%{1}'') has the wrong identifier - ''%{0}'' was expected, rather
122
- than ''%{2}''. Could you fix it?
123
- ArgumentsNotDefinedInRule: 'Oh no, there are arguments used in the diretive ''''%{0}''''
124
- which are not defined in the ''''%{0}.yaml'''' rule located at ''''%{1}''''.
125
- You can either remove them from the ''''%{0}'''' directive or add them to the
126
- list of arguments in the ''''%{0}.yaml'''' rule. Here they are: %{2}'
127
- DefaultValueRuntimeErrorRule: 'I''''m sorry, but the default value set for the
128
- argument ''''%{0}'''' of the ''''%{1}'''' task (referencing the ''''%{1}.yaml''''
129
- file located at ''''%{2}'''') has an unavailable variable/method in the rule
130
- context: ''''%{3}'''''
131
- FlagRuntimeErrorRule: 'I''''m sorry, but the flag set for the argument ''''%{0}''''
132
- of the ''''%{1}'''' task (referencing the ''''%{1}.yaml'''' file located at
133
- ''''%{2}'''') has an unavailable variable/method in the rule context: ''''%{3}'''''
134
- DuplicatedCommandElementsRule: Uh-oh, both ''command'' and ''commands'' fields
135
- are set in the ''%{0}'' task (referencing the ''%{0}.yaml'' file located at
136
- ''%{1}''). You need to pick only one of them. If your task only relies on a
137
- single command, you can opt for ''command''; if your rule requires a set of
138
- commands, maybe the ''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''
141
- elements. You need to pick only one of them. If your task only relies on a single
142
- command, you can opt for ''command''; if your rule requires a set of commands,
143
- maybe the ''commands'' field is more suitable.
144
- CommandRuntimeErrorRule: 'I''''m sorry, but the command set for the ''''%{0}''''
145
- task (referencing the ''''%{0}.yaml'''' file located at ''''%{1}'''') has an
146
- unavailable variable/method in 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
149
- the file and try again.
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''m sorry, but I could not access ''%{0}''. Please check the directory
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''''m sorry, but one of the conditionals has an unavailable
157
- variable in the evaluation context: ''''%{0}'''''
156
+ ConditionalRuntimeError: 'I"m sorry, but one of the conditionals has an unavailable
157
+ variable in the evaluation context: "%{0}"'