Skip to content

Commit

Permalink
Merge branch 'master' into improved-font-handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar authored Jan 20, 2025
2 parents 9d04daa + ddc9643 commit e913d65
Show file tree
Hide file tree
Showing 23 changed files with 88 additions and 46 deletions.
4 changes: 2 additions & 2 deletions app/views/user/show/header.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ object header:
a(
href := routes.Plan.index(),
cls := "trophy award patron icon3d",
ariaTitle(s"Patron since ${showDate(u.plan.sinceDate)}")
ariaTitle(trans.patron.patronSince.txt(showDate(u.plan.sinceDate)))
)(patronIconChar)
)
),
Expand Down Expand Up @@ -82,7 +82,7 @@ object header:
cls := "nm-item",
href := routes.Ublog.index(u.username)
)(
splitNumber(s"${info.ublog.so(_.nbPosts)} blog posts")
splitNumber(trans.ublog.blogPosts.pluralSame(info.ublog.so(_.nbPosts)))
)
),
(ctx.isAuth && ctx.isnt(u))
Expand Down
2 changes: 1 addition & 1 deletion modules/common/src/main/HTTPRequest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ object HTTPRequest:

private val crawlerMatcher = UaMatcher:
// spiders/crawlers
"""Googlebot|AdsBot|Google-Read-Aloud|bingbot|BingPreview|facebookexternalhit|meta-externalagent|SemrushBot|AhrefsBot|PetalBot|Applebot|YandexBot|YandexAdNet|Twitterbot|Baiduspider|Amazonbot|Bytespider|yacybot|ImagesiftBot|ChatGLM-Spider|YisouSpider""" +
"""Googlebot|AdsBot|Google-Read-Aloud|bingbot|BingPreview|facebookexternalhit|meta-externalagent|SemrushBot|AhrefsBot|PetalBot|Applebot|YandexBot|YandexAdNet|YandexImages|Twitterbot|Baiduspider|Amazonbot|Bytespider|yacybot|ImagesiftBot|ChatGLM-Spider|YisouSpider""" +
// http libs
"""|HeadlessChrome|okhttp|axios|wget|curl|python-requests|aiohttp|commons-httpclient|python-urllib|python-httpx|Nessus"""

Expand Down
2 changes: 2 additions & 0 deletions modules/coreI18n/src/main/key.scala
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,7 @@ object I18nKey:
val `donate`: I18nKey = "patron:donate"
val `donateAsX`: I18nKey = "patron:donateAsX"
val `lichessPatron`: I18nKey = "patron:lichessPatron"
val `patronSince`: I18nKey = "patron:patronSince"
val `freeAccount`: I18nKey = "patron:freeAccount"
val `becomePatron`: I18nKey = "patron:becomePatron"
val `xBecamePatron`: I18nKey = "patron:xBecamePatron"
Expand Down Expand Up @@ -2783,6 +2784,7 @@ object I18nKey:
val `blogTips`: I18nKey = "ublog:blogTips"
val `discussThisBlogPostInTheForum`: I18nKey = "ublog:discussThisBlogPostInTheForum"
val `youBlockedByBlogAuthor`: I18nKey = "ublog:youBlockedByBlogAuthor"
val `blogPosts`: I18nKey = "ublog:blogPosts"
val `publishedNbBlogPosts`: I18nKey = "ublog:publishedNbBlogPosts"
val `nbViews`: I18nKey = "ublog:nbViews"
val `viewAllNbPosts`: I18nKey = "ublog:viewAllNbPosts"
Expand Down
1 change: 1 addition & 0 deletions modules/user/src/main/Flags.scala
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ object Flags extends lila.core.user.FlagApi:
C("_adygea", "Adygea"),
C("_belarus-wrw", "Belarus White-red-white"),
C("_east-turkestan", "East Turkestan"),
C("_kurdistan", "Kurdistan"),
C("_russia-wbw", "Russia White-blue-white"),
C("_united-nations", "United Nations"),
C("_earth", "Earth")
Expand Down
4 changes: 2 additions & 2 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ object Dependencies {
val hasher = "com.roundeights" %% "hasher" % "1.3.1"
val compression = "org.lichess" %% "compression" % "1.10"
val maxmind = "com.maxmind.geoip2" % "geoip2" % "4.0.1"
val caffeine = "com.github.ben-manes.caffeine" % "caffeine" % "3.1.8" % "compile"
val caffeine = "com.github.ben-manes.caffeine" % "caffeine" % "3.2.0" % "compile"
val scaffeine = "com.github.blemale" %% "scaffeine" % "5.3.0" % "compile"
val googleOAuth = "com.google.auth" % "google-auth-library-oauth2-http" % "1.30.1"
val galimatias = "io.mola.galimatias" % "galimatias" % "0.2.2-NF"
val scalatags = "com.lihaoyi" %% "scalatags" % "0.13.1"
val lettuce = "io.lettuce" % "lettuce-core" % "6.5.2.RELEASE"
val nettyTransport =
("io.netty" % s"netty-transport-native-$notifier" % "4.1.116.Final").classifier(s"$os-$arch")
("io.netty" % s"netty-transport-native-$notifier" % "4.1.117.Final").classifier(s"$os-$arch")
val lilaSearch = "org.lichess.search" %% "client" % "3.1.0"
val munit = "org.scalameta" %% "munit" % "1.0.4" % Test
val uaparser = "org.uaparser" %% "uap-scala" % "0.18.0"
Expand Down
Binary file added public/images/flags/_kurdistan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion translation/dest/activity/af-ZA.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</plurals>
<plurals name="solvedNbPuzzles">
<item quantity="one">Het %s taktiese kopkrapper opgelos</item>
<item quantity="other">Het %s taktiese kopkrappers opgelos</item>
<item quantity="other">%s oefen raaisels opgelos</item>
</plurals>
<plurals name="playedNbGames">
<item quantity="one">Het %1$s %2$s spel gespeel</item>
Expand Down
5 changes: 4 additions & 1 deletion translation/dest/appeal/af-ZA.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources></resources>
<resources>
<string name="cleanAllGood">Jou rekening is nie gemerk of beperk nie. Jy is onbeperk!</string>
<string name="engineMarked">Jou rekening is gemerk vir eksterne bystand in spelle.</string>
</resources>
4 changes: 4 additions & 0 deletions translation/dest/arena/ml-IN.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,17 @@ berserk ഗെയിമിൽ 7 നീക്കങ്ങളിലധികം
<string name="newTeamBattle">പുതിയ കളിക്കൂട്ടപോരാട്ടം</string>
<string name="customStartDate">തുടക്കത്തിന്റെ ഇഷ്ടാനുസൃത നാൾ</string>
<string name="allowChatHelp">സല്ലാപമുറിയിൽ കളിക്കാരെ വാദിക്കാൻ അനുവദിക്കുക</string>
<string name="averagePerformance">ശരാശരി നിൎവ്വഹണം</string>
<string name="averageScore">ശരാശരി പ്രാപ്താങ്കം</string>
<string name="myTournaments">എന്റെ മത്സരങ്ങൾ</string>
<string name="editTournament">മത്സരം തിരുത്തുക</string>
<string name="editTeamBattle">കളികൂട്ട പോരാട്ടം തിരുത്തുക</string>
<string name="defender">പരിരക്ഷകൻ</string>
<string name="pickYourTeam">താങ്ങളുടെ പക്ഷം തിരഞ്ഞെടുക്കുക</string>
<string name="created">ഉണ്ടാകിയത്</string>
<string name="recentlyPlayed">പുതുതായ കളിച്ചത്</string>
<string name="bestResults">ഏറ്റവും നലത് ഫലങ്ങൾ</string>
<string name="tournamentStats">മത്സരസ്ഥിതിവിവരക്കണക്കു്</string>
<string name="medians">മാധ്യകങ്ങൾ</string>
<string name="allAveragesAreX">ഈ താളിലുള്ള എല്ലാ ശരാശരികൾ %s ആണു്.</string>
<string name="total">മൊത്തം</string>
Expand Down
42 changes: 21 additions & 21 deletions translation/dest/class/af-ZA.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="lichessClasses">Klasse</string>
<string name="lichessClasses" comment="Lichess Classes are a feature that lets a teacher create virtual classes and check out students' progress.&#10;&#10;This text used to be &quot;Lichess Classes&quot;, which has since been shortened to &quot;Classes&quot;.">Klasse</string>
<string name="teachClassesOfChessStudents">Bied klasse vir skaakstudente aan met die Lichess Klasse-funksionaliteitpakket.</string>
<string name="features">Kenmerke</string>
<string name="quicklyGenerateSafeUsernames">Genereer spoedig veilige gebruikersname en wagwoorde vir studente</string>
<string name="trackStudentProgress">Monitor die studente se vooruitgang in wedstryde en kopkrappers</string>
<string name="trackStudentProgress">Monitor studente se ontwikkeling in wedstryde en raaisels</string>
<string name="messageAllStudents">Stel alle studente in kennis oor nuwe klas materiaal</string>
<string name="freeForAllForever" comment="The automated QA checker treats &quot;100%&quot; as if it is a variable, and will give a warning if you change it.&#10;It is not a variable.&#10;&#10;You can still save your translation writing it as &quot;%100&quot; for example, in case this is more valid in your language.">100% gratis vir almal, vir ewig, met geen advertensies of koekies</string>
<string name="applyToBeLichessTeacher">Doen aansoek om \'n Lichess Onderwyser te wees</string>
Expand All @@ -13,10 +13,10 @@
<string name="newClass">Nuwe klas</string>
<string name="closeClass">Maak klas toe</string>
<string name="removedByX">Verwyder deur %s</string>
<string name="reopen">Heropen</string>
<string name="removeStudent">Verwyder student</string>
<string name="removedStudents">Verwyder</string>
<string name="inviteTheStudentBack">Nooi die student terug</string>
<string name="reopen" comment="A button, permitting a teacher to reopen a closed class.">Heropen</string>
<string name="removeStudent" comment="Removes a student from the class. Note the same text is used both for initial removal, and for full erasure.">Verwyder student</string>
<string name="removedStudents" comment="This is in plural form. It is a heading showing all students who have been removed from the class.">Verwyder</string>
<string name="inviteTheStudentBack" comment="A button. Clicking this will re-invite a student that has been removed from the class.">Nooi die student terug</string>
<string name="sendAMessage">Stuur \'n boodskap na al die studente.</string>
<string name="aLinkToTheClassWillBeAdded">\'n Skakel na die klas sal outomaties gevoeg word aan die einde van die boodskap, so jy hoef dit nie self by te voeg nie.</string>
<string name="className">Klas naam</string>
Expand All @@ -30,7 +30,7 @@
<string name="generateANewPassword">Genereer \'n nuwe wagwoord vir die student</string>
<string name="invitedToXByY">Genooi na %1$s deur %2$s</string>
<string name="realName">Regte naam</string>
<string name="privateWillNeverBeShown">Privaat. Sal nooit buite die klas vertoon word nie. Help om te onthou wie die student is.</string>
<string name="privateWillNeverBeShown" comment="A description of the real name field for members of a class.">Privaat. Sal nooit buite die klas vertoon word nie. Help om te onthou wie die student is.</string>
<string name="addStudent">Voeg student by</string>
<string name="lichessProfileXCreatedForY">Lichess profiel %1$s geskep vir %2$s.</string>
<string name="studentCredentials">Student: %1$s
Expand All @@ -41,14 +41,14 @@ Wagwoord: %3$s</string>
<string name="inviteDesc2">Hulle sal \'n boodskap op Lichess ontvang met \'n skakel om by die klas aan te sluit.</string>
<string name="inviteDesc3">Belangrik: nooi net studente wat jy ken, en wat aktief by die klas wil aansluit.</string>
<string name="inviteDesc4">Moet nooit ongevraagde uitnodigings na arbitrêre spelers stuur nie.</string>
<string name="createANewLichessAccount">Skep nuwe Lichess rekening</string>
<string name="createANewLichessAccount" comment="The person who would see this would always be a teacher.&#10;In this context, it is to create a new account for a student of their class.">Skep nuwe Lichess rekening</string>
<string name="createDesc1">Indien die student nog nie \'n Lichess rekening het nie, kan jy een vir hulle hier skep.</string>
<string name="createDesc2">Geen e-pos adres word benodig nie. \'n Wagwoord sal gegenereer word, en jy sal dit na die student moet aanstuur, sodat hulle kan inteken.</string>
<string name="createDesc3">Belangrik: \'n Student moet nie verskeie rekeninge hê nie.</string>
<string name="createDesc4">Indien hulle reeds een het, gebruik eerder die uitnodigingsvorm.</string>
<string name="createStudentWarning">Skep rekeninge slegs vir werklike studente. Moet nie hierdie gebruik om meer rekeninge vir jouself te skep nie.</string>
<string name="lichessUsername">Lichess gebruikersnaam</string>
<string name="generateANewUsername">Genereer \'n nuwe gebruikersnaam</string>
<string name="generateANewUsername" comment="A button which lets teachers create a random username for students they are registering.">Genereer \'n nuwe gebruikersnaam</string>
<string name="welcomeToClass">Welkom by jou klas: %s.
Hier is die skakel om die klas te betree.</string>
<string name="invitationToClass">U word uitgenooi om as student by die klas \"%s\" aan te sluit.</string>
Expand All @@ -57,14 +57,14 @@ Hier is die skakel om die klas te betree.</string>
<item quantity="one">Een hangende uitnodiging</item>
<item quantity="other">%s hangende uitnodigings</item>
</plurals>
<string name="pending">Hangende</string>
<string name="declined">Afgekeur</string>
<string name="pending" comment="Appears in a table of students. Refers to invitation by a teacher to join a class, which the student has not yet responded to.">Hangende</string>
<string name="declined" comment="Appears in a table of students. Refers to invitation by a teacher to join a class, which the student declined.">Afgekeur</string>
<string name="onlyVisibleToTeachers">Slegs sigbaar vir die klas onderwysers</string>
<string name="lastActiveDate">Aktief</string>
<string name="managed">Onder Administrasie</string>
<string name="thisStudentAccountIsManaged">Hierdie studenterekening word gadministreer</string>
<string name="upgradeFromManaged">Opgegradeer vanaf geadministreer na onafhanklik</string>
<string name="release">Stel vry</string>
<string name="release" comment="This used to be 'release'. It is now called 'graduate', and the term is used here as a verb.&#10;&#10;'Releasing' an account means making it a full Lichess account. It will no longer be tied to the teacher that created it.">Stel vry</string>
<string name="releaseTheAccount">Stel rekening vry sodat student dit onafhanklik kan beheer.</string>
<string name="releaseDesc1">\'n Vrygestelde rekening kan nie weer geadministreer word nie. Die student sal die kindermodus kan aan en afskakel en die wagwoord self herstel.</string>
<string name="releaseDesc2">Die student sal in die klas bly nadat die rekening vrygestel is.</string>
Expand Down Expand Up @@ -103,19 +103,19 @@ Hier is die skakel om die klas te betree.</string>
Dit sal \'n horisontale lyn vertoon.</string>
<string name="invite">Nooi uit</string>
<string name="youHaveBeenInvitedByX">Jy is deur %s uitgenooi.</string>
<string name="youAcceptedThisInvitation">Jy het hierdie uitnodiging aanvaar.</string>
<string name="youDeclinedThisInvitation">Jy het hierdie uitnodiging van die hand gewys.</string>
<string name="youAcceptedThisInvitation" comment="Appears when revisiting the page of an invitation to a class, which you have already accepted.">Jy het hierdie uitnodiging aanvaar.</string>
<string name="youDeclinedThisInvitation" comment="Appears when revisiting the page of an invitation to a class, which you have already declined.">Jy het hierdie uitnodiging van die hand gewys.</string>
<string name="orSeparator" comment="Used as separator between invite sections. Shown as large '~ or ~'.">of</string>
<string name="createMultipleAccounts">Skep verskeie Lichess-rekenings tegelyk</string>
<string name="multipleAccsFormDescription" comment="%s is a link and will be replaced with the translation of useThisForm. Make sure both strings fit together.">Jy kan ook %s om verskeie Lichess-rekenings van \'n lys studentename te skep.</string>
<string name="useThisForm" comment="Link text in multipleAccsFromDescription">hierdie vorm gebruik</string>
<string name="maxStudentsNote" comment="%1$s will be replaced with a large number (currently 100).\n%2$s is a link and will be replaced with the translation of createMoreClasses. Make sure both strings fit together.">Let daarop dat \'n klas tot %1$s studente kan hê. Vir meer studente, %2$s.</string>
<string name="createMoreClasses" comment="Link text in maxStudentsNote">skep meer klasse</string>
<string name="studentsRealNamesOnePerLine">Studente se regte name, een per lyn</string>
<string name="xisNowAStudentOfTheClass">%s is nou \'n student van die klas</string>
<string name="anInvitationHasBeenSentToX">\'n Uitnodiging is gestuur na %s</string>
<string name="xAlreadyHasAPendingInvitation">%s is reeds genooi</string>
<string name="xIsAKidAccountWarning">%1$s is \'n kind en kan nie jou boodskap ontvang nie. Gee die uitnodiging met die hand: %2$s</string>
<string name="moveToClass">Skuif na %s</string>
<string name="moveToAnotherClass">Skuif na \'n ander klas</string>
<string name="studentsRealNamesOnePerLine" comment="An instruction on how to enter students' names when creating new accounts for them.">Studente se regte name, een per lyn</string>
<string name="xisNowAStudentOfTheClass" comment="%s is the player's name">%s is nou \'n student van die klas</string>
<string name="anInvitationHasBeenSentToX" comment="%s is the username of a player already registered on Lichess.">\'n Uitnodiging is gestuur na %s</string>
<string name="xAlreadyHasAPendingInvitation" comment="An error message. %s is the username of a player already registered on Lichess.">%s is reeds genooi</string>
<string name="xIsAKidAccountWarning" comment="%1$s is the username&#10;%2$s is a link.">%1$s is \'n kind en kan nie jou boodskap ontvang nie. Gee die uitnodiging met die hand: %2$s</string>
<string name="moveToClass" comment="%s is the name of the class. The name of the class is set by the teacher.&#10;&#10;Appears on a confirmation prompt when a teacher looks to move a student to one of the other classes they run.">Skuif na %s</string>
<string name="moveToAnotherClass" comment="Appears as a heading on a page which lets a teacher move one of their students to one of the other classes they run.">Skuif na \'n ander klas</string>
</resources>
1 change: 1 addition & 0 deletions translation/dest/features/af-ZA.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<string name="boardEditorAndAnalysisBoardWithEngine" comment="%s is the engine name (Stockfish, Fairy-Stockfish)">Bordredigeerder en analisebord met %s</string>
<string name="chessInsights">Skaakinsigte (detailanalise van jou spel)</string>
<string name="allChessBasicsLessons">Alle basiese skaaklesse</string>
<string name="tacticalPuzzlesFromUserGames">Taktiese raaisels vanuit gebruikerspelle</string>
<string name="personalOpeningExplorerX">%1$s (wek ook op %2$s)</string>
<string name="endgameTablebase">7-stuk eindspel-tablebase</string>
<string name="downloadOrUploadAnyGameAsPgn">Oplaai/Aflaai van enige spel as PGN</string>
Expand Down
2 changes: 1 addition & 1 deletion translation/dest/learn/af-ZA.xml
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ in twee skuiwe!</string>
<string name="getAFreeLichessAccount">Kry ’n gratis Lichess-rekening</string>
<string name="practice">Oefen</string>
<string name="learnCommonChessPositions">Leer algemene skaakposisies</string>
<string name="puzzles">Kopkrappers</string>
<string name="puzzles">Raaisels</string>
<string name="exerciseYourTacticalSkills">Oefen jou taktiese vermoëns</string>
<string name="videos">Video’s</string>
<string name="watchInstructiveChessVideos">Kyk opleidingsvideo’s vir skaak</string>
Expand Down
Loading

0 comments on commit e913d65

Please sign in to comment.