Skip to content
This repository has been archived by the owner on Aug 16, 2024. It is now read-only.

Commit

Permalink
Bump plugin version to 1.0.0-RC1
Browse files Browse the repository at this point in the history
This commit also fix two missing translated strings
  • Loading branch information
imath committed Apr 3, 2022
1 parent 737c16a commit c35cb18
Show file tree
Hide file tree
Showing 9 changed files with 71 additions and 12 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Change Log

## 1.0.0-RC1

_Requires WordPress 5.4_
_Tested up to WordPress 6.0-alpha_
_Requires BuddyPress 10.0_
_Tested up to BuddyPress 11.0-alpha_

### Description

This is the BuddyPress Rewrites feature as a plugin. Thanks to it you'll get full control on any BuddyPress URLs. Please note this plugin is still under active development: you should probably use a local/staging site to play with it 😉.

### Bug fixes

- Make sure BP Rewrites loads when BuddyPress is network activated. See #32.
- Avoid a fatar error when trying to access to a BP Core Nav too early. See #33.

### Props

@adiloztaser, @eha1, @imath.

---

## 1.0.0-beta2

_Requires WordPress 5.4_
Expand Down
2 changes: 1 addition & 1 deletion class-bp-rewrites.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Plugin Name: BP Rewrites
* Plugin URI: https://github.com/buddypress/bp-rewrites
* Description: BuddyPress Rewrites development plugin.
* Version: 1.0.0-beta2
* Version: 1.0.0-RC1
* Author: The BuddyPress Community
* Author URI: https://buddypress.org
* License: GPL-2.0+
Expand Down
2 changes: 1 addition & 1 deletion inc/globals.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
function globals() {
$bpr = bp_rewrites();

$bpr->version = '1.0.0-beta2';
$bpr->version = '1.0.0-RC1';

// Path.
$plugin_dir = plugin_dir_path( dirname( __FILE__ ) );
Expand Down
Binary file modified languages/bp-rewrites-fr_FR.mo
Binary file not shown.
34 changes: 29 additions & 5 deletions languages/bp-rewrites-fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ msgid ""
msgstr ""
"Project-Id-Version: BP Rewrites\n"
"Report-Msgid-Bugs-To: https://github.com/buddypress/bp-rewrites/issues\n"
"POT-Creation-Date: 2022-03-12T08:17:23+00:00\n"
"PO-Revision-Date: 2022-03-12 09:18+0100\n"
"POT-Creation-Date: 2022-04-03T09:35:03+00:00\n"
"PO-Revision-Date: 2022-04-03 11:36+0200\n"
"Last-Translator: \n"
"Language-Team: ENGLISH <[email protected]>\n"
"Language: fr\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: bp-rewrites\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
"X-Generator: Poedit 3.0.1\n"
"X-Domain: bp-rewrites\n"

#. Plugin Name of the plugin
msgid "BP Rewrites"
Expand Down Expand Up @@ -141,6 +141,22 @@ msgstr "Terminaison d’URL « %s »"
msgid "Save Settings"
msgstr "Enregistrer les réglages"

#: src/bp-core/bp-core-template.php:51
msgid "Please wait for the `bp_parse_query` hook to be fired before using it."
msgstr ""
"Merci d’attendre que le « hook » `bp_parse_query` soit intervenu avant "
"d’essayer de l’utiliser."

#. Translators: 1: the list of nav items that were not added.
#: src/bp-core/classes/class-core-nav-compat.php:47
msgid ""
"Please wait for the `bp_setup_nav` hook to be fired before trying to create "
"a nav or a subnav item. The following nav item slugs are problematic: %s."
msgstr ""
"Merci d’attendre que le « hook » `bp_setup_nav` soit intervenu avant "
"d’essayer de créer un éléments de navigation ou de sous-navigation. Les "
"terminaisons d’url des éléments suivants sont problématique : %s."

#: src/bp-groups/actions/create.php:35
msgid "Sorry, you are not allowed to create groups."
msgstr "Désolé, vous n’êtes pas autorisé·e à créer des groupes."
Expand Down Expand Up @@ -276,6 +292,14 @@ msgctxt "Group manage view"
msgid "Delete"
msgstr "Supprimer"

#: src/bp-groups/classes/class-bp-group-extension.php:517
msgid ""
"Please wait for the `bp_parse_query` hook to be fired before trying to get "
"the Group ID."
msgstr ""
"Merci d’attendre que le « hook » `bp_parse_query` soit intervenu avant "
"d’essayer de récupérer l’identifiant de groupe."

#: src/bp-groups/classes/class-bp-group-extension.php:565
msgid "Save Changes"
msgstr "Enregistrer les changements"
Expand All @@ -296,7 +320,7 @@ msgstr "Invitations en attente"
msgid "Send Invites"
msgstr "Inviter"

#: src/bp-members/classes/class-members-component.php:540
#: src/bp-members/classes/class-members-component.php:567
msgid ""
"This user has been marked as a spammer. Only site admins can view this "
"profile."
Expand Down
17 changes: 15 additions & 2 deletions languages/bp-rewrites.pot
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-03-12T08:17:23+00:00\n"
"POT-Creation-Date: 2022-04-03T09:35:03+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.5.0\n"
"X-Domain: bp-rewrites\n"
Expand Down Expand Up @@ -132,6 +132,15 @@ msgstr ""
msgid "Save Settings"
msgstr ""

#: src/bp-core/bp-core-template.php:51
msgid "Please wait for the `bp_parse_query` hook to be fired before using it."
msgstr ""

#. Translators: 1: the list of nav items that were not added.
#: src/bp-core/classes/class-core-nav-compat.php:47
msgid "Please wait for the `bp_setup_nav` hook to be fired before trying to create a nav or a subnav item. The following nav item slugs are problematic: %s."
msgstr ""

#: src/bp-groups/actions/create.php:35
msgid "Sorry, you are not allowed to create groups."
msgstr ""
Expand Down Expand Up @@ -262,6 +271,10 @@ msgctxt "Group manage view"
msgid "Delete"
msgstr ""

#: src/bp-groups/classes/class-bp-group-extension.php:517
msgid "Please wait for the `bp_parse_query` hook to be fired before trying to get the Group ID."
msgstr ""

#: src/bp-groups/classes/class-bp-group-extension.php:565
msgid "Save Changes"
msgstr ""
Expand All @@ -282,7 +295,7 @@ msgstr ""
msgid "Send Invites"
msgstr ""

#: src/bp-members/classes/class-members-component.php:540
#: src/bp-members/classes/class-members-component.php:567
msgid "This user has been marked as a spammer. Only site admins can view this profile."
msgstr ""

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bp-rewrites",
"version": "1.0.0-beta2",
"version": "1.0.0-RC1",
"description": "BuddyPress Rewrites development plugin",
"scripts": {
"pot": "wp i18n make-pot . languages/bp-rewrites.pot --exclude='.github,vendor' --headers='{\"Project-Id-Version\": \"BP Rewrites\", \"Report-Msgid-Bugs-To\": \"https://github.com/buddypress/bp-rewrites/issues\", \"Last-Translator\": \"JOHN JAMES JACOBY <[email protected]>\", \"Language-Team\": \"ENGLISH <[email protected]>\"}'"
Expand Down
2 changes: 1 addition & 1 deletion src/bp-core/bp-core-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function _was_called_too_early( $function, $bp_global ) {
*/
if ( false === strpos( $debug_backtrace, 'BP_Core->setup_globals, bp_user_has_access' ) ) {
ob_start();
_doing_it_wrong( esc_html( $function ), esc_html__( 'Please wait for the `bp_parse_query` hook to be fired before using it.' ), 'BP Rewrites' );
_doing_it_wrong( esc_html( $function ), esc_html__( 'Please wait for the `bp_parse_query` hook to be fired before using it.', 'bp-rewrites' ), 'BP Rewrites' );
$doing_it_wrong = ob_get_clean();

printf(
Expand Down
2 changes: 1 addition & 1 deletion src/bp-groups/classes/class-bp-group-extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ public static function get_group_id() {
if ( self::query_parsed() ) {
$group_id = bp_get_current_group_id();
} else {
_doing_it_wrong( __METHOD__, esc_html__( 'Please wait for the `bp_parse_query` hook to be fired before trying to get the Group ID.' ), 'BP Rewrites' );
_doing_it_wrong( __METHOD__, esc_html__( 'Please wait for the `bp_parse_query` hook to be fired before trying to get the Group ID.', 'bp-rewrites' ), 'BP Rewrites' );
$current_group = BP\Rewrites\bp_core_get_from_uri( array( 'current_group' ) );

if ( isset( $current_group->id ) && $current_group->id ) {
Expand Down

0 comments on commit c35cb18

Please sign in to comment.