Search Results for 'translation'
-
AuthorSearch Results
-
March 17, 2011 at 3:00 am #108046
In reply to: How to pull blog category in activity loop?
VirtualiParticipantGlad you got it!
Although you didn’t hook it into the activity filter yet.
as I remember it was something in the function class:
`function filter_gettext($translation, $text`
March 17, 2011 at 2:48 am #108044In reply to: [Resolved] Change ’wrote a new blog post’ text.
aljukMemberI adapted it a little, to display a link to the category the post is in (assuming one category, and category slug of ‘category’) :
`class PJW_Translation_Mangler {
function filter_gettext($translation, $text, $domain) {
global $post;
$category = get_the_category($post->ID);
$cat_slug = $category[0]->slug;
$category = $category[0]->cat_name;
$translations = &get_translations_for_domain( $domain );
if ( $text == ‘%s wrote a new blog post: %s’ ) {
return $translations->translate( ‘%s wrote a new post: %s, in ‘.$category.’‘);
}
return $translation;
}
}
add_filter(‘gettext’, array(‘PJW_Translation_Mangler’, ‘filter_gettext’), 10, 4);`March 15, 2011 at 11:32 pm #107918In reply to: I want to translate it into Greek
mbasilMemberHello to all.
Finally greek translation is still shared? If yes, where can we find it?Thanks
March 15, 2011 at 6:34 pm #107898In reply to: [Resolved] Change ’wrote a new blog post’ text.
@mercimeParticipantFor this text string, you can use Westi’s method at http://blog.ftwr.co.uk/archives/2010/01/02/mangling-strings-for-fun-and-profit/
You can add the following code in your theme’s functions.php
`<?php
/* http://blog.ftwr.co.uk/archives/2010/01/02/mangling-strings-for-fun-and-profit/ */
class PJW_Translation_Mangler {
function filter_gettext($translation, $text, $domain) {
$translations = &get_translations_for_domain( $domain );
if ( $text == ‘%s wrote a new blog post: %s’ ) {
return $translations->translate( ‘%s wrote: %s’ );
}
return $translation;
}
}
add_filter(‘gettext’, array(‘PJW_Translation_Mangler’, ‘filter_gettext’), 10, 4);?>
`March 8, 2011 at 3:39 am #107145In reply to: Install Multisite
@mercimeParticipant1. Recommended steps
a. Install WordPress
b. Create a network (i.e. multisite) https://codex.wordpress.org/Create_A_Network,
c. Resolve any multsite issues first https://codex.buddypress.org/getting-started/before-installing/ at https://wordpress.org/support/forum/multisite
d. then install BuddyPress https://codex.buddypress.org/getting-started/setting-up-a-new-installation/2. Portugese, doesn’t look to have much support
WordPress – https://codex.wordpress.org/WordPress_in_Your_Language
BuddyPress – no Portugese submitted at https://codex.buddypress.org/developer-docs/translations/February 25, 2011 at 9:01 pm #106308johjoergensenMember@Chouf1 thx, but I am not sure I understand. It seems like the po file I am using is using strings from another version of BP – although I picked the most recent offered on the BP website supposed to work with 1.2.8. I tried to use the po file for Danish at i18n trac, but it seems it has the same issues.
February 24, 2011 at 10:05 pm #106198danbpfrParticipantyou can download some version of translation on the buddypress i18n trac:
https://i18n.trac.buddypress.org/browser
or on the buddypress trac:
https://trac.buddypress.org/browser?order=name#tags
there are only 3 strings diffs between 1.2.7 and 1.2.8 pot, so it’s not very important at this time if you miss somethingIf you want to work with pot files, you have to pick in the tagged version, not in the trunk (except for your private tests of course)
February 24, 2011 at 9:52 pm #106192r-a-yKeymasterLooks like it’s using strings from the currently-in-development BP 1.3
Ping @boonebgorges.
February 20, 2011 at 6:37 am #105832In reply to: Custom Language changes not showing
r-a-yKeymasterThis thread is over 9 months old.
The codex instructions have been updated since then to better reflect the changes made to BP 1.2.7.Putting the language file in /wp-content/languages/ is preferred because when you upgrade BP, your changes won’t be wiped out!
You have to make sure your generated .mo file is valid. I’d suggest recreating your translation files from scratch. Make very tiny changes then upload it to /wp-content/languages and check to see if your alterations stick. If they stick, keep on editing and then regenerate your translation files.
Also make sure your locale is correct.
To do a quick check, put “ in a template file somewhere and refresh the page to see.
—
I just tested this to confirm and it works fine; I did not try this on WP 3.1 in Multisite mode though.
February 17, 2011 at 4:00 am #105605In reply to: Changing “Join Group” to “Follow Group”
acesParticipantWell you could replace
`
case “Who’s Online Avatars”:
return $translations->translate( “Who’s Online…” );
break;
`
for
`
case “Join Group”:
return $translations->translate( “Follow” );
break;
`
in the example in the link
but as join appears quite a lot of times in buddypress, in different combinations, it might be better just to add your own language file….February 14, 2011 at 9:37 pm #105414In reply to: Friends – rename to something else
kenrichmanParticipantMuch happier now having created a translation file. Wish I’d known before that is the best way to go about it.
February 14, 2011 at 4:09 pm #105386acesParticipantHave you tried?
`
case “Friends (%d)“:
return $translations->translate( “Mates (%d)” );
break;
`
Also. I have just discovered from the buddypress codex that the friends slug can be changed to match to your choice…
`
define ( ‘BP_FRIENDS_SLUG’, ‘peeps’ );
`
It goes in the wp-config.php file@mercimeParticipant“and when I put the part of (what part of?) I lost language files without login and when I try to log it makes
nothing. “Something’s getting lost in translation. Do rephrase your question.
February 11, 2011 at 9:09 pm #105199February 11, 2011 at 1:00 am #105112acesParticipantI think I may have just found a way – I saved the following as a plugin myself and it works. So If you change the Case text for your own it may help – I run single site so i can’t try it out…
`<?php
/*
Plugin Name: Text Mangle
Original Author URI: http://quirm.net/
Description: Replacing buddypress texts the eshop plugin way.
Based on PJW Translation Mangler by Peter Westwood http://blog.ftwr.co.uk/
Originally cut and pasted from: http://quirm.net/wiki/eshop/changing-displayed-text/
Author: Rich Pedley
Version: 0.01
*/
class buddypress_Translation_Mangler {
/*
* Filter the translation string before it is displayed.
*/
function filter_gettext($translation, $text, $domain) {
$translations = &get_translations_for_domain( ‘buddypress’ );
switch($text){
case “Who’s Online Avatars”:
return $translations->translate( “Who’s Online…” );
break;
}
return $translation;
}
}
add_filter(‘gettext’, array(‘buddypress_Translation_Mangler’, ‘filter_gettext’), 10, 4);
?>`
I would like to know if there’s anything wrong with using this technique in buddypress?February 9, 2011 at 1:21 pm #105003camaleonwMemberActually is the admin panel which goes blank with a Server error message, but when I go to the website I can see buddypress working in spanish perfectly, may be I have to upload translation file .mo to another folder or change some script somewhere, any idea? I’m using a free hosting but has all the features enabled.
February 4, 2011 at 4:24 pm #104597In reply to: Change the language!
January 27, 2011 at 9:01 pm #104057In reply to: Ask about error: Must always login with admin role
@mercimeParticipantThere’s something getting lost in translation. Could you rephrase your question?
January 25, 2011 at 6:27 am #103803In reply to: Where can I download bp site Language pack?
LPH2005ParticipantDoes this link help you?
January 21, 2011 at 1:28 am #103480In reply to: Searching / browsing through extensions
dyerringtonMemberI had some time earlier to create a little spider that basically:
– Scans the extensions page (all 12 pages!) for the direct URL’s of each plugin
– Extracts meta-data from each of the pages (title, rating, downloads, last updated, compatible, requires.. etc)
– Normalizes a little bit
– Dumps to text file for database import or CSVAnyhow, for about 30 minutes worth of work, I was able to get most of the meta-data into a report. Some pages threw errors, probably because I didn’t set a delay between fetches or something but I could easily improve on this and cron the process into a database. Anyhow, I was mostly curious about searching through the extensions more effectively. Here’s a sampling of the top 20 or so by downloads:
# | Title, Version, Updated, Requires, Compatible, Downloads
1 | Plugin: BuddyPress 1.2.7 92 days ago 3 3.0.4 446618
2 | Plugin: W3 Total Cache 0.9.1.3 126 days ago 2.8 3.0.4 263812
3 | Plugin: MapPress Easy Google Maps 2.28 70 days ago 3 3.0.4 120369
4 | Plugin: All in One Webmaster 6.9.9.3 44 days ago 2.9 3.1 117468
5 | Plugin: Tweet Blender 3.2.4 50 days ago 2.8.0 3.0.4 81710
6 | Plugin: WP-Hashcash 4.5.1 296 days ago 2.9.2 71257
7 | Plugin: Login With Ajax 3.0.3 53 days ago 2.8 3.0.4 60193
8 | Plugin: Codestyling Localization 1.99.7 121 days ago 2.5 3.0.4 50702
9 | Plugin: Transposh – translation filter for wordpress 0.7.0 10 days ago 2.8 3.1 40218
10 | Plugin: Post video players, slideshow albums, photo galleries and music / podcast playlist 1.95 2 days ago 2.0.2 3.0.4 36651
11 | Plugin: Author Avatars List 1 121 days ago 2.8 3.0.0 32541
12 | Plugin: Buddypress-Ajax-Chat 1.3.8 31 days ago 2.9.1,1.2 30325
13 | Plugin: BuddyPress Media 0.1.8.7 14 days ago 2.9,1.2 3.0.4,1.2.7 26729
14 | Plugin: Twit Connect 2.56 77 days ago 2.7.0 3.0.4 20029
15 | Plugin: Welcome Pack 2.1 223 days ago 2.9.x,1.2.3 3.0,1.2.4.1 17864
16 | Plugin: Invite Anyone 0.7.1 51 days ago 2.8,1.1 3.0.1,1.2.7 16969
17 | Plugin: BuddyPress Links 0.5 91 days ago 5.2,3.x,1.2.6 5.2.x,3.x,1.2.6 15916
18 | Plugin: BuddyPress Group Email Subscription 2.7.9 46 days ago 2.9.1 1.2 3.0.1 1.2.5.2 15806
19 | Plugin: BuddyPress Like 0.0.8 53 days ago 2.9 3.0.4 14836January 18, 2011 at 2:25 pm #103244In reply to: BuddyPress Translation
JamesParticipant@wpoooooo there is small issue in 0.7.0, contact the author and he will send you updated version
January 18, 2011 at 12:23 pm #103237In reply to: BuddyPress Translation
wpooooooMember‘WP Symposium’ may be closer than we thought
January 18, 2011 at 12:14 pm #103236In reply to: BuddyPress Translation
wpooooooMemberLooks like ‘WP Symposium’ is due to be an alternative to Buddy Press. But it looks a long way from being ready. Will have to hope that Transposh version 0.7.0 works and move away from Buddy Press before the site gets too many users. If Multi Language remains an issue.
January 15, 2011 at 10:22 pm #102948In reply to: Hi folks I have a problem members find a page
@mercimeParticipantSomething’s getting lost in translation. Do you mean that you have three registered members but they are not listed in members page?
January 13, 2011 at 1:03 pm #102750In reply to: BuddyPress Translation
JamesParticipantok, have to withdraw my comment re transposh. in version 0.7.0 it has improved .po/.mo support and works excellent, at least it looks like this at the moment.
-
AuthorSearch Results