diff --git a/src/main/java/de/deadlocker8/budgetmaster/hints/HintService.java b/src/main/java/de/deadlocker8/budgetmaster/hints/HintService.java index 4fbb055418c213d6233d9eb9e8302fcf4e15afe1..77038df7549b35748d86db9e5f28f6a04c0a7dd3 100644 --- a/src/main/java/de/deadlocker8/budgetmaster/hints/HintService.java +++ b/src/main/java/de/deadlocker8/budgetmaster/hints/HintService.java @@ -54,7 +54,7 @@ public class HintService implements Resettable @Override public void createDefaults() { - final List<String> hintKeys = List.of("hint.first.use.teaser", "hint.report.columns", "hint.template.arrow.keys"); + final List<String> hintKeys = List.of("hint.first.use.teaser", "hint.report.columns", "hint.template.arrow.keys", "hint.transaction.save"); for(String localizationKey : hintKeys) { diff --git a/src/main/resources/languages/hints_de.properties b/src/main/resources/languages/hints_de.properties index c9c7e1ca03cb8957ca953461f423d9af22d7d2a5..bd7fa57f2cae73ba41b51ec17551698413d73a49 100644 --- a/src/main/resources/languages/hints_de.properties +++ b/src/main/resources/languages/hints_de.properties @@ -3,5 +3,6 @@ button.hints.reset=Alle Tipps zurücksetzen notification.hints.reset=Alle Tipps zurückgesetzt hint.first.use.teaser=Neu im BudgetMaster? Sieh dir die Einführung an! -hint.report.columns=Hinweis: Du kannst die Reihenfolge der Spalten per Drag&Drop anpassen -hint.template.arrow.keys=Du kannst eine Vorlage mit den Pfeiltasten auswählen und mit Enter bestätigen +hint.report.columns=Tipp: Du kannst die Reihenfolge der Spalten per Drag&Drop anpassen +hint.template.arrow.keys=Tipp: Du kannst eine Vorlage mit den Pfeiltasten auswählen und mit Enter bestätigen +hint.transaction.save=Tipp: Nutze Strg+Enter zum Speichern der Buchung \ No newline at end of file diff --git a/src/main/resources/languages/hints_en.properties b/src/main/resources/languages/hints_en.properties index 31a3384fce19da98a37fbda3ffabdaa0ded322a3..0fc3a6d0e1d9fef39cac46062f2dc4be6c8d7a11 100644 --- a/src/main/resources/languages/hints_en.properties +++ b/src/main/resources/languages/hints_en.properties @@ -3,5 +3,6 @@ button.hints.reset=Reset all hints notification.hints.reset=All hints reset hint.first.use.teaser=New to BudgetMaster? Check out the first use guide! -hint.report.columns=Note: You can change the order of the columns by drag&drop -hint.template.arrow.keys=You can select a template by using the arrow keys and confirm with enter \ No newline at end of file +hint.report.columns=Hint: You can change the order of the columns by drag&drop +hint.template.arrow.keys=Hint: You can select a template by using the arrow keys and confirm with enter +hint.transaction.save=Hint: Use Ctrl+Enter to save the transaction \ No newline at end of file diff --git a/src/main/resources/templates/transactions/newTransactionNormal.ftl b/src/main/resources/templates/transactions/newTransactionNormal.ftl index aa8a182ee21be50eb6cff25d0001f38df528b659..82b800818421efb6acb1c75ac24273798dc98a39 100644 --- a/src/main/resources/templates/transactions/newTransactionNormal.ftl +++ b/src/main/resources/templates/transactions/newTransactionNormal.ftl @@ -43,6 +43,9 @@ <#-- isPayment switch --> <@newTransactionMacros.isExpenditureSwitch transaction/> + <#assign hint=helpers.getHintByLocalizationKey("hint.transaction.save")/> + <@header.hint hint=hint/> + <#-- name --> <@newTransactionMacros.transactionName transaction suggestionsJSON/> diff --git a/src/main/resources/templates/transactions/newTransactionRepeating.ftl b/src/main/resources/templates/transactions/newTransactionRepeating.ftl index 1756b0f9f007aae6e76a556f2f8f2f53712bd2de..5c9d47f7b3a9265a298045676131f05d58a54eb4 100644 --- a/src/main/resources/templates/transactions/newTransactionRepeating.ftl +++ b/src/main/resources/templates/transactions/newTransactionRepeating.ftl @@ -41,6 +41,9 @@ <#-- isPayment switch --> <@newTransactionMacros.isExpenditureSwitch transaction/> + <#assign hint=helpers.getHintByLocalizationKey("hint.transaction.save")/> + <@header.hint hint=hint/> + <#-- name --> <@newTransactionMacros.transactionName transaction suggestionsJSON/> diff --git a/src/main/resources/templates/transactions/newTransactionTransfer.ftl b/src/main/resources/templates/transactions/newTransactionTransfer.ftl index 4055fb273794efa1f36099ab92db54cc8fdf0c3f..96c3c21e669ea142fc29315ef2b3ed87564560b1 100644 --- a/src/main/resources/templates/transactions/newTransactionTransfer.ftl +++ b/src/main/resources/templates/transactions/newTransactionTransfer.ftl @@ -41,6 +41,9 @@ <input type="hidden" name="isExpenditure" value="true"> <input type="hidden" name="previousType" value="<#if previousType??>${previousType.name()}</#if>"> + <#assign hint=helpers.getHintByLocalizationKey("hint.transaction.save")/> + <@header.hint hint=hint/> + <#-- name --> <@newTransactionMacros.transactionName transaction suggestionsJSON/>