mirror of
https://github.com/dyrkin/luxmed-bot.git
synced 2025-12-25 23:03:43 +01:00
more useful input examples
This commit is contained in:
@@ -302,13 +302,13 @@ class Book(val userId: UserId, bot: Bot, apiService: ApiService, dataService: Da
|
||||
end()
|
||||
}
|
||||
|
||||
private def cityConfig = StaticDataConfig(lang.city, "Wrocław", isAnyAllowed = false)
|
||||
private def cityConfig = StaticDataConfig(lang.city, "wro", "Wrocław", isAnyAllowed = false)
|
||||
|
||||
private def clinicConfig = StaticDataConfig(lang.clinic, "Swobodna 1", isAnyAllowed = true)
|
||||
private def clinicConfig = StaticDataConfig(lang.clinic, "swob", "Swobodna 1", isAnyAllowed = true)
|
||||
|
||||
private def serviceConfig = StaticDataConfig(lang.service, "Stomatolog", isAnyAllowed = false)
|
||||
private def serviceConfig = StaticDataConfig(lang.service, "stomat", "Stomatolog", isAnyAllowed = false)
|
||||
|
||||
private def doctorConfig = StaticDataConfig(lang.doctor, "Kowalski", isAnyAllowed = true)
|
||||
private def doctorConfig = StaticDataConfig(lang.doctor, "kowal", "Kowalski", isAnyAllowed = true)
|
||||
|
||||
beforeDestroy {
|
||||
datePicker.destroy()
|
||||
|
||||
@@ -71,7 +71,7 @@ class StaticData(val userId: UserId, bot: Bot, val localization: Localization, o
|
||||
|
||||
object StaticData {
|
||||
|
||||
case class StaticDataConfig(name: String, example: String, isAnyAllowed: Boolean)
|
||||
case class StaticDataConfig(name: String, partialExample: String, example: String, isAnyAllowed: Boolean)
|
||||
|
||||
object LatestOptions
|
||||
|
||||
|
||||
@@ -132,13 +132,13 @@ object En extends Lang {
|
||||
|
||||
override def pleaseEnterStaticDataNameOrAny(config: StaticDataConfig): String =
|
||||
withAnyVariant(
|
||||
s"""<b>➡</b> Please enter a ${config.name} name
|
||||
|For example: <b>${config.example}</b>""".stripMargin,
|
||||
s"""<b>➡</b> Please enter a partial ${config.name} name
|
||||
|For example: <b>${config.partialExample} if you are looking for ${config.example}</b>""".stripMargin,
|
||||
config.isAnyAllowed)
|
||||
|
||||
override def pleaseEnterStaticDataNameOrPrevious(config: StaticDataConfig): String =
|
||||
s"""<b>➡</b> Please enter a ${config.name} name
|
||||
|For example: <b>${config.example}</b>
|
||||
s"""<b>➡</b> Please enter a partial ${config.name} name
|
||||
|For example: <b>${config.partialExample} if you are looking for ${config.example}</b>
|
||||
|
|
||||
|or choose a ${config.name} from previous searches""".stripMargin
|
||||
|
||||
|
||||
@@ -132,13 +132,13 @@ object Ua extends Lang {
|
||||
|
||||
override def pleaseEnterStaticDataNameOrAny(config: StaticDataConfig): String =
|
||||
withAnyVariant(
|
||||
s"""<b>➡</b> Будь ласка, введіть ${config.name}
|
||||
|Наприклад: <b>${config.example}</b>""".stripMargin,
|
||||
s"""<b>➡</b> Будь ласка, введіть частково ${config.name}
|
||||
|Наприклад: <b>${config.partialExample} якщо ви шукаете ${config.example}""".stripMargin,
|
||||
config.isAnyAllowed)
|
||||
|
||||
override def pleaseEnterStaticDataNameOrPrevious(config: StaticDataConfig): String =
|
||||
s"""<b>➡</b> Будь ласка, введіть ${config.name}
|
||||
|Наприклад: <b>${config.example}</b>
|
||||
s"""<b>➡</b> Будь ласка, введіть частково ${config.name}
|
||||
|Наприклад: <b>${config.partialExample} якщо ви шукаете ${config.example}</b>
|
||||
|
|
||||
|або оберіть ${config.name} з попередніх пошуків""".stripMargin
|
||||
|
||||
|
||||
Reference in New Issue
Block a user