Special:FilePath says "{{ns:file}}:". If you're using an RTL wiki with uselang=en, the ':' will be displayed at the wrong end of the word, so its direction must be set explicitly according to the wiki's language.
I tried solving it by adding a magic word that returns the wiki's directionality, but there was objection to it, saying that it's too complicated (see Bug 30919). I gave it a thought and i agree with Niklas' comment: too much markup in a message makes it hard to read and translate, so it should be avoided.
Since the code part of the message would be the same in all the languages - <span dir="XXX">{{ns:file}}:</span>, it can be written right in the PHP code and passed to the message as a parameter. However, this message is called from SpecialPage->outputHeader and i couldn't find an easy way to pass parameters to it without overriding the function. But then i'm not not yet very experienced with the message functions. Assistance would be appreciated.
Version: unspecified
Severity: normal