When you port a project to a different programming language, it is quite likely still a derivative work. This is especially the case when you (fully or in part) copy the structure of the code, and particular expressions of the same ideas. You can therefore only publish your code if you follow the license.
The MIT license is very liberal. So while you must still keep the original license around to credit the original authors, you can choose almost any license you like. In the simplest case, you can keep the MIT license and add a line with your copyright, as you suggested.
Example using the same license:
Copyright 2018 <Your Name>
Copyright 2015 <Original Author Name>
<Original License text>
Example using a different license, or the same license:
<Your Software is a program that does this and that.>
Copyright 2018 <Your Name>
<Your License text>
---
<Your Software> was ported from <Original Software>:
Copyright 2015 <Original Author Name>
<Original License text>
You can put the original license in the same file, or put the original license in a separate file like <ORIGINAL_SOFTWARE>_LICENSE.txt
, and reference it from your license. Especially for the short MIT license, I would prefer to keep in in the same file to reduce confusion. For longer licenses such as the GPL or Apache licenses, I would create a LICENSE
file that contains the copyright statements and notes the licenses, but refers to separate files for the full license text.
I'd like to note that different projects use LICENSE
files differently. If we want to be pedantic, there is a difference between the license, and the text with the full licensing conditions. The actual license is the part that explains which licensing conditions apply to this project. Some projects put the license into the README and the conditions into a LICENSE file, others put the license and full conditions into the LICENSE files, while some put the license into the LICENSE file and the conditions into a separate file. A few projects include a file with licensing conditions, but do not make it clear that the copyright holders have in fact licensed the project under these conditions.