Title: Localizing languages / button text
Last modified: August 20, 2016

---

# Localizing languages / button text

 *  [camcollins](https://wordpress.org/support/users/camcollins/)
 * (@camcollins)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/localizing-languages-button-text/)
 * BP Activity Plus is awesome! We are very reliant upon it to provide our members
   with a simple way to upload photos and video links.
 * I would like to change the button text once an image is uploaded. Our users are
   getting confused when after they upload a photo it says “Add photos”. Makes sense
   to me, but what can I say.
 * So…I thought that the most effecient way to do this was to create a custom .po
   and .mo file in ./languages dir. However unlike the Buddypress plugin, I was 
   unable to find a languages variable that I could define in my functions.php file
   to point to my new .mo file.
 * I have modified the language file succesesfully in Buddypress following this 
   [post](http://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/#poedit).
   I created a new .po file in languages, did the translations in POEdit and then
   saved the file which created both a .po and a .mo file. However the plugin doesn’t
   seem to know about this new languages file.
 * I then modified bpfb-default.po using POEdit. When I saved it created a new .
   mo. Still no change. My last resort was to modify ./lib/class_bpfb_binder.php.
   This is a sub-optimal approach because I will now have to maintain this file 
   everytime I upgrade the plugin. (Yuck!). Even hard coding the change, I still
   cannot get the button text to be “Post photos” after stopping/starting my local
   server, clearing cache, etc.
 * class_bpfb_binder.php mod:
 *     ```
       wp_localize_script('bpfb_interface_script', 'l10nBpfb', array(<br />
       			'add_photos' => __('Post photos', 'bpfb'),
       ```
   
 * Has anyone had success modifying the languages files in this plugin or (worse
   case) modifying button text?
 * Thanks!
 * [http://wordpress.org/extend/plugins/buddypress-activity-plus/](http://wordpress.org/extend/plugins/buddypress-activity-plus/)

Viewing 1 replies (of 1 total)

 *  [Santaclaes](https://wordpress.org/support/users/santaclaes1/)
 * (@santaclaes1)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/localizing-languages-button-text/#post-3138886)
 * I have the same problem, can’t get the *.po and *.mo file to work. Trying to 
   translate to swedish but nothing happens when I upload the new files to the language
   directory. Have you come to any solution to the problem yet?

Viewing 1 replies (of 1 total)

The topic ‘Localizing languages / button text’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/buddypress-activity-plus_db6c43.svg)
 * [BuddyPress Activity Plus](https://wordpress.org/plugins/buddypress-activity-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddypress-activity-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddypress-activity-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/buddypress-activity-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddypress-activity-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddypress-activity-plus/reviews/)

## Tags

 * [add photos](https://wordpress.org/support/topic-tag/add-photos/)
 * [languages](https://wordpress.org/support/topic-tag/languages/)

 * 1 reply
 * 2 participants
 * Last reply from: [Santaclaes](https://wordpress.org/support/users/santaclaes1/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/localizing-languages-button-text/#post-3138886)
 * Status: not resolved