Browse Source

Remove "Book of " from `translation_dummy.cpp`

pull/7308/head
Gleb Mazovetskiy 2 years ago
parent
commit
067d83afac
  1. 8
      Source/translation_dummy.cpp
  2. 2
      tools/extract_translation_data.py

8
Source/translation_dummy.cpp

@ -385,10 +385,6 @@ const char *ITEM_109_NAME = N_("Scroll of Nova");
const char *ITEM_110_NAME = N_("Scroll of Golem"); const char *ITEM_110_NAME = N_("Scroll of Golem");
const char *ITEM_112_NAME = N_("Scroll of Teleport"); const char *ITEM_112_NAME = N_("Scroll of Teleport");
const char *ITEM_113_NAME = N_("Scroll of Apocalypse"); const char *ITEM_113_NAME = N_("Scroll of Apocalypse");
const char *ITEM_114_NAME = N_("Book of ");
const char *ITEM_115_NAME = N_("Book of ");
const char *ITEM_116_NAME = N_("Book of ");
const char *ITEM_117_NAME = N_("Book of ");
const char *ITEM_118_NAME = N_("Dagger"); const char *ITEM_118_NAME = N_("Dagger");
const char *ITEM_118_SHORT_NAME = N_("Dagger"); const char *ITEM_118_SHORT_NAME = N_("Dagger");
const char *ITEM_119_NAME = N_("Short Sword"); const char *ITEM_119_NAME = N_("Short Sword");
@ -447,8 +443,8 @@ const char *ITEM_145_NAME = N_("Long Bow");
const char *ITEM_145_SHORT_NAME = N_("Bow"); const char *ITEM_145_SHORT_NAME = N_("Bow");
const char *ITEM_146_NAME = N_("Composite Bow"); const char *ITEM_146_NAME = N_("Composite Bow");
const char *ITEM_146_SHORT_NAME = N_("Bow"); const char *ITEM_146_SHORT_NAME = N_("Bow");
const char *ITEM_147_NAME = N_("Short Battle Bow"); const char *IDI_SHORT_BATTLE_BOW_NAME = N_("Short Battle Bow");
const char *ITEM_147_SHORT_NAME = N_("Bow"); const char *IDI_SHORT_BATTLE_BOW_SHORT_NAME = N_("Bow");
const char *ITEM_148_NAME = N_("Long Battle Bow"); const char *ITEM_148_NAME = N_("Long Battle Bow");
const char *ITEM_148_SHORT_NAME = N_("Bow"); const char *ITEM_148_SHORT_NAME = N_("Bow");
const char *ITEM_149_NAME = N_("Short War Bow"); const char *ITEM_149_NAME = N_("Short War Bow");

2
tools/extract_translation_data.py

@ -38,7 +38,7 @@ with open(translation_dummy_path, 'w') as temp_source:
for i, row in enumerate(reader): for i, row in enumerate(reader):
id = row['id'] id = row['id']
name = row['name'] name = row['name']
if name == 'Scroll of None' or name == 'Non Item': if name == 'Scroll of None' or name == 'Non Item' or name == 'Book of ':
continue continue
shortName = row['shortName'] shortName = row['shortName']
var_name = id if id else f'ITEM_{i}' var_name = id if id else f'ITEM_{i}'

Loading…
Cancel
Save