summaryrefslogtreecommitdiff
path: root/revert-12_fix-i18n-metric-bullets-part-1-rename-.223-5.56x45mm.patch
blob: d810723c7f1db65cb4e508dd1aefe369690d5250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
From 413fd9596300b354af1c75186631b85956fde57c Mon Sep 17 00:00:00 2001
From: scarf <greenscarf005@gmail.com>
Date: Sat, 29 Apr 2023 11:19:43 +0900
Subject: [PATCH 01/31] fix(i18n): metric bullets part 1: rename `.223` ->
 `5.56x45mm` (#2691)

* refactor: fully specify milimetre for 5.56x45mm

* refactor: change display name of `.223` to `5.56x45mm`

* refactor: `.223` to `5.56x45mm`

* refactor: make metric diameter primary
---
 data/help/texts.json                  |  2 +-
 data/json/items/ammo/223.json         | 14 +++++++-------
 data/json/items/ammo_types.json       |  3 ++-
 data/json/items/generic/ammolink.json |  2 +-
 data/json/items/generic/casing.json   |  4 ++--
 data/json/items/gun/223.json          |  8 ++++----
 data/json/items/magazine/223.json     | 12 ++++++------
 data/json/obsoletion/items.json       | 12 ++++++------
 data/mods/No_Hope/Items/guns.json     |  2 +-
 9 files changed, 30 insertions(+), 29 deletions(-)

diff --git a/data/help/texts.json b/data/help/texts.json
index e8599a549fb..a155169f812 100644
--- a/data/help/texts.json
+++ b/data/help/texts.json
@@ -316,7 +316,7 @@
       "Q: Why can't I carry anything?\nA: At the start of the game you only have the space in your pockets.  A good first goal of many survivors is to find a backpack or pouch to store things in.",
       "Q: Help!  I started a fire and now my house is burning down!\nA: Fires will spread to nearby flammable tiles if they are able.  Lighting a fire in a set-up brazier, stove, wood stove, stone fireplace, pit, or even in a kitchen stove will stop it from spreading.  Fire extinguishers can put out fires that get out of control.  You can put out a fire in the fireplace by examining it.",
       "Q: I'm cold and can't sleep at night!\nA: Gather some clothes and put them in the place you use to sleep in.  Being hungry, thirsty, wet, or injured can also make you feel the cold more, so try to avoid these effects before you go to sleep.  Pillows and some other appliances will help you sleep, and the quality of your sleeping spot is also very important.",
-      "Q: There are too many calibers and guns.  It confuses me - I don't usually understand what is compatible with what.\nA: Try to remember few usual calibers: \n9x19 (or simply 9mm) - fits most basic pistols (Glock, for example) and SMGs, quite easy to find and gets job done versus usual zombies;\n 00 buckshot - for most shotguns.  Very powerful against unarmored target at closer ranges;\n .223 (5.56) - for rifles.  Good long range option.\n .308 (7.62) - for even more powerful rifles.  Also good long range option.\n  It should be enough in the beginning.  Or even just grab any shotgun, fill it with buckshot and give them hell!",
+      "Q: There are too many calibers and guns.  It confuses me - I don't usually understand what is compatible with what.\nA: Try to remember few usual calibers: \n9x19mm (or simply 9mm) - fits most basic pistols (Glock, for example) and SMGs, quite easy to find and gets job done versus usual zombies;\n 00 buckshot - for most shotguns.  Very powerful against unarmored target at closer ranges;\n 5.56mm (.223) - for rifles.  Good long range option.\n 7.62mm (.308) - for even more powerful rifles.  Also good long range option.\n  It should be enough in the beginning.  Or even just grab any shotgun, fill it with buckshot and give them hell!",
       "Q: I have a question that's not addressed here. How can I get an answer?\nA: Check the wiki, or ask the helpful people on the forum or at the chat channels. Links are provided in MOTD in the main menu."
     ]
   }
diff --git a/data/json/items/ammo/223.json b/data/json/items/ammo/223.json
index beaea0d4e9f..254058920f2 100644
--- a/data/json/items/ammo/223.json
+++ b/data/json/items/ammo/223.json
@@ -2,8 +2,8 @@
   {
     "id": "223",
     "type": "AMMO",
-    "name": { "str": ".223 Remington" },
-    "description": ".223 Remington ammunition with 36gr JHP bullets.  The .223 round has been very popular with civilian shooters for almost a century, finding use in a wide variety of weapons.  It generates lower pressure than 5.56 NATO leading to slightly decreased accuracy and recoil.",
+    "name": { "str": "5.56x45mm '.223 Remington'" },
+    "description": ".223 Remington ammunition with 36gr JHP bullets.  The .223 round has been very popular with civilian shooters for almost a century, finding use in a wide variety of weapons.  It generates lower pressure than 5.56x45mm NATO leading to slightly decreased accuracy and recoil.",
     "weight": "12 g",
     "volume": "250 ml",
     "price": 280,
@@ -27,7 +27,7 @@
     "id": "556",
     "copy-from": "223",
     "type": "AMMO",
-    "name": { "str": "5.56 NATO M855A1" },
+    "name": { "str": "5.56x45mm NATO M855A1" },
     "description": "5.56x45mm ammunition with a 62gr FMJ bullet containing a steel penetrator.  Its light weight, high accuracy, and manageable recoil lead to widespread use in the 20th century and it remains popular among militaries and civilians.",
     "price": 290,
     "price_postapoc": 900,
@@ -41,7 +41,7 @@
     "id": "556_incendiary",
     "copy-from": "556",
     "type": "AMMO",
-    "name": { "str": "5.56 NATO tracer" },
+    "name": { "str": "5.56x45mm NATO tracer" },
     "description": "This ammunition is a one-in-five mix of M855A1 and M856 tracer rounds to help keep the weapon they are fired from on target.",
     "extend": { "effects": [ "INCENDIARY" ] }
   },
@@ -49,7 +49,7 @@
     "id": "bp_223",
     "copy-from": "223",
     "type": "AMMO",
-    "name": { "str": ".223 Remington, black powder" },
+    "name": { "str": "5.56x45mm '.223 Remington', black powder" },
     "proportional": {
       "price": 0.3,
       "damage": { "damage_type": "bullet", "amount": 0.57, "armor_penetration": 0.5 },
@@ -63,7 +63,7 @@
     "id": "bp_556",
     "copy-from": "556",
     "type": "AMMO",
-    "name": { "str": "5.56 NATO, black powder" },
+    "name": { "str": "5.56x45mm NATO, black powder" },
     "proportional": {
       "price": 0.3,
       "damage": { "damage_type": "bullet", "amount": 0.57, "armor_penetration": 0.5 },
@@ -77,7 +77,7 @@
     "id": "bp_556_incendiary",
     "copy-from": "556_incendiary",
     "type": "AMMO",
-    "name": { "str": "5.56 NATO tracer, black powder" },
+    "name": { "str": "5.56x45mm NATO tracer, black powder" },
     "proportional": {
       "price": 0.3,
       "damage": { "damage_type": "bullet", "amount": 0.57, "armor_penetration": 0.5 },
diff --git a/data/json/items/ammo_types.json b/data/json/items/ammo_types.json
index 62583254eb9..06cbf7f7e8a 100644
--- a/data/json/items/ammo_types.json
+++ b/data/json/items/ammo_types.json
@@ -212,7 +212,8 @@
   {
     "type": "ammunition_type",
     "id": "223",
-    "name": ".223",
+    "//": "This is a 5.56x45mm round, but it's called 223 because legacy migration reasons.",
+    "name": "5.56x45mm",
     "default": "556"
   },
   {
diff --git a/data/json/items/generic/ammolink.json b/data/json/items/generic/ammolink.json
index 2f23920986f..b7108aedbbd 100644
--- a/data/json/items/generic/ammolink.json
+++ b/data/json/items/generic/ammolink.json
@@ -17,7 +17,7 @@
     "id": "ammolink223",
     "copy-from": "ammolink",
     "type": "GENERIC",
-    "name": { "str": ".223 ammo belt linkage" },
+    "name": { "str": "5.56x45mm ammo belt linkage" },
     "use_action": { "type": "ammobelt", "belt": "belt223" }
   },
   {
diff --git a/data/json/items/generic/casing.json b/data/json/items/generic/casing.json
index f486ad3126a..133ceb06528 100644
--- a/data/json/items/generic/casing.json
+++ b/data/json/items/generic/casing.json
@@ -14,8 +14,8 @@
     "id": "223_casing",
     "copy-from": "casing",
     "type": "GENERIC",
-    "name": { "str": ".223 casing" },
-    "description": "An empty casing from a .223 round.",
+    "name": { "str": "5.56x45mm casing" },
+    "description": "An empty casing from a 5.56x45mm round.",
     "weight": "5 g",
     "volume": "5ml"
   },
diff --git a/data/json/items/gun/223.json b/data/json/items/gun/223.json
index d197c2cade4..5b754865152 100644
--- a/data/json/items/gun/223.json
+++ b/data/json/items/gun/223.json
@@ -4,7 +4,7 @@
     "copy-from": "rifle_auto",
     "type": "GUN",
     "name": { "str": "Remington ACR" },
-    "description": "This carbine was developed for military use in the early 21st century.  It is damaging and accurate, though its rate of fire is a bit slower than competing .223 carbines.",
+    "description": "This carbine was developed for military use in the early 21st century.  It is damaging and accurate, though its rate of fire is a bit slower than competing 5.56x45mm carbines.",
     "weight": "3590 g",
     "volume": "2 L",
     "price": 234300,
@@ -179,7 +179,7 @@
     "copy-from": "rifle_auto",
     "type": "GUN",
     "name": { "str": "H&K G36" },
-    "description": "Designed as a replacement for the early H&K G3 battle rifle, the G36 is more accurate, and uses the much-lighter .223 round, allowing for a higher ammo capacity.",
+    "description": "Designed as a replacement for the early H&K G3 battle rifle, the G36 is more accurate, and uses the much-lighter 5.56x45mm round, allowing for a higher ammo capacity.",
     "weight": "3630 g",
     "volume": "2500 ml",
     "barrel_length": "250 ml",
@@ -396,7 +396,7 @@
     "id": "rifle_223",
     "copy-from": "rifle_home_made",
     "type": "GUN",
-    "name": { "str": "pipe rifle: .223", "str_pl": "pipe rifles: .223" },
+    "name": { "str": "pipe rifle: 5.56x45mm", "str_pl": "pipe rifles: 5.56x45mm" },
     "description": "A home-made rifle.  It is simply a pipe attached to a stock, with a hammer to strike the single round it holds.",
     "weight": "4080 g",
     "volume": "3 L",
@@ -447,7 +447,7 @@
     "copy-from": "rifle_auto",
     "type": "GUN",
     "name": { "str": "FN SCAR-L" },
-    "description": "A highly accurate and modular assault rifle specially designed for the United States Special Operations Command.  The 'L' in its name stands for light, as it uses the lightweight .223 round.",
+    "description": "A highly accurate and modular assault rifle specially designed for the United States Special Operations Command.  The 'L' in its name stands for light, as it uses the lightweight 5.56x45mm round.",
     "weight": "3300 g",
     "volume": "2250 ml",
     "barrel_length": "250 ml",
diff --git a/data/json/items/magazine/223.json b/data/json/items/magazine/223.json
index 74ffa8b8ba1..11ac7ac14b1 100644
--- a/data/json/items/magazine/223.json
+++ b/data/json/items/magazine/223.json
@@ -33,7 +33,7 @@
     "id": "ruger5",
     "looks_like": "stanag30",
     "type": "MAGAZINE",
-    "name": { "str": "Ruger .223 5-round magazine" },
+    "name": { "str": "Ruger 5.56x45mm 5-round magazine" },
     "description": "A compact 5-round box magazine used with the Ruger Mini-14 rifle.",
     "weight": "60 g",
     "volume": "250 ml",
@@ -70,7 +70,7 @@
     "copy-from": "stanag10",
     "looks_like": "stanag30",
     "type": "MAGAZINE",
-    "name": { "str": "Ruger .223 10-round magazine" },
+    "name": { "str": "Ruger 5.56x45mm 10-round magazine" },
     "description": "A compact 10-round box magazine used with the Ruger Mini-14 rifle.",
     "ammo_type": "223"
   },
@@ -79,7 +79,7 @@
     "copy-from": "stanag20",
     "looks_like": "stanag30",
     "type": "MAGAZINE",
-    "name": { "str": "Ruger .223 20-round magazine" },
+    "name": { "str": "Ruger 5.56x45mm 20-round magazine" },
     "description": "A 20-round box magazine used with the Ruger Mini-14 rifle.",
     "ammo_type": "223"
   },
@@ -87,7 +87,7 @@
     "id": "ruger30",
     "looks_like": "stanag30",
     "type": "MAGAZINE",
-    "name": { "str": "Ruger .223 30-round magazine" },
+    "name": { "str": "Ruger 5.56x45mm 30-round magazine" },
     "description": "A high-capacity box magazine for use with the Ruger Mini-14 rifle.",
     "weight": "360 g",
     "volume": "500 ml",
@@ -106,7 +106,7 @@
     "copy-from": "stanag90",
     "looks_like": "stanag30",
     "type": "MAGAZINE",
-    "name": { "str": "Ruger .223 90-round snail drum magazine" },
+    "name": { "str": "Ruger 5.56x45mm 90-round snail drum magazine" },
     "description": "A bulky 90-round snail drum magazine for use with the Ruger Mini-14 rifle.",
     "ammo_type": "223"
   },
@@ -115,7 +115,7 @@
     "copy-from": "stanag100drum",
     "looks_like": "stanag30",
     "type": "MAGAZINE",
-    "name": { "str": "Ruger .223 100-round double drum magazine" },
+    "name": { "str": "Ruger 5.56x45mm 100-round double drum magazine" },
     "description": "A bulky 100-round double drum magazine for use with the Ruger Mini-14 rifle.",
     "ammo_type": "223"
   },
diff --git a/data/json/obsoletion/items.json b/data/json/obsoletion/items.json
index 4355e98444f..f90219f33a8 100644
--- a/data/json/obsoletion/items.json
+++ b/data/json/obsoletion/items.json
@@ -195,8 +195,8 @@
   {
     "id": "retool_223",
     "type": "GUNMOD",
-    "name": { "str": ".223 caliber conversion kit" },
-    "description": "This kit is used to convert a shotgun, 5.45x39mm, 7.62x39mm, .30-06, or .308 rifle to the popular, accurate, and lighter .223 caliber.  The conversion results in slight reductions to both accuracy and ammo capacity.",
+    "name": { "str": "5.56x45mm caliber conversion kit" },
+    "description": "This kit is used to convert a shotgun, 5.45x39mm, 7.62x39mm, .30-06, or .308 rifle to the popular, accurate, and lighter 5.56x45mm caliber.  The conversion results in slight reductions to both accuracy and ammo capacity.",
     "weight": "114 g",
     "volume": "500 ml",
     "integral_volume": 0,
@@ -1662,7 +1662,7 @@
     "looks_like": "sw_619",
     "type": "GUN",
     "name": { "str": "L2037 Backup" },
-    "description": "The logical extension of Leadworks' autorevolver series, this massive 'sidearm' fires 5.56 NATO to share ammo with a soldier's rifle.  The muzzle flash and report of this 5-shot revolver are incredible, producing ballistics similar to .357 Magnum.  Similar to other Leadworks products it doesn't accept third-party modifications.",
+    "description": "The logical extension of Leadworks' autorevolver series, this massive 'sidearm' fires 5.56x45mm NATO to share ammo with a soldier's rifle.  The muzzle flash and report of this 5-shot revolver are incredible, producing ballistics similar to .357 Magnum.  Similar to other Leadworks products it doesn't accept third-party modifications.",
     "weight": "2370 g",
     "volume": "750 ml",
     "price": 267000,
@@ -3971,7 +3971,7 @@
     "id": "reloaded_223",
     "copy-from": "223",
     "type": "AMMO",
-    "name": { "str": ".223 Remington, reloaded" },
+    "name": { "str": "5.56x45mm '.223 Remington', reloaded" },
     "proportional": { "price": 0.7, "damage": { "damage_type": "bullet", "amount": 0.9 }, "dispersion": 1.1 },
     "extend": { "effects": [ "RECYCLED" ] },
     "delete": { "effects": [ "NEVER_MISFIRES" ], "flags": [ "IRREPLACEABLE_CONSUMABLE" ] }
@@ -3980,7 +3980,7 @@
     "id": "reloaded_556",
     "copy-from": "556",
     "type": "AMMO",
-    "name": { "str": "5.56 NATO, reloaded" },
+    "name": { "str": "5.56x45mm NATO, reloaded" },
     "proportional": { "price": 0.7, "damage": { "damage_type": "bullet", "amount": 0.9 }, "dispersion": 1.1 },
     "extend": { "effects": [ "RECYCLED" ] },
     "delete": { "effects": [ "NEVER_MISFIRES" ], "flags": [ "IRREPLACEABLE_CONSUMABLE" ] }
@@ -3989,7 +3989,7 @@
     "id": "reloaded_556_incendiary",
     "copy-from": "556_incendiary",
     "type": "AMMO",
-    "name": { "str": "5.56 NATO tracer, reloaded" },
+    "name": { "str": "5.56x45mm NATO tracer, reloaded" },
     "proportional": { "price": 0.7, "damage": { "damage_type": "bullet", "amount": 0.9 }, "dispersion": 1.1 },
     "extend": { "effects": [ "RECYCLED" ] },
     "delete": { "effects": [ "NEVER_MISFIRES" ], "flags": [ "IRREPLACEABLE_CONSUMABLE" ] }
diff --git a/data/mods/No_Hope/Items/guns.json b/data/mods/No_Hope/Items/guns.json
index a1c1a71b68e..59909c44730 100644
--- a/data/mods/No_Hope/Items/guns.json
+++ b/data/mods/No_Hope/Items/guns.json
@@ -251,7 +251,7 @@
     "type": "GUN",
     "name": { "str": "L2037 Backup" },
     "//": "Most real-life autorevolvers use 6-7.5 inch barrel, but this one's mentioned to be particularly massive.",
-    "description": "The logical extension of Leadworks' autorevolver series, this massive 'sidearm' fires 5.56 NATO to share ammo with a soldier's rifle.  The muzzle flash and report of this 5-shot revolver are incredible, producing ballistics similar to .357 Magnum.  Similar to other Leadworks products it doesn't accept third-party modifications.",
+    "description": "The logical extension of Leadworks' autorevolver series, this massive 'sidearm' fires 5.56x45mm NATO to share ammo with a soldier's rifle.  The muzzle flash and report of this 5-shot revolver are incredible, producing ballistics similar to .357 Magnum.  Similar to other Leadworks products it doesn't accept third-party modifications.",
     "weight": "2370 g",
     "volume": "750 ml",
     "price": 267000,
-- 
2.40.0