Skip to content

Commit

Permalink
[democracy] enter link texts
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Jun 1, 2024
1 parent adcf4e7 commit eeb6f27
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
2 changes: 2 additions & 0 deletions app/lib/l10n/arb/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
"createPasswordError": "Der PIN muss aus mindestens 4 Ziffern bestehen und darf keine anderen Zeichen enthalten",
"deleteAccount": "löschen",
"democracy": "Demokratie",
"democracyFaq": "Wie funktioniert die Demokratie?",
"democracyDiscussion": "Diskutiere Vorschläge im Forum!",
"democracyVotedNotificationBody": "Du hast für diesen Vorschlag abgestimmt.",
"democracyVotedNotificationTitle": "Abgestimmt",
"detail": "Detail",
Expand Down
2 changes: 2 additions & 0 deletions app/lib/l10n/arb/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
"createPasswordError": "PIN must contain at least 4 digits and no other signs",
"deleteAccount": "delete",
"democracy": "Democracy",
"democracyFaq": "How does democracy work?",
"democracyDiscussion": "Discuss proposals in the Forum!",
"democracyVotedNotificationBody": "You have voted for this proposal.",
"democracyVotedNotificationTitle": "Voted",
"detail": "Detail",
Expand Down
2 changes: 2 additions & 0 deletions app/lib/l10n/arb/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
"createPasswordError": "Le code NIP doit être composé d'au moins 4 chiffres et ne contenir aucun autre caractère",
"deleteAccount": "supprimer",
"democracy": "Démocratie",
"democracyFaq": "Comment fonctionne la démocratie?",
"democracyDiscussion": "Discute de suggestions dans le forum!",
"democracyVotedNotificationBody": "Tu as voté pour cette proposition.",
"democracyVotedNotificationTitle": "Voté",
"detail": "Détail",
Expand Down
2 changes: 2 additions & 0 deletions app/lib/l10n/arb/app_ru.arb
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
"createPasswordError": "PIN должен содержать не менее 4 цифр и никаких других знаков",
"deleteAccount": "Удалить",
"democracy": "Демократия",
"democracyFaq": "Как работает демократия?",
"democracyDiscussion": "Обсудите предложения на форуме!",
"democracyVotedNotificationBody": "Вы проголосовали за это предложение.",
"democracyVotedNotificationTitle": "проголосовали",
"detail": "Детали",
Expand Down
17 changes: 13 additions & 4 deletions app/lib/page-encointer/democracy/democracy_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,20 @@ class _DemocracyPageState extends State<DemocracyPage> {
),
InkWell(
onTap: () => AppLaunch.launchURL('https://book.encointer.org/protocol-democracy.html'),
child: const Text(
'Click here',
style: TextStyle(decoration: TextDecoration.underline, color: Colors.blue),
child: Text(
l10n.democracyFaq,
style: TextStyle(decoration: TextDecoration.underline, color: context.colorScheme.primary),
),
)
),
const SizedBox(height: 10),
InkWell(
onTap: () => AppLaunch.launchURL('https://book.encointer.org/protocol-democracy.html'),
child: Text(
'Todo: Enter link ${l10n.democracyDiscussion}',
style: TextStyle(decoration: TextDecoration.underline, color: context.colorScheme.primary),
),
),
const SizedBox(height: 10),
],
),
),
Expand Down

0 comments on commit eeb6f27

Please sign in to comment.