File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ bool i18n_t::loadLocale()
221221 std::string localeStr = getLocale ();
222222 std::string fileName = localesPath + localeStr + " ." + fileExtension;
223223 if ( ! fs->exists ( fileName.c_str () ) ) return false ; // this test is useless with SPIFFS
224- fs::File localeFile = fs->open ( fileName.c_str () );
224+ fs::File localeFile = fs->open ( fileName.c_str (), " r " );
225225 if ( ! localeFile ) return false ;
226226 size_t localeSize = localeFile.size ();
227227
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ struct l10n_t
5050// locale name holder
5151struct i18n_locale_t
5252{
53- char language[4 ] {" en " }; // ISO-639
54- char country[4 ] { 0 }; // ISO-3166
55- char variant[16 ] { 0 }; // ISO-3166
56- char delimiter[2 ] { " _ " };
53+ char language[4 ] {0 }; // ISO-639
54+ char country[4 ] {0 }; // ISO-3166
55+ char variant[16 ] {0 }; // ISO-3166
56+ char delimiter[2 ] {0 };
5757 i18n_locale_t () = default ;
5858};
5959
You can’t perform that action at this time.
0 commit comments