Skip to content

Commit f52f840

Browse files
committed
Add translator comments
1 parent a6bb4ac commit f52f840

File tree

6 files changed

+86
-59
lines changed

6 files changed

+86
-59
lines changed

Resources/Locales/pot/openspades.pot

+70-57
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@ msgctxt "Client"
2828
msgid "Saving map failed: "
2929
msgstr ""
3030

31-
#: Sources/Client/Client.cpp:627
31+
#. ! Prefix added to global chat messages.
32+
#. !
33+
#. ! Example: [Global] playername (Red) blah blah
34+
#. !
35+
#. ! Crowdin warns that this string shouldn't be translated,
36+
#. ! but it actually can be.
37+
#. ! The extra whitespace is not a typo.
38+
#: Sources/Client/Client.cpp:633
3239
msgctxt "Client"
3340
msgid "[Global] "
3441
msgstr ""
@@ -207,135 +214,140 @@ msgctxt "Client"
207214
msgid "Shotgun"
208215
msgstr ""
209216

210-
#: Sources/Client/Client_Update.cpp:848
217+
#. ! A cause of death shown in the kill feed.
218+
#: Sources/Client/Client_Update.cpp:849
211219
msgctxt "Client"
212220
msgid "Fall"
213221
msgstr ""
214222

215-
#: Sources/Client/Client_Update.cpp:851
223+
#. ! A cause of death shown in the kill feed.
224+
#: Sources/Client/Client_Update.cpp:853
216225
msgctxt "Client"
217226
msgid "Melee"
218227
msgstr ""
219228

220-
#: Sources/Client/Client_Update.cpp:854
229+
#: Sources/Client/Client_Update.cpp:856
221230
msgctxt "Client"
222231
msgid "Grenade"
223232
msgstr ""
224233

225-
#: Sources/Client/Client_Update.cpp:857
234+
#. ! A cause of death shown in the kill feed.
235+
#: Sources/Client/Client_Update.cpp:860
226236
msgctxt "Client"
227237
msgid "Headshot"
228238
msgstr ""
229239

230-
#: Sources/Client/Client_Update.cpp:860
240+
#. ! A cause of death shown in the kill feed.
241+
#: Sources/Client/Client_Update.cpp:864
231242
msgctxt "Client"
232243
msgid "Team Change"
233244
msgstr ""
234245

235-
#: Sources/Client/Client_Update.cpp:863
246+
#. ! A cause of death shown in the kill feed.
247+
#: Sources/Client/Client_Update.cpp:868
236248
msgctxt "Client"
237249
msgid "Weapon Change"
238250
msgstr ""
239251

240-
#: Sources/Client/Client_Update.cpp:902
252+
#: Sources/Client/Client_Update.cpp:907
241253
msgctxt "Client"
242254
msgid "You have killed {0}"
243255
msgstr ""
244256

245-
#: Sources/Client/Client_Update.cpp:904
257+
#: Sources/Client/Client_Update.cpp:909
246258
msgctxt "Client"
247259
msgid "You were killed by {0}"
248260
msgstr ""
249261

250-
#: Sources/Client/Client_Update.cpp:1216
262+
#: Sources/Client/Client_Update.cpp:1225
251263
msgctxt "Client"
252264
msgid "Insufficient blocks."
253265
msgstr ""
254266

255-
#: Sources/Client/Client_Update.cpp:1219
267+
#: Sources/Client/Client_Update.cpp:1228
256268
msgctxt "Client"
257269
msgid "You cannot place a block there."
258270
msgstr ""
259271

260-
#: Sources/Client/LimboView.cpp:78
272+
#: Sources/Client/LimboView.cpp:79
261273
msgctxt "Client"
262274
msgid "Spawn"
263275
msgstr ""
264276

265-
#: Sources/Client/LimboView.cpp:182
277+
#: Sources/Client/LimboView.cpp:183
266278
msgctxt "Client"
267279
msgid "Select Team:"
268280
msgstr ""
269281

270-
#: Sources/Client/LimboView.cpp:190
282+
#: Sources/Client/LimboView.cpp:191
271283
msgctxt "Client"
272284
msgid "Select Weapon:"
273285
msgstr ""
274286

275-
#: Sources/Client/NetClient.cpp:377
287+
#: Sources/Client/NetClient.cpp:422
276288
msgctxt "NetClient"
277289
msgid "Connecting to the server"
278290
msgstr ""
279291

280-
#: Sources/Client/NetClient.cpp:389
292+
#: Sources/Client/NetClient.cpp:434
281293
msgctxt "NetClient"
282294
msgid "Not connected"
283295
msgstr ""
284296

285-
#: Sources/Client/NetClient.cpp:453
297+
#: Sources/Client/NetClient.cpp:498
286298
msgctxt "NetClient"
287299
msgid "Awaiting for state"
288300
msgstr ""
289301

290-
#: Sources/Client/NetClient.cpp:463 Sources/Client/NetClient.cpp:1232
302+
#: Sources/Client/NetClient.cpp:508 Sources/Client/NetClient.cpp:1277
291303
msgctxt "NetClient"
292304
msgid "Loading snapshot"
293305
msgstr ""
294306

295-
#: Sources/Client/NetClient.cpp:478
307+
#: Sources/Client/NetClient.cpp:523
296308
msgctxt "NetClient"
297309
msgid "Loading snapshot ({0}/{1})"
298310
msgstr ""
299311

300-
#: Sources/Client/NetClient.cpp:483 Sources/Client/NetClient.cpp:517
312+
#: Sources/Client/NetClient.cpp:528 Sources/Client/NetClient.cpp:562
301313
msgctxt "NetClient"
302314
msgid "Connected"
303315
msgstr ""
304316

305-
#: Sources/Client/NetClient.cpp:495 Sources/Client/NetClient.cpp:530
306-
#: Sources/Client/NetClient.cpp:582
317+
#: Sources/Client/NetClient.cpp:540 Sources/Client/NetClient.cpp:575
318+
#: Sources/Client/NetClient.cpp:627
307319
msgctxt "NetClient"
308320
msgid "Still loading..."
309321
msgstr ""
310322

311-
#: Sources/Client/NetClient.cpp:498 Sources/Client/NetClient.cpp:504
312-
#: Sources/Client/NetClient.cpp:534 Sources/Client/NetClient.cpp:539
313-
#: Sources/Client/NetClient.cpp:586 Sources/Client/NetClient.cpp:591
323+
#: Sources/Client/NetClient.cpp:543 Sources/Client/NetClient.cpp:549
324+
#: Sources/Client/NetClient.cpp:579 Sources/Client/NetClient.cpp:584
325+
#: Sources/Client/NetClient.cpp:631 Sources/Client/NetClient.cpp:636
314326
msgctxt "NetClient"
315327
msgid "Error"
316328
msgstr ""
317329

318-
#: Sources/Client/NetClient.cpp:657
330+
#: Sources/Client/NetClient.cpp:702
319331
msgctxt "NetClient"
320332
msgid "You are banned from this server."
321333
msgstr ""
322334

323-
#: Sources/Client/NetClient.cpp:662 Sources/Client/NetClient.cpp:665
335+
#: Sources/Client/NetClient.cpp:707 Sources/Client/NetClient.cpp:710
324336
msgctxt "NetClient"
325337
msgid "You were kicked from this server."
326338
msgstr ""
327339

328-
#: Sources/Client/NetClient.cpp:663
340+
#: Sources/Client/NetClient.cpp:708
329341
msgctxt "NetClient"
330342
msgid "Incompatible client protocol version."
331343
msgstr ""
332344

333-
#: Sources/Client/NetClient.cpp:664
345+
#: Sources/Client/NetClient.cpp:709
334346
msgctxt "NetClient"
335347
msgid "Server full"
336348
msgstr ""
337349

338-
#: Sources/Client/NetClient.cpp:666
350+
#: Sources/Client/NetClient.cpp:711
339351
msgctxt "NetClient"
340352
msgid "Unknown Reason"
341353
msgstr ""
@@ -1012,7 +1024,7 @@ msgid "System Info"
10121024
msgstr ""
10131025

10141026
#: Resources/Scripts/Gui/StartupScreen.as:215
1015-
#: Resources/Scripts/Gui/StartupScreen.as:1678
1027+
#: Resources/Scripts/Gui/StartupScreen.as:1679
10161028
msgctxt "StartupScreen"
10171029
msgid "Advanced"
10181030
msgstr ""
@@ -1369,134 +1381,135 @@ msgid ""
13691381
"dynamics compressor, HRTF-based 3D audio, and high quality reverb."
13701382
msgstr ""
13711383

1372-
#: Resources/Scripts/Gui/StartupScreen.as:1522
1384+
#. ! The name of audio driver that outputs no audio.
1385+
#: Resources/Scripts/Gui/StartupScreen.as:1523
13731386
msgctxt "StartupScreen"
13741387
msgid "Null"
13751388
msgstr ""
13761389

1377-
#: Resources/Scripts/Gui/StartupScreen.as:1526
1390+
#: Resources/Scripts/Gui/StartupScreen.as:1527
13781391
msgctxt "StartupScreen"
13791392
msgid "Disables audio output."
13801393
msgstr ""
13811394

1382-
#: Resources/Scripts/Gui/StartupScreen.as:1537
1383-
#: Resources/Scripts/Gui/StartupScreen.as:1561
1395+
#: Resources/Scripts/Gui/StartupScreen.as:1538
1396+
#: Resources/Scripts/Gui/StartupScreen.as:1562
13841397
msgctxt "StartupScreen"
13851398
msgid "Polyphonics"
13861399
msgstr ""
13871400

1388-
#: Resources/Scripts/Gui/StartupScreen.as:1538
1401+
#: Resources/Scripts/Gui/StartupScreen.as:1539
13891402
msgctxt "StartupScreen"
13901403
msgid ""
13911404
"Specifies how many sounds can be played simultaneously. Higher value needs "
13921405
"more processing power, so setting this too high might cause an overload "
13931406
"(especially with a software emulation)."
13941407
msgstr ""
13951408

1396-
#: Resources/Scripts/Gui/StartupScreen.as:1545
1409+
#: Resources/Scripts/Gui/StartupScreen.as:1546
13971410
msgctxt "StartupScreen"
13981411
msgid "EAX"
13991412
msgstr ""
14001413

1401-
#: Resources/Scripts/Gui/StartupScreen.as:1546
1414+
#: Resources/Scripts/Gui/StartupScreen.as:1547
14021415
msgctxt "StartupScreen"
14031416
msgid ""
14041417
"Enables extended features provided by the OpenAL driver to create more "
14051418
"ambience."
14061419
msgstr ""
14071420

1408-
#: Resources/Scripts/Gui/StartupScreen.as:1562
1421+
#: Resources/Scripts/Gui/StartupScreen.as:1563
14091422
msgctxt "StartupScreen"
14101423
msgid ""
14111424
"Specifies how many sounds can be played simultaneously. No matter what value "
14121425
"is set, YSR might reduce the number of sounds when an overload is detected."
14131426
msgstr ""
14141427

1415-
#: Resources/Scripts/Gui/StartupScreen.as:1622
1428+
#: Resources/Scripts/Gui/StartupScreen.as:1623
14161429
msgctxt "StartupScreen"
14171430
msgid "Language"
14181431
msgstr ""
14191432

1420-
#: Resources/Scripts/Gui/StartupScreen.as:1634
1433+
#: Resources/Scripts/Gui/StartupScreen.as:1635
14211434
msgctxt "StartupScreen"
14221435
msgid "Tools"
14231436
msgstr ""
14241437

1425-
#: Resources/Scripts/Gui/StartupScreen.as:1637
1438+
#: Resources/Scripts/Gui/StartupScreen.as:1638
14261439
msgctxt "StartupScreen"
14271440
msgid "Reset All Settings"
14281441
msgstr ""
14291442

1430-
#: Resources/Scripts/Gui/StartupScreen.as:1646
1443+
#: Resources/Scripts/Gui/StartupScreen.as:1647
14311444
msgctxt "StartupScreen"
14321445
msgid "Open Config Folder in Explorer"
14331446
msgstr ""
14341447

1435-
#: Resources/Scripts/Gui/StartupScreen.as:1648
1448+
#: Resources/Scripts/Gui/StartupScreen.as:1649
14361449
msgctxt "StartupScreen"
14371450
msgid "Reveal Config Folder in Finder"
14381451
msgstr ""
14391452

1440-
#: Resources/Scripts/Gui/StartupScreen.as:1650
1453+
#: Resources/Scripts/Gui/StartupScreen.as:1651
14411454
msgctxt "StartupScreen"
14421455
msgid "Browse Config Folder"
14431456
msgstr ""
14441457

1445-
#: Resources/Scripts/Gui/StartupScreen.as:1667
1458+
#: Resources/Scripts/Gui/StartupScreen.as:1668
14461459
msgctxt "StartupScreen"
14471460
msgid "An unknown error has occurred while opening the config directory."
14481461
msgstr ""
14491462

1450-
#: Resources/Scripts/Gui/StartupScreen.as:1673
1463+
#: Resources/Scripts/Gui/StartupScreen.as:1674
14511464
msgctxt "StartupScreen"
14521465
msgid ""
14531466
"Are you sure to reset all settings? They include (but are not limited to):"
14541467
msgstr ""
14551468

1456-
#: Resources/Scripts/Gui/StartupScreen.as:1674
1469+
#: Resources/Scripts/Gui/StartupScreen.as:1675
14571470
msgctxt "StartupScreen"
14581471
msgid "All graphics/audio settings"
14591472
msgstr ""
14601473

1461-
#: Resources/Scripts/Gui/StartupScreen.as:1675
1474+
#: Resources/Scripts/Gui/StartupScreen.as:1676
14621475
msgctxt "StartupScreen"
14631476
msgid "All key bindings"
14641477
msgstr ""
14651478

1466-
#: Resources/Scripts/Gui/StartupScreen.as:1676
1479+
#: Resources/Scripts/Gui/StartupScreen.as:1677
14671480
msgctxt "StartupScreen"
14681481
msgid "Your player name"
14691482
msgstr ""
14701483

1471-
#: Resources/Scripts/Gui/StartupScreen.as:1677
1484+
#: Resources/Scripts/Gui/StartupScreen.as:1678
14721485
msgctxt "StartupScreen"
14731486
msgid ""
14741487
"Other advanced settings only accessible through '{0}' tab and in-game "
14751488
"commands"
14761489
msgstr ""
14771490

1478-
#: Resources/Scripts/Gui/StartupScreen.as:1747
1491+
#: Resources/Scripts/Gui/StartupScreen.as:1748
14791492
msgctxt "StartupScreen"
14801493
msgid "Unknown ({0})"
14811494
msgstr ""
14821495

1483-
#: Resources/Scripts/Gui/StartupScreen.as:1749
1484-
#: Resources/Scripts/Gui/StartupScreen.as:1763
1496+
#: Resources/Scripts/Gui/StartupScreen.as:1750
1497+
#: Resources/Scripts/Gui/StartupScreen.as:1764
14851498
msgctxt "StartupScreen"
14861499
msgid "System default"
14871500
msgstr ""
14881501

1489-
#: Resources/Scripts/Gui/StartupScreen.as:1812
1502+
#: Resources/Scripts/Gui/StartupScreen.as:1813
14901503
msgctxt "StartupScreen"
14911504
msgid "Copy to Clipboard"
14921505
msgstr ""
14931506

1494-
#: Resources/Scripts/Gui/StartupScreen.as:1848
1507+
#: Resources/Scripts/Gui/StartupScreen.as:1849
14951508
msgctxt "StartupScreen"
14961509
msgid "Advanced Settings"
14971510
msgstr ""
14981511

1499-
#: Resources/Scripts/Gui/StartupScreen.as:1857
1512+
#: Resources/Scripts/Gui/StartupScreen.as:1858
15001513
msgctxt "StartupScreen"
15011514
msgid "Filter"
15021515
msgstr ""

Resources/Scripts/Gui/StartupScreen.as

+1
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,7 @@ namespace spades {
15191519
}
15201520
{
15211521
spades::ui::RadioButton e(Manager);
1522+
//! The name of audio driver that outputs no audio.
15221523
e.Caption = _Tr("StartupScreen", "Null");
15231524
e.Bounds = AABB2(320.f, 0.f, 100.f, 24.f);
15241525
e.GroupName = "driver";

Sources/Client/Client.cpp

+7-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,13 @@ namespace spades {
623623
{
624624
std::string s;
625625
if (global)
626-
/// prefix added to global chat messages.
626+
//! Prefix added to global chat messages.
627+
//!
628+
//! Example: [Global] playername (Red) blah blah
629+
//!
630+
//! Crowdin warns that this string shouldn't be translated,
631+
//! but it actually can be.
632+
//! The extra whitespace is not a typo.
627633
s = _Tr("Client", "[Global] ");
628634
s += ChatWindow::TeamColorMessage(p->GetName(), p->GetTeamId());
629635
s += ": ";

0 commit comments

Comments
 (0)