Re: [PATCH 5/5] gitk: avoid constructing dialog titles from text pieces
mark <[email protected]>
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <[email protected]> |
On 8/6/26 2:40 AM, Johannes Sixt via GitGitGadget wrote: > From: Johannes Sixt <[email protected]> > > When the user clicks a color preference, a color selection dialog is > presented whose title is provided in parts by the caller. The dialog > implementation must supply the rest of the title. This is unfriendly > for translations. Provide the full title by the caller. Rewrite the > texts to be more natural language. > > Signed-off-by: Johannes Sixt <[email protected]> > --- > gitk-git/gitk | 24 ++++++++++++------------ > 1 file changed, 12 insertions(+), 12 deletions(-) > > diff --git a/gitk-git/gitk b/gitk-git/gitk > index 9e735d91bf..454f54dca8 100755 > --- a/gitk-git/gitk > +++ b/gitk-git/gitk > @@ -11836,34 +11836,34 @@ proc prefspage_colors {notebook} { > set coloruielems [list \ > bg bgcolor {} \ > [mc "Background"] \ > - [mc "background"] \ > + [mc "choose background color"] \ > fg fgcolor {} \ > [mc "Main text"] \ > - [mc "foreground"] \ > + [mc "choose main text color"] \ > @@ -12014,11 +12014,11 @@ proc choose_themeloader {prefspage} { > } > } > > -proc choosecolor {v vi prefspage x} { > +proc choosecolor {v vi prefspage title} { > global $v > > set c [tk_chooseColor -initialcolor [lindex [set $v] $vi] \ > - -title [mc "Gitk: choose color for %s" $x]] > + -title "Gitk: $title"] > if {$c eq {}} return > lset $v $vi $c > set_gui_colors This with the prior patch should help translation due to use of more common idioms and complete phrases rather than jargon. Good.