Closed (fixed)
Project:
Auto locale import
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2007 at 10:58 UTC
Updated:
17 Feb 2007 at 21:15 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| autolocale2.patch | 1.36 KB | meba |
Comments
Comment #1
gábor hojtsyThanks, 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
Comment #2
(not verified) commented