Minor code fixes in onestring view

* don’t use $locale as a local variable name (already defined at global
scope)
Merge pull request #206 from flodolo/minor_fixes

Minor code fixes in onestring view