Search Results for 'translation'
-
AuthorSearch Results
-
January 11, 2011 at 4:53 pm #102586
In reply to: BuddyPress Share It button live
JamesParticipanthi @modemlooper,
could you help a bit on translation, I know it is just one word – Share (button), but…I added this line to bp-share-it.php:
`load_plugin_textdomain(‘bp-share-it’,’/wp-content/plugins/buddypress-share-it/languages/’);`
translation is loading, seems to work fine.
question is how I can add translation tags to this code (as I understand this is exact place word “Share” comes from (one of them, all others are the same):
`$shareit = ‘Share
- ‘ . $shareittwitter . ‘
- ‘ . $shareitbuzz . ‘
- ‘ . $shareitfacebook . ‘
- ‘ . $shareitdigg . ‘
- ‘ . $shareitemail . ‘
‘;`
thanks!
January 11, 2011 at 12:19 pm #102559In reply to: why must there be _e() everywhere? (a newbie writes)
Boone GorgesKeymasterIt is a translation function. Wrapping ‘Blog Posts Feed’ in _e() ensures that it appears in the .po file that translators use to create language packs. The ‘buddypress’ argument ensures that it is associated with the ‘buddypress’ textdomain (since potentially the same string might be translated in different ways when part of different software packages).
The difference between __() and _e() is that _e() echoes the string to the screen.
January 11, 2011 at 3:18 am #102532José M. VillarParticipantWOW.
If U need any sort of translation to spanish, just let me knowJanuary 10, 2011 at 1:39 pm #102466In reply to: Someone know a good translator?it s urgent
VirtualiParticipantNo, use Transpoosh https://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/
it’s the best translator I have ever seen, it translates everything in buddypress + blog comments
December 22, 2010 at 5:57 pm #101145foxlyParticipantFinish it and upload it to the task on the tracker then.
If the other member submits their translation, we will distribute both of them with the plugin.
Thanks!
^F^
December 22, 2010 at 5:49 pm #101143foxlyParticipanthttps://www.pivotaltracker.com/story/show/7583287
Another team member has ownership of the Spanish translation task. However, they have not confirmed that they have started on it yet.
If they do not respond within 24 hours, I will let you start on it.
Thanks for helping out!
^F^
December 22, 2010 at 3:40 pm #101132José M. VillarParticipantI just requested to join your project at pivotal for spanish translation. Is it still needed ?
December 19, 2010 at 7:24 am #100932In reply to: Question for profile/membership site
@mercimeParticipantSure. There’s one featured WordPress.tv presentation from WordCamp Yokohama. It’s a Japanese site (with English translation), http://loftwork.com, which only used BuddyPress components like Blog Tracking, Activity Streams, Private Messaging and Extended Profiles. Didn’t use Friends, Groups and Forums.
–December 19, 2010 at 3:53 am #100924In reply to: Problem Installing buddypress…
@mercimeParticipantRename the buddypress folder in wp-plugins via FTP or cPanel to deactivate BuddyPress.
The correct translation in WP lingo is “You do not have sufficient permissions to access this page.” And while this was triggered by activating BuddyPress, it starts with your WordPress installation.
There are plenty of threads in WP.org forums and Google search with different solutions to get back your Admin/Super Admin privilege in the installation. Good luck.
December 14, 2010 at 10:44 am #100448saltierMemberOk I didn’t manage to get the Dutch translation working but after a lot of trial and error I did manage to make a custom translation follwing these instructions step by step
https://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/November 3, 2010 at 8:00 pm #97364In reply to: How to show code in forum posts?
danbpfrParticipantI’m using a standard BP theme as child theme , and only for translation purpose.
As you can compare with what is on pastebin, some code is wrong, also here on bp.orgthe return contains $text between backstick, but they are converted to < code >
November 3, 2010 at 7:56 pm #97363In reply to: How to show code in forum posts?
danbpfrParticipanti give a try here, using backticks
`
function bporg_decodeit( $matches ) {
$text = $matches[2];
$trans_table = array_flip(get_html_translation_table(HTML_ENTITIES));
$text = strtr($text, $trans_table);
$text = str_replace(‘
‘, ”, $text);
$text = str_replace(‘‘, ”, $text);
$text = str_replace(‘‘, ”, $text);
$text = str_replace(array(‘&’,’&’), ‘&’, $text);
$text = str_replace(”’, “‘”, $text);
if ( ‘' == $matches[1] )
$text = "n$textn";
return "`$text`";
}
`
on my forum it is showing this
http://bp-fr.net/groups/groupe-de-tests/forum/topic/another-test/November 2, 2010 at 5:42 pm #97252Paul Wong-GibbsKeymasterIt’s best to ask someone more used to the translations format; I’ve not heard about this issue before. What about trying the wp-polyglots mailing list?
October 31, 2010 at 1:09 pm #97056In reply to: How to show code in forum posts?
Boone GorgesKeymasterHere’s the code that does it on buddypress.org. It’s basically repurposed from bbPress.
I had to replace the actual backtick with the phrase `[backtick]` so that it would render properly on this forum. Make sure to correct that in your version.
`// Borrowed from bbPress
function bporg_encodeit( $matches ) {
$text = trim($matches[2]);
$text = htmlspecialchars($text, ENT_QUOTES);
$text = str_replace(array(“rn”, “r”), “n”, $text);
$text = preg_replace(“|nnn+|”, “nn”, $text);
$text = str_replace(‘&’, ‘&’, $text);
$text = str_replace(‘<', '<', $text);
$text = str_replace(‘>’, ‘>’, $text);
$text = “$text
“;
if ( “[backtick]” != $matches[1] )
$text = “$text
“;
return $text;
}// Borrowed from bbPress
function bporg_decodeit( $matches ) {
$text = $matches[2];
$trans_table = array_flip(get_html_translation_table(HTML_ENTITIES));
$text = strtr($text, $trans_table);
$text = str_replace(‘
‘, ”, $text);
$text = str_replace(‘‘, ”, $text);
$text = str_replace(‘‘, ”, $text);
$text = str_replace(array(‘&’,’&’), ‘&’, $text);
$text = str_replace(”’, “‘”, $text);
if ( ‘' == $matches[1] )
$text = "n$textn";
return "`$text`";
}
// Borrowed from bbPress. Makes code in backticks work, both in forum posts and in activity updates.
function bporg_code_trick( $text ) {
$text = str_replace(array("rn", "r"), "n", $text);
$text = preg_replace_callback("|(`)(.*?)`|", 'bporg_encodeit', $text);
$text = preg_replace_callback("!(^|n)`(.*?)`!s", 'bporg_encodeit', $text);
return $text;
}
add_filter( 'bp_get_the_topic_post_content', 'bporg_code_trick', 1 );
add_filter( 'bp_get_activity_content_body', 'bporg_code_trick', 1 );`October 26, 2010 at 9:22 am #96525In reply to: 1.2.6 Upgrade – Lost translation
danbpfrParticipantThe pomo files you used were corrupted – po was not unicode compliant so the compiled mo file gives a wrong output.
The solution was to replace these files.
I found them here:
https://i18n.trac.buddypress.org/browser/pl_PL/tags/1.2.6October 26, 2010 at 9:21 am #96526In reply to: 1.2.6 Upgrade – Lost translation
MarkParticipantJust wanted to say +10000000 to @Chouf1 who went above and beyond any level of help to get this fixed.
October 25, 2010 at 12:47 pm #96431In reply to: 1.2.6 Upgrade – Lost translation
MarkParticipantYeah, so now I’m confused as to why the translation isnt working. Sooo frustrating!
October 25, 2010 at 12:47 pm #96430In reply to: 1.2.6 Upgrade – Lost translation
danbpfrParticipantThis buggy message is annoying (a synchronizing delay between WP update service and your site), but not important.
At the place where this message appears, you have option button who says “hide this option ?”.
You can use it, or if the button does not appear, wait a few hours or can add this at the end of the file wp-includes/version.php
$wp_local_package = ‘pl_PL’; (will be lost at the next WP update)October 25, 2010 at 12:38 pm #96428In reply to: 1.2.6 Upgrade – Lost translation
danbpfrParticipantI have had the same text “WordPress 3.0.1 is available! Please update now.” appearing on the admin page. Should be a bug, but don’t be affraid of it, your site is updated. View the version number of WP at the bottom right of your admin interface.
October 25, 2010 at 11:47 am #96424In reply to: 1.2.6 Upgrade – Lost translation
MarkParticipantwhat should the access code be on these files? Do they need read/write status?
October 25, 2010 at 11:43 am #96422In reply to: 1.2.6 Upgrade – Lost translation
MarkParticipantI dont know if its related but I am on bp 3.0.1 and I still get the error WordPress 3.0.1 is available! Please update now.
October 25, 2010 at 10:30 am #96419In reply to: 1.2.6 Upgrade – Lost translation
MarkParticipantI just reuploaded both sets and now neither is translated, very odd.
October 25, 2010 at 10:21 am #96417In reply to: 1.2.6 Upgrade – Lost translation
danbpfrParticipantpl-PL.po is a translation for the WP part – PAth: wp-content/languages
buddypress-pl_PL.po is the BP translation. – Path: wp-content/plugins/buddypress/bp-languagesif you put pl_PL.po in the bp-languages folder, neither WP or BP are translated.
October 25, 2010 at 10:13 am #96415In reply to: 1.2.6 Upgrade – Lost translation
MarkParticipantHey @waclawjacek.
If the bp translation is in place I have no option to change language. If both are in place I can change language and wp is translated bp is not.
I have wplang etc in place.
Do you upload the bp files as pl_PL.po or buddypress_pl_PL.po etc?
Thanks a lot.
October 24, 2010 at 2:10 pm #96309In reply to: 1.2.6 Upgrade – Lost translation
Waclaw JacekParticipantDear Mark!
I have just installed BuddyPress 1.2.6 along with WordPress 3.0.1, installed translations for both and put `define (‘WPLANG’, ‘pl_PL’);` inside wp-config.php. Everything seems to work fine, even if only the BuddyPress translation is in place.
-
AuthorSearch Results