bootstrap contact translations
parent
2df07e41b0
commit
12ed3a98c2
|
@ -175,7 +175,7 @@ object home {
|
|||
ctx.blind option h2("About"),
|
||||
a(href := "/about")(trans.aboutX("Lichess")),
|
||||
a(href := "/faq")("FAQ"),
|
||||
a(href := "/contact")(trans.contact()),
|
||||
a(href := "/contact")(trans.contact.contact()),
|
||||
a(href := "/mobile")(trans.mobileApp()),
|
||||
a(href := routes.Page.tos)(trans.termsOfService()),
|
||||
a(href := routes.Page.privacy)(trans.privacy()),
|
||||
|
|
|
@ -470,7 +470,7 @@ object contact {
|
|||
contentCls = "page box box-pad"
|
||||
)(
|
||||
frag(
|
||||
h1("Contact Lichess"),
|
||||
h1(trans.contact.contactLichess()),
|
||||
div(cls := "contact")(
|
||||
renderedMenu
|
||||
)
|
||||
|
|
|
@ -173,7 +173,7 @@ object help {
|
|||
st.nav(cls := "page-menu__menu subnav")(
|
||||
a(activeCls("about"), href := routes.Page.about)(trans.aboutX("lichess.org")),
|
||||
a(activeCls("faq"), href := routes.Main.faq)("FAQ"),
|
||||
a(activeCls("contact"), href := routes.Main.contact)(trans.contact()),
|
||||
a(activeCls("contact"), href := routes.Main.contact)(trans.contact.contact()),
|
||||
a(activeCls("tos"), href := routes.Page.tos)(trans.termsOfService()),
|
||||
a(activeCls("privacy"), href := routes.Page.privacy)(trans.privacy()),
|
||||
a(activeCls("master"), href := routes.Page.master)("Title verification"),
|
||||
|
|
|
@ -2,7 +2,7 @@ const fs = require('fs-extra');
|
|||
const parseString = require('xml2js').parseString;
|
||||
|
||||
const baseDir = 'translation/source';
|
||||
const dbs = ['site', 'arena', 'emails', 'learn', 'activity', 'coordinates', 'study', 'clas'];
|
||||
const dbs = ['site', 'arena', 'emails', 'learn', 'activity', 'coordinates', 'study', 'clas', 'contact'];
|
||||
|
||||
function ucfirst(s) {
|
||||
return s.charAt(0).toUpperCase() + s.slice(1);
|
||||
|
|
|
@ -76,7 +76,7 @@ lazy val i18n = module("i18n",
|
|||
MessageCompiler(
|
||||
sourceDir = new File("translation/source"),
|
||||
destDir = new File("translation/dest"),
|
||||
dbs = List("site", "arena", "emails", "learn", "activity", "coordinates", "study", "class"),
|
||||
dbs = List("site", "arena", "emails", "learn", "activity", "coordinates", "study", "class", "contact"),
|
||||
compileTo = (sourceManaged in Compile).value / "messages"
|
||||
)
|
||||
}.taskValue,
|
||||
|
|
|
@ -13,6 +13,7 @@ object I18nDb {
|
|||
case object Coordinates extends Ref
|
||||
case object Study extends Ref
|
||||
case object Clas extends Ref
|
||||
case object Contact extends Ref
|
||||
|
||||
val site: Messages = lila.i18n.db.site.Registry.load
|
||||
val arena: Messages = lila.i18n.db.arena.Registry.load
|
||||
|
@ -22,6 +23,7 @@ object I18nDb {
|
|||
val coordinates: Messages = lila.i18n.db.coordinates.Registry.load
|
||||
val study: Messages = lila.i18n.db.study.Registry.load
|
||||
val clas: Messages = lila.i18n.db.clas.Registry.load
|
||||
val contact: Messages = lila.i18n.db.contact.Registry.load
|
||||
|
||||
def apply(ref: Ref): Messages = ref match {
|
||||
case Site => site
|
||||
|
@ -32,6 +34,7 @@ object I18nDb {
|
|||
case Coordinates => coordinates
|
||||
case Study => study
|
||||
case Clas => clas
|
||||
case Contact => contact
|
||||
}
|
||||
|
||||
val langs: Set[Lang] = site.keys.toSet
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Generated with bin/trans-dump.js
|
||||
package lila.i18n
|
||||
|
||||
import I18nDb.{ Activity, Arena, Clas, Coordinates, Emails, Learn, Site, Study }
|
||||
import I18nDb.{ Activity, Arena, Clas, Contact, Coordinates, Emails, Learn, Site, Study }
|
||||
|
||||
// format: OFF
|
||||
object I18nKeys {
|
||||
|
@ -554,7 +554,6 @@ val `aboutX` = new Translated("aboutX", Site)
|
|||
val `xIsAFreeYLibreOpenSourceChessServer` = new Translated("xIsAFreeYLibreOpenSourceChessServer", Site)
|
||||
val `really` = new Translated("really", Site)
|
||||
val `contribute` = new Translated("contribute", Site)
|
||||
val `contact` = new Translated("contact", Site)
|
||||
val `termsOfService` = new Translated("termsOfService", Site)
|
||||
val `sourceCode` = new Translated("sourceCode", Site)
|
||||
val `simultaneousExhibitions` = new Translated("simultaneousExhibitions", Site)
|
||||
|
@ -1239,4 +1238,9 @@ val `nbTeachers` = new Translated("nbTeachers", Clas)
|
|||
val `nbStudents` = new Translated("nbStudents", Clas)
|
||||
}
|
||||
|
||||
object contact {
|
||||
val `contact` = new Translated("contact", Contact)
|
||||
val `contactLichess` = new Translated("contactLichess", Contact)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<resources>
|
||||
<string name="contact">Contact</string>
|
||||
<string name="contactLichess">Contact Lichess</string>
|
||||
</resources>
|
|
@ -683,7 +683,6 @@ computer analysis, game chat and shareable URL.</string>
|
|||
<string name="xIsAFreeYLibreOpenSourceChessServer">%1$s is a free (%2$s), libre, no-ads, open source chess server.</string>
|
||||
<string name="really">really</string>
|
||||
<string name="contribute">Contribute</string>
|
||||
<string name="contact">Contact</string>
|
||||
<string name="termsOfService">Terms of Service</string>
|
||||
<string name="sourceCode">Source Code</string>
|
||||
<string name="simultaneousExhibitions">Simultaneous exhibitions</string>
|
||||
|
|
Loading…
Reference in New Issue