* [PATCH] git-gui: I18n fix sentence parts into full sentences for translation again.
@ 2008-09-12 9:17 Christian Stimming
2008-09-12 10:23 ` Alexander Gavrilov
0 siblings, 1 reply; 4+ messages in thread
From: Christian Stimming @ 2008-09-12 9:17 UTC (permalink / raw)
To: git; +Cc: Shawn O. Pearce, Alexander Gavrilov
For translations, it is almost always impossible to correctly translate
parts of sentences in almost any other language. Hence, messages like this
must be re-organized into full sentences.
Signed-off-by: Christian Stimming <stimming@tuhh.de>
---
Patch against origin/master of git-gui.git at repo.or.cz.
lib/mergetool.tcl | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/mergetool.tcl b/lib/mergetool.tcl
index 79c58bc..d10cadd 100644
--- a/lib/mergetool.tcl
+++ b/lib/mergetool.tcl
@@ -5,18 +5,18 @@ proc merge_resolve_one {stage} {
global current_diff_path
switch -- $stage {
- 1 { set target [mc "the base version"] }
- 2 { set target [mc "this branch"] }
- 3 { set target [mc "the other branch"] }
+ 1 { set targetquestion [mc "Force resolution to the base version?"] }
+ 2 { set targetquestion [mc "Force resolution to this branch?"] }
+ 3 { set targetquestion [mc "Force resolution to the other branch?"] }
}
- set op_question [mc "Force resolution to %s?
-Note that the diff shows only conflicting changes.
+ set op_question [strcat $targetquestion "\n" \
+[mc "Note that the diff shows only conflicting changes.
%s will be overwritten.
This operation can be undone only by restarting the merge." \
- $target [short_path $current_diff_path]]
+ $targetquestion [short_path $current_diff_path]]]
if {[ask_popup $op_question] eq {yes}} {
merge_load_stages $current_diff_path [list merge_force_stage $stage]
--
1.6.0.rc1.34.g0fe8c
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] git-gui: I18n fix sentence parts into full sentences for translation again.
2008-09-12 9:17 [PATCH] git-gui: I18n fix sentence parts into full sentences for translation again Christian Stimming
@ 2008-09-12 10:23 ` Alexander Gavrilov
2008-09-12 10:32 ` Christian Stimming
0 siblings, 1 reply; 4+ messages in thread
From: Alexander Gavrilov @ 2008-09-12 10:23 UTC (permalink / raw)
To: Christian Stimming; +Cc: git, Shawn O. Pearce
On Fri, Sep 12, 2008 at 1:17 PM, Christian Stimming <stimming@tuhh.de> wrote:
>- set op_question [mc "Force resolution to %s?
>-Note that the diff shows only conflicting changes.
>+ set op_question [strcat $targetquestion "\n" \
>+[mc "Note that the diff shows only conflicting changes.
...
> - $target [short_path $current_diff_path]]
> + $targetquestion [short_path $current_diff_path]]]
You should remove this $target completely -- there is no %s to match it anymore.
Alexander.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] git-gui: I18n fix sentence parts into full sentences for translation again.
2008-09-12 10:23 ` Alexander Gavrilov
@ 2008-09-12 10:32 ` Christian Stimming
2008-09-12 15:39 ` Shawn O. Pearce
0 siblings, 1 reply; 4+ messages in thread
From: Christian Stimming @ 2008-09-12 10:32 UTC (permalink / raw)
To: Alexander Gavrilov; +Cc: git, Shawn O. Pearce
Am Freitag, 12. September 2008 12:23 schrieb Alexander Gavrilov:
> On Fri, Sep 12, 2008 at 1:17 PM, Christian Stimming <stimming@tuhh.de>
wrote:
> >- set op_question [mc "Force resolution to %s?
> >-Note that the diff shows only conflicting changes.
> >+ set op_question [strcat $targetquestion "\n" \
> >+[mc "Note that the diff shows only conflicting changes.
>
> ...
>
> > - $target [short_path $current_diff_path]]
> > + $targetquestion [short_path $current_diff_path]]]
>
> You should remove this $target completely -- there is no %s to match it
> anymore.
Oh - right. Thanks for pointing this out. Please modify the patch accordingly.
Christian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] git-gui: I18n fix sentence parts into full sentences for translation again.
2008-09-12 10:32 ` Christian Stimming
@ 2008-09-12 15:39 ` Shawn O. Pearce
0 siblings, 0 replies; 4+ messages in thread
From: Shawn O. Pearce @ 2008-09-12 15:39 UTC (permalink / raw)
To: Christian Stimming; +Cc: Alexander Gavrilov, git
Christian Stimming <stimming@tuhh.de> wrote:
> Am Freitag, 12. September 2008 12:23 schrieb Alexander Gavrilov:
> > On Fri, Sep 12, 2008 at 1:17 PM, Christian Stimming <stimming@tuhh.de>
> wrote:
> > >- set op_question [mc "Force resolution to %s?
> > >-Note that the diff shows only conflicting changes.
> > >+ set op_question [strcat $targetquestion "\n" \
> > >+[mc "Note that the diff shows only conflicting changes.
> >
> > ...
> >
> > > - $target [short_path $current_diff_path]]
> > > + $targetquestion [short_path $current_diff_path]]]
> >
> > You should remove this $target completely -- there is no %s to match it
> > anymore.
>
> Oh - right. Thanks for pointing this out. Please modify the patch accordingly.
Fixed and applied. Thanks, both.
--
Shawn.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-09-12 15:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-12 9:17 [PATCH] git-gui: I18n fix sentence parts into full sentences for translation again Christian Stimming
2008-09-12 10:23 ` Alexander Gavrilov
2008-09-12 10:32 ` Christian Stimming
2008-09-12 15:39 ` Shawn O. Pearce
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).