Apply patch by Taos which adds hyperlink for LGPL license (#7907). Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42956 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1225,6 +1225,8 @@ AboutView::_CreateCreditsView()
|
|||||||
|
|
||||||
BPath mitPath;
|
BPath mitPath;
|
||||||
_GetLicensePath("MIT", mitPath);
|
_GetLicensePath("MIT", mitPath);
|
||||||
|
BPath lgplPath;
|
||||||
|
_GetLicensePath("GNU LGPL v2.1", lgplPath);
|
||||||
|
|
||||||
font.SetSize(be_bold_font->Size() + 4);
|
font.SetSize(be_bold_font->Size() + 4);
|
||||||
font.SetFace(B_BOLD_FACE);
|
font.SetFace(B_BOLD_FACE);
|
||||||
@@ -1236,14 +1238,18 @@ AboutView::_CreateCreditsView()
|
|||||||
"respective license.]\n\n"));
|
"respective license.]\n\n"));
|
||||||
|
|
||||||
// Haiku license
|
// Haiku license
|
||||||
BString haikuLicense = B_TRANSLATE_COMMENT("The code that is unique to Haiku, "
|
BString haikuLicense = B_TRANSLATE_COMMENT("The code that is unique to "
|
||||||
"especially the kernel and all code that applications may link "
|
"Haiku, especially the kernel and all code that applications may link "
|
||||||
"against, is distributed under the terms of the %MIT license%. "
|
"against, is distributed under the terms of the <MIT license>. "
|
||||||
"Some system libraries contain third party code distributed under the "
|
"Some system libraries contain third party code distributed under the "
|
||||||
"LGPL license. You can find the copyrights to third party code below.\n"
|
"<LGPL license>. You can find the copyrights to third party code below."
|
||||||
"\n", "%MIT license% isn't a variable and has to be translated.");
|
"\n\n", "<MIT license> and <LGPL license> aren't variables and can be "
|
||||||
int32 licensePart1 = haikuLicense.FindFirst("%");
|
"translated. However, please, don't remove < and > as they're needed "
|
||||||
int32 licensePart2 = haikuLicense.FindLast("%");
|
"as placeholders for proper hypertext functionality.");
|
||||||
|
int32 licensePart1 = haikuLicense.FindFirst("<");
|
||||||
|
int32 licensePart2 = haikuLicense.FindFirst(">");
|
||||||
|
int32 licensePart3 = haikuLicense.FindLast("<");
|
||||||
|
int32 licensePart4 = haikuLicense.FindLast(">");
|
||||||
BString part;
|
BString part;
|
||||||
haikuLicense.CopyInto(part, 0, licensePart1);
|
haikuLicense.CopyInto(part, 0, licensePart1);
|
||||||
fCreditsView->Insert(part);
|
fCreditsView->Insert(part);
|
||||||
@@ -1254,10 +1260,20 @@ AboutView::_CreateCreditsView()
|
|||||||
fCreditsView->InsertHyperText(part, new OpenFileAction(mitPath.Path()));
|
fCreditsView->InsertHyperText(part, new OpenFileAction(mitPath.Path()));
|
||||||
|
|
||||||
part.Truncate(0);
|
part.Truncate(0);
|
||||||
haikuLicense.CopyInto(part, licensePart2 + 1, haikuLicense.Length() - 1
|
haikuLicense.CopyInto(part, licensePart2 + 1, licensePart3 - 1
|
||||||
- licensePart2);
|
- licensePart2);
|
||||||
fCreditsView->Insert(part);
|
fCreditsView->Insert(part);
|
||||||
|
|
||||||
|
part.Truncate(0);
|
||||||
|
haikuLicense.CopyInto(part, licensePart3 + 1, licensePart4 - 1
|
||||||
|
- licensePart3);
|
||||||
|
fCreditsView->InsertHyperText(part, new OpenFileAction(lgplPath.Path()));
|
||||||
|
|
||||||
|
part.Truncate(0);
|
||||||
|
haikuLicense.CopyInto(part, licensePart4 + 1, haikuLicense.Length() - 1
|
||||||
|
- licensePart4);
|
||||||
|
fCreditsView->Insert(part);
|
||||||
|
|
||||||
// GNU copyrights
|
// GNU copyrights
|
||||||
AddCopyrightEntry("The GNU Project",
|
AddCopyrightEntry("The GNU Project",
|
||||||
B_TRANSLATE("Contains software from the GNU Project, "
|
B_TRANSLATE("Contains software from the GNU Project, "
|
||||||
|
|||||||
Reference in New Issue
Block a user