Changeset 34938 in vbox
- Timestamp:
- Dec 10, 2010 9:15:46 AM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ExtPackManagerImpl.cpp
r34907 r34938 450 450 * Combine the options to form a file name before locking down anything. 451 451 */ 452 char szName[sizeof( "ExtPack-license-de_DE.html") + 2];452 char szName[sizeof(VBOX_EXTPACK_LICENSE_NAME_PREFIX "-de_DE.html") + 2]; 453 453 if (strPreferredLocale.isNotEmpty() && strPreferredLanguage.isNotEmpty()) 454 RTStrPrintf(szName, sizeof(szName), "ExtPack-license-%s_%s.%s",454 RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s_%s.%s", 455 455 strPreferredLocale.c_str(), strPreferredLanguage.c_str(), strFormat.c_str()); 456 456 else if (strPreferredLocale.isNotEmpty()) 457 RTStrPrintf(szName, sizeof(szName), "ExtPack-license-%s.%s", strPreferredLocale.c_str(), strFormat.c_str());457 RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s.%s", strPreferredLocale.c_str(), strFormat.c_str()); 458 458 else if (strPreferredLanguage.isNotEmpty()) 459 RTStrPrintf(szName, sizeof(szName), "ExtPack-license-_%s.%s", strPreferredLocale.c_str(), strFormat.c_str());459 RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-_%s.%s", strPreferredLocale.c_str(), strFormat.c_str()); 460 460 else 461 RTStrPrintf(szName, sizeof(szName), "ExtPack-license.%s", strFormat.c_str());461 RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX ".%s", strFormat.c_str()); 462 462 463 463 /* … … 1607 1607 * Combine the options to form a file name before locking down anything. 1608 1608 */ 1609 char szName[sizeof( "ExtPack-license-de_DE.html") + 2];1609 char szName[sizeof(VBOX_EXTPACK_LICENSE_NAME_PREFIX "-de_DE.html") + 2]; 1610 1610 if (strPreferredLocale.isNotEmpty() && strPreferredLanguage.isNotEmpty()) 1611 RTStrPrintf(szName, sizeof(szName), "ExtPack-license-%s_%s.%s",1611 RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s_%s.%s", 1612 1612 strPreferredLocale.c_str(), strPreferredLanguage.c_str(), strFormat.c_str()); 1613 1613 else if (strPreferredLocale.isNotEmpty()) 1614 RTStrPrintf(szName, sizeof(szName), "ExtPack-license-%s.%s", strPreferredLocale.c_str(), strFormat.c_str());1614 RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-%s.%s", strPreferredLocale.c_str(), strFormat.c_str()); 1615 1615 else if (strPreferredLanguage.isNotEmpty()) 1616 RTStrPrintf(szName, sizeof(szName), "ExtPack-license-_%s.%s", strPreferredLocale.c_str(), strFormat.c_str());1616 RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX "-_%s.%s", strPreferredLocale.c_str(), strFormat.c_str()); 1617 1617 else 1618 RTStrPrintf(szName, sizeof(szName), "ExtPack-license.%s", strFormat.c_str());1618 RTStrPrintf(szName, sizeof(szName), VBOX_EXTPACK_LICENSE_NAME_PREFIX ".%s", strFormat.c_str()); 1619 1619 1620 1620 /* -
trunk/src/VBox/Main/include/ExtPackUtil.h
r34893 r34938 38 38 * and format (HTML, RTF, plain text). All extension packages shall include 39 39 * a */ 40 #define VBOX_EXTPACK_LICENSE_NAME_PREFIX "ExtPack .license"40 #define VBOX_EXTPACK_LICENSE_NAME_PREFIX "ExtPack-license" 41 41 /** @name VBOX_EXTPACK_SUFFIX 42 42 * The suffix of a extension pack tarball. */
Note:
See TracChangeset
for help on using the changeset viewer.