Because glob() is disabled on many shared hosts, i suggest not using it for searching for translations. I have also added one is_readable() check to the code and drupal_set_message(...) after importing file.

CommentFileSizeAuthor
autolocale2.patch1.36 KBmeba

Comments

gábor hojtsy’s picture

Status: Needs review » Fixed

Thanks, committed. I have done some changes to the code though:

- array_push() is overkill, since we have the [] array append operator.
- file_exists() && is_readable() checking is as far as I know overkill, since the later includes the former
- t()-ed strings should *always* have dynamic parts as placeholders, not as appended strings

Anonymous’s picture

Status: Fixed » Closed (fixed)