Skip to content

Commit

Permalink
Pull request #59: Move a couple overlooked strings into text resources
Browse files Browse the repository at this point in the history
Merge in PAC/chatbook from bugfix/452819 to main

* commit '7ed6c6e63f9ace4096278201315372599b429319':
  Move a couple overlooked strings into text resources
  • Loading branch information
ljdandria authored and rhennigan committed Nov 5, 2024
2 parents 3504f10 + 7ed6c6e commit e8ee9cd
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 2 deletions.
3 changes: 3 additions & 0 deletions FrontEnd/TextResources/ChatbookStrings.tr
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
"WorkspaceToolbarButtonTooltipNew" -> "Start a new conversation",
"WorkspaceSourcesOpenNotebooks" -> "Open Notebooks",

"InlineChatButtonTooltipClose" -> "Close",
"InlineChatButtonTooltipViewCodeAssist" -> "View in Code Assistance Chat",

"CodeAssistanceInputGettingStarted" -> "Help me get started",
"CodeAssistanceInputErrorMessage" -> "What went wrong?"
}
Expand Down
3 changes: 3 additions & 0 deletions FrontEnd/TextResources/ChineseSimplified/ChatbookStrings.tr
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
"WorkspaceToolbarButtonTooltipNew" -> "\:5F00\:59CB\:65B0\:7684\:5BF9\:8BDD",
"WorkspaceSourcesOpenNotebooks" -> "Open Notebooks",

"InlineChatButtonTooltipClose" -> "Close",
"InlineChatButtonTooltipViewCodeAssist" -> "View in Code Assistance Chat",

"CodeAssistanceInputGettingStarted" -> "\:5E2E\:52A9\:6211\:5F00\:59CB\:4F7F\:7528",
"CodeAssistanceInputErrorMessage" -> "\:51FA\:4EC0\:4E48\:95EE\:9898\:4E86\:ff1f"
}
Expand Down
3 changes: 3 additions & 0 deletions FrontEnd/TextResources/ChineseTraditional/ChatbookStrings.tr
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
"WorkspaceToolbarButtonTooltipNew" -> "\:958B\:59CB\:65B0\:589E\:6703\:8A71",
"WorkspaceSourcesOpenNotebooks" -> "Open Notebooks",

"InlineChatButtonTooltipClose" -> "Close",
"InlineChatButtonTooltipViewCodeAssist" -> "View in Code Assistance Chat",

"CodeAssistanceInputGettingStarted" -> "\:6C42\:52A9\:5982\:4F55\:958B\:59CB",
"CodeAssistanceInputErrorMessage" -> "\:54EA\:88E1\:51FA\:4E86\:554F\:984C\:FF1F"
}
Expand Down
3 changes: 3 additions & 0 deletions FrontEnd/TextResources/French/ChatbookStrings.tr
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
"WorkspaceToolbarButtonTooltipNew" -> "D\[EAcute]marrer une nouvelle conversation",
"WorkspaceSourcesOpenNotebooks" -> "Open Notebooks",

"InlineChatButtonTooltipClose" -> "Close",
"InlineChatButtonTooltipViewCodeAssist" -> "View in Code Assistance Chat",

"CodeAssistanceInputGettingStarted" -> "Aide\[Hyphen]moi \[AGrave] d\[EAcute]marrer",
"CodeAssistanceInputErrorMessage" -> "Qu\[CloseCurlyQuote]est\[Hyphen]ce qui n\[CloseCurlyQuote]a pas fonctionn\[EAcute]\[NonBreakingSpace]?"
}
Expand Down
3 changes: 3 additions & 0 deletions FrontEnd/TextResources/Japanese/ChatbookStrings.tr
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
"WorkspaceToolbarButtonTooltipNew" -> "\:65B0\:3057\:3044\:4F1A\:8A71\:3092\:59CB\:3081\:308B",
"WorkspaceSourcesOpenNotebooks" -> "Open Notebooks",

"InlineChatButtonTooltipClose" -> "Close",
"InlineChatButtonTooltipViewCodeAssist" -> "View in Code Assistance Chat",

"CodeAssistanceInputGettingStarted" -> "\:3069\:306E\:3088\:3046\:306B\:59CB\:3081\:307E\:3057\:3087\:3046\:304B\:FF1F",
"CodeAssistanceInputErrorMessage" -> "\:4F55\:304C\:9593\:9055\:3063\:3066\:3044\:307E\:3057\:305F\:304B\:FF1F"
}
Expand Down
3 changes: 3 additions & 0 deletions FrontEnd/TextResources/Korean/ChatbookStrings.tr
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@
"WorkspaceToolbarButtonTooltipNew" -> "\:C0C8\:B85C\:C6B4 \:B300\:D654 \:C2DC\:C791",
"WorkspaceSourcesOpenNotebooks" -> "Open Notebooks",

"InlineChatButtonTooltipClose" -> "Close",
"InlineChatButtonTooltipViewCodeAssist" -> "View in Code Assistance Chat",

"CodeAssistanceInputGettingStarted" -> "\:C2DC\:C791\:C5D0 \:B3C4\:C6C0 \:BC1B\:AE30",
"CodeAssistanceInputErrorMessage" -> "\:BB34\:C5C7\:C774 \:C798\:BABB\:B418\:C5C8\:B098\:C694?"
}
Expand Down
3 changes: 3 additions & 0 deletions FrontEnd/TextResources/Spanish/ChatbookStrings.tr
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
"WorkspaceToolbarButtonTooltipNew" -> "Iniciar una nueva conversaci\[OAcute]n",
"WorkspaceSourcesOpenNotebooks" -> "Open Notebooks",

"InlineChatButtonTooltipClose" -> "Close",
"InlineChatButtonTooltipViewCodeAssist" -> "View in Code Assistance Chat",

"CodeAssistanceInputGettingStarted" -> "Ay\[UAcute]dame a comenzar",
"CodeAssistanceInputErrorMessage" -> "\[DownQuestion]Qu\[EAcute] sali\[OAcute] mal?"
}
Expand Down
4 changes: 2 additions & 2 deletions Source/Chatbook/ChatModes/UI.wl
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ closeButton[ cell_CellObject ] := ToBoxes @ Button[
],
NotebookDelete @ cell,
Appearance -> "Suppressed",
Tooltip -> "Close"
Tooltip -> ToBoxes @ tr["InlineChatButtonTooltipClose"]
];

closeButton // endDefinition;
Expand Down Expand Up @@ -625,7 +625,7 @@ popOutButton[ cell_CellObject, messageCells_Dynamic ] := ToBoxes @ Button[
NotebookDelete @ cell;
popOutWorkspaceChatNB @ messageCells,
Appearance -> "Suppressed",
Tooltip -> "View in Code Assistance Chat"
Tooltip -> ToBoxes @ tr["InlineChatButtonTooltipViewCodeAssist"]
];

popOutButton // endDefinition;
Expand Down

0 comments on commit e8ee9cd

Please sign in to comment.