wwwjdic 13.0.0 → 16.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +63 -1
  3. data/Gemfile +9 -1
  4. data/README.md +499 -225
  5. data/Rakefile +12 -3
  6. data/copyright.md +17 -29
  7. data/examples/basics.rb +55 -45
  8. data/examples/translate.rb +161 -86
  9. data/examples/uri.rb +50 -78
  10. data/html/CHANGELOG.html +80 -21
  11. data/html/COPYING_md.html +13 -24
  12. data/html/Gemfile.html +12 -21
  13. data/html/Object.html +810 -45
  14. data/html/README_md.html +309 -161
  15. data/html/Rakefile.html +15 -24
  16. data/html/WWWJDic.html +41 -81
  17. data/html/WWWJDic/ParsableDuckType.html +15 -34
  18. data/html/WWWJDic/Parser.html +25 -64
  19. data/html/WWWJDic/Parsers.html +8 -13
  20. data/html/WWWJDic/Parsers/Dict.html +29 -54
  21. data/html/WWWJDic/Parsers/Display.html +24 -47
  22. data/html/WWWJDic/Parsers/Key.html +25 -48
  23. data/html/WWWJDic/Parsers/Search.html +19 -38
  24. data/html/WWWJDic/Parsers/Server.html +24 -47
  25. data/html/WWWJDic/Splitter.html +49 -142
  26. data/html/WWWJDic/Utils.html +9 -14
  27. data/html/WWWJDic/Utils/Downloader.html +8 -13
  28. data/html/WWWJDic/Utils/Downloader/Downloader.html +29 -63
  29. data/html/WWWJDic/Utils/Raisers.html +21 -72
  30. data/html/WWWJDic/WWWJDic.html +131 -312
  31. data/html/copyright_md.html +206 -225
  32. data/html/created.rid +33 -58
  33. data/html/css/rdoc.css +35 -6
  34. data/html/index.html +301 -169
  35. data/html/js/darkfish.js +22 -99
  36. data/html/js/navigation.js +4 -40
  37. data/html/js/navigation.js.gz +0 -0
  38. data/html/js/search.js +32 -31
  39. data/html/js/search_index.js +1 -1
  40. data/html/js/search_index.js.gz +0 -0
  41. data/html/js/searcher.js +6 -6
  42. data/html/js/searcher.js.gz +0 -0
  43. data/html/table_of_contents.html +160 -197
  44. data/lib/wwwjdic.rb +16 -15
  45. data/lib/wwwjdic/application.rb +69 -36
  46. data/lib/wwwjdic/constants.rb +48 -10
  47. data/lib/wwwjdic/locales/de.yml +9 -4
  48. data/lib/wwwjdic/locales/en.yml +9 -4
  49. data/lib/wwwjdic/locales/es.yml +9 -4
  50. data/lib/wwwjdic/locales/fr.yml +9 -4
  51. data/lib/wwwjdic/locales/hu.yml +9 -4
  52. data/lib/wwwjdic/locales/it.yml +9 -4
  53. data/lib/wwwjdic/locales/ja.yml +11 -5
  54. data/lib/wwwjdic/locales/nl.yml +9 -4
  55. data/lib/wwwjdic/locales/ru.yml +9 -4
  56. data/lib/wwwjdic/locales/sl.yml +9 -4
  57. data/lib/wwwjdic/locales/sv.yml +9 -4
  58. data/lib/wwwjdic/parser.rb +15 -8
  59. data/lib/wwwjdic/parsers/dict.rb +13 -8
  60. data/lib/wwwjdic/parsers/display.rb +10 -3
  61. data/lib/wwwjdic/parsers/key.rb +11 -3
  62. data/lib/wwwjdic/parsers/search.rb +12 -3
  63. data/lib/wwwjdic/parsers/server.rb +10 -3
  64. data/lib/wwwjdic/utils/downloader.rb +27 -30
  65. data/lib/wwwjdic/utils/raisers.rb +14 -15
  66. data/lib/wwwjdic/utils/splitter.rb +33 -18
  67. data/lib/wwwjdic/version.rb +28 -20
  68. data/test/test_helper.rb +12 -1
  69. data/test/test_wwwjdic.rb +12 -4
  70. data/test/wwwjdic/locales/de.yml +9 -1
  71. data/test/wwwjdic/locales/en.yml +9 -1
  72. data/test/wwwjdic/locales/es.yml +9 -1
  73. data/test/wwwjdic/locales/fr.yml +9 -1
  74. data/test/wwwjdic/locales/hu.yml +9 -1
  75. data/test/wwwjdic/locales/it.yml +10 -1
  76. data/test/wwwjdic/locales/ja.yml +11 -2
  77. data/test/wwwjdic/locales/nl.yml +9 -1
  78. data/test/wwwjdic/locales/ru.yml +9 -1
  79. data/test/wwwjdic/locales/sl.yml +9 -1
  80. data/test/wwwjdic/locales/sv.yml +9 -1
  81. data/test/wwwjdic/locales/test_locales.rb +43 -24
  82. data/test/wwwjdic/parsers/test_dict.rb +67 -37
  83. data/test/wwwjdic/parsers/test_display.rb +13 -5
  84. data/test/wwwjdic/parsers/test_key.rb +12 -4
  85. data/test/wwwjdic/parsers/test_server.rb +13 -5
  86. data/test/wwwjdic/test_application.rb +201 -149
  87. data/test/wwwjdic/test_parsable_duck_type.rb +11 -6
  88. data/test/wwwjdic/utils/test_downloader.rb +9 -1
  89. data/test/wwwjdic/utils/test_raisers.rb +48 -29
  90. data/wwwjdic.gemspec +46 -26
  91. metadata +55 -43
  92. data/acknowledgements.md +0 -55
  93. data/authors.md +0 -67
  94. data/html/acknowledgements_md.html +0 -149
  95. data/html/authors_md.html +0 -181
  96. data/html/js/jquery.js +0 -4
  97. data/html/wwwjdic_gemspec.html +0 -161
data/lib/wwwjdic.rb CHANGED
@@ -1,5 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ #--
1
4
  # wwwjdic
2
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
5
+ # rubocop:disable Style/AsciiComments
6
+ # © 2014 Marco Bresciani
7
+ # rubocop:enable Style/AsciiComments
3
8
  #
4
9
  # This file is part of wwwjdic.
5
10
  #
@@ -15,10 +20,11 @@
15
20
  #
16
21
  # You should have received a copy of the GNU General Public License
17
22
  # along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
18
-
19
- require 'digest/md5'
20
- require 'i18n'
21
- require 'uri'
23
+ #
24
+ # SPDX-FileCopyrightText: 2014 Marco Bresciani
25
+ #
26
+ # SPDX-License-Identifier: GPL-3.0-or-later
27
+ #++
22
28
 
23
29
  require_relative 'wwwjdic/application'
24
30
  require_relative 'wwwjdic/parser'
@@ -29,10 +35,9 @@ require_relative 'wwwjdic/parsers/search'
29
35
  require_relative 'wwwjdic/parsers/server'
30
36
 
31
37
  # Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
32
- # Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
38
+ # Copyright:: (C) 2014 Marco Bresciani
33
39
  # License:: GNU General Public License version 3
34
40
  module WWWJDic
35
-
36
41
  # Creates a new WWWJDic object (from the verb 'to Breen'... :) ).
37
42
  #
38
43
  # Usage::
@@ -42,15 +47,11 @@ module WWWJDic
42
47
  WWWJDic.new(parser)
43
48
  end
44
49
 
45
- # ------------------------------ here starts the list of private methods
46
-
47
- private
48
-
49
- # Provides the parameters' parsers object.
50
+ # Provides the parameters' parsers object.
50
51
  def self.parser
51
- parsers = {dict: Parsers::Dict.new, display: Parsers::Display.new,
52
- key: Parsers::Key.new, search: Parsers::Search.new,
53
- server: Parsers::Server.new}
52
+ parsers = { dict: Parsers::Dict.new, display: Parsers::Display.new,
53
+ key: Parsers::Key.new, search: Parsers::Search.new,
54
+ server: Parsers::Server.new }
54
55
 
55
56
  Parser.new parsers
56
57
  end
@@ -1,6 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  #--
2
4
  # wwwjdic
3
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
5
+ # rubocop:disable Style/AsciiComments
6
+ # © 2014 Marco Bresciani
7
+ # rubocop:enable Style/AsciiComments
4
8
  #
5
9
  # This file is part of wwwjdic.
6
10
  #
@@ -16,6 +20,10 @@
16
20
  #
17
21
  # You should have received a copy of the GNU General Public License
18
22
  # along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
23
+ #
24
+ # SPDX-FileCopyrightText: 2014 Marco Bresciani
25
+ #
26
+ # SPDX-License-Identifier: GPL-3.0-or-later
19
27
  #++
20
28
 
21
29
  require 'i18n'
@@ -29,10 +37,9 @@ module WWWJDic
29
37
  # This class is a simple API to interact with WWWJDic Backboor
30
38
  # Entry/API.
31
39
  # Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
32
- # Copyright:: Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
40
+ # Copyright:: (C) 2014 Marco Bresciani
33
41
  # License:: GNU General Public License version 3
34
42
  class WWWJDic
35
-
36
43
  # Creates a +WWWJDic+ object. This constructor should be used
37
44
  # through the WWWJDic::breener method only.
38
45
  #
@@ -53,20 +60,15 @@ module WWWJDic
53
60
  def uri(word = nil, args = {})
54
61
  raise ArgumentError, I18n.t('error.nil') if word.nil?
55
62
  raise ArgumentError, I18n.t('error.param', value: word) if word.empty?
56
- raise ArgumentError, I18n.t('error.param', value: args) unless args.keys.to_set.proper_subset? Set.new(ALLOWED_PARAMS)
57
63
 
58
- params = Hash.new
59
- params[:search] = word
60
- @defaults[:search] = word
61
-
62
- unless args.nil?
63
- ALL_PARAMS.each do |param_name|
64
- params[param_name] = @parser.parse(param_name.to_s, args.fetch(param_name, @defaults[param_name]))
65
- end
64
+ unless args.keys.to_set.proper_subset? Set.new(ALLOWED_PARAMS)
65
+ raise ArgumentError,
66
+ I18n.t('error.param', value: args)
66
67
  end
67
68
 
68
- a_wwwjdic = URIS[params[:server]] + params[:dict] + DISPLAY[params[:display]] + params[:search] + KEYS[params[:key]]
69
- a_wwwjdic + CGI::escape(word).to_s
69
+ params = parse_params(args, word)
70
+
71
+ build_uri(params, word)
70
72
  end
71
73
 
72
74
  # Create the reference uri for a +word+ translation, according to
@@ -74,7 +76,7 @@ module WWWJDic
74
76
  #
75
77
  # Usage:: <tt>new_wwwjdic.raw_uri word
76
78
  def raw_uri(word = nil, args = {})
77
- args = Hash.new if args.nil?
79
+ args = {} if args.nil?
78
80
  args[:display] = :raw
79
81
  uri(word, args)
80
82
  end
@@ -86,7 +88,7 @@ module WWWJDic
86
88
  def json_uri(word = nil, args = {})
87
89
  an_uri = uri(word, args)
88
90
 
89
- result = Hash.new
91
+ result = {}
90
92
  result[word] = an_uri
91
93
 
92
94
  result.to_json
@@ -106,34 +108,24 @@ module WWWJDic
106
108
  end
107
109
 
108
110
  # Save a file, with specified +filename+, that contains the current
109
- # wwwjdic configuration, in JSON format. Uses the internal state to
110
- # retrieve data from the URI. Defaults to 'wwwjdic' with no specific
111
- # extension.
111
+ # wwwjdic configuration, in JSON format.
112
+ # Uses the internal state to retrieve data from the URI.
113
+ # Defaults to 'wwwjdic' with no specific extension.
112
114
  #
113
115
  # Usage::
114
116
  # - <tt>a_string = new_wwwjdic.json_translate filename</tt>
115
- # Params::
116
- # - +filename+: [String] is the filename to be saved.
117
+ # @param word [String] the word to translate
118
+ # @param args [Hash] the customization arguments
119
+ # @param filename [String] the name of the file where to save JSON
120
+ # @return [Object]
117
121
  def json_translate(word = nil, args = {}, filename = nil)
118
122
  translation = translate(word, args)
119
123
 
120
- a_hash = Hash.new
121
- a_hash[word.to_sym] = raw_uri(word, args)
122
-
123
- the_splitter = Splitter.new translation
124
-
125
- a_hash[:title] = the_splitter.title
126
- a_hash[:translation] = the_splitter.translation
127
- a_hash[:message] = the_splitter.message
128
-
129
- unless a_hash[:translation].nil?
130
- a_hash[:lines] = the_splitter.lines
131
- a_hash[:content] = the_splitter.content
132
- end
124
+ a_hash = build_hash(args, translation, word)
133
125
 
134
126
  result = a_hash.to_json
135
127
 
136
- File.open(filename, 'w+') {|f| f << JSON.pretty_generate(a_hash)} unless filename.nil?
128
+ File.open(filename, 'w+') { |f| f << JSON.pretty_generate(a_hash) } unless filename.nil?
137
129
 
138
130
  result
139
131
  end
@@ -180,7 +172,7 @@ module WWWJDic
180
172
  # Restores the original status cleaning up the (possibly) previously
181
173
  # saved URIs restoring the default +to_s+.
182
174
  def reset
183
- @defaults = Hash.new
175
+ @defaults = {}
184
176
  @defaults[:dict] = '1'
185
177
  @defaults[:display] = :regular
186
178
 
@@ -201,7 +193,9 @@ module WWWJDic
201
193
  # romaji conversion if the key is not in Japanese coding (UTF-8,
202
194
  # EUC or Shift_JIS.) If you want to look up using "sensei" it has
203
195
  # to be a J. For anything else the value of J doesn't matter much.
196
+ # rubocop:disable Style/AsciiComments
204
197
  # 1MUJ齧歯 and 1MUE齧歯 will both find 齧歯. 1MUJgesshi does too,
198
+ # rubocop:enable Style/AsciiComments
205
199
  # but 1MUEgesshi won't.
206
200
  #
207
201
  # I think you have missed a key point I made in my previous email:
@@ -229,5 +223,44 @@ module WWWJDic
229
223
  def to_s
230
224
  @wwwjdic.to_s
231
225
  end
226
+
227
+ private
228
+
229
+ def build_hash(args, translation, word)
230
+ the_splitter = Splitter.new translation
231
+
232
+ a_hash = { word.to_sym => raw_uri(word, args),
233
+ title: the_splitter.title,
234
+ translation: the_splitter.translation,
235
+ message: the_splitter.message }
236
+
237
+ unless a_hash[:translation].nil?
238
+ a_hash[:lines] = the_splitter.lines
239
+ a_hash[:content] = the_splitter.content
240
+ end
241
+ a_hash
242
+ end
243
+
244
+ def build_uri(params, word)
245
+ a_wwwjdic = URIS[params[:server]] +
246
+ params[:dict] +
247
+ DISPLAY[params[:display]] +
248
+ params[:search] +
249
+ KEYS[params[:key]]
250
+ a_wwwjdic + CGI.escape(word).to_s
251
+ end
252
+
253
+ def parse_params(args, word)
254
+ params = {}
255
+ params[:search] = word
256
+ @defaults[:search] = word
257
+
258
+ unless args.nil?
259
+ ALL_PARAMS.each do |param_name|
260
+ params[param_name] = @parser.parse(param_name.to_s, args.fetch(param_name, @defaults[param_name]))
261
+ end
262
+ end
263
+ params
264
+ end
232
265
  end
233
266
  end
@@ -1,6 +1,10 @@
1
+ # frozen_string_literal: true
2
+
1
3
  #--
2
4
  # wwwjdic
3
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
5
+ # rubocop:disable Style/AsciiComments
6
+ # © 2014 Marco Bresciani
7
+ # rubocop:enable Style/AsciiComments
4
8
  #
5
9
  # This file is part of wwwjdic.
6
10
  #
@@ -20,19 +24,45 @@
20
24
 
21
25
  module WWWJDic
22
26
  # Allowed parameters for configuration
23
- ALLOWED_PARAMS = [:dict, :display, :key, :server].freeze
27
+ ALLOWED_PARAMS = %i[dict display key server].freeze
24
28
 
25
29
  # All parameters for configuration
26
30
  ALL_PARAMS = ALLOWED_PARAMS + [:search]
27
31
 
28
32
  # Numeric codes for language-specific dictionaries
29
- AVAIL_LANGS = {en: '1', de: 'G', fr: 'H', ru: 'I', sv: 'J', hu: 'K', es: 'L', nl: 'M', sl: 'N', it: 'O'}.freeze
33
+ AVAIL_LANGS = { en: '1', de: 'G', fr: 'H', ru: 'I', sv: 'J', hu: 'K', es: 'L', nl: 'M', sl: 'N', it: 'O' }.freeze
30
34
 
31
35
  # Numeric codes for dictionaries usage
32
36
  DICTIONARY_CODES = [('1'..'9').to_a, ('A'..'R').to_a].flatten
33
37
 
34
38
  # Naming for all supported dictionaries
35
- DICTIONARY_NAMES = ['Jpn-Eng General (EDICT)', 'Japanese Names (ENAMDICT)', 'Computing/Telecomms', 'Life Sciences/Bio-Med', 'Legal Terms', 'Finance/Marketing', 'Buddhism', 'Miscellaneous', 'Special Text-glossing', 'Engineering/Science', 'Linguistics', 'River & Water Systems', 'Automobile Industry', 'Japanese Wordnet', 'Work-in-progress File', 'Japanese-German (WaDoku)', 'Japanese-French', 'Japanese-Russian', 'Japanese-Swedish', 'Japanese-Hungarian', 'Japanese-Spanish', 'Japanese-Dutch', 'Japanese-Slovenian', 'Japanese-Italian', 'Untranslated', 'Combined Jpn-Eng', 'Expanded Text-glossing'].freeze
39
+ DICTIONARY_NAMES = ['Jpn-Eng General (EDICT)',
40
+ 'Japanese Names (ENAMDICT)',
41
+ 'Computing/Telecomms',
42
+ 'Life Sciences/Bio-Med',
43
+ 'Legal Terms',
44
+ 'Finance/Marketing',
45
+ 'Buddhism',
46
+ 'Miscellaneous',
47
+ 'Special Text-glossing',
48
+ 'Engineering/Science',
49
+ 'Linguistics',
50
+ 'River & Water Systems',
51
+ 'Automobile Industry',
52
+ 'Japanese Wordnet',
53
+ 'Work-in-progress File',
54
+ 'Japanese-German (WaDoku)',
55
+ 'Japanese-French',
56
+ 'Japanese-Russian',
57
+ 'Japanese-Swedish',
58
+ 'Japanese-Hungarian',
59
+ 'Japanese-Spanish',
60
+ 'Japanese-Dutch',
61
+ 'Japanese-Slovenian',
62
+ 'Japanese-Italian',
63
+ 'Untranslated',
64
+ 'Combined Jpn-Eng',
65
+ 'Expanded Text-glossing'].freeze
36
66
 
37
67
  # Mapping between dictionaries names with codes
38
68
  DICTS_BY_CODES = Hash[DICTIONARY_CODES.zip(DICTIONARY_NAMES)]
@@ -41,7 +71,7 @@ module WWWJDic
41
71
  DICTS_BY_NAMES = Hash[DICTIONARY_NAMES.zip(DICTIONARY_CODES)]
42
72
 
43
73
  # Display modes
44
- DISPLAY = {regular: 'M', raw: 'Z'}.freeze
74
+ DISPLAY = { regular: 'M', raw: 'Z' }.freeze
45
75
 
46
76
  # k is the key type:
47
77
  #
@@ -72,7 +102,10 @@ module WWWJDic
72
102
  # for EUC, ISO-2022-JP or UCS, S for Shift_JIS and U for UTF-8,
73
103
  # followed by the search string. Up to 99 example sentences may be
74
104
  # displayed.
75
- KEYS = {english: 'E', common: 'P', exact: 'Q', both: 'R', japanese: 'J', start_kanji: 'K', any_kanji: 'L', kanji: 'M', glossing: 'G', no_repeated: 'H', jis_kanji: 'H', multi_radical: 'X'}.freeze
105
+ KEYS = { english: 'E', common: 'P', exact: 'Q', both: 'R',
106
+ japanese: 'J', start_kanji: 'K', any_kanji: 'L', kanji: 'M',
107
+ glossing: 'G', no_repeated: 'H', jis_kanji: 'H',
108
+ multi_radical: 'X' }.freeze
76
109
 
77
110
  # KANJIDIC letter codes (see
78
111
  # http://www.edrdg.org/kanjidic/kanjidic.html)
@@ -100,14 +133,19 @@ module WWWJDic
100
133
  # [E] the index in Henshall (A Guide To Remembering Japanese
101
134
  # Characters);
102
135
  # [Y] the PinYin (Chinese) pronunciation(s) of the kanji;
103
- KANJIDIC_CODES = {unicode: 'U', nelson: 'N', radical: 'B', classical: 'C', stroke: 'S', grade: 'G', halpern: 'H', frequency: 'F', skip: 'P', gakken: 'K', heisig: 'L', spahn: 'I', corner: 'Q', morohashi_index: 'MN', morohashi_page: 'MP', henshall: 'E', pinyin: 'Y'}.freeze
136
+ KANJIDIC_CODES = { unicode: 'U', nelson: 'N', radical: 'B',
137
+ classical: 'C', stroke: 'S', grade: 'G',
138
+ halpern: 'H', frequency: 'F', skip: 'P',
139
+ gakken: 'K', heisig: 'L', spahn: 'I', corner: 'Q',
140
+ morohashi_index: 'MN', morohashi_page: 'MP',
141
+ henshall: 'E', pinyin: 'Y' }.freeze
104
142
 
105
143
  # Reference URI for Backdoor Entry/API
106
- URI_DEFAULT = 'http://www.edrdg.org/cgi-bin/wwwjdic/wwwjdic.cgi?'.freeze
144
+ URI_DEFAULT = 'http://www.edrdg.org/cgi-bin/wwwjdic/wwwjdic.cgi?'
107
145
 
108
146
  # Monash URI for Backdoor Entry/API
109
- URI_OLD = 'http://www.csse.monash.edu.au/~jwb/cgi-bin/wwwjdic.cgi?'.freeze
147
+ URI_OLD = 'http://nihongo.monash.edu/cgi-bin/wwwjdic?'
110
148
 
111
149
  # URIs for Backdoor Entry/API
112
- URIS = {edrdg: URI_DEFAULT, monash: URI_OLD}.freeze
150
+ URIS = { edrdg: URI_DEFAULT, monash: URI_OLD }.freeze
113
151
  end
@@ -1,5 +1,8 @@
1
+ #--
1
2
  # wwwjdic
2
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
3
+ # rubocop:disable Style/AsciiComments
4
+ # © 2014 Marco Bresciani
5
+ # rubocop:enable Style/AsciiComments
3
6
  #
4
7
  # This file is part of wwwjdic.
5
8
  #
@@ -15,6 +18,11 @@
15
18
  #
16
19
  # You should have received a copy of the GNU General Public License
17
20
  # along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
21
+ #
22
+ # SPDX-FileCopyrightText: 2014 Marco Bresciani
23
+ #
24
+ # SPDX-License-Identifier: GPL-3.0-or-later
25
+ #++
18
26
 
19
27
  de:
20
28
  error:
@@ -24,6 +32,3 @@ de:
24
32
  value: "Der Wert %{value} ist nicht im zulässigen Bereich."
25
33
  warn:
26
34
  deprecated: Diese Methode ist veraltet.
27
- test:
28
- kotoba: Sprache
29
- test: test data
@@ -1,5 +1,8 @@
1
+ #--
1
2
  # wwwjdic
2
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
3
+ # rubocop:disable Style/AsciiComments
4
+ # © 2014 Marco Bresciani
5
+ # rubocop:enable Style/AsciiComments
3
6
  #
4
7
  # This file is part of wwwjdic.
5
8
  #
@@ -15,6 +18,11 @@
15
18
  #
16
19
  # You should have received a copy of the GNU General Public License
17
20
  # along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
21
+ #
22
+ # SPDX-FileCopyrightText: 2014 Marco Bresciani
23
+ #
24
+ # SPDX-License-Identifier: GPL-3.0-or-later
25
+ #++
18
26
 
19
27
  en:
20
28
  error:
@@ -24,6 +32,3 @@ en:
24
32
  value: "Value %{value} is not in allowed range."
25
33
  warn:
26
34
  deprecated: This method has been deprecated.
27
- test:
28
- kotoba: word
29
- test: test data
@@ -1,5 +1,8 @@
1
+ #--
1
2
  # wwwjdic
2
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
3
+ # rubocop:disable Style/AsciiComments
4
+ # © 2014 Marco Bresciani
5
+ # rubocop:enable Style/AsciiComments
3
6
  #
4
7
  # This file is part of wwwjdic.
5
8
  #
@@ -15,6 +18,11 @@
15
18
  #
16
19
  # You should have received a copy of the GNU General Public License
17
20
  # along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
21
+ #
22
+ # SPDX-FileCopyrightText: 2014 Marco Bresciani
23
+ #
24
+ # SPDX-License-Identifier: GPL-3.0-or-later
25
+ #++
18
26
 
19
27
  es:
20
28
  error:
@@ -24,6 +32,3 @@ es:
24
32
  value: "Valor %{value} no está dentro del rango permitido."
25
33
  warn:
26
34
  deprecated: Este método ha quedado obsoleto.
27
- test:
28
- kotoba: palabra
29
- test: test data
@@ -1,5 +1,8 @@
1
+ #--
1
2
  # wwwjdic
2
- # Copyright © 2014, 2015, 2016, 2017, 2018, 2019 Marco Bresciani
3
+ # rubocop:disable Style/AsciiComments
4
+ # © 2014 Marco Bresciani
5
+ # rubocop:enable Style/AsciiComments
3
6
  #
4
7
  # This file is part of wwwjdic.
5
8
  #
@@ -15,6 +18,11 @@
15
18
  #
16
19
  # You should have received a copy of the GNU General Public License
17
20
  # along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
21
+ #
22
+ # SPDX-FileCopyrightText: 2014 Marco Bresciani
23
+ #
24
+ # SPDX-License-Identifier: GPL-3.0-or-later
25
+ #++
18
26
 
19
27
  fr:
20
28
  error:
@@ -24,6 +32,3 @@ fr:
24
32
  value: "Valeur %{value} n'est pas dans la plage autorisée."
25
33
  warn:
26
34
  deprecated: Cette méthode a été déconseillée.
27
- test:
28
- kotoba: mot
29
- test: test data