I made a mod to add new types of bombs for the small launcher. It all works perfectly except that their names show as the STR_ names. I copied the method of adding language data from the functional "Retaliator" interceptor mod. Here's my whole small bomb mod, with the language at the bottom:
items:
- type: STR_SMALL_LAUNCHER
compatibleAmmo:
- STR_STUN_HE_BOMB
- STR_STUN_SMOKE_BOMB
- STR_STUN_FIRE_BOMB
accuracySnap: 45
accuracyAimed: 105
tuSnap: 25
tuAimed: 60
- type: STR_STUN_BOMB
weight: 2
power: 80
- type: STR_STUN_HE_BOMB
requires:
- STR_STUN_BOMB
size: 0.1
costSell: 7600
weight: 2
bigSprite: 38
floorSprite: 37
hitSound: 0
hitAnimation: 0
power: 80
damageType: 3
clipSize: 1
battleType: 2
- type: STR_STUN_SMOKE_BOMB
requires:
- STR_STUN_BOMB
size: 0.1
costSell: 9500
weight: 2
bigSprite: 38
floorSprite: 37
hitSound: 0
hitAnimation: 0
power: 80
damageType: 9
clipSize: 1
battleType: 2
- type: STR_STUN_FIRE_BOMB
requires:
- STR_STUN_BOMB
size: 0.1
costSell: 11400
weight: 2
bigSprite: 38
floorSprite: 37
hitSound: 0
hitAnimation: 0
power: 80
damageType: 2
clipSize: 1
battleType: 2
manufacture:
- name: STR_STUN_BOMB
space: 1
- name: STR_STUN_HE_BOMB
category: STR_AMMUNITION
requires:
- STR_STUN_BOMB
space: 1
time: 160
cost: 3500
requiredItems:
STR_ELERIUM_115: 1
- name: STR_STUN_SMOKE_BOMB
category: STR_AMMUNITION
requires:
- STR_STUN_BOMB
space: 1
time: 170
cost: 4375
requiredItems:
STR_ELERIUM_115: 1
- name: STR_STUN_FIRE_BOMB
category: STR_AMMUNITION
requires:
- STR_STUN_BOMB
space: 1
time: 180
cost: 5250
requiredItems:
STR_ELERIUM_115: 1
extraStrings:
- type: en-GB
strings:
STR_STUN_HE_BOMB: "Explosive Bomb"
STR_STUN_SMOKE_BOMB: "Smoke Bomb"
STR_STUN_FIRE_BOMB: "Incendiary Bomb"
extraStrings:
- type: en-US
strings:
STR_STUN_HE_BOMB: "Explosive Bomb"
STR_STUN_SMOKE_BOMB: "Smoke Bomb"
STR_STUN_FIRE_BOMB: "Incendiary Bomb"
extraStrings:
- type: es-419
strings:
STR_STUN_HE_BOMB: "Bomba detonante"
STR_STUN_SMOKE_BOMB: "Bomba de humo"
STR_STUN_FIRE_BOMB: "Bomba incendiaria"
extraStrings:
- type: es-ES
strings:
STR_STUN_HE_BOMB: "Bomba detonante"
STR_STUN_SMOKE_BOMB: "Bomba de humo"
STR_STUN_FIRE_BOMB: "Bomba incendiaria"
extraStrings:
- type: fr
strings:
STR_STUN_HE_BOMB: "Bombe explosive"
STR_STUN_SMOKE_BOMB: "Bombe fumigène"
STR_STUN_FIRE_BOMB: "Bombe incendiaire"
extraStrings:
- type: ja
strings:
STR_STUN_HE_BOMB: "爆薬爆弾"
STR_STUN_SMOKE_BOMB: "煙爆弾"
STR_STUN_FIRE_BOMB: "焼夷弾爆弾"
Here's the language bit from Retaliator:
extraStrings:
- type: en-GB
strings:
STR_IMPROVED_INTERCEPTOR: "Improved Interceptor"
STR_RETALIATOR_UFOPEDIA: "VARIANT OF THE INTERCEPTOR REFITTED WITH AN ALIEN ALLOY AIRFRAME FOR INCREASED SURVIVABILITY AND SOPHISTICATED AVIONICS FOR OPTIMAL INTERDICTIONS."
STR_RETALIATOR: "RETALIATOR"
- type: en-US
strings:
STR_IMPROVED_INTERCEPTOR: "Improved Interceptor"
STR_RETALIATOR_UFOPEDIA: "VARIANT OF THE INTERCEPTOR REFITTED WITH AN ALIEN ALLOY AIRFRAME FOR INCREASED SURVIVABILITY AND SOPHISTICATED AVIONICS FOR OPTIMAL INTERDICTIONS."
STR_RETALIATOR: "RETALIATOR"
- type: es
strings:
STR_IMPROVED_INTERCEPTOR: "Interceptor mejorado"
STR_RETALIATOR_UFOPEDIA: "VARIANTE DEL INTERCEPTOR DOTADA DE UN FUSELAJE DE ALEACIÓN ALIENÍGENA PARA MAYOR PROTECCIÓN Y AVIÓNICA SOFISTICADA PARA ÓPTIMAS INTERDICCIONES."
STR_RETALIATOR: "RETALIATOR"
- type: es-419
strings:
STR_IMPROVED_INTERCEPTOR: "Interceptor mejorado"
STR_RETALIATOR_UFOPEDIA: "Variante del Interceptor dotada de un fuselaje de aleación alienígena para mayor protección y aviónica sofisticada para óptimas interdicciones."
STR_RETALIATOR: "RETALIATOR"