Changeset 7099
- Timestamp:
- 05/23/2013 01:17:11 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 1 deleted
- 5 edited
-
bp-core/admin/bp-core-translations.php (deleted)
-
bp-core/bp-core-admin.php (modified) (1 diff)
-
bp-core/bp-core-functions.php (modified) (2 diffs)
-
bp-core/bp-core-options.php (modified) (2 diffs)
-
bp-languages/buddypress.pot (modified) (6 diffs)
-
bp-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-admin.php
r7097 r7099 94 94 */ 95 95 private function includes() { 96 require( $this->admin_dir . 'bp-core-actions.php' ); 97 require( $this->admin_dir . 'bp-core-settings.php' ); 98 require( $this->admin_dir . 'bp-core-functions.php' ); 99 require( $this->admin_dir . 'bp-core-components.php' ); 100 require( $this->admin_dir . 'bp-core-slugs.php' ); 101 require( $this->admin_dir . 'bp-core-translations.php' ); 96 require( $this->admin_dir . 'bp-core-actions.php' ); 97 require( $this->admin_dir . 'bp-core-settings.php' ); 98 require( $this->admin_dir . 'bp-core-functions.php' ); 99 require( $this->admin_dir . 'bp-core-components.php' ); 100 require( $this->admin_dir . 'bp-core-slugs.php' ); 102 101 } 103 102 -
trunk/bp-core/bp-core-functions.php
r7097 r7099 1268 1268 */ 1269 1269 function bp_core_load_buddypress_textdomain() { 1270 $locale = apply_filters( 'buddypress_locale', get_locale() ); 1271 $mofile = sprintf( 'buddypress-%s.mo', $locale ); 1272 $uploads_dir = wp_upload_dir(); 1273 1274 $translation_paths = array( 1275 WP_LANG_DIR . "/{$mofile}", 1276 BP_PLUGIN_DIR . "bp-languages/{$mofile}", 1277 $uploads_dir['basedir'] . "/buddypress/{$mofile}", 1278 ); 1279 1280 foreach ( $translation_paths as $path ) 1281 load_textdomain( 'buddypress', $path ); 1282 } 1283 add_action( 'bp_core_loaded', 'bp_core_load_buddypress_textdomain' ); 1270 $locale = apply_filters( 'buddypress_locale', get_locale() ); 1271 $mofile = sprintf( 'buddypress-%s.mo', $locale ); 1272 $mofile_global = WP_LANG_DIR . '/' . $mofile; 1273 $mofile_local = BP_PLUGIN_DIR . 'bp-languages/' . $mofile; 1274 1275 if ( file_exists( $mofile_global ) ) 1276 return load_textdomain( 'buddypress', $mofile_global ); 1277 elseif ( file_exists( $mofile_local ) ) 1278 return load_textdomain( 'buddypress', $mofile_local ); 1279 else 1280 return false; 1281 } 1282 add_action ( 'bp_core_loaded', 'bp_core_load_buddypress_textdomain' ); 1284 1283 1285 1284 /** … … 1362 1361 } 1363 1362 add_action( 'wp_footer', 'bp_core_print_generation_time' ); 1364 1365 /**1366 * Find out if there's a newer translation available for this site on translate.wordpress.org1367 *1368 * @since BuddyPress (1.8)1369 */1370 function bp_core_check_for_updated_translation() {1371 require( buddypress()->plugin_dir . 'bp-core/admin/bp-core-translations.php' );1372 1373 $locale = BP_Translate::get_locale();1374 if ( 'en_US' === $locale )1375 return;1376 1377 // No point checking if we know there's an updated translation1378 if ( bp_is_translation_update_pending() )1379 return;1380 1381 $locale = BP_Translate::get_glotpress_locale();1382 if ( ! $locale )1383 return;1384 1385 $url = 'https://translate.wordpress.org/projects/buddypress/%1$s/%2$s/default/export-translations?format=mo';1386 $args = bp_get_translation_version() ? array( 'headers' => 'If-Modified-Since: ' . gmdate( 'D, d M Y H:i:s', bp_get_translation_version() ) . ' GMT' ) : array();1387 1388 // Check version of translation on translate.wordpress.org1389 $response = wp_remote_head( sprintf( $url, buddypress()->glotpress_version, $locale ), $args );1390 if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) === 304 || wp_remote_retrieve_response_code( $response ) !== 200 )1391 return;1392 1393 // An updated translation is available1394 bp_update_option( '_bp_translation_pending', true );1395 }1396 add_action( 'bp_translate_update_check', 'bp_core_check_for_updated_translation' ); -
trunk/bp-core/bp-core-options.php
r7097 r7099 64 64 // The ID for the current theme package. 65 65 '_bp_theme_package_id' => 'legacy', 66 67 // Timestamp of the the current translation from translate.wordpress.org68 '_bp_translation_version' => 0,69 70 // Is there a more recent translation available on translate.wordpress.org?71 '_bp_translation_pending' => false,72 66 73 67 /** Groups ************************************************************/ … … 543 537 return apply_filters( 'bp_get_theme_package_id', bp_get_option( '_bp_theme_package_id', $default ) ); 544 538 } 545 546 /**547 * Get the timestamp of the the current translation from translate.wordpress.org548 *549 * @param int $default Optional; default value 0.550 * @return int Unix timestamp551 * @since BuddyPress (1.8)552 */553 function bp_get_translation_version( $default = 0 ) {554 return apply_filters( 'bp_get_translation_version', (int) bp_get_option( '_bp_translation_version', $default ) );555 }556 557 /**558 * Does translate.wordpress.org have a more recent translation available on translate.wordpress.org?559 *560 * @param bool $default Optional; defaults to false.561 * @return bool562 * @see BP_Translate->check_for_updated_translation()563 * @since BuddyPress (1.8)564 */565 function bp_is_translation_update_pending( $default = false ) {566 return apply_filters( 'bp_is_translation_update_pending', (bool) bp_get_option( '_bp_translation_pending', $default ) );567 } -
trunk/bp-languages/buddypress.pot
r7098 r7099 5 5 "Project-Id-Version: BuddyPress \n" 6 6 "Report-Msgid-Bugs-To: http://wppolyglots.wordpress.com\n" 7 "POT-Creation-Date: 2013-05-22 23:35:18+00:00\n"7 "POT-Creation-Date: 2013-05-22 05:35:15+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" … … 83 83 #: bp-activity/bp-activity-screens.php:394 84 84 #: bp-activity/feeds/bp-activity-personal-feed.php:27 85 #: bp-core/bp-core-admin.php:4 1085 #: bp-core/bp-core-admin.php:409 86 86 msgid "Activity" 87 87 msgstr "" … … 1289 1289 1290 1290 #: bp-core/admin/bp-core-functions.php:364 1291 #: bp-core/admin/bp-core-settings.php:258 bp-core/bp-core-admin.php:33 21291 #: bp-core/admin/bp-core-settings.php:258 bp-core/bp-core-admin.php:331 1292 1292 #: bp-groups/bp-groups-loader.php:302 bp-groups/bp-groups-template.php:1468 1293 1293 #: bp-settings/bp-settings-loader.php:23 bp-settings/bp-settings-loader.php:73 … … 1422 1422 msgstr "" 1423 1423 1424 #: bp-core/admin/bp-core-translations.php:170 1425 msgid "BuddyPress Translation" 1426 msgstr "" 1427 1428 #: bp-core/admin/bp-core-translations.php:171 1429 msgid "An updated version of the current BuddyPress translation is available. Click “Update Translation”." 1430 msgstr "" 1431 1432 #: bp-core/admin/bp-core-translations.php:176 1433 msgid "Update Translation" 1434 msgstr "" 1435 1436 #: bp-core/admin/bp-core-translations.php:192 1437 #: bp-core/admin/bp-core-translations.php:227 1438 msgid "You do not have sufficient permissions to update this site." 1439 msgstr "" 1440 1441 #: bp-core/admin/bp-core-translations.php:203 1442 msgid "Update BuddyPress Translation" 1443 msgstr "" 1444 1445 #: bp-core/admin/bp-core-translations.php:232 1446 msgid "The update process is starting. This process may take a while on some hosts, so please be patient." 1447 msgstr "" 1448 1449 #: bp-core/admin/bp-core-translations.php:233 1450 msgid "Updating BuddyPress Translation" 1451 msgstr "" 1452 1453 #: bp-core/admin/bp-core-translations.php:241 1454 msgid "Error: failure updating translation." 1455 msgstr "" 1456 1457 #: bp-core/admin/bp-core-translations.php:246 1458 msgid "Translation updated succesfully!" 1459 msgstr "" 1460 1461 #: bp-core/admin/bp-core-translations.php:269 1462 msgid "Return to WordPress Updates" 1463 msgstr "" 1464 1465 #: bp-core/bp-core-admin.php:155 bp-core/bp-core-admin.php:156 1466 #: bp-core/bp-core-admin.php:164 bp-core/bp-core-admin.php:165 1424 #: bp-core/bp-core-admin.php:154 bp-core/bp-core-admin.php:155 1425 #: bp-core/bp-core-admin.php:163 bp-core/bp-core-admin.php:164 1467 1426 msgid "Welcome to BuddyPress" 1468 1427 msgstr "" 1469 1428 1470 #: bp-core/bp-core-admin.php:17 5 bp-core/bp-core-admin.php:1761471 #: bp-core/bp-core-admin.php:19 61429 #: bp-core/bp-core-admin.php:174 bp-core/bp-core-admin.php:175 1430 #: bp-core/bp-core-admin.php:195 1472 1431 msgid "BuddyPress" 1473 1432 msgstr "" 1474 1433 1434 #: bp-core/bp-core-admin.php:184 1435 msgid "BuddyPress Help" 1436 msgstr "" 1437 1475 1438 #: bp-core/bp-core-admin.php:185 1476 msgid "BuddyPress Help"1477 msgstr ""1478 1479 #: bp-core/bp-core-admin.php:1861480 1439 msgid "Help" 1481 1440 msgstr "" 1482 1441 1483 #: bp-core/bp-core-admin.php:19 51442 #: bp-core/bp-core-admin.php:194 1484 1443 msgid "BuddyPress Components" 1485 1444 msgstr "" 1486 1445 1487 #: bp-core/bp-core-admin.php:20 4 bp-core/bp-core-admin.php:2051446 #: bp-core/bp-core-admin.php:203 bp-core/bp-core-admin.php:204 1488 1447 msgid "BuddyPress Pages" 1489 1448 msgstr "" 1490 1449 1491 #: bp-core/bp-core-admin.php:21 3 bp-core/bp-core-admin.php:2141450 #: bp-core/bp-core-admin.php:212 bp-core/bp-core-admin.php:213 1492 1451 msgid "BuddyPress Settings" 1493 1452 msgstr "" 1494 1453 1495 #: bp-core/bp-core-admin.php:2 401454 #: bp-core/bp-core-admin.php:239 1496 1455 msgid "Main Settings" 1497 1456 msgstr "" 1498 1457 1499 #: bp-core/bp-core-admin.php:24 3 bp-core/bp-core-admin.php:2481458 #: bp-core/bp-core-admin.php:242 bp-core/bp-core-admin.php:247 1500 1459 msgid "Toolbar" 1501 1460 msgstr "" 1502 1461 1503 #: bp-core/bp-core-admin.php:25 31462 #: bp-core/bp-core-admin.php:252 1504 1463 msgid "Account Deletion" 1505 1464 msgstr "" 1506 1465 1507 #: bp-core/bp-core-admin.php:26 11466 #: bp-core/bp-core-admin.php:260 1508 1467 msgid "Profile Settings" 1509 1468 msgstr "" 1510 1469 1511 #: bp-core/bp-core-admin.php:26 41470 #: bp-core/bp-core-admin.php:263 1512 1471 msgid "Avatar Uploads" 1513 1472 msgstr "" 1514 1473 1515 #: bp-core/bp-core-admin.php:26 81474 #: bp-core/bp-core-admin.php:267 1516 1475 msgid "Profile Syncing" 1517 1476 msgstr "" 1518 1477 1519 #: bp-core/bp-core-admin.php:27 71478 #: bp-core/bp-core-admin.php:276 1520 1479 msgid "Groups Settings" 1521 1480 msgstr "" 1522 1481 1523 #: bp-core/bp-core-admin.php:2 801482 #: bp-core/bp-core-admin.php:279 1524 1483 msgid "Group Creation" 1525 1484 msgstr "" 1526 1485 1527 #: bp-core/bp-core-admin.php:28 91486 #: bp-core/bp-core-admin.php:288 1528 1487 msgid "Legacy Group Forums" 1529 1488 msgstr "" 1530 1489 1531 #: bp-core/bp-core-admin.php:29 21490 #: bp-core/bp-core-admin.php:291 1532 1491 msgid "bbPress Configuration" 1533 1492 msgstr "" 1534 1493 1535 #: bp-core/bp-core-admin.php:30 11494 #: bp-core/bp-core-admin.php:300 1536 1495 msgid "Activity Settings" 1537 1496 msgstr "" 1538 1497 1539 #: bp-core/bp-core-admin.php:30 41498 #: bp-core/bp-core-admin.php:303 1540 1499 msgid "Blog & Forum Comments" 1541 1500 msgstr "" 1542 1501 1543 #: bp-core/bp-core-admin.php:30 91502 #: bp-core/bp-core-admin.php:308 1544 1503 msgid "Akismet" 1545 1504 msgstr "" 1546 1505 1547 #: bp-core/bp-core-admin.php:33 31506 #: bp-core/bp-core-admin.php:332 1548 1507 msgid "About" 1549 1508 msgstr "" 1550 1509 1551 #: bp-core/bp-core-admin.php:38 4 bp-core/bp-core-admin.php:4931510 #: bp-core/bp-core-admin.php:383 bp-core/bp-core-admin.php:492 1552 1511 msgid "Welcome to BuddyPress %s" 1553 1512 msgstr "" 1554 1513 1555 #: bp-core/bp-core-admin.php:38 71514 #: bp-core/bp-core-admin.php:386 1556 1515 msgid "BuddyPress %s is our safest, fastest, most flexible version ever." 1557 1516 msgstr "" 1558 1517 1559 #: bp-core/bp-core-admin.php:38 91518 #: bp-core/bp-core-admin.php:388 1560 1519 msgid "Thank you for updating! BuddyPress %s is our safest, fastest, most flexible version ever." 1561 1520 msgstr "" 1562 1521 1563 #: bp-core/bp-core-admin.php:39 2 bp-core/bp-core-admin.php:4951522 #: bp-core/bp-core-admin.php:391 bp-core/bp-core-admin.php:494 1564 1523 msgid "Version %s" 1565 1524 msgstr "" 1566 1525 1567 #: bp-core/bp-core-admin.php:39 6 bp-core/bp-core-admin.php:4991526 #: bp-core/bp-core-admin.php:395 bp-core/bp-core-admin.php:498 1568 1527 msgid "What’s New" 1569 1528 msgstr "" 1570 1529 1571 #: bp-core/bp-core-admin.php:39 8 bp-core/bp-core-admin.php:5011530 #: bp-core/bp-core-admin.php:397 bp-core/bp-core-admin.php:500 1572 1531 msgid "Credits" 1573 1532 msgstr "" 1574 1533 1575 #: bp-core/bp-core-admin.php:40 31534 #: bp-core/bp-core-admin.php:402 1576 1535 msgid "Getting Started" 1577 1536 msgstr "" 1578 1537 1579 #: bp-core/bp-core-admin.php:40 61538 #: bp-core/bp-core-admin.php:405 1580 1539 msgid "Your Default Setup" 1581 1540 msgstr "" 1582 1541 1583 #: bp-core/bp-core-admin.php:40 81542 #: bp-core/bp-core-admin.php:407 1584 1543 msgid "BuddyPress’s powerful features help your users connect and collaborate. To help get your community started, we’ve activated two of the most commonly used tools in BP: <strong>Extended Profiles</strong> and <strong>Activity Streams</strong>. See these components in action at the %1$s and %2$s directories, and be sure to spend a few minutes <a href=\"%3$s\">configuring user profiles</a>. Want to explore more of BP’s features? Visit the <a href=\"%4$s\">Components panel</a>." 1585 1544 msgstr "" 1586 1545 1587 #: bp-core/bp-core-admin.php:40 9bp-core/bp-core-template.php:2431546 #: bp-core/bp-core-admin.php:408 bp-core/bp-core-template.php:243 1588 1547 #: bp-core/bp-core-widgets.php:113 bp-groups/bp-groups-admin.php:770 1589 1548 #: bp-groups/bp-groups-template.php:1476 bp-members/bp-members-loader.php:24 … … 1594 1553 msgstr "" 1595 1554 1555 #: bp-core/bp-core-admin.php:414 1556 msgid "Community and Support" 1557 msgstr "" 1558 1596 1559 #: bp-core/bp-core-admin.php:415 1597 msgid "Community and Support"1598 msgstr ""1599 1600 #: bp-core/bp-core-admin.php:4161601 1560 msgid "Looking for help? The <a href=\"http://codex.buddypress.org/\">BuddyPress Codex</a> has you covered, with dozens of user-contributed guides on how to configure and use your BP site. Can’t find what you need? Stop by <a href=\"http://buddypress.org/support/\">our support forums</a>, where a vibrant community of BuddyPress users and developers is waiting to share tips, show off their sites, talk about the future of BuddyPress, and much more." 1602 1561 msgstr "" 1603 1562 1604 #: bp-core/bp-core-admin.php:42 21563 #: bp-core/bp-core-admin.php:421 1605 1564 msgid "A Declaration of (Theme) Independence" 1606 1565 msgstr "" 1607 1566 1567 #: bp-core/bp-core-admin.php:424 1568 msgid "It Just Works" 1569 msgstr "" 1570 1608 1571 #: bp-core/bp-core-admin.php:425 1609 msgid "It Just Works"1610 msgstr ""1611 1612 #: bp-core/bp-core-admin.php:4261613 1572 msgid "BuddyPress is now compatible with <strong>any WordPress theme</strong>. If your theme has BuddyPress-specific templates and styling, we’ll use them. If not, we provide what you need to make your BuddyPress content look great. Still want to customize? No problem - you can override our templates just like you would in a WordPress child theme. <a href=\"http://codex.buddypress.org/developer-and-designer-information/\">Learn more about theme compatibility</a>." 1614 1573 msgstr "" 1615 1574 1616 #: bp-core/bp-core-admin.php:43 11575 #: bp-core/bp-core-admin.php:430 1617 1576 msgid "Group Management" 1618 1577 msgstr "" 1619 1578 1620 #: bp-core/bp-core-admin.php:43 41579 #: bp-core/bp-core-admin.php:433 1621 1580 msgid "Get More Done Quickly" 1622 1581 msgstr "" 1623 1582 1624 #: bp-core/bp-core-admin.php:43 71583 #: bp-core/bp-core-admin.php:436 1625 1584 msgid "Groups administration panel" 1626 1585 msgstr "" 1627 1586 1628 #: bp-core/bp-core-admin.php:44 41587 #: bp-core/bp-core-admin.php:443 1629 1588 msgid "The new %s makes it easy to handle large numbers of groups on your BuddyPress installation. Delete groups, edit group details, modify memberships, and more, with just a few clicks." 1630 1589 msgstr "" 1631 1590 1632 #: bp-core/bp-core-admin.php:45 11591 #: bp-core/bp-core-admin.php:450 1633 1592 msgid "Under the Hood" 1634 1593 msgstr "" 1635 1594 1595 #: bp-core/bp-core-admin.php:454 1596 msgid "Faster Member Queries" 1597 msgstr "" 1598 1636 1599 #: bp-core/bp-core-admin.php:455 1637 msgid "Faster Member Queries"1638 msgstr ""1639 1640 #: bp-core/bp-core-admin.php:4561641 1600 msgid "The new <code>BP_User_Query</code> makes member queries (like in the Members directory) up to 4x faster than before." 1642 1601 msgstr "" 1643 1602 1603 #: bp-core/bp-core-admin.php:457 1604 msgid "Sortable Profile Options" 1605 msgstr "" 1606 1644 1607 #: bp-core/bp-core-admin.php:458 1645 msgid "Sortable Profile Options"1646 msgstr ""1647 1648 #: bp-core/bp-core-admin.php:4591649 1608 msgid "Profile field types with multiple options - like radio buttons and checkboxes - now support drag-and-drop reordering." 1650 1609 msgstr "" 1651 1610 1611 #: bp-core/bp-core-admin.php:462 1612 msgid "New Visibility Level" 1613 msgstr "" 1614 1652 1615 #: bp-core/bp-core-admin.php:463 1653 msgid "New Visibility Level"1654 msgstr ""1655 1656 #: bp-core/bp-core-admin.php:4641657 1616 msgid "By popular demand, the \"Admins Only\" visibility setting is now available for profile fields." 1658 1617 msgstr "" 1659 1618 1619 #: bp-core/bp-core-admin.php:465 1620 msgid "Better bbPress Integration" 1621 msgstr "" 1622 1660 1623 #: bp-core/bp-core-admin.php:466 1661 msgid "Better bbPress Integration"1662 msgstr ""1663 1664 #: bp-core/bp-core-admin.php:4671665 1624 msgid "Support for group and sitewide forums, using the latest version of the bbPress plugin, is better than ever. Still using bbPress 1.x? Our new migration tools are field-tested." 1666 1625 msgstr "" 1667 1626 1668 #: bp-core/bp-core-admin.php:47 2 bp-core/bp-core-admin.php:5991627 #: bp-core/bp-core-admin.php:471 bp-core/bp-core-admin.php:598 1669 1628 msgid "Go to the BuddyPress Settings page" 1670 1629 msgstr "" 1671 1630 1672 #: bp-core/bp-core-admin.php:49 41631 #: bp-core/bp-core-admin.php:493 1673 1632 msgid "Thank you for updating to the latest version! BuddyPress %s is ready to make your community a safer, faster, and better looking place to hang out!" 1674 1633 msgstr "" 1675 1634 1676 #: bp-core/bp-core-admin.php:50 51635 #: bp-core/bp-core-admin.php:504 1677 1636 msgid "BuddyPress is created by a worldwide network of friendly folks." 1678 1637 msgstr "" 1679 1638 1680 #: bp-core/bp-core-admin.php:50 71639 #: bp-core/bp-core-admin.php:506 1681 1640 msgid "Project Leaders" 1682 1641 msgstr "" 1683 1642 1684 #: bp-core/bp-core-admin.php:51 21643 #: bp-core/bp-core-admin.php:511 1685 1644 msgid "Founding Developer" 1686 1645 msgstr "" 1687 1646 1688 #: bp-core/bp-core-admin.php:51 71647 #: bp-core/bp-core-admin.php:516 1689 1648 msgid "Project Lead" 1690 1649 msgstr "" 1691 1650 1692 #: bp-core/bp-core-admin.php:52 2 bp-core/bp-core-admin.php:5271651 #: bp-core/bp-core-admin.php:521 bp-core/bp-core-admin.php:526 1693 1652 msgid "Lead Developer" 1694 1653 msgstr "" 1695 1654 1696 #: bp-core/bp-core-admin.php:53 11655 #: bp-core/bp-core-admin.php:530 1697 1656 msgid "Core Developers" 1698 1657 msgstr "" 1699 1658 1700 #: bp-core/bp-core-admin.php:53 91659 #: bp-core/bp-core-admin.php:538 1701 1660 msgid "Recent Rockstars" 1702 1661 msgstr "" 1703 1662 1704 #: bp-core/bp-core-admin.php:54 41663 #: bp-core/bp-core-admin.php:543 1705 1664 msgid "Design Officer" 1706 1665 msgstr "" 1707 1666 1708 #: bp-core/bp-core-admin.php:54 91667 #: bp-core/bp-core-admin.php:548 1709 1668 msgid "Support Officer" 1710 1669 msgstr "" 1711 1670 1712 #: bp-core/bp-core-admin.php:55 31671 #: bp-core/bp-core-admin.php:552 1713 1672 msgid "Core Contributors to BuddyPress 1.7" 1714 1673 msgstr "" … … 3806 3765 msgstr "" 3807 3766 3808 #: bp-loader.php:53 13767 #: bp-loader.php:530 3809 3768 msgid "BuddyPress Default" 3810 3769 msgstr "" -
trunk/bp-loader.php
r7097 r7099 281 281 $this->version = '1.8-bleeding-7013'; 282 282 $this->db_version = 6080; 283 $this->glotpress_version = 'dev';284 283 285 284 /** Loading ***********************************************************/
Note: See TracChangeset
for help on using the changeset viewer.