Ticket #7697: AboutSystem.cpp.consistent_spelling_of_license.patch

File AboutSystem.cpp.consistent_spelling_of_license.patch, 1.7 KB (added by taos, 13 years ago)

Patch to fix display of MIT license link and introduces consistent spelling of license (needs new catkeys).

  • src/apps/aboutsystem/AboutSystem.cpp

     
    12341234        "respective license.]\n\n"));
    12351235
    12361236    // Haiku license
    1237     BString haikuLicence = B_TRANSLATE("The code that is unique to Haiku, "
     1237    BString haikuLicense = B_TRANSLATE("The code that is unique to Haiku, "
    12381238        "especially the kernel and all code that applications may link "
    1239         "against, is distributed under the terms of the %MIT licence%. "
     1239        "against, is distributed under the terms of the %MIT license%. "
    12401240        "Some system libraries contain third party code distributed under the "
    12411241        "LGPL license. You can find the copyrights to third party code below.\n"
    12421242        "\n");
    1243     int32 licencePart1 = haikuLicence.FindFirst("%");
    1244     int32 licencePart2 = haikuLicence.FindLast("%");
     1243    int32 licensePart1 = haikuLicense.FindFirst("%");
     1244    int32 licensePart2 = haikuLicense.FindLast("%");
    12451245    BString part;
    1246     haikuLicence.CopyCharsInto(part, 0, licencePart1 );
     1246    haikuLicense.CopyInto(part, 0, licensePart1);
    12471247    fCreditsView->Insert(part);
    12481248
    12491249    part.Truncate(0);
    1250     haikuLicence.CopyCharsInto(part, licencePart1 + 1, licencePart2 - 1
    1251         - licencePart1);
     1250    haikuLicense.CopyInto(part, licensePart1 + 1, licensePart2 - 1
     1251        - licensePart1);
    12521252    fCreditsView->InsertHyperText(part, new OpenFileAction(mitPath.Path()));
    12531253
    12541254    part.Truncate(0);
    1255     haikuLicence.CopyCharsInto(part, licencePart2 + 1, haikuLicence.CountChars()
    1256         - licencePart2);
     1255    haikuLicense.CopyInto(part, licensePart2 + 1, haikuLicense.Length() - 1
     1256        - licensePart2);
    12571257    fCreditsView->Insert(part);
    12581258
    12591259    // GNU copyrights