From 2e453b678a24bba665100013cfa5fe613c0d6196 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Sat, 20 Apr 2013 23:10:06 +0000 Subject: [PATCH] GrampsLocale: Add explanatory comment After I stopped myself from fixing something that was done right! svn: r22038 --- gramps/gen/utils/grampslocale.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/gen/utils/grampslocale.py b/gramps/gen/utils/grampslocale.py index fe94883a6..c47e73efe 100644 --- a/gramps/gen/utils/grampslocale.py +++ b/gramps/gen/utils/grampslocale.py @@ -814,6 +814,9 @@ class GrampsLocale(object): """ if not self.localedir: return None + #Note that this isn't a typo for self.language; self.languages + #is cached so we don't have to query the file system every + #time this function is called. if not hasattr(self, 'languages'): self.languages = self.get_available_translations()