Please email me a patch or the changed files. Thanks Demetrio.
On Tuesday, 8 May 2012 03:46:32 UTC-5, demetrio wrote:
>
> Hi everyone,
>
> I don't know if this is the best way to send proposals for improvements.
>
> I have seen that in the admin app, there is a button for search all the
> T() in the application, but it doesn't search in the modules dir. I
> don't know if this is intended.
>
> In my company, we are building an application entirely in the modules
> dir, so i had to add the option to search in that directory.
>
> In gluon/languages.py i have added a line and modified the "for"
> sentence. so now from the line 306 it looks like this:
>
> mp = os.path.join(path, 'models')
> cp = os.path.join(path, 'controllers')
> vp = os.path.join(path, 'views')
> mop = os.path.join(path, 'modules')
> for file in listdir(mp, '.+\.py', 0) + listdir(cp, '.+\.py', 0)\
> + listdir(vp, '.+\.html', 0)+ listdir(mop, '.+\.py', 0):
>
>
> And in addition to this, I have modified the default/edit_language.html
> view:
> <script>
> function hideShowTranslated(){
> jQuery(".translated").closest("p").toggle();
> }
> </script>
> <a class="button" href="#" onclick="hideShowTranslated(this);">
> <span>{{=T('Hide/Show Translated strings')}}</span>
> </a>
>
> With this, its more easy to find the untranslated strings.
>
> My 2 cents.
>