Skip to content

Commit

Permalink
Fix Danish and update alerts on language change
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward committed Mar 25, 2021
1 parent a0e4c16 commit a0b032d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/appstate_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,9 @@ class StateContainerState extends State<StateContainer> {

// Change language
void updateLanguage(LanguageSetting language) {
if (language != null && curLanguage != null && curLanguage.language != language.language) {
checkAndUpdateAlerts();
}
setState(() {
curLanguage = language;
});
Expand Down
2 changes: 1 addition & 1 deletion lib/model/available_language.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class LanguageSetting extends SettingSelectionItem {
case AvailableLanguage.FRENCH:
return "Français (fr)";
case AvailableLanguage.DANISH:
return "Dansk (dk)";
return "Dansk (da)";
case AvailableLanguage.GERMAN:
return "Deutsch (de)";
case AvailableLanguage.SPANISH:
Expand Down

0 comments on commit a0b032d

Please sign in to comment.