Ticket #7491: ticket_7491.patch

File ticket_7491.patch, 4.8 KB (added by ahartford, 12 years ago)

Patch to localize license names only, not URLs.

  • src/apps/aboutsystem/AboutSystem.cpp

    From 294d940f4e1aa04d543a4be34439969424302dba Mon Sep 17 00:00:00 2001
    From: Adam Hartford <adam.s.hartford@gmail.com>
    Date: Fri, 6 Jul 2012 06:29:59 -0400
    Subject: [PATCH] Don't use localized license URLs (Ticket #7491)
    
    ---
     src/apps/aboutsystem/AboutSystem.cpp |   26 +++++++++++++-------------
     1 files changed, 13 insertions(+), 13 deletions(-)
    
    diff --git a/src/apps/aboutsystem/AboutSystem.cpp b/src/apps/aboutsystem/AboutSystem.cpp
    index ec3303c..9ed9a25 100644
    a b AboutView::AddCopyrightEntry(const char* name, const char* text,  
    830830
    831831            BPath licensePath;
    832832            if (_GetLicensePath(licenseURL, licensePath) == B_OK) {
    833                 fCreditsView->InsertHyperText(licenseName,
     833                fCreditsView->InsertHyperText(B_TRANSLATE(licenseName),
    834834                    new OpenFileAction(licensePath.Path()));
    835835            } else
    836836                fCreditsView->Insert(licenseName);
    AboutView::_CreateCreditsView()  
    13631363    _AddPackageCredit(PackageCredit("AntiGrain Geometry")
    13641364        .SetCopyright(B_TRANSLATE(COPYRIGHT_STRING "2002-2006 Maxim "
    13651365            "Shemanarev (McSeem)."))
    1366         .SetLicenses("Anti-Grain Geometry", B_TRANSLATE("BSD (3-clause)"),
     1366        .SetLicenses("Anti-Grain Geometry", "BSD (3-clause)",
    13671367            "GPC", NULL)
    13681368        .SetURL("http://www.antigrain.com"));
    13691369
    AboutView::_CreateCreditsView()  
    14581458    _AddPackageCredit(PackageCredit("bzip2")
    14591459        .SetCopyright(B_TRANSLATE(COPYRIGHT_STRING "1996-2005 Julian R "
    14601460            "Seward. All rights reserved."))
    1461         .SetLicense(B_TRANSLATE("BSD (4-clause)"))
     1461        .SetLicense("BSD (4-clause)")
    14621462        .SetURL("http://bzip.org"));
    14631463
    14641464    // lp_solve copyrights
    AboutView::_CreateCreditsView()  
    14721472    _AddPackageCredit(PackageCredit("OpenEXR")
    14731473        .SetCopyright(B_TRANSLATE(COPYRIGHT_STRING "2002-2005 Industrial "
    14741474            "Light & Magic, a division of Lucas Digital Ltd. LLC."))
    1475         .SetLicense(B_TRANSLATE("BSD (3-clause)"))
     1475        .SetLicense("BSD (3-clause)")
    14761476        .SetURL("http://www.openexr.com"));
    14771477
    14781478    // Bullet copyrights
    AboutView::_CreateCreditsView()  
    15311531    // cortex copyrights
    15321532    _AddPackageCredit(PackageCredit("Cortex")
    15331533        .SetCopyright(COPYRIGHT_STRING "1999-2000 Eric Moon.")
    1534         .SetLicense(B_TRANSLATE("BSD (3-clause)"))
     1534        .SetLicense("BSD (3-clause)")
    15351535        .SetURL("http://cortex.sourceforge.net/documentation"));
    15361536
    15371537    // FluidSynth copyrights
    AboutView::_CreateCreditsView()  
    15501550    _AddPackageCredit(PackageCredit("libxml2, libxslt")
    15511551        .SetCopyright(B_TRANSLATE(COPYRIGHT_STRING "1998-2003 Daniel Veillard. "
    15521552            "All rights reserved."))
    1553         .SetLicense(B_TRANSLATE("MIT (no promotion)"))
     1553        .SetLicense("MIT (no promotion)")
    15541554        .SetURL("http://xmlsoft.org"));
    15551555
    15561556    _AddPackageCredit(PackageCredit("libexslt")
    15571557        .SetCopyright(B_TRANSLATE(COPYRIGHT_STRING "2001-2002 Thomas Broyer, "
    15581558            "Charlie Bozeman and Daniel Veillard. All rights reserved."))
    1559         .SetLicense(B_TRANSLATE("MIT (no promotion)"))
     1559        .SetLicense("MIT (no promotion)")
    15601560        .SetURL("http://xmlsoft.org"));
    15611561
    15621562    // Xiph.org Foundation copyrights
    AboutView::_CreateCreditsView()  
    15641564        .SetCopyrights("libvorbis, libogg, libtheora, libspeex",
    15651565            B_TRANSLATE(COPYRIGHT_STRING "1994-2008 Xiph.Org. "
    15661566            "All rights reserved."), NULL)
    1567         .SetLicense(B_TRANSLATE("BSD (3-clause)"))
     1567        .SetLicense("BSD (3-clause)")
    15681568        .SetURL("http://www.xiph.org"));
    15691569
    15701570    // The Tcpdump Group
    15711571    _AddPackageCredit(PackageCredit("The Tcpdump Group")
    15721572        .SetCopyright("tcpdump, libpcap")
    1573         .SetLicense(B_TRANSLATE("BSD (3-clause)"))
     1573        .SetLicense("BSD (3-clause)")
    15741574        .SetURL("http://www.tcpdump.org"));
    15751575
    15761576    // Matroska
    AboutView::_CreateCreditsView()  
    16131613    _AddPackageCredit(PackageCredit("Udis86")
    16141614        .SetCopyright(B_TRANSLATE(COPYRIGHT_STRING "2002-2004 "
    16151615            "Vivek Mohan. All rights reserved."))
    1616         .SetLicense(B_TRANSLATE("BSD (2-clause)"))
     1616        .SetLicense("BSD (2-clause)")
    16171617        .SetURL("http://udis86.sourceforge.net"));
    16181618#endif
    16191619
    AboutView::_CreateCreditsView()  
    16841684    _AddPackageCredit(PackageCredit("libwebp")
    16851685        .SetCopyright(B_TRANSLATE(COPYRIGHT_STRING
    16861686            "2010-2011 Google Inc. All rights reserved."))
    1687         .SetLicense(B_TRANSLATE("BSD (3-clause)"))
     1687        .SetLicense("BSD (3-clause)")
    16881688        .SetURL("http://www.webmproject.org/code/#libwebp_webp_image_library"));
    16891689
    16901690    // GTF
    16911691    _AddPackageCredit(PackageCredit("GTF")
    16921692        .SetCopyright(B_TRANSLATE("2001 by Andy Ritger based on the "
    16931693            "Generalized Timing Formula"))
    1694         .SetLicense(B_TRANSLATE("BSD (3-clause)"))
     1694        .SetLicense("BSD (3-clause)")
    16951695        .SetURL("http://gtf.sourceforge.net/"));
    16961696
    16971697    // libqrencode
    16981698    _AddPackageCredit(PackageCredit("libqrencode")
    16991699        .SetCopyright(B_TRANSLATE(COPYRIGHT_STRING "2006-2012 Kentaro Fukuchi"))
    1700         .SetLicense(B_TRANSLATE("GNU LGPL v2.1"))
     1700        .SetLicense("GNU LGPL v2.1")
    17011701        .SetURL("http://fukuchi.org/works/qrencode/"));
    17021702
    17031703    _AddCopyrightsFromAttribute();