Skip to content

Commit

Permalink
Merge pull request #55 from lucasmetzen/add-german-locale
Browse files Browse the repository at this point in the history
Add German locale
  • Loading branch information
lucasmetzen authored Dec 28, 2024
2 parents 003daed + 7364f8d commit 0d402e4
Show file tree
Hide file tree
Showing 7 changed files with 100 additions and 17 deletions.
46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
## 4.1.0
### Improvements
- Add German localisation
- Change prioritisation of error messages when trying to send an empty message while not having selected any recipients

## 4.0.1-4.0.4
- Post-release check fixes (mainly for corrupted binary files due to incorrect CRLF settings in Git)
- 4.0.4: first version to be added to official package listing after module got approved

## 4.0.0
First public release and submission to Foundry VTT package listing
- Bump version number to avoid potential issues with pre-release version numbering
- Add GitHub workflow step to publish release to package page

---

# Versions prior to public release

## Pre-releases 3.0.0-alpha to -kappa (November and December 2024)
Multiple pre-releases on the road to public release
- Minimum Foundry VTT version 12

### Improvements
- Migration to Application v2, and improve sub-templates to match
- Add settings for whisper notification
- Add settings for UI buttons to open messenger window
- Rename module from `Lucas's Almost Magnificent Messenger` to `Lucas's Awesome Messenger Extension` and introduce `LAME Messenger` abbreviation
- Improve overall styling
- Add GitHub workflow to create module files for release
- Add README

## 2.1.3 (July 2021)
- Compatability with Foundry VTT version 0.8.8
- Initial Git commit

## 2.1.2 (April 2021)
Minimum Foundry VTT version 0.7.9

## 1.3.1 (December 2020)
Minimum Foundry VTT version 0.7.7

## 1.3.0 (March 2020)
Minimum Foundry VTT version 0.5.1

## 1.0.0
Lost to time...
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ Please first ensure the problem is reproducible, best with all other modules dea
## 🎉 Credits & Thanks

- Player avatars seen in the screenshots in this README are token artwork by "Stryxin" and [Forgotten Adventures](https://www.forgotten-adventures.net) which are included in Foundry VTT's _Dungeons & Dragons Fifth Edition_ system. The depiction is for demonstrational purposes only and this module does not include any of this artwork.
- Thanks to Zaphyr for patiently waiting for this module to become publicly available since I started its development back in Foundry VTT version 0.5.5 in March 2020.
- Thanks to Zaphyr for patiently waiting for this module to become publicly available since I started its development back in Foundry VTT version 0.5.1 in March 2020.
- Thanks to Darksmaug, LittleKing205, Aphasmayra, and dawnofdope for additional testing and feedback.
- Kudos to everyone who read the full README, and thinks the module's name might be just a bit tongue-in-cheek.
Binary file modified docs/README-introduction.webp
Binary file not shown.
36 changes: 36 additions & 0 deletions languages/de.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"LAME": {
"Module": {
"LongTitle": "Lucas's Awesome Messenger Extension",
"ShortTitle": "LAME Messenger",
"TitleWithAbbreviation": "Lucas's Awesome Messenger Extension (LAME Messenger)"
},
"History": {
"Hint": "Dies ist dein Nachrichtenverlauf. Gesendete und empfangene Nachrichten werden hier angezeigt, solange du eingeloggt bist und bis du deinen Browser aktualisierst.",
"To": "an",
"From": "von"
},
"WhisperHint": "Schreibe deine Flüsternachricht hier. Zum Senden, Ctrl-Enter drücken.",
"Send": "Senden",
"Notification": {
"NoRecipientSelected": "Kein Empfänger ausgewählt.",
"NoMessageToSend": "Keine Nachricht zum Senden."
},
"Setting": {
"ShowNotificationForNewWhisper": "Zeige Benachrichtigung bei neuen Flüsternachrichten",
"ShowNotificationForNewWhisperHint": "Soll eine visuelle Benachrichtigung angezeigt werden für jede empfangene Flüsternachricht?",
"PermanentNotificationForNewWhisper": "Bleibende Benachrichtigung bei neuen Flüsternachrichten",
"PermanentNotificationForNewWhisperHint": "Soll die visuelle Benachrichtigung angezeigt werden, bis du sie wegklickst?",
"ButtonInSceneControlToolbar": "Knopf zu Szenenkontrolle hinzufügen",
"ButtonInSceneControlToolbarHint": "Soll der Knopf zum Öffnen des Messengers in der Werkzeugleiste der Szenenkontrolle an der linken Bildschirmseite angezeigt werden?",
"ButtonInChatControl": "Knopf zu Chat-Kontrolle hinzufügen",
"ButtonInChatControlHint": "Soll der Knopf zum Öffnen des Messengers in der Chat-Kontrolle (rechts vom Würfeltyp-Selektor) in der Seitenleiste angezeigt werden?",
"ShowInactiveUsers": "Zeige inaktive Nutzer",
"ShowInactiveUsersHint": "Sollen Nutzer, die momentan nicht verbunden sind, im Messenger angezeigt werden?"
},
"IncomingWhisperFrom": "Flüsternachricht von",
"NoUsersToShow": "Kein Nutzer anzuzeigen.",
"NoUsersToShowExplanation": "Entweder bist du der einzige Nutzer in dieser Welt, alle anderen Nutzen sind deaktiviert, oder sie sind inaktiv und die Einstellung um inaktive Nutzer anzuzeigen ist deaktiviert.",
"UserIsOffline": "Kann nur an verbundene Nutzer senden."
}
}
9 changes: 8 additions & 1 deletion module.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
"styles/messenger.css"
],
"languages": [
{
"lang": "de",
"name": "Deutsch",
"path": "languages/de.json"
},
{
"lang": "en",
"name": "English",
Expand All @@ -35,5 +40,7 @@
"url": "#{URL}#",
"manifest": "#{MANIFEST}#",
"download": "#{DOWNLOAD}#",
"readme": "README.md"
"readme": "https://github.com/lucasmetzen/foundryvtt-messenger/blob/main/README.md",
"bugs": "https://github.com/lucasmetzen/foundryvtt-messenger/issues",
"changelog": "https://github.com/lucasmetzen/foundryvtt-messenger/blob/main/CHANGELOG.md"
}
21 changes: 9 additions & 12 deletions scripts/module.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const {ApplicationV2, HandlebarsApplicationMixin} = foundry.applications.api;

import {localize, MODULE_ID, MODULE_ICON_CLASSES, TEMPLATE_PARTS_PATH} from "./config.mjs";
import {log} from "./helpers/log.mjs";
import {getSetting, registerSettings} from "./settings.mjs";
import {registerHandlebarsHelpers} from "./helpers/handlebars-helpers.mjs";

Expand Down Expand Up @@ -103,8 +102,6 @@ class LAME extends HandlebarsApplicationMixin(ApplicationV2) {

static ready() {
window.LAME.computeUsersData(); // TODO: Look into this again as this doesn't seem to be the intended way...

log('ready');
}

beautifyHistory() {
Expand Down Expand Up @@ -187,7 +184,15 @@ class LAME extends HandlebarsApplicationMixin(ApplicationV2) {
}

async sendMessage(html) {
// Get selected users:
// Get message text:
const messageField = html.find('.message'),
message = messageField.val();
if (message.length === 0) {
ui.notifications.error(localize("LAME.Notification.NoMessageToSend"));
return;
}

// Get selected user(s):
const checkedUserElements = html.find('input[id^="user-"]:checked');
let selectedUserNames = [];
checkedUserElements.each(function () {
Expand All @@ -198,14 +203,6 @@ class LAME extends HandlebarsApplicationMixin(ApplicationV2) {
return;
}

// Get message text:
const messageField = html.find('.message'),
message = messageField.val();
if (message.length === 0) {
ui.notifications.error(localize("LAME.Notification.NoMessageToSend"));
return;
}

// Send whisper(s):
this.sendWhisperTo(selectedUserNames, message);
this.addOutgoingMessageToHistory(selectedUserNames, message);
Expand Down
3 changes: 0 additions & 3 deletions scripts/settings.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { MODULE_ID } from "./config.mjs";
import { log } from "./helpers/log.mjs";

export function registerSettings() {
registerSetting('showNotificationForNewWhisper', {
Expand Down Expand Up @@ -56,8 +55,6 @@ export function registerSettings() {
await window.LAME.computeUsersDataAndRenderPartial();
}
});

log("Module settings registered."); // DEBUG: Remove after development.
}

function registerSetting(settingName, options) {
Expand Down

0 comments on commit 0d402e4

Please sign in to comment.