Export translation message IDs for shared presentation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
03896de84e
commit
8a61bfff04
11 files changed
+335
-19
No files matched your search
@@ -37,9 +37,9 @@ func (s *Session) describe() string {
|
||||
label := s.messages.T(control.Label)
|
||||
switch control.Kind {
|
||||
case CheckBox:
|
||||
state := "unchecked"
|
||||
state := Mark("unchecked")
|
||||
if control.Checked {
|
||||
state = "checked"
|
||||
state = Mark("checked")
|
||||
}
|
||||
return label + " " + s.messages.T(state)
|
||||
case Number:
|
||||
@@ -103,13 +103,13 @@ func (s *Session) Presentation() Result {
|
||||
c := s.form.Tabs[s.tab].Controls[s.focus]
|
||||
label := s.messages.T(c.Label)
|
||||
if c.Kind == Entry {
|
||||
template := "{0}, edit: {1}"
|
||||
template := Mark("{0}, edit: {1}")
|
||||
if !s.form.Detailed {
|
||||
template = "{0} entry {1}"
|
||||
template = Mark("{0} entry {1}")
|
||||
}
|
||||
value := c.Text
|
||||
if c.Secret {
|
||||
template = "{0}, password edit: {1}"
|
||||
template = Mark("{0}, password edit: {1}")
|
||||
value = strings.Repeat("*", utf8.RuneCountInString(c.Text))
|
||||
}
|
||||
text := s.messages.Format(template, label, value)
|
||||
@@ -142,9 +142,9 @@ func (s *Session) Presentation() Result {
|
||||
text = s.messages.Format("{0}: {1}, {2} of {3}", label, speech, strconv.Itoa(c.Selected+1), strconv.Itoa(len(s.list_labels(c))))
|
||||
}
|
||||
case CheckBox:
|
||||
state := "unchecked"
|
||||
state := Mark("unchecked")
|
||||
if c.Checked {
|
||||
state = "checked"
|
||||
state = Mark("checked")
|
||||
}
|
||||
text = label + ", " + s.messages.T(state)
|
||||
speech = text
|
||||
|
||||
Reference in new issue
Block a user