Skip to content

Commit

Permalink
Add Estonian language (OpenEPaperLink#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cougar authored Mar 4, 2024
1 parent 085a642 commit ba82ab8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
9 changes: 8 additions & 1 deletion ESP32_AP-Flasher/data/languages.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@
"daysShort": [ "", "MA", "TI", "ON", "TO", "FR", "" ],
"days": [ "Søndag", "Mandag", "Tirsdag", "Onsdag", "Torsdag", "Fredag", "Lørdag" ],
"months": [ "Januar", "Februar", "Marts", "April", "Maj", "Juni", "Juli", "August", "September", "Oktober", "November", "December" ],
"date_format": [ "%d-%m-%Y", "%d-%m" ]
"date_format": [ "%d-%m-%Y", "%d-%m" ]
},
"11": {
"language": "et",
"daysShort": [ "P", "E", "T", "K", "N", "R", "L" ],
"days": [ "Pühapäev", "Esmaspäev", "Teisipäev", "Kolmapäev", "Neljapäev", "Reede", "Laupäev" ],
"months": [ "Jaanuar", "Veebruar", "Märts", "Aprill", "Mai", "Juuni", "Juuli", "August", "September", "Oktoober", "November", "Detsember" ],
"date_format": [ "%d-%m-%Y", "%d-%m" ]
}
}
Binary file modified ESP32_AP-Flasher/data/www/index.html.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion ESP32_AP-Flasher/src/language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ int currentLanguage = 0;

void updateLanguageFromConfig() {
int tempLang = config.language;
if (tempLang < 0 || tempLang > 10) {
if (tempLang < 0 || tempLang > 11) {
Serial.println("Language not supported");
return;
}
Expand Down
1 change: 1 addition & 0 deletions ESP32_AP-Flasher/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ <h3>Access Point config</h3>
<option value="8">ES Español</option>
<option value="9">SV Svenska</option>
<option value="10">DK Dansk</option>
<option value="11">ET Eesti</option>
</select>
</p>
<p title="Depending on the content, a tag can sleep for
Expand Down

0 comments on commit ba82ab8

Please sign in to comment.