Skip to:
Content

BuddyPress.org

Changeset 12145


Ignore:
Timestamp:
05/29/2018 06:48:00 PM (8 years ago)
Author:
imath
Message:

Nouveau Activity Post form: fix missing strings in JavaScript l10n.

Strings for two action buttons (Post Update and Cancel) were wrongly hardcoded into the JavaScript file. This commit adds these two strings to the l10n strings object of the Nouveau Activity Post Form UI.

Props vapvarun

Fixes #7876 (Branch 3.0)

Location:
branches/3.0/src/bp-templates/bp-nouveau
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/src/bp-templates/bp-nouveau/includes/activity/functions.php

    r12105 r12145  
    164164        'whatsnewLabel'       => __( 'Post what\'s new', 'buddypress' ),
    165165        'whatsnewpostinLabel' => __( 'Post in', 'buddypress' ),
     166        'postUpdateButton'    => __( 'Post Update', 'buddypress' ),
     167        'cancelButton'        => __( 'Cancel', 'buddypress' ),
    166168    );
    167169
  • branches/3.0/src/bp-templates/bp-nouveau/js/buddypress-activity-post-form.js

    r12082 r12145  
    536536                id    : 'aw-whats-new-reset',
    537537                className : 'text-button small',
    538                 value : 'Cancel'
     538                value : BP_Nouveau.activity.strings.cancelButton
    539539            } );
    540540
     
    544544                className : 'button',
    545545                name  : 'aw-whats-new-submit',
    546                 value : 'Post Update'
     546                value : BP_Nouveau.activity.strings.postUpdateButton
    547547            } );
    548548
Note: See TracChangeset for help on using the changeset viewer.