mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-26 08:43:18 -06:00
fetch languages on demand to reduce database references
This commit is contained in:
1 parent
a8c5a4f93f
commit
1fd0e9d8e2
4 files changed
+26
-33
No files matched your search
@@ -372,7 +372,7 @@ updatePGF pgf mb_txnid f = do
|
||||
mb_txnid
|
||||
|
||||
optLang pgf opts =
|
||||
case Map.keys (languages pgf) of
|
||||
case Map.keys langs of
|
||||
[lang] -> completeLang (valStrOpts "lang" lang opts)
|
||||
_ -> case valStrOpts "lang" "" opts of
|
||||
"" -> fail "Specify a language to change"
|
||||
|
||||
Reference in new issue
Block a user