WordPress.org

Ready to get started?Download WordPress

Forums

Transposh WordPress Translation
[Plugin: Transposh - translation filter for wordpress] Transposh + Buddypress (24 posts)

  1. James
    Member
    Posted 3 years ago #

    Hi,
    first of all, great plugin!!

    unfortunately, latest version still is not perfect for BuddyPress, because of many positions (like menus/submenus of admin bar, activities, buttons etc.) still are not translated, or are translated, but result isn't displayed.

    maybe there is a way of how to translate separate parts of BuddyPress without waiting of updated release of the plugin, I mean myself?

    thank you.

    http://wordpress.org/extend/plugins/transposh-translation-filter-for-wordpress/

  2. Ofer Wald
    Member
    Plugin Author

    Posted 3 years ago #

    Nothing is perfect,

    Anyhow - you can do anything you want with the code, its gpl, so just post your changes back

  3. deepbevel
    Member
    Posted 3 years ago #

    Everything translates in my BuddyPress install, Admin bar, all menus and links, -everything. Unfortunately user-comments can only be deleted when the site is in English. Also, because BuddyPress shows no side bar in single comment view, there's no Transposh widget available, and so no translation. Wondering if their is a template tag that might be used in single comment view? I suppose I can live without the comment delete, just tell users to revert to English to delete comments, provided they can tell which comment they are deleting!

  4. James
    Member
    Posted 3 years ago #

    yes, have to say that new version 0.7.0 has improved support of .po/.mo files of BuddyPress.
    still can point on one issue - loading of .po/.mo of plugins.

    Ofer Wald, could you please explain how transposh loads these files, because at the moment I have few plugins with all the necessary files for translation, but transposh uses .po/.mo of default language for all others?
    have mentioned before that transposh does not edit words in BP tabs, that's why, this is the place, where incorrect loading + non translated words are met.

    any suggestion of how translation files of plugin should be structered is highly appreciated.

    thanks.

  5. James
    Member
    Posted 3 years ago #

    as I understand, standard line load_plugin_textdomain('textdomain','/wp-content/plugins/name/languages/'); here doesn't work?

  6. James
    Member
    Posted 3 years ago #

    ok, I can explain what happends with some plugins in BP. as example I took plugin 'buddypress followers' (originally it is not translated). On my site I have 3 languages (localhost, can not show live). When I add two localizations (plugin's) of non default (site) language, transposh works fine and switches languages easily. When I add third language (default in transposh settings), transposh sticks to this localization and uses for remaining two.

    question is how can it be that some plugins works excellent, but some only with default language?

    thank you.

  7. James
    Member
    Posted 3 years ago #

    you definitely have some mistakes setting default language.

  8. James
    Member
    Posted 3 years ago #

    sorry, as always all works just excellent, my bad!!

  9. Ofer Wald
    Member
    Plugin Author

    Posted 3 years ago #

    @deepbevel
    $GLOBALS['my_transposh_plugin']->widget->transposh_widget()
    or simply
    transposh_widget()

    are the functions you can add to your template

    @James - please open any bug regarding third party plugins that we don't support at http://trac.transposh.org and we'll be able to examine them more thoroughly, from your current posts I was unable to determine the exact problems. But am glad to receive feedback ;)

  10. deepbevel
    Member
    Posted 3 years ago #

    I added a transposh widget tag to the footer in BuddyPress so The single comment view (with no sidebar for the widget) would translate, but it still jumps back to default language, although it can at least be switched back since the widget is available.
    I suppose it could be that it won't work in the footer? I spent 2 hrs. trying to get it to work in every other place I could think of, it either wouldn't fit or just wouldn't show up.

  11. Ofer Wald
    Member
    Plugin Author

    Posted 3 years ago #

    Hello There,

    The language switch normally happens on post, where Transposh can't figure out the language, I will be able to fix that if you send me some URLs, and preferably open a ticket on the trac

    Good luck

  12. James
    Member
    Posted 3 years ago #

    hi @deepbevel

    have you opened a ticket?
    I noticed that language switch happends when you follow from sitewide activities/view to single activity view.
    I have language flags in header, so it is easy to switch it back, but users definitely will be mad at me :( , as it happends every time someone goes to single view.

    maybe you already have some solution?

  13. Ofer Wald
    Member
    Plugin Author

    Posted 3 years ago #

    Didn't see a ticket yet

    In the ticket, please specify the work flow, where to go exactly and what to press, expected result and what is really happening

  14. Ofer Wald
    Member
    Plugin Author

    Posted 3 years ago #

    Hello,

    The single activity page switching to the default language has been solved in the svn (http://trac.transposh.org) if anyone wants to test a pre release version, just contact us via the contact form on transposh.org

    thanks for the ticket

  15. deepbevel
    Member
    Posted 3 years ago #

    I don't seem to have the option to remove the "edit translation" check box anymore. Is there still a way to remove it?

  16. Ofer Wald
    Member
    Plugin Author

    Posted 2 years ago #

    @deepbevel, I guess you are logged in, this check box only appear to those who can edit, you can always remove it from the source code

  17. deepbevel
    Member
    Posted 2 years ago #

    ahh, thanks, I thought there was an option to disable or not, obviously mistaken.

  18. James
    Member
    Posted 2 years ago #

    @deepbevel ,
    could you please take a look on my new ticket and tell whether you have this issue too, or it is problem with my instal?

    http://trac.transposh.org/ticket/160

    thank you!

    Edit: ok, I see you use automatic translation and do not have enought of activities, probably, you won't be able to check it.

  19. deepbevel
    Member
    Posted 2 years ago #

    @James, I'll check what I can, I would need you to describe the issue again, I don't think I understand.

  20. James
    Member
    Posted 2 years ago #

    in transposh backend switch off automatic translation, leave only .po/.mo loading, go to any BP page with load more button (in activities) in non default language of transposh. Press load more and check what language will be used for all the activities after load more button. In my case "load more" button loads activities in default language, however, page is set to non default.

    thanks.

  21. deepbevel
    Member
    Posted 2 years ago #

    You're right, I don't have enough entries to load more. However I discovered that when I use the filter or click the activity menu tabs it shows no entries at all. I have to reselect the language, then the entries show again. This is only the case with the non-default languages.
    I tried it with the auto translate disabled and enabled, and with the languages selected as default.

  22. James
    Member
    Posted 2 years ago #

    yeah, did not notice this issue, it is even worse. looks like there is some js, or ajax or ... issue.
    for me menu tabs do show entries, but in default language (however, page is in non default), same as all the filters. If I go to groups directory and press "Join Group", next button ("Leave Group") will be loaded in default lang again. I think it will happen with all the ajax, or JS, or how they call this loading, in all other places of BP.

  23. Ofer Wald
    Member
    Plugin Author

    Posted 2 years ago #

    Will attempt to get to this asap, can you both add some urls to the trac ticket so I can have a look at exactly what is going on?

    thanks

  24. James
    Member
    Posted 2 years ago #

    @deepbevel, at the moment have only local www, maybe you could create some test account at your travelblog and send details to Ofer Wald using contact form at transposh.org (tried to create this account myself, but activation email from your blog does not reach me)?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic