YOU SAID:
He said he didn't like to travel by train
INTO JAPANESE
彼は電車で旅行するのは好きじゃないと言った
BACK INTO ENGLISH
He said he didn't like traveling by train
INTO JAPANESE
彼は電車で旅行するのが好きではないと言った
BACK INTO ENGLISH
He said he did not like to travel by train
INTO JAPANESE
彼は電車で旅行するのは好きではないと言った
BACK INTO ENGLISH
He said he did not like to travel by train
That didn't even make that much sense in English.