Removed Santali language (since it doesnt' have transliteration support)

This commit is contained in:
2025-04-06 12:00:51 -04:00
parent 3d0c20ae48
commit 49b4820c2d
7 changed files with 271 additions and 1026 deletions

View File

@@ -36,7 +36,6 @@ type translationStruct struct {
As string `db:"assamese" json:"as"`
Pa string `db:"punjabi" json:"pa"`
Mai string `db:"maithili" json:"mai"`
Sat string `db:"santali" json:"sat"`
Ne string `db:"nepali" json:"ne"`
Gom string `db:"konkani" json:"gom"`
Tcy string `db:"tulu" json:"tcy"`
@@ -62,7 +61,6 @@ var lang_codes []string = []string{
"as", // Assamese
"pa", // Punjabi
"mai", // Maithili
"sat", // Santali
"ne", // Nepali
"gom", // Konkani
"tcy", // Tulu
@@ -81,7 +79,6 @@ func cleanup() {
return
}
/*
Returns the cached translation from the database, for the given english text. The first parameter
@@ -107,7 +104,7 @@ func getCachedTranslation(data string) (bool, translationStruct) {
}
func addToDatabase(translation translationStruct) {
_, err := db.NamedExec(`INSERT INTO translations VALUES (:english, :hindi, :bengali, :marathi, :tamil, :telugu, :kannada, :malayalam, :oriya, :gujarati, :urdu, :mizo, :assamese, :punjabi, :maithili, :santali, :nepali, :konkani, :tulu, :bhojpuri, :dogri, :manipuri, :sindhi, :awadhi)`, &translation)
_, err := db.NamedExec(`INSERT INTO translations VALUES (:english, :hindi, :bengali, :marathi, :tamil, :telugu, :kannada, :malayalam, :oriya, :gujarati, :urdu, :mizo, :assamese, :punjabi, :maithili, :nepali, :konkani, :tulu, :bhojpuri, :dogri, :manipuri, :sindhi, :awadhi)`, &translation)
if err != nil {
panic(err)
}