new: setup translations

This commit is contained in:
2026-10-09 17:52:48 -04:00
parent 23a44aa210
commit ffe0a54cbd
13 changed files with 507 additions and 96 deletions
+8 -5
View File
@@ -108,7 +108,8 @@ component ChatMessage inherits Rectangle {
x: Theme.gutter;
width: parent.width - Theme.gutter - 16px;
height: parent.height;
text: "↳ \{root.m.reply-sender} \{root.m.reply-body}";
// Reply preview: {0} is the sender, {1} the start of the replied-to text.
text: @tr("↳ {0} {1}", root.m.reply-sender, root.m.reply-body);
color: Theme.text-muted;
font-size: 13px;
vertical-alignment: center;
@@ -175,7 +176,7 @@ component ChatMessage inherits Rectangle {
}
if root.m.edited: Text {
text: "(edited)";
text: @tr("(edited)");
color: Theme.text-faint;
font-size: 11px;
}
@@ -269,7 +270,8 @@ component RoomStart inherits Rectangle {
padding-top: 32px;
spacing: 6px;
Text {
text: "Welcome to #\{root.room-name}!";
// {} is the channel name; the leading "#" is the channel prefix.
text: @tr("Welcome to #{}!", root.room-name);
color: Theme.text-header;
font-size: 28px;
font-weight: 700;
@@ -277,7 +279,8 @@ component RoomStart inherits Rectangle {
}
Text {
text: "This is the start of the #\{root.room-name} channel.";
// {} is the channel name; the leading "#" is the channel prefix.
text: @tr("This is the start of the #{} channel.", root.room-name);
color: Theme.text-muted;
font-size: 15px;
wrap: word-wrap;
@@ -389,7 +392,7 @@ export component MessageList inherits Rectangle {
border-radius: 12px;
background: Theme.popup-bg;
Text {
text: "Loading history…";
text: @tr("Loading history…");
color: Theme.text-muted;
font-size: 12px;
horizontal-alignment: center;