From 067d83afac1bc8b1f588a2c2b747c44526303ad4 Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Wed, 31 Jul 2024 22:16:29 +0100 Subject: [PATCH] Remove "Book of " from `translation_dummy.cpp` --- Source/translation_dummy.cpp | 8 ++------ tools/extract_translation_data.py | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Source/translation_dummy.cpp b/Source/translation_dummy.cpp index cbfdbcd64..ba5a64bda 100644 --- a/Source/translation_dummy.cpp +++ b/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_112_NAME = N_("Scroll of Teleport"); 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_SHORT_NAME = N_("Dagger"); 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_146_NAME = N_("Composite Bow"); const char *ITEM_146_SHORT_NAME = N_("Bow"); -const char *ITEM_147_NAME = N_("Short Battle Bow"); -const char *ITEM_147_SHORT_NAME = N_("Bow"); +const char *IDI_SHORT_BATTLE_BOW_NAME = N_("Short Battle Bow"); +const char *IDI_SHORT_BATTLE_BOW_SHORT_NAME = N_("Bow"); const char *ITEM_148_NAME = N_("Long Battle Bow"); const char *ITEM_148_SHORT_NAME = N_("Bow"); const char *ITEM_149_NAME = N_("Short War Bow"); diff --git a/tools/extract_translation_data.py b/tools/extract_translation_data.py index 35c101f45..729095757 100755 --- a/tools/extract_translation_data.py +++ b/tools/extract_translation_data.py @@ -38,7 +38,7 @@ with open(translation_dummy_path, 'w') as temp_source: for i, row in enumerate(reader): id = row['id'] 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 shortName = row['shortName'] var_name = id if id else f'ITEM_{i}'