aa-intel-tool 2.1.0__py3-none-any.whl → 2.2.0__py3-none-any.whl

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 (40) hide show
  1. aa_intel_tool/__init__.py +1 -1
  2. aa_intel_tool/form.py +1 -0
  3. aa_intel_tool/helper/eve_character.py +1 -1
  4. aa_intel_tool/locale/cs/LC_MESSAGES/django.mo +0 -0
  5. aa_intel_tool/locale/cs/LC_MESSAGES/django.po +18 -11
  6. aa_intel_tool/locale/de/LC_MESSAGES/django.mo +0 -0
  7. aa_intel_tool/locale/de/LC_MESSAGES/django.po +9 -10
  8. aa_intel_tool/locale/django.pot +6 -6
  9. aa_intel_tool/locale/es/LC_MESSAGES/django.mo +0 -0
  10. aa_intel_tool/locale/es/LC_MESSAGES/django.po +11 -11
  11. aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.mo +0 -0
  12. aa_intel_tool/locale/fr_FR/LC_MESSAGES/django.po +9 -9
  13. aa_intel_tool/locale/it_IT/LC_MESSAGES/django.mo +0 -0
  14. aa_intel_tool/locale/it_IT/LC_MESSAGES/django.po +8 -8
  15. aa_intel_tool/locale/ja/LC_MESSAGES/django.mo +0 -0
  16. aa_intel_tool/locale/ja/LC_MESSAGES/django.po +8 -8
  17. aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.mo +0 -0
  18. aa_intel_tool/locale/ko_KR/LC_MESSAGES/django.po +10 -10
  19. aa_intel_tool/locale/nl/LC_MESSAGES/django.mo +0 -0
  20. aa_intel_tool/locale/nl/LC_MESSAGES/django.po +13 -12
  21. aa_intel_tool/locale/pl_PL/LC_MESSAGES/django.mo +0 -0
  22. aa_intel_tool/locale/pl_PL/LC_MESSAGES/django.po +11 -8
  23. aa_intel_tool/locale/ru/LC_MESSAGES/django.mo +0 -0
  24. aa_intel_tool/locale/ru/LC_MESSAGES/django.po +14 -13
  25. aa_intel_tool/locale/sk/LC_MESSAGES/django.mo +0 -0
  26. aa_intel_tool/locale/sk/LC_MESSAGES/django.po +18 -11
  27. aa_intel_tool/locale/uk/LC_MESSAGES/django.mo +0 -0
  28. aa_intel_tool/locale/uk/LC_MESSAGES/django.po +9 -9
  29. aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.mo +0 -0
  30. aa_intel_tool/locale/zh_Hans/LC_MESSAGES/django.po +17 -15
  31. aa_intel_tool/parser/module/chatlist.py +1 -4
  32. aa_intel_tool/parser/module/fleetcomp.py +85 -39
  33. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.js +4 -4
  34. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js +1 -1
  35. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-dscan.min.js.map +1 -1
  36. aa_intel_tool/static/aa_intel_tool/javascript/aa-intel-tool-fleetcomposition.js +1 -1
  37. {aa_intel_tool-2.1.0.dist-info → aa_intel_tool-2.2.0.dist-info}/METADATA +3 -5
  38. {aa_intel_tool-2.1.0.dist-info → aa_intel_tool-2.2.0.dist-info}/RECORD +40 -37
  39. {aa_intel_tool-2.1.0.dist-info → aa_intel_tool-2.2.0.dist-info}/WHEEL +1 -1
  40. {aa_intel_tool-2.1.0.dist-info → aa_intel_tool-2.2.0.dist-info}/licenses/LICENSE +0 -0
@@ -6,8 +6,8 @@ msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "POT-Creation-Date: 2024-04-20 22:33+0200\n"
10
- "PO-Revision-Date: 2024-03-29 15:11+0000\n"
9
+ "POT-Creation-Date: 2024-06-23 11:20+0200\n"
10
+ "PO-Revision-Date: 2024-05-10 14:07+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: Polish <https://weblate.ppfeufer.de/projects/alliance-auth-"
13
13
  "apps/aa-intel-tool/pl/>\n"
@@ -17,7 +17,7 @@ msgstr ""
17
17
  "Content-Transfer-Encoding: 8bit\n"
18
18
  "Plural-Forms: nplurals=3; plural=n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
19
19
  "|| n%100>=20) ? 1 : 2;\n"
20
- "X-Generator: Weblate 5.4.2\n"
20
+ "X-Generator: Weblate 5.5.3\n"
21
21
 
22
22
  #: aa_intel_tool/__init__.py:9
23
23
  #: aa_intel_tool/templates/aa_intel_tool/base.html:6
@@ -166,19 +166,19 @@ msgstr ""
166
166
  msgid "No data to parse …"
167
167
  msgstr ""
168
168
 
169
- #: aa_intel_tool/parser/module/chatlist.py:68
169
+ #: aa_intel_tool/parser/module/chatlist.py:65
170
170
  msgid "Something went wrong while fetching the character information from ESI."
171
171
  msgstr ""
172
172
 
173
- #: aa_intel_tool/parser/module/chatlist.py:79
173
+ #: aa_intel_tool/parser/module/chatlist.py:76
174
174
  msgid "Character unknown to ESI."
175
175
  msgstr ""
176
176
 
177
- #: aa_intel_tool/parser/module/chatlist.py:281
177
+ #: aa_intel_tool/parser/module/chatlist.py:278
178
178
  msgid "The chat list module is currently disabled."
179
179
  msgstr ""
180
180
 
181
- #: aa_intel_tool/parser/module/chatlist.py:302
181
+ #: aa_intel_tool/parser/module/chatlist.py:299
182
182
  #, python-brace-format
183
183
  msgid ""
184
184
  "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot "
@@ -188,12 +188,13 @@ msgid_plural ""
188
188
  "per scan. Your list of pilots exceeds this limit."
189
189
  msgstr[0] ""
190
190
  msgstr[1] ""
191
+ msgstr[2] ""
191
192
 
192
193
  #: aa_intel_tool/parser/module/dscan.py:350
193
194
  msgid "The D-Scan module is currently disabled."
194
195
  msgstr ""
195
196
 
196
- #: aa_intel_tool/parser/module/fleetcomp.py:111
197
+ #: aa_intel_tool/parser/module/fleetcomp.py:187
197
198
  msgid "The fleet composition module is currently disabled."
198
199
  msgstr ""
199
200
 
@@ -297,6 +298,7 @@ msgid "Scans will be deleted after %(scan_retention_time)s day."
297
298
  msgid_plural "Scans will be deleted after %(scan_retention_time)s days."
298
299
  msgstr[0] ""
299
300
  msgstr[1] ""
301
+ msgstr[2] ""
300
302
 
301
303
  #: aa_intel_tool/templates/aa_intel_tool/partials/footer/app-translation-footer.html:5
302
304
  msgid ""
@@ -324,6 +326,7 @@ msgid "Limited to a maximum of %(max_pilots)s pilot per scan."
324
326
  msgid_plural "Limited to a maximum of %(max_pilots)s pilots per scan."
325
327
  msgstr[0] ""
326
328
  msgstr[1] ""
329
+ msgstr[2] ""
327
330
 
328
331
  #: aa_intel_tool/templates/aa_intel_tool/partials/index/form.html:40
329
332
  msgid ""
@@ -1,16 +1,17 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
- # Nikolay <nick.postnikov@gmail.com>, 2023.
5
- # Peter Pfeufer <info@ppfeufer.de>, 2023.
6
- # Max <mark25@inbox.ru>, 2023.
4
+ # Nikolay <nick.postnikov@gmail.com>, 2023, 2024.
5
+ # Peter Pfeufer <info@ppfeufer.de>, 2023, 2024.
6
+ # Max <mark25@inbox.ru>, 2023, 2024.
7
+ # Roycce_ <malyasov.roma@mail.ru>, 2024.
7
8
  msgid ""
8
9
  msgstr ""
9
10
  "Project-Id-Version: PACKAGE VERSION\n"
10
11
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2024-04-20 22:33+0200\n"
12
- "PO-Revision-Date: 2023-10-04 15:47+0000\n"
13
- "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
+ "POT-Creation-Date: 2024-06-23 11:20+0200\n"
13
+ "PO-Revision-Date: 2024-06-06 14:27+0000\n"
14
+ "Last-Translator: Roycce_ <malyasov.roma@mail.ru>\n"
14
15
  "Language-Team: Russian <https://weblate.ppfeufer.de/projects/alliance-auth-"
15
16
  "apps/aa-intel-tool/ru/>\n"
16
17
  "Language: ru\n"
@@ -19,7 +20,7 @@ msgstr ""
19
20
  "Content-Transfer-Encoding: 8bit\n"
20
21
  "Plural-Forms: nplurals=4; plural=n==1 ? 3 : (n%10==1 && n%100!=11 ? 0 : "
21
22
  "n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
22
- "X-Generator: Weblate 5.0.2\n"
23
+ "X-Generator: Weblate 5.5.5\n"
23
24
 
24
25
  #: aa_intel_tool/__init__.py:9
25
26
  #: aa_intel_tool/templates/aa_intel_tool/base.html:6
@@ -170,19 +171,19 @@ msgstr ""
170
171
  msgid "No data to parse …"
171
172
  msgstr "Нет данных для анализа …"
172
173
 
173
- #: aa_intel_tool/parser/module/chatlist.py:68
174
+ #: aa_intel_tool/parser/module/chatlist.py:65
174
175
  msgid "Something went wrong while fetching the character information from ESI."
175
176
  msgstr "Что-то пошло не так при загрузке информации о персонаже через ESI."
176
177
 
177
- #: aa_intel_tool/parser/module/chatlist.py:79
178
+ #: aa_intel_tool/parser/module/chatlist.py:76
178
179
  msgid "Character unknown to ESI."
179
180
  msgstr "Персонаж не известен для ESI."
180
181
 
181
- #: aa_intel_tool/parser/module/chatlist.py:281
182
+ #: aa_intel_tool/parser/module/chatlist.py:278
182
183
  msgid "The chat list module is currently disabled."
183
184
  msgstr "Анализатор списка чата отключен."
184
185
 
185
- #: aa_intel_tool/parser/module/chatlist.py:302
186
+ #: aa_intel_tool/parser/module/chatlist.py:299
186
187
  #, python-brace-format
187
188
  msgid ""
188
189
  "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot "
@@ -207,7 +208,7 @@ msgstr[3] ""
207
208
  msgid "The D-Scan module is currently disabled."
208
209
  msgstr "Анализатор подскана отключен."
209
210
 
210
- #: aa_intel_tool/parser/module/fleetcomp.py:111
211
+ #: aa_intel_tool/parser/module/fleetcomp.py:187
211
212
  msgid "The fleet composition module is currently disabled."
212
213
  msgstr "Анализатор состава флота отключен."
213
214
 
@@ -483,7 +484,7 @@ msgstr "Класс корабля"
483
484
 
484
485
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html:30
485
486
  msgid "Total mass (in kg):"
486
- msgstr ""
487
+ msgstr "Общая масса (в кг):"
487
488
 
488
489
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-types.html:18
489
490
  msgid "Ship type"
@@ -3,21 +3,22 @@
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
4
  # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
  #
6
- #, fuzzy
7
6
  msgid ""
8
7
  msgstr ""
9
8
  "Project-Id-Version: PACKAGE VERSION\n"
10
9
  "Report-Msgid-Bugs-To: \n"
11
- "POT-Creation-Date: 2024-04-20 22:33+0200\n"
12
- "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13
- "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14
- "Language-Team: LANGUAGE <LL@li.org>\n"
15
- "Language: \n"
10
+ "POT-Creation-Date: 2024-06-23 11:20+0200\n"
11
+ "PO-Revision-Date: 2024-05-10 14:07+0000\n"
12
+ "Last-Translator: Anonymous <noreply@weblate.org>\n"
13
+ "Language-Team: Slovak <https://weblate.ppfeufer.de/projects/alliance-auth-"
14
+ "apps/aa-intel-tool/sk/>\n"
15
+ "Language: sk\n"
16
16
  "MIME-Version: 1.0\n"
17
17
  "Content-Type: text/plain; charset=UTF-8\n"
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
19
  "Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n == 1 ? 0 : n % 1 == 0 && n "
20
20
  ">= 2 && n <= 4 ? 1 : n % 1 != 0 ? 2: 3);\n"
21
+ "X-Generator: Weblate 5.5.3\n"
21
22
 
22
23
  #: aa_intel_tool/__init__.py:9
23
24
  #: aa_intel_tool/templates/aa_intel_tool/base.html:6
@@ -166,19 +167,19 @@ msgstr ""
166
167
  msgid "No data to parse …"
167
168
  msgstr ""
168
169
 
169
- #: aa_intel_tool/parser/module/chatlist.py:68
170
+ #: aa_intel_tool/parser/module/chatlist.py:65
170
171
  msgid "Something went wrong while fetching the character information from ESI."
171
172
  msgstr ""
172
173
 
173
- #: aa_intel_tool/parser/module/chatlist.py:79
174
+ #: aa_intel_tool/parser/module/chatlist.py:76
174
175
  msgid "Character unknown to ESI."
175
176
  msgstr ""
176
177
 
177
- #: aa_intel_tool/parser/module/chatlist.py:281
178
+ #: aa_intel_tool/parser/module/chatlist.py:278
178
179
  msgid "The chat list module is currently disabled."
179
180
  msgstr ""
180
181
 
181
- #: aa_intel_tool/parser/module/chatlist.py:302
182
+ #: aa_intel_tool/parser/module/chatlist.py:299
182
183
  #, python-brace-format
183
184
  msgid ""
184
185
  "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot "
@@ -188,12 +189,14 @@ msgid_plural ""
188
189
  "per scan. Your list of pilots exceeds this limit."
189
190
  msgstr[0] ""
190
191
  msgstr[1] ""
192
+ msgstr[2] ""
193
+ msgstr[3] ""
191
194
 
192
195
  #: aa_intel_tool/parser/module/dscan.py:350
193
196
  msgid "The D-Scan module is currently disabled."
194
197
  msgstr ""
195
198
 
196
- #: aa_intel_tool/parser/module/fleetcomp.py:111
199
+ #: aa_intel_tool/parser/module/fleetcomp.py:187
197
200
  msgid "The fleet composition module is currently disabled."
198
201
  msgstr ""
199
202
 
@@ -297,6 +300,8 @@ msgid "Scans will be deleted after %(scan_retention_time)s day."
297
300
  msgid_plural "Scans will be deleted after %(scan_retention_time)s days."
298
301
  msgstr[0] ""
299
302
  msgstr[1] ""
303
+ msgstr[2] ""
304
+ msgstr[3] ""
300
305
 
301
306
  #: aa_intel_tool/templates/aa_intel_tool/partials/footer/app-translation-footer.html:5
302
307
  msgid ""
@@ -322,6 +327,8 @@ msgid "Limited to a maximum of %(max_pilots)s pilot per scan."
322
327
  msgid_plural "Limited to a maximum of %(max_pilots)s pilots per scan."
323
328
  msgstr[0] ""
324
329
  msgstr[1] ""
330
+ msgstr[2] ""
331
+ msgstr[3] ""
325
332
 
326
333
  #: aa_intel_tool/templates/aa_intel_tool/partials/index/form.html:40
327
334
  msgid ""
@@ -1,13 +1,13 @@
1
1
  # SOME DESCRIPTIVE TITLE.
2
2
  # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
- # Peter Pfeufer <info@ppfeufer.de>, 2023.
4
+ # Peter Pfeufer <info@ppfeufer.de>, 2023, 2024.
5
5
  msgid ""
6
6
  msgstr ""
7
7
  "Project-Id-Version: PACKAGE VERSION\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
- "POT-Creation-Date: 2024-04-20 22:33+0200\n"
10
- "PO-Revision-Date: 2023-10-04 15:47+0000\n"
9
+ "POT-Creation-Date: 2024-06-23 11:20+0200\n"
10
+ "PO-Revision-Date: 2024-05-10 14:07+0000\n"
11
11
  "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
12
12
  "Language-Team: Ukrainian <https://weblate.ppfeufer.de/projects/alliance-auth-"
13
13
  "apps/aa-intel-tool/uk/>\n"
@@ -17,7 +17,7 @@ msgstr ""
17
17
  "Content-Transfer-Encoding: 8bit\n"
18
18
  "Plural-Forms: nplurals=4; plural=n==1 ? 3 : (n%10==1 && n%100!=11 ? 0 : "
19
19
  "n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
20
- "X-Generator: Weblate 5.0.2\n"
20
+ "X-Generator: Weblate 5.5.3\n"
21
21
 
22
22
  #: aa_intel_tool/__init__.py:9
23
23
  #: aa_intel_tool/templates/aa_intel_tool/base.html:6
@@ -166,19 +166,19 @@ msgstr ""
166
166
  msgid "No data to parse …"
167
167
  msgstr ""
168
168
 
169
- #: aa_intel_tool/parser/module/chatlist.py:68
169
+ #: aa_intel_tool/parser/module/chatlist.py:65
170
170
  msgid "Something went wrong while fetching the character information from ESI."
171
171
  msgstr ""
172
172
 
173
- #: aa_intel_tool/parser/module/chatlist.py:79
173
+ #: aa_intel_tool/parser/module/chatlist.py:76
174
174
  msgid "Character unknown to ESI."
175
175
  msgstr ""
176
176
 
177
- #: aa_intel_tool/parser/module/chatlist.py:281
177
+ #: aa_intel_tool/parser/module/chatlist.py:278
178
178
  msgid "The chat list module is currently disabled."
179
179
  msgstr ""
180
180
 
181
- #: aa_intel_tool/parser/module/chatlist.py:302
181
+ #: aa_intel_tool/parser/module/chatlist.py:299
182
182
  #, python-brace-format
183
183
  msgid ""
184
184
  "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot "
@@ -195,7 +195,7 @@ msgstr[3] ""
195
195
  msgid "The D-Scan module is currently disabled."
196
196
  msgstr ""
197
197
 
198
- #: aa_intel_tool/parser/module/fleetcomp.py:111
198
+ #: aa_intel_tool/parser/module/fleetcomp.py:187
199
199
  msgid "The fleet composition module is currently disabled."
200
200
  msgstr ""
201
201
 
@@ -3,13 +3,15 @@
3
3
  # This file is distributed under the same license as the PACKAGE package.
4
4
  # Dehao Wu <wudehao2000@163.com>, 2024.
5
5
  # Faer Yili <yilifaer@gmail.com>, 2024.
6
+ # SAM_FPS <sam_fps@163.com>, 2024.
7
+ # Peter Pfeufer <info@ppfeufer.de>, 2024.
6
8
  msgid ""
7
9
  msgstr ""
8
10
  "Project-Id-Version: PACKAGE VERSION\n"
9
11
  "Report-Msgid-Bugs-To: \n"
10
- "POT-Creation-Date: 2024-04-20 22:33+0200\n"
11
- "PO-Revision-Date: 2024-01-11 21:04+0000\n"
12
- "Last-Translator: Dehao Wu <wudehao2000@163.com>\n"
12
+ "POT-Creation-Date: 2024-06-23 11:20+0200\n"
13
+ "PO-Revision-Date: 2024-06-06 14:27+0000\n"
14
+ "Last-Translator: Peter Pfeufer <info@ppfeufer.de>\n"
13
15
  "Language-Team: Chinese (Simplified) <https://weblate.ppfeufer.de/projects/"
14
16
  "alliance-auth-apps/aa-intel-tool/zh_Hans/>\n"
15
17
  "Language: zh_Hans\n"
@@ -17,7 +19,7 @@ msgstr ""
17
19
  "Content-Type: text/plain; charset=UTF-8\n"
18
20
  "Content-Transfer-Encoding: 8bit\n"
19
21
  "Plural-Forms: nplurals=1; plural=0;\n"
20
- "X-Generator: Weblate 5.3.1\n"
22
+ "X-Generator: Weblate 5.5.5\n"
21
23
 
22
24
  #: aa_intel_tool/__init__.py:9
23
25
  #: aa_intel_tool/templates/aa_intel_tool/base.html:6
@@ -60,7 +62,7 @@ msgstr ""
60
62
  #: aa_intel_tool/models.py:123
61
63
  #: aa_intel_tool/templates/aa_intel_tool/partials/index/form.html:33
62
64
  msgid "Fleet composition"
63
- msgstr ""
65
+ msgstr "舰队组成"
64
66
 
65
67
  #: aa_intel_tool/exceptions.py:34
66
68
  #, python-brace-format
@@ -166,19 +168,19 @@ msgstr ""
166
168
  msgid "No data to parse …"
167
169
  msgstr ""
168
170
 
169
- #: aa_intel_tool/parser/module/chatlist.py:68
171
+ #: aa_intel_tool/parser/module/chatlist.py:65
170
172
  msgid "Something went wrong while fetching the character information from ESI."
171
173
  msgstr ""
172
174
 
173
- #: aa_intel_tool/parser/module/chatlist.py:79
175
+ #: aa_intel_tool/parser/module/chatlist.py:76
174
176
  msgid "Character unknown to ESI."
175
177
  msgstr ""
176
178
 
177
- #: aa_intel_tool/parser/module/chatlist.py:281
179
+ #: aa_intel_tool/parser/module/chatlist.py:278
178
180
  msgid "The chat list module is currently disabled."
179
181
  msgstr ""
180
182
 
181
- #: aa_intel_tool/parser/module/chatlist.py:302
183
+ #: aa_intel_tool/parser/module/chatlist.py:299
182
184
  #, python-brace-format
183
185
  msgid ""
184
186
  "Chat scans are currently limited to a maximum of {max_allowed_pilots} pilot "
@@ -192,7 +194,7 @@ msgstr[0] ""
192
194
  msgid "The D-Scan module is currently disabled."
193
195
  msgstr ""
194
196
 
195
- #: aa_intel_tool/parser/module/fleetcomp.py:111
197
+ #: aa_intel_tool/parser/module/fleetcomp.py:187
196
198
  msgid "The fleet composition module is currently disabled."
197
199
  msgstr ""
198
200
 
@@ -328,7 +330,7 @@ msgstr ""
328
330
 
329
331
  #: aa_intel_tool/templates/aa_intel_tool/partials/index/form.html:51
330
332
  msgid "Submit"
331
- msgstr ""
333
+ msgstr "提交"
332
334
 
333
335
  #: aa_intel_tool/templates/aa_intel_tool/partials/index/form.html:56
334
336
  msgid "Working on it, please be patient …"
@@ -370,7 +372,7 @@ msgstr ""
370
372
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html:24
371
373
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-types.html:21
372
374
  msgid "Count"
373
- msgstr ""
375
+ msgstr "计数"
374
376
 
375
377
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/alliances.html:29
376
378
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/chatlist/corporations.html:29
@@ -452,7 +454,7 @@ msgstr ""
452
454
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html:21
453
455
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details/pilots.html:19
454
456
  msgid "Ship class"
455
- msgstr ""
457
+ msgstr "舰船等级"
456
458
 
457
459
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/dscan/ships-breakdown/ship-classes.html:30
458
460
  msgid "Total mass (in kg):"
@@ -472,7 +474,7 @@ msgstr ""
472
474
 
473
475
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html:8
474
476
  msgid "Fleet details"
475
- msgstr ""
477
+ msgstr "舰队细节"
476
478
 
477
479
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details.html:12
478
480
  msgid "Pilots in fleet"
@@ -488,7 +490,7 @@ msgstr ""
488
490
 
489
491
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/fleet-details/pilots.html:22
490
492
  msgid "System"
491
- msgstr ""
493
+ msgstr "星系"
492
494
 
493
495
  #: aa_intel_tool/templates/aa_intel_tool/partials/scan/fleetcomp/participation.html:8
494
496
  msgid "Participation details"
@@ -2,9 +2,6 @@
2
2
  Chat list parser
3
3
  """
4
4
 
5
- # Standard Library
6
- from typing import Union
7
-
8
5
  # Django
9
6
  from django.db.models import QuerySet
10
7
  from django.utils.translation import gettext_lazy as _
@@ -264,7 +261,7 @@ def _parse_chatscan_data(eve_characters: QuerySet[EveCharacter]) -> dict:
264
261
 
265
262
  def parse(
266
263
  scan_data: list, safe_to_db: bool = True, ignore_limit: bool = False
267
- ) -> Union[Scan, dict]:
264
+ ) -> Scan | dict:
268
265
  """
269
266
  Parse chat list
270
267
 
@@ -29,7 +29,7 @@ from aa_intel_tool.parser.module.chatlist import parse as parse_pilots
29
29
  logger = LoggerAddTag(my_logger=get_extension_logger(name=__name__), prefix=__title__)
30
30
 
31
31
 
32
- def _get_fleet_composition(pilots: dict, ships: dict) -> dict:
32
+ def get_fleet_composition(pilots: dict, ships: dict) -> dict:
33
33
  """
34
34
  Getting the fleet composition
35
35
 
@@ -98,9 +98,85 @@ def _get_fleet_composition(pilots: dict, ships: dict) -> dict:
98
98
  }
99
99
 
100
100
 
101
+ def parse_line(line) -> list:
102
+ """
103
+ Parse a line from the fleet composition scan
104
+
105
+ :param line:
106
+ :type line:
107
+ :return:
108
+ :rtype:
109
+ """
110
+
111
+ # Let's split this list up
112
+ #
113
+ # line[0] => Pilot Name
114
+ # line[1] => System
115
+ # line[2] => Ship Class
116
+ # line[3] => Ship Type
117
+ # line[4] => Position in Fleet
118
+ # line[5] => Skills (FC - WC - SC)
119
+ # line[6] => Wing Name / Squad Name
120
+ line = re.split(pattern=r"\t+", string=line.rstrip("\t"))
121
+
122
+ if len(line) == 6:
123
+ line.append("")
124
+
125
+ return line
126
+
127
+
128
+ def update_ships(ships, line) -> dict:
129
+ """
130
+ Update the ships dict
131
+
132
+ :param ships:
133
+ :type ships:
134
+ :param line:
135
+ :type line:
136
+ :return:
137
+ :rtype:
138
+ """
139
+
140
+ if line[2] not in ships["class"]:
141
+ ships["class"][line[2]] = {"count": 0}
142
+
143
+ if line[3] not in ships["type"]:
144
+ ships["type"][line[3]] = {"count": 0}
145
+
146
+ ships["class"][line[2]]["count"] += 1
147
+ ships["type"][line[3]]["count"] += 1
148
+
149
+ return ships
150
+
151
+
152
+ def handle_fleet_composition_and_participation(pilots, ships) -> tuple:
153
+ """
154
+ Handle the fleet composition and participation
155
+
156
+ :param pilots:
157
+ :type pilots:
158
+ :param ships:
159
+ :type ships:
160
+ :return:
161
+ :rtype:
162
+ """
163
+
164
+ fleet_composition = get_fleet_composition(pilots=pilots, ships=ships)
165
+ participation = None
166
+
167
+ if AppSettings.INTELTOOL_ENABLE_MODULE_CHATSCAN is True:
168
+ participation = parse_pilots(
169
+ scan_data=list(set(pilots)),
170
+ safe_to_db=False,
171
+ ignore_limit=True,
172
+ )
173
+
174
+ return fleet_composition, participation
175
+
176
+
101
177
  def parse(scan_data: list) -> Scan:
102
178
  """
103
- Parse fleet composition
179
+ Parse the fleet composition scan
104
180
 
105
181
  :param scan_data:
106
182
  :type scan_data:
@@ -110,27 +186,15 @@ def parse(scan_data: list) -> Scan:
110
186
 
111
187
  message = _("The fleet composition module is currently disabled.")
112
188
 
113
- # Only parse fleet composition when the module is enabled
114
189
  if AppSettings.INTELTOOL_ENABLE_MODULE_FLEETCOMP is True:
115
190
  parsed_data = {}
116
191
  pilots = {}
117
192
  ships = {"type": {}, "class": {}}
118
193
  lines = []
119
194
 
120
- # Let's split this list up
121
- #
122
- # line[0] => Pilot Name
123
- # line[1] => System
124
- # line[2] => Ship Class
125
- # line[3] => Ship Type
126
- # line[4] => Position in Fleet
127
- # line[5] => Skills (FC - WC - SC)
128
- # line[6] => Wing Name / Squad Name
195
+ # Loop through the scan data
129
196
  for entry in scan_data:
130
- line = re.split(pattern=r"\t+", string=entry.rstrip("\t"))
131
-
132
- if len(line) == 6:
133
- line.append("")
197
+ line = parse_line(entry)
134
198
 
135
199
  pilots[line[0]] = {
136
200
  "name": line[0],
@@ -138,31 +202,13 @@ def parse(scan_data: list) -> Scan:
138
202
  "ship": line[2],
139
203
  "ship_type": line[3],
140
204
  }
141
-
142
- if line[2] not in ships["class"]:
143
- ships["class"][line[2]] = {"count": 0}
144
-
145
- if line[3] not in ships["type"]:
146
- ships["type"][line[3]] = {"count": 0}
147
-
148
- ships["class"][line[2]]["count"] += 1
149
- ships["type"][line[3]]["count"] += 1
205
+ ships = update_ships(ships=ships, line=line)
150
206
 
151
207
  lines.append(line)
152
208
 
153
- logger.debug(msg=pilots)
154
-
155
- fleet_composition = _get_fleet_composition(pilots=pilots, ships=ships)
156
-
157
- participation = None
158
-
159
- # Check if chat scan module is enabled
160
- if AppSettings.INTELTOOL_ENABLE_MODULE_CHATSCAN is True:
161
- participation = parse_pilots(
162
- scan_data=list(set(pilots)),
163
- safe_to_db=False,
164
- ignore_limit=True,
165
- )
209
+ fleet_composition, participation = handle_fleet_composition_and_participation(
210
+ pilots=pilots, ships=ships
211
+ )
166
212
 
167
213
  logger.debug(msg=fleet_composition)
168
214
 
@@ -187,7 +233,7 @@ def parse(scan_data: list) -> Scan:
187
233
  "data": fleet_composition["pilots"],
188
234
  }
189
235
 
190
- # Add fleet participation data
236
+ # Add fleet participation data to the parsed data
191
237
  if participation:
192
238
  parsed_data.update(participation)
193
239
 
@@ -1,4 +1,4 @@
1
- /* global aaIntelToolJsL10n, aaIntelToolJsOptions, addDscanHightlight, removeDscanHightlight, changeDscanStickyHighlight, fetchAjaxData, shipInfoPanel, Intl */
1
+ /* global aaIntelToolJsL10n, aaIntelToolJsOptions, addDscanHightlight, removeDscanHightlight, changeDscanStickyHighlight, fetchAjaxData, shipInfoPanel */
2
2
 
3
3
  $(() => {
4
4
  'use strict';
@@ -398,11 +398,11 @@ $(() => {
398
398
  fetchAjaxData(aaIntelToolJsOptions.ajax.getStructuresOnGrid).then(tableData => {
399
399
  if (tableData) {
400
400
  $('div.aa-intel-loading-table-info-upwell-structures').addClass('d-none');
401
- $('div#aa-intel-dscan-row-interesting-on-grid').removeClass('d-none');
402
401
 
403
402
  if (Object.keys(tableData).length === 0) {
404
403
  $('div.aa-intel-empty-table-info-upwell-structures').removeClass('d-none');
405
404
  } else {
405
+ $('div#aa-intel-dscan-row-interesting-on-grid').removeClass('d-none');
406
406
  $('div.col-aa-intel-upwell-structures').removeClass('d-none');
407
407
 
408
408
  elementUpwellStructuresTable.DataTable({
@@ -464,11 +464,11 @@ $(() => {
464
464
  fetchAjaxData(aaIntelToolJsOptions.ajax.getDeployablesOnGrid).then(tableData => {
465
465
  if (tableData) {
466
466
  $('div.aa-intel-loading-table-info-deployables').addClass('d-none');
467
- $('div#aa-intel-dscan-row-interesting-on-grid').removeClass('d-none');
468
467
 
469
468
  if (Object.keys(tableData).length === 0) {
470
469
  $('div.aa-intel-empty-table-info-deployables').removeClass('d-none');
471
470
  } else {
471
+ $('div#aa-intel-dscan-row-interesting-on-grid').removeClass('d-none');
472
472
  $('div.col-aa-intel-deployables').removeClass('d-none');
473
473
 
474
474
  elementDeployablesTable.DataTable({
@@ -530,11 +530,11 @@ $(() => {
530
530
  fetchAjaxData(aaIntelToolJsOptions.ajax.getStarbasesOnGrid).then(tableData => {
531
531
  if (tableData) {
532
532
  $('div.aa-intel-loading-table-info-starbases').addClass('d-none');
533
- $('div#aa-intel-dscan-row-interesting-on-grid').removeClass('d-none');
534
533
 
535
534
  if (Object.keys(tableData).length === 0) {
536
535
  $('div.aa-intel-empty-table-info-starbases').removeClass('d-none');
537
536
  } else {
537
+ $('div#aa-intel-dscan-row-interesting-on-grid').removeClass('d-none');
538
538
  $('div.col-aa-intel-starbases').removeClass('d-none');
539
539
 
540
540
  elementStarbasesTable.DataTable({