From 403859d79f9555b3a140390947ec15618a3a5092 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Wed, 21 Jul 2010 15:28:30 +0000 Subject: [PATCH] * Fix a string that was unpractical and confusing for translations. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37657 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/aboutsystem/AboutSystem.cpp | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/apps/aboutsystem/AboutSystem.cpp b/src/apps/aboutsystem/AboutSystem.cpp index 0edcf3dba1..f96e3e8198 100644 --- a/src/apps/aboutsystem/AboutSystem.cpp +++ b/src/apps/aboutsystem/AboutSystem.cpp @@ -1125,14 +1125,27 @@ AboutView::_CreateCreditsView() "respective license.]\n\n")); // Haiku license - fCreditsView->Insert(B_TRANSLATE("The code that is unique to Haiku, " + BString haikuLicence = B_TRANSLATE("The code that is unique to Haiku, " "especially the kernel and all code that applications may link " - "against, is distributed under the terms of the ")); - fCreditsView->InsertHyperText(B_TRANSLATE("MIT license"), - new OpenFileAction(mitPath.Path())); - fCreditsView->Insert(B_TRANSLATE(". Some system libraries contain third " - "party code distributed under the LGPL license. You can find the " - "copyrights to third party code below.\n\n")); + "against, is distributed under the terms of the %MIT licence%. " + "Some system libraries contain third party code distributed under the " + "LGPL license. You can find the copyrights to third party code below.\n" + "\n"); + int32 licencePart1 = haikuLicence.FindFirst("%"); + int32 licencePart2 = haikuLicence.FindLast("%"); + BString part; + haikuLicence.CopyCharsInto(part, 0, licencePart1 ); + fCreditsView->Insert(part); + + part.Truncate(0); + haikuLicence.CopyCharsInto(part, licencePart1 + 1, licencePart2 - 1 + - licencePart1); + fCreditsView->InsertHyperText(part, new OpenFileAction(mitPath.Path())); + + part.Truncate(0); + haikuLicence.CopyCharsInto(part, licencePart2 + 1, haikuLicence.CountChars() + - licencePart2); + fCreditsView->Insert(part); // GNU copyrights AddCopyrightEntry("The GNU Project",