PrestaShop/PrestaShop — pull request #420 by e-gaulue (2013-05-02 18:43:02+00:00)
Title: [-] BO : don't show unecessary tpl module translations - complience with documentation

# About the patch
When overriding controllers you may have to also override associated tpl. If you put a copy of it in your module, the translation tool will propose you to modify all sentences of that file whereas you may just need to change or add few of them.

Moreover according to the PrestaShop documentation [here](http://doc.prestashop.com/display/PS15/Creating+a+PrestaShop+module#CreatingaPrestaShopmodule-Moduletranslation), you should always add mod='my_module' in your tpl files translations request:
```
Click me!

```
becomes
```
{l s='Click me!' mod='my_module'}

```

So this patch look only for {l s='whatever' whatever mod='my_module' whatever} string in the tpl files of module my_module.

# Arround the patch
Looking deeply in the regular expression in function userParseFile:
```
$regex = '/\{l\s*s=[\'\"]'._PS_TRANS_PATTERN_.'[\'\"](\s*sprintf=.*)?(\s*mod=\'.+\')?(\s*js=1)?\s*\}/U';
```
I would say:
1. no need to look for sprintf or mod or js if it's not used after
2. if you really want to look at it. Be careful, because with this code, you must have written sprintf then mod then js in this order, either it doesn't work.

I say that because it appears several times in AdminTranslationsController.php. I didn't change them as I needn't it (until now).