server: changes lang field to name

This commit is contained in:
bjorn
2008-09-12 11:32:30 +00:00
parent 9cebc28e8e
commit ddd4d418c0
2 changed files with 5 additions and 5 deletions

View File

@@ -102,9 +102,9 @@ doLinearize pgf tree mto = showJSON $ map toJSObject
doLanguages :: PGF -> JSValue
doLanguages pgf = showJSON $ map toJSObject
[[("lang", showJSON l),
("languageCode", showJSON $ fromMaybe "" (PGF.languageCode pgf l)),
("canParse", showJSON $ PGF.canParse pgf l)]
[[("name", showJSON l),
("languageCode", showJSON $ fromMaybe "" (PGF.languageCode pgf l)),
("canParse", showJSON $ PGF.canParse pgf l)]
| l <- PGF.languages pgf]
doCategories :: PGF -> JSValue