diff --git a/src/compiler/GFServer.hs b/src/compiler/GFServer.hs index ee7b7326f..5b3c0d58f 100644 --- a/src/compiler/GFServer.hs +++ b/src/compiler/GFServer.hs @@ -165,7 +165,7 @@ handle state0 cache execute1 case cmd of "make" -> make dir qs "upload" -> upload qs - "ls" -> jsonList + "ls" -> jsonList (maybe ".json" id $ lookup "ext" qs) "rm" -> look "file" rm qs "download" -> look "file" download qs "link_directories" -> look "newdir" (link_directories dir) qs @@ -183,8 +183,8 @@ handle state0 cache execute1 do mapM_ (uncurry updateFile) files return (state,resp204) - jsonList = - do jsons <- ls_ext "." ".json" + jsonList ext = + do jsons <- ls_ext "." ext return (state,json200 jsons) rm path _ | takeExtension path==".json" = diff --git a/src/www/gfse/gf_abs.js b/src/www/gfse/gf_abs.js index e49837b7a..30f852196 100644 --- a/src/www/gfse/gf_abs.js +++ b/src/www/gfse/gf_abs.js @@ -216,7 +216,7 @@ function parse_oper(s) { } -/* --- Print as plain text (normal GF source syntax) ------------------------- */ +/* --- Print as plain text (normal GF source syntax) ------------------------ */ function show_type(t) { var s=""; diff --git a/src/www/translator/about.html b/src/www/translator/about.html index 4e24780da..b5d17f11e 100644 --- a/src/www/translator/about.html +++ b/src/www/translator/about.html @@ -33,8 +33,8 @@ grammar to use from a menu of available grammars. Through menu options, the user also sets the source and target language for the document.
-The tool handles a set of documents. Documents can be named, saved (locally), -closed and reopened later. +The tool handles a set of documents. Documents can be named, saved, +closed and reopened later. Documents can be saved locally or in the cloud.