OpenCode/PHPersonalBookmarks — pull request #1 by fitorec (2012-03-21 20:51:20+00:00)
Title: Spanish Support

Add the translations into Spanish, also the logic in the charging language.

The former was fine, just that you think the function `substr` in the worst case running on 3 occasions, which is not good for performance.

Another thing that helps in performance is to use single quotes instead of double it does not perform variable expansion.

I was thinking maybe the file `api / code.php` be renamed to `api / config.php` where you add the default language and the code of the api, for example:

```php
'asdfghjkl123456789',
'lang' => 'es',
);
```