Commit 1527fb06c1
Verified · cmc
Changed files (2)
Sources/OrgstarMobile/EditorScreen.swift +15 −15 · view
| @@ -851,26 +851,26 @@ struct KeyBar: View { | ||
| 851 | 851 | let palette: () -> Void |
| 852 | 852 | |
| 853 | 853 | private static let keys: [(label: String, symbol: String?, keys: String)] = [ |
| 854 | ("Fold", "arrow.right.to.line", "TAB"), | |
| 855 | ("Overview", "arrow.left.to.line", "S-TAB"), | |
| 856 | ("Promote", "decrease.indent", "M-<left>"), | |
| 857 | ("Demote", "increase.indent", "M-<right>"), | |
| 858 | ("Move up", "arrow.up.square", "M-<up>"), | |
| 859 | ("Move down", "arrow.down.square", "M-<down>"), | |
| 860 | ("New heading or item", "plus", "M-RET"), | |
| 854 | (String(localized: "Fold", comment: "Key bar button"), "arrow.right.to.line", "TAB"), | |
| 855 | (String(localized: "Overview", comment: "Key bar button"), "arrow.left.to.line", "S-TAB"), | |
| 856 | (String(localized: "Promote", comment: "Key bar button"), "decrease.indent", "M-<left>"), | |
| 857 | (String(localized: "Demote", comment: "Key bar button"), "increase.indent", "M-<right>"), | |
| 858 | (String(localized: "Move up", comment: "Key bar button"), "arrow.up.square", "M-<up>"), | |
| 859 | (String(localized: "Move down", comment: "Key bar button"), "arrow.down.square", "M-<down>"), | |
| 860 | (String(localized: "New heading or item", comment: "Key bar button"), "plus", "M-RET"), | |
| 861 | 861 | ("TODO", nil, "C-c C-t"), |
| 862 | ("Act at point", "checkmark.square", "C-c C-c"), | |
| 863 | ("Schedule", "calendar", "C-c C-s"), | |
| 864 | ("Deadline", "calendar.badge.exclamationmark", "C-c C-d"), | |
| 865 | ("Tags", "tag", "C-c C-q"), | |
| 866 | ("Open link", "link", "C-c C-o"), | |
| 862 | (String(localized: "Act at point", comment: "Key bar button"), "checkmark.square", "C-c C-c"), | |
| 863 | (String(localized: "Schedule", comment: "Key bar button"), "calendar", "C-c C-s"), | |
| 864 | (String(localized: "Deadline", comment: "Key bar button"), "calendar.badge.exclamationmark", "C-c C-d"), | |
| 865 | (String(localized: "Tags", comment: "Key bar button"), "tag", "C-c C-q"), | |
| 866 | (String(localized: "Open link", comment: "Key bar button"), "link", "C-c C-o"), | |
| 867 | 867 | ] |
| 868 | 868 | |
| 869 | 869 | /// Emphasis for the selection, or a pair of markers with the caret between. |
| 870 | 870 | private static let emphasis: [(label: String, symbol: String, command: String)] = [ |
| 871 | ("Bold", "bold", "org.emphasize.bold"), | |
| 872 | ("Italic", "italic", "org.emphasize.italic"), | |
| 873 | ("Code", "chevron.left.forwardslash.chevron.right", "org.emphasize.code"), | |
| 871 | (String(localized: "Bold", comment: "Key bar button"), "bold", "org.emphasize.bold"), | |
| 872 | (String(localized: "Italic", comment: "Key bar button"), "italic", "org.emphasize.italic"), | |
| 873 | (String(localized: "Code", comment: "Key bar button"), "chevron.left.forwardslash.chevron.right", "org.emphasize.code"), | |
| 874 | 874 | ] |
| 875 | 875 | |
| 876 | 876 | /// The bar's buttons are at least 44 points square, scaled with the text size up to here. |
l10n/Localizable.xcstrings +315 · view
| @@ -2603,6 +2603,41 @@ | ||
| 2603 | 2603 | } |
| 2604 | 2604 | } |
| 2605 | 2605 | }, |
| 2606 | "Act at point": { | |
| 2607 | "comment": "Key bar button", | |
| 2608 | "localizations": { | |
| 2609 | "de": { | |
| 2610 | "stringUnit": { | |
| 2611 | "state": "translated", | |
| 2612 | "value": "An der Einfügemarke ausführen" | |
| 2613 | } | |
| 2614 | }, | |
| 2615 | "es": { | |
| 2616 | "stringUnit": { | |
| 2617 | "state": "translated", | |
| 2618 | "value": "Actuar en el punto" | |
| 2619 | } | |
| 2620 | }, | |
| 2621 | "fr": { | |
| 2622 | "stringUnit": { | |
| 2623 | "state": "translated", | |
| 2624 | "value": "Agir au point" | |
| 2625 | } | |
| 2626 | }, | |
| 2627 | "ja": { | |
| 2628 | "stringUnit": { | |
| 2629 | "state": "translated", | |
| 2630 | "value": "ポイントで実行" | |
| 2631 | } | |
| 2632 | }, | |
| 2633 | "pt-BR": { | |
| 2634 | "stringUnit": { | |
| 2635 | "state": "translated", | |
| 2636 | "value": "Agir no cursor" | |
| 2637 | } | |
| 2638 | } | |
| 2639 | } | |
| 2640 | }, | |
| 2606 | 2641 | "Actions": { |
| 2607 | 2642 | "localizations": { |
| 2608 | 2643 | "de": { |
| @@ -11482,6 +11517,41 @@ | ||
| 11482 | 11517 | } |
| 11483 | 11518 | } |
| 11484 | 11519 | }, |
| 11520 | "Demote": { | |
| 11521 | "comment": "Key bar button", | |
| 11522 | "localizations": { | |
| 11523 | "de": { | |
| 11524 | "stringUnit": { | |
| 11525 | "state": "translated", | |
| 11526 | "value": "Tieferstufen" | |
| 11527 | } | |
| 11528 | }, | |
| 11529 | "es": { | |
| 11530 | "stringUnit": { | |
| 11531 | "state": "translated", | |
| 11532 | "value": "Bajar nivel" | |
| 11533 | } | |
| 11534 | }, | |
| 11535 | "fr": { | |
| 11536 | "stringUnit": { | |
| 11537 | "state": "translated", | |
| 11538 | "value": "Abaisser" | |
| 11539 | } | |
| 11540 | }, | |
| 11541 | "ja": { | |
| 11542 | "stringUnit": { | |
| 11543 | "state": "translated", | |
| 11544 | "value": "レベルを下げる" | |
| 11545 | } | |
| 11546 | }, | |
| 11547 | "pt-BR": { | |
| 11548 | "stringUnit": { | |
| 11549 | "state": "translated", | |
| 11550 | "value": "Rebaixar" | |
| 11551 | } | |
| 11552 | } | |
| 11553 | } | |
| 11554 | }, | |
| 11485 | 11555 | "Demote Heading": { |
| 11486 | 11556 | "comment": "Command title", |
| 11487 | 11557 | "localizations": { |
| @@ -15414,6 +15484,41 @@ | ||
| 15414 | 15484 | } |
| 15415 | 15485 | } |
| 15416 | 15486 | }, |
| 15487 | "Fold": { | |
| 15488 | "comment": "Key bar button", | |
| 15489 | "localizations": { | |
| 15490 | "de": { | |
| 15491 | "stringUnit": { | |
| 15492 | "state": "translated", | |
| 15493 | "value": "Einklappen" | |
| 15494 | } | |
| 15495 | }, | |
| 15496 | "es": { | |
| 15497 | "stringUnit": { | |
| 15498 | "state": "translated", | |
| 15499 | "value": "Contraer" | |
| 15500 | } | |
| 15501 | }, | |
| 15502 | "fr": { | |
| 15503 | "stringUnit": { | |
| 15504 | "state": "translated", | |
| 15505 | "value": "Replier" | |
| 15506 | } | |
| 15507 | }, | |
| 15508 | "ja": { | |
| 15509 | "stringUnit": { | |
| 15510 | "state": "translated", | |
| 15511 | "value": "折りたたむ" | |
| 15512 | } | |
| 15513 | }, | |
| 15514 | "pt-BR": { | |
| 15515 | "stringUnit": { | |
| 15516 | "state": "translated", | |
| 15517 | "value": "Recolher" | |
| 15518 | } | |
| 15519 | } | |
| 15520 | } | |
| 15521 | }, | |
| 15417 | 15522 | "Folder": { |
| 15418 | 15523 | "localizations": { |
| 15419 | 15524 | "de": { |
| @@ -21313,6 +21418,41 @@ | ||
| 21313 | 21418 | } |
| 21314 | 21419 | } |
| 21315 | 21420 | }, |
| 21421 | "Move down": { | |
| 21422 | "comment": "Key bar button", | |
| 21423 | "localizations": { | |
| 21424 | "de": { | |
| 21425 | "stringUnit": { | |
| 21426 | "state": "translated", | |
| 21427 | "value": "Nach unten bewegen" | |
| 21428 | } | |
| 21429 | }, | |
| 21430 | "es": { | |
| 21431 | "stringUnit": { | |
| 21432 | "state": "translated", | |
| 21433 | "value": "Bajar" | |
| 21434 | } | |
| 21435 | }, | |
| 21436 | "fr": { | |
| 21437 | "stringUnit": { | |
| 21438 | "state": "translated", | |
| 21439 | "value": "Déplacer vers le bas" | |
| 21440 | } | |
| 21441 | }, | |
| 21442 | "ja": { | |
| 21443 | "stringUnit": { | |
| 21444 | "state": "translated", | |
| 21445 | "value": "下に移動" | |
| 21446 | } | |
| 21447 | }, | |
| 21448 | "pt-BR": { | |
| 21449 | "stringUnit": { | |
| 21450 | "state": "translated", | |
| 21451 | "value": "Mover para baixo" | |
| 21452 | } | |
| 21453 | } | |
| 21454 | } | |
| 21455 | }, | |
| 21316 | 21456 | "Move to %@": { |
| 21317 | 21457 | "localizations": { |
| 21318 | 21458 | "de": { |
| @@ -21415,6 +21555,41 @@ | ||
| 21415 | 21555 | } |
| 21416 | 21556 | } |
| 21417 | 21557 | }, |
| 21558 | "Move up": { | |
| 21559 | "comment": "Key bar button", | |
| 21560 | "localizations": { | |
| 21561 | "de": { | |
| 21562 | "stringUnit": { | |
| 21563 | "state": "translated", | |
| 21564 | "value": "Nach oben bewegen" | |
| 21565 | } | |
| 21566 | }, | |
| 21567 | "es": { | |
| 21568 | "stringUnit": { | |
| 21569 | "state": "translated", | |
| 21570 | "value": "Subir" | |
| 21571 | } | |
| 21572 | }, | |
| 21573 | "fr": { | |
| 21574 | "stringUnit": { | |
| 21575 | "state": "translated", | |
| 21576 | "value": "Déplacer vers le haut" | |
| 21577 | } | |
| 21578 | }, | |
| 21579 | "ja": { | |
| 21580 | "stringUnit": { | |
| 21581 | "state": "translated", | |
| 21582 | "value": "上に移動" | |
| 21583 | } | |
| 21584 | }, | |
| 21585 | "pt-BR": { | |
| 21586 | "stringUnit": { | |
| 21587 | "state": "translated", | |
| 21588 | "value": "Mover para cima" | |
| 21589 | } | |
| 21590 | } | |
| 21591 | } | |
| 21592 | }, | |
| 21418 | 21593 | "Name": { |
| 21419 | 21594 | "localizations": { |
| 21420 | 21595 | "de": { |
| @@ -22174,6 +22349,41 @@ | ||
| 22174 | 22349 | } |
| 22175 | 22350 | } |
| 22176 | 22351 | }, |
| 22352 | "New heading or item": { | |
| 22353 | "comment": "Key bar button", | |
| 22354 | "localizations": { | |
| 22355 | "de": { | |
| 22356 | "stringUnit": { | |
| 22357 | "state": "translated", | |
| 22358 | "value": "Neue Überschrift oder neuer Listenpunkt" | |
| 22359 | } | |
| 22360 | }, | |
| 22361 | "es": { | |
| 22362 | "stringUnit": { | |
| 22363 | "state": "translated", | |
| 22364 | "value": "Nuevo encabezado o elemento" | |
| 22365 | } | |
| 22366 | }, | |
| 22367 | "fr": { | |
| 22368 | "stringUnit": { | |
| 22369 | "state": "translated", | |
| 22370 | "value": "Nouveau titre ou élément" | |
| 22371 | } | |
| 22372 | }, | |
| 22373 | "ja": { | |
| 22374 | "stringUnit": { | |
| 22375 | "state": "translated", | |
| 22376 | "value": "新しい見出しまたは項目" | |
| 22377 | } | |
| 22378 | }, | |
| 22379 | "pt-BR": { | |
| 22380 | "stringUnit": { | |
| 22381 | "state": "translated", | |
| 22382 | "value": "Novo cabeçalho ou item" | |
| 22383 | } | |
| 22384 | } | |
| 22385 | } | |
| 22386 | }, | |
| 22177 | 22387 | "New heading “%@” under %@": { |
| 22178 | 22388 | "localizations": { |
| 22179 | 22389 | "de": { |
| @@ -25430,6 +25640,41 @@ | ||
| 25430 | 25640 | } |
| 25431 | 25641 | } |
| 25432 | 25642 | }, |
| 25643 | "Open link": { | |
| 25644 | "comment": "Key bar button", | |
| 25645 | "localizations": { | |
| 25646 | "de": { | |
| 25647 | "stringUnit": { | |
| 25648 | "state": "translated", | |
| 25649 | "value": "Link öffnen" | |
| 25650 | } | |
| 25651 | }, | |
| 25652 | "es": { | |
| 25653 | "stringUnit": { | |
| 25654 | "state": "translated", | |
| 25655 | "value": "Abrir enlace" | |
| 25656 | } | |
| 25657 | }, | |
| 25658 | "fr": { | |
| 25659 | "stringUnit": { | |
| 25660 | "state": "translated", | |
| 25661 | "value": "Ouvrir le lien" | |
| 25662 | } | |
| 25663 | }, | |
| 25664 | "ja": { | |
| 25665 | "stringUnit": { | |
| 25666 | "state": "translated", | |
| 25667 | "value": "リンクを開く" | |
| 25668 | } | |
| 25669 | }, | |
| 25670 | "pt-BR": { | |
| 25671 | "stringUnit": { | |
| 25672 | "state": "translated", | |
| 25673 | "value": "Abrir link" | |
| 25674 | } | |
| 25675 | } | |
| 25676 | } | |
| 25677 | }, | |
| 25433 | 25678 | "Open orgstar": { |
| 25434 | 25679 | "localizations": { |
| 25435 | 25680 | "de": { |
| @@ -26115,6 +26360,41 @@ | ||
| 26115 | 26360 | } |
| 26116 | 26361 | } |
| 26117 | 26362 | }, |
| 26363 | "Overview": { | |
| 26364 | "comment": "Key bar button", | |
| 26365 | "localizations": { | |
| 26366 | "de": { | |
| 26367 | "stringUnit": { | |
| 26368 | "state": "translated", | |
| 26369 | "value": "Übersicht" | |
| 26370 | } | |
| 26371 | }, | |
| 26372 | "es": { | |
| 26373 | "stringUnit": { | |
| 26374 | "state": "translated", | |
| 26375 | "value": "Vista general" | |
| 26376 | } | |
| 26377 | }, | |
| 26378 | "fr": { | |
| 26379 | "stringUnit": { | |
| 26380 | "state": "translated", | |
| 26381 | "value": "Vue d'ensemble" | |
| 26382 | } | |
| 26383 | }, | |
| 26384 | "ja": { | |
| 26385 | "stringUnit": { | |
| 26386 | "state": "translated", | |
| 26387 | "value": "概要" | |
| 26388 | } | |
| 26389 | }, | |
| 26390 | "pt-BR": { | |
| 26391 | "stringUnit": { | |
| 26392 | "state": "translated", | |
| 26393 | "value": "Visão geral" | |
| 26394 | } | |
| 26395 | } | |
| 26396 | } | |
| 26397 | }, | |
| 26118 | 26398 | "P": { |
| 26119 | 26399 | "shouldTranslate": false |
| 26120 | 26400 | }, |
| @@ -27424,6 +27704,41 @@ | ||
| 27424 | 27704 | } |
| 27425 | 27705 | } |
| 27426 | 27706 | }, |
| 27707 | "Promote": { | |
| 27708 | "comment": "Key bar button", | |
| 27709 | "localizations": { | |
| 27710 | "de": { | |
| 27711 | "stringUnit": { | |
| 27712 | "state": "translated", | |
| 27713 | "value": "Höherstufen" | |
| 27714 | } | |
| 27715 | }, | |
| 27716 | "es": { | |
| 27717 | "stringUnit": { | |
| 27718 | "state": "translated", | |
| 27719 | "value": "Subir nivel" | |
| 27720 | } | |
| 27721 | }, | |
| 27722 | "fr": { | |
| 27723 | "stringUnit": { | |
| 27724 | "state": "translated", | |
| 27725 | "value": "Remonter" | |
| 27726 | } | |
| 27727 | }, | |
| 27728 | "ja": { | |
| 27729 | "stringUnit": { | |
| 27730 | "state": "translated", | |
| 27731 | "value": "レベルを上げる" | |
| 27732 | } | |
| 27733 | }, | |
| 27734 | "pt-BR": { | |
| 27735 | "stringUnit": { | |
| 27736 | "state": "translated", | |
| 27737 | "value": "Promover" | |
| 27738 | } | |
| 27739 | } | |
| 27740 | } | |
| 27741 | }, | |
| 27427 | 27742 | "Promote Heading": { |
| 27428 | 27743 | "comment": "Command title", |
| 27429 | 27744 | "localizations": { |