Remember the name of the unit in game. Go to Rome - Total War\RTRPE\data\text and open the file called export_units.
Search for the name in there. You`ll find something like this for example(from vanilla):
Code:
{roman_hastati} Hastati
{roman_hastati_descr}
Hardy\nSapping Ability\n\n....
The red part is the dictionary entry of the units. Copy it and do a search for it in the file export_descr_unit found in Rome - Total War\RTRPE\data. You`ll find something like this:
Code:
type roman hastati
dictionary roman_hastati ; Hastati
category infantry
class light
voice_type Light_1
soldier roman_hastati, 40, 0, 1
attributes sea_faring, hide_forest, can_sap
formation 1, 2, 2, 3, 4, squar
The blue part is the internal name of the unit. (the red is the dictionary name you`ve taken from export_units and you don`t need it anymore)
For the settlements you need to open the file imperial_campaign_regions_and_settlement_names from Rome - Total War\RTRPE\data\text and search for the name the settlement or region has in game. You`ll find something like this:
The name in the brackets is the internal unit name.
Note that the RTRPE subfolder in all the paths described above is only true if you have the mod foldered version of RTRPE.