Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ tmp/
scripts/
!/scripts/
/scripts/*
!/scripts/mcoimg/
/scripts/mcoimg/fixtures/v3-swift-encoded.json
/scripts/mcoimg/fixtures/v4-swift-raster.json
!/scripts/test-app-ci.py
!/scripts/tests/
/scripts/tests/*
Expand Down
92 changes: 92 additions & 0 deletions MC1/Resources/Generated/L10n.swift
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,98 @@ public enum L10n {
/// Location: MalwareWarningCard.swift - Warning title for flagged domains
public static let title = L10n.tr("Chats", "chats.malwareWarning.title", fallback: "Link flagged as suspicious")
}
public enum Mcoimg {
/// VoiceOver label for the drawing size gauge; arguments are the encoded size and the conversation's limit
public static func budget(_ p1: Int, _ p2: Int) -> String {
return L10n.tr("Chats", "chats.mcoimg.budget", p1, p2, fallback: "Drawing size %1$d of %2$d bytes")
}
/// VoiceOver name for the pixel drawing canvas
public static let canvas = L10n.tr("Chats", "chats.mcoimg.canvas", fallback: "Pixel canvas")
/// VoiceOver hint for the pixel canvas
public static let canvasHint = L10n.tr("Chats", "chats.mcoimg.canvasHint", fallback: "Swipe up or down to move. Double-tap to paint.")
/// Erases every pixel in the editor
public static let clear = L10n.tr("Chats", "chats.mcoimg.clear", fallback: "Clear Drawing")
/// VoiceOver value for the canvas cursor; arguments are 1-based column, 1-based row, and the colour name
public static func cursorPosition(_ p1: Int, _ p2: Int, _ p3: Any) -> String {
return L10n.tr("Chats", "chats.mcoimg.cursorPosition", p1, p2, String(describing: p3), fallback: "Column %1$d, row %2$d, %3$@")
}
/// Placeholder when an MCOimg payload cannot be decoded
public static let damaged = L10n.tr("Chats", "chats.mcoimg.damaged", fallback: "Damaged image")
/// Destructive button that throws the pixel drawing away
public static let discard = L10n.tr("Chats", "chats.mcoimg.discard", fallback: "Discard Drawing")
/// Title of the confirmation shown when cancelling a pixel drawing that is not blank
public static let discardTitle = L10n.tr("Chats", "chats.mcoimg.discardTitle", fallback: "Discard Drawing?")
/// Progress label while a pixel drawing is encoded
public static let encoding = L10n.tr("Chats", "chats.mcoimg.encoding", fallback: "Encoding drawing")
/// Error when a pixel drawing cannot be encoded
public static let encodingFailed = L10n.tr("Chats", "chats.mcoimg.encodingFailed", fallback: "Unable to encode the drawing.")
/// Alert title when a pixel drawing cannot be encoded
public static let encodingFailedTitle = L10n.tr("Chats", "chats.mcoimg.encodingFailedTitle", fallback: "Unable to Encode")
/// Name for an MCOimg in VoiceOver, notifications, and the chat list
public static let image = L10n.tr("Chats", "chats.mcoimg.image", fallback: "Pixel drawing")
/// VoiceOver action that moves the canvas cursor down one cell
public static let moveDown = L10n.tr("Chats", "chats.mcoimg.moveDown", fallback: "Move down")
/// VoiceOver action that moves the canvas cursor left one cell
public static let moveLeft = L10n.tr("Chats", "chats.mcoimg.moveLeft", fallback: "Move left")
/// VoiceOver action that moves the canvas cursor right one cell
public static let moveRight = L10n.tr("Chats", "chats.mcoimg.moveRight", fallback: "Move right")
/// VoiceOver action that moves the canvas cursor up one cell
public static let moveUp = L10n.tr("Chats", "chats.mcoimg.moveUp", fallback: "Move up")
/// Reapplies the last undone stroke, fill, or clear
public static let redo = L10n.tr("Chats", "chats.mcoimg.redo", fallback: "Redo")
/// Sends the open pixel drawing
public static let send = L10n.tr("Chats", "chats.mcoimg.send", fallback: "Send")
/// Progress label once a pixel drawing has been handed to the conversation
public static let sending = L10n.tr("Chats", "chats.mcoimg.sending", fallback: "Sending drawing")
/// Toggle that shows or hides the pixel grid lines
public static let showGrid = L10n.tr("Chats", "chats.mcoimg.showGrid", fallback: "Show Grid")
/// Editor title and the compose-menu action for a pixel drawing
public static let title = L10n.tr("Chats", "chats.mcoimg.title", fallback: "Pixel Paint")
/// Error when a pixel drawing exceeds the conversation limit; arguments are size then limit
public static func tooLarge(_ p1: Int, _ p2: Int) -> String {
return L10n.tr("Chats", "chats.mcoimg.tooLarge", p1, p2, fallback: "Drawing is %d bytes; this conversation allows %d. Simplify the drawing and try again.")
}
/// Error when a channel pixel drawing exceeds the limit; the size counts the sender node name; arguments are size then limit
public static func tooLargeChannel(_ p1: Int, _ p2: Int) -> String {
return L10n.tr("Chats", "chats.mcoimg.tooLargeChannel", p1, p2, fallback: "Drawing is %d bytes, including your node name; this channel allows %d. Simplify the drawing and try again.")
}
/// Shown under the canvas when the encoded drawing exceeds the conversation's limit
public static let tooLargeInline = L10n.tr("Chats", "chats.mcoimg.tooLargeInline", fallback: "Too large to send")
/// Alert title when a pixel drawing exceeds the conversation limit
public static let tooLargeTitle = L10n.tr("Chats", "chats.mcoimg.tooLargeTitle", fallback: "Drawing Too Large")
/// Label for the pixel editor's tool picker
public static let toolPicker = L10n.tr("Chats", "chats.mcoimg.toolPicker", fallback: "Tool")
/// Restores the pixel drawing to its state before the last stroke, fill, or clear
public static let undo = L10n.tr("Chats", "chats.mcoimg.undo", fallback: "Undo")
/// Placeholder when an MCOimg version cannot be shown
public static let unsupported = L10n.tr("Chats", "chats.mcoimg.unsupported", fallback: "Unsupported image format")
public enum ColorName {
/// VoiceOver name for a Pixel Paint palette color
public static let black = L10n.tr("Chats", "chats.mcoimg.colorName.black", fallback: "Black")
/// VoiceOver name for a Pixel Paint palette color
public static let blue = L10n.tr("Chats", "chats.mcoimg.colorName.blue", fallback: "Blue")
/// VoiceOver name for a Pixel Paint palette color
public static let gray = L10n.tr("Chats", "chats.mcoimg.colorName.gray", fallback: "Gray")
/// VoiceOver name for a Pixel Paint palette color
public static let green = L10n.tr("Chats", "chats.mcoimg.colorName.green", fallback: "Green")
/// VoiceOver name for a Pixel Paint palette color
public static let purple = L10n.tr("Chats", "chats.mcoimg.colorName.purple", fallback: "Purple")
/// VoiceOver name for a Pixel Paint palette color
public static let red = L10n.tr("Chats", "chats.mcoimg.colorName.red", fallback: "Red")
/// VoiceOver name for a Pixel Paint palette color
public static let white = L10n.tr("Chats", "chats.mcoimg.colorName.white", fallback: "White")
/// VoiceOver name for a Pixel Paint palette color
public static let yellow = L10n.tr("Chats", "chats.mcoimg.colorName.yellow", fallback: "Yellow")
}
public enum Tool {
/// Pixel editor tool that paints with the selected colour
public static let brush = L10n.tr("Chats", "chats.mcoimg.tool.brush", fallback: "Brush")
/// Pixel editor tool that paints the background colour
public static let eraser = L10n.tr("Chats", "chats.mcoimg.tool.eraser", fallback: "Eraser")
/// Pixel editor tool that fills a connected area with the selected colour
public static let fill = L10n.tr("Chats", "chats.mcoimg.tool.fill", fallback: "Fill")
}
}
public enum Mention {
public enum Accessibility {
/// Location: MentionSuggestionRow.swift - Accessibility hint for channel sender mention
Expand Down
120 changes: 120 additions & 0 deletions MC1/Resources/Localization/de.lproj/Chats.strings
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,126 @@
/* Location: DeviceMenuTip.swift - Purpose: Tip message explaining device menu features */
"chats.tip.deviceMenu.message" = "Verwalte deine Verbindung, sende Ankündigungen und prüfe den Akku. Das Funkgerät bleibt auch nach erzwungenem Beenden verbunden. Tippe auf „Trennen“, um die Verbindung zu beenden.";

// MARK: - MCOimg

/* Editor title and the compose-menu action for a pixel drawing */
"chats.mcoimg.title" = "Pixel malen";

/* Placeholder when an MCOimg version cannot be shown */
"chats.mcoimg.unsupported" = "Nicht unterstütztes Bildformat";

/* Placeholder when an MCOimg payload cannot be decoded */
"chats.mcoimg.damaged" = "Beschädigtes Bild";

/* Name for an MCOimg in VoiceOver, notifications, and the chat list */
"chats.mcoimg.image" = "Pixelzeichnung";

/* Erases every pixel in the editor */
"chats.mcoimg.clear" = "Zeichnung löschen";

/* Sends the open pixel drawing */
"chats.mcoimg.send" = "Senden";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.white" = "Weiß";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.gray" = "Grau";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.black" = "Schwarz";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.red" = "Rot";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.yellow" = "Gelb";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.green" = "Grün";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.blue" = "Blau";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.purple" = "Lila";

/* VoiceOver name for the pixel drawing canvas */
"chats.mcoimg.canvas" = "Pixel-Leinwand";


/* Alert title when a pixel drawing exceeds the conversation limit */
"chats.mcoimg.tooLargeTitle" = "Zeichnung zu groß";

/* Error when a pixel drawing exceeds the conversation limit; arguments are size then limit */
"chats.mcoimg.tooLarge" = "Die Zeichnung ist %d Bytes groß; diese Unterhaltung erlaubt %d Bytes. Vereinfache die Zeichnung und versuche es erneut.";

/* Error when a channel pixel drawing exceeds the limit; the size counts the sender node name; arguments are size then limit */
"chats.mcoimg.tooLargeChannel" = "Die Zeichnung ist einschließlich deines Knotennamens %d Bytes groß; dieser Kanal erlaubt %d Bytes. Vereinfache die Zeichnung und versuche es erneut.";

/* Alert title when a pixel drawing cannot be encoded */
"chats.mcoimg.encodingFailedTitle" = "Kodieren nicht möglich";

/* Error when a pixel drawing cannot be encoded */
"chats.mcoimg.encodingFailed" = "Die Zeichnung konnte nicht kodiert werden.";

/* Progress label while a pixel drawing is encoded */
"chats.mcoimg.encoding" = "Zeichnung wird kodiert";

/* Progress label once a pixel drawing has been handed to the conversation */
"chats.mcoimg.sending" = "Zeichnung wird gesendet";

/* Title of the confirmation shown when cancelling a pixel drawing that is not blank */
"chats.mcoimg.discardTitle" = "Discard Drawing?";

/* Destructive button that throws the pixel drawing away */
"chats.mcoimg.discard" = "Discard Drawing";

/* Restores the pixel drawing to its state before the last stroke, fill, or clear */
"chats.mcoimg.undo" = "Undo";

/* Reapplies the last undone stroke, fill, or clear */
"chats.mcoimg.redo" = "Redo";

/* Label for the pixel editor's tool picker */
"chats.mcoimg.toolPicker" = "Tool";

/* Pixel editor tool that paints with the selected colour */
"chats.mcoimg.tool.brush" = "Brush";

/* Pixel editor tool that paints the background colour */
"chats.mcoimg.tool.eraser" = "Eraser";

/* Pixel editor tool that fills a connected area with the selected colour */
"chats.mcoimg.tool.fill" = "Fill";

/* Toggle that shows or hides the pixel grid lines */
"chats.mcoimg.showGrid" = "Show Grid";

/* VoiceOver label for the drawing size gauge; arguments are the encoded size and the conversation's limit */
"chats.mcoimg.budget" = "Drawing size %1$d of %2$d bytes";

/* Shown under the canvas when the encoded drawing exceeds the conversation's limit */
"chats.mcoimg.tooLargeInline" = "Too large to send";

/* VoiceOver value for the canvas cursor; arguments are 1-based column, 1-based row, and the colour name */
"chats.mcoimg.cursorPosition" = "Column %1$d, row %2$d, %3$@";

/* VoiceOver hint for the pixel canvas */
"chats.mcoimg.canvasHint" = "Swipe up or down to move. Double-tap to paint.";

/* VoiceOver action that moves the canvas cursor up one cell */
"chats.mcoimg.moveUp" = "Move up";

/* VoiceOver action that moves the canvas cursor down one cell */
"chats.mcoimg.moveDown" = "Move down";

/* VoiceOver action that moves the canvas cursor left one cell */
"chats.mcoimg.moveLeft" = "Move left";

/* VoiceOver action that moves the canvas cursor right one cell */
"chats.mcoimg.moveRight" = "Move right";

/* Location: InlineImageView.swift - Accessibility label for static image */
"chats.inlineImage.imageAccessibility" = "Bild";

Expand Down
120 changes: 120 additions & 0 deletions MC1/Resources/Localization/en.lproj/Chats.strings
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,126 @@
/* Location: InlineImageFragmentView.swift - VoiceOver identity for a failed inline image */
"chats.inlineImage.failedLabel" = "Image failed to load";

// MARK: - MCOimg

/* Editor title and the compose-menu action for a pixel drawing */
"chats.mcoimg.title" = "Pixel Paint";

/* Placeholder when an MCOimg version cannot be shown */
"chats.mcoimg.unsupported" = "Unsupported image format";

/* Placeholder when an MCOimg payload cannot be decoded */
"chats.mcoimg.damaged" = "Damaged image";

/* Name for an MCOimg in VoiceOver, notifications, and the chat list */
"chats.mcoimg.image" = "Pixel drawing";

/* Erases every pixel in the editor */
"chats.mcoimg.clear" = "Clear Drawing";

/* Sends the open pixel drawing */
"chats.mcoimg.send" = "Send";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.white" = "White";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.gray" = "Gray";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.black" = "Black";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.red" = "Red";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.yellow" = "Yellow";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.green" = "Green";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.blue" = "Blue";

/* VoiceOver name for a Pixel Paint palette color */
"chats.mcoimg.colorName.purple" = "Purple";

/* VoiceOver name for the pixel drawing canvas */
"chats.mcoimg.canvas" = "Pixel canvas";


/* Alert title when a pixel drawing exceeds the conversation limit */
"chats.mcoimg.tooLargeTitle" = "Drawing Too Large";

/* Error when a pixel drawing exceeds the conversation limit; arguments are size then limit */
"chats.mcoimg.tooLarge" = "Drawing is %d bytes; this conversation allows %d. Simplify the drawing and try again.";

/* Error when a channel pixel drawing exceeds the limit; the size counts the sender node name; arguments are size then limit */
"chats.mcoimg.tooLargeChannel" = "Drawing is %d bytes, including your node name; this channel allows %d. Simplify the drawing and try again.";

/* Alert title when a pixel drawing cannot be encoded */
"chats.mcoimg.encodingFailedTitle" = "Unable to Encode";

/* Error when a pixel drawing cannot be encoded */
"chats.mcoimg.encodingFailed" = "Unable to encode the drawing.";

/* Progress label while a pixel drawing is encoded */
"chats.mcoimg.encoding" = "Encoding drawing";

/* Progress label once a pixel drawing has been handed to the conversation */
"chats.mcoimg.sending" = "Sending drawing";

/* Title of the confirmation shown when cancelling a pixel drawing that is not blank */
"chats.mcoimg.discardTitle" = "Discard Drawing?";

/* Destructive button that throws the pixel drawing away */
"chats.mcoimg.discard" = "Discard Drawing";

/* Restores the pixel drawing to its state before the last stroke, fill, or clear */
"chats.mcoimg.undo" = "Undo";

/* Reapplies the last undone stroke, fill, or clear */
"chats.mcoimg.redo" = "Redo";

/* Label for the pixel editor's tool picker */
"chats.mcoimg.toolPicker" = "Tool";

/* Pixel editor tool that paints with the selected colour */
"chats.mcoimg.tool.brush" = "Brush";

/* Pixel editor tool that paints the background colour */
"chats.mcoimg.tool.eraser" = "Eraser";

/* Pixel editor tool that fills a connected area with the selected colour */
"chats.mcoimg.tool.fill" = "Fill";

/* Toggle that shows or hides the pixel grid lines */
"chats.mcoimg.showGrid" = "Show Grid";

/* VoiceOver label for the drawing size gauge; arguments are the encoded size and the conversation's limit */
"chats.mcoimg.budget" = "Drawing size %1$d of %2$d bytes";

/* Shown under the canvas when the encoded drawing exceeds the conversation's limit */
"chats.mcoimg.tooLargeInline" = "Too large to send";

/* VoiceOver value for the canvas cursor; arguments are 1-based column, 1-based row, and the colour name */
"chats.mcoimg.cursorPosition" = "Column %1$d, row %2$d, %3$@";

/* VoiceOver hint for the pixel canvas */
"chats.mcoimg.canvasHint" = "Swipe up or down to move. Double-tap to paint.";

/* VoiceOver action that moves the canvas cursor up one cell */
"chats.mcoimg.moveUp" = "Move up";

/* VoiceOver action that moves the canvas cursor down one cell */
"chats.mcoimg.moveDown" = "Move down";

/* VoiceOver action that moves the canvas cursor left one cell */
"chats.mcoimg.moveLeft" = "Move left";

/* VoiceOver action that moves the canvas cursor right one cell */
"chats.mcoimg.moveRight" = "Move right";

// MARK: - Image Viewer

/* Location: FullScreenImageViewer.swift - Close button label */
Expand Down
Loading