How can I change the text to make it literate?
-
I’m creating a site for an English Department. I don’t want them to face this text on the registration page:
“Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.”
It’s called a comma splice: The use of a comma where a period or a semicolon should go. I want to change this text but can’t for the life of me find the file that contains that poor English sentence. Can anyone help? And, for the record, shouldn’t such communications to our users be as easy to change as the myriad configurations now available?
-
the easiest way would be to create a folder called “languages” in your wp-content folder and put a copy of buddypress.pot from wp-content\plugins\buddypress\bp-languages.
– Rename the new buddypress.pot from “languages” to “buddypress-en_US.pot”
– Download Poedit – http://www.poedit.net/download.php – and install it
– Open “buddypress-en_US.pot” with Poedit
– Press Ctrl + F and search for “Registering for this site”. The string should appear.
– In Translation field put any text you want. It will simply replace the original text.This is pretty much the best way to use your own words in your BP installation rather then modifying the core files. It might sound complicated but it’s actually pretty easy once you get the hang of it.
Cheers
@icepin while I write all my code as text domain translatable and if a plugin provide for a languages file lookup I would hardly ever really call the above ‘easy’ when a user simply needs to change one little character and where we’re not talking about a distributed theme or plugin.
The file that contains that translatable string is register.php if your theme is running bp in theme compatibility mode then the file being used lives in /bp-templates/bp-legacy/buddypress/members/
However you are NOT advised to edit theme files residing in the core plugin, if you wish to directly edit a template file you must make a child theme of the theme you are using and copy the template files over and edit in the child theme.
instruction for that may be found in the BP codex, and child theme creating guides in the WP codex.
https://codex.buddypress.org/theme-development/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/N.B. Any criticism of the above grammar or general syntax will be ignored! 🙂
Thanks to both of you for your help.
@hnla Your suggestion for custom changes is on the mark.
However, the correction suggested by @idavidson is really a “bugfix” that should be applied to the software being packaged and offered.
@sooskriszta You’re correct,;: bad grammar ought to be corrected and anyone can raise a ticket highlighting the need or go further and provide a patched file.
@hnla Ok, good opportunity for me to learn how Trac works. How do I submit a patch? Just edit the file and create a diff and upload that?
@sooskriszta https://make.wordpress.org/core/handbook/submitting-a-patch/
instead of downloading https://core.svn.wordpress.org/trunk/ via SVN, you’d need to download via SVN client https://buddypress.svn.wordpress.org/trunk/Then after you’ve tested the changes you’ve made in your test installation, log in and create a new ticket in https://buddypress.trac.wordpress.org/ and upload that patch.
@sooskriszta Yes essentially. Ensure you have a checkout of trunk and that has update run to keep it current, then update a file and create a diff from that file created from the root of the plugin and as mercime says don’t forget to check your changes locally.
@mercime Using Tortoise SVN.
Tried importing https://buddypress.svn.wordpress.org/trunk/ but getting
Error: POST of ‘/!svn/me’: 403 Forbidden (http://buddypress.trac.wordpress.org)
@idavidson I apologize for hijacking your thread.@sooskriszta
1. first create a folder in your hard drive e.g. buddypresstrunk/
2. Open that folder and then right-click and click on SVN Checkout in box which shows up
3. Then enter the link I gave above for BuddyPress trunk in the “URL Repository” input field which shows up and click OK button
4. Watch as files are added into that empty folderAh, I see. I was clicking Import instead of SVN Checkout.
@sooskriszta Cool. Thank you for creating the ticket and uploading the patch.
We’ll see more patches from you in the future, yes? 🙂Wow! I’m impressed by the way you guys operate. Looks like a smooth-running machine from here.
Thanks!
@sooskriszta
You should be able to run a tortoise checkout with this url.
https://svn.buddypress.org/trunkWe’ll see more patches from you in the future, yes?
@mercime I hope so.You should be able to run a tortoise checkout with this url.
https://svn.buddypress.org/trunk
@hnla For the patch I submitted, I had used https://buddypress.svn.wordpress.org/trunk/ Should I use https://svn.buddypress.org/trunk instead? Do the 2 URLs point to different resources?Guess they’ll point to the same resource, I’ve always checkout on the url I mentioned never really though much about it.
editing the pot file not working still the same text “Registering for this site is easy, just fill in the fields below and we’ll get a new account set up for you in no time.”” plz suggest
@annyrakesh answered at https://buddypress.org/support/topic/change-text-in-create-an-account/
Please create your own ticket next time instead of posted in old topics, thanks.
Closing this topic
- The topic ‘How can I change the text to make it literate?’ is closed to new replies.