Plugin: BuddyPress ScholarPress Courseware

Join this plugin group to follow comments, support topics and reviews.

Translations (31 posts)

Started 1 year, 9 months ago by: callevirtual

  • Profile picture of callevirtual callevirtual said 1 year, 9 months ago:

    First my congratulations for this plugin which will undoubtedly contribute much to the educational community.

    I am very interested in testing and implementing this plugin, but I wanted some file. Po or. Mo to carry out its translation into Spanish and have not found it.

    Would you please to tell me how could translate the plugin into Spanish?

    thanks in advance for your work

  • Profile picture of Stas Sușcov Stas Suscov said 1 year, 9 months ago:

    I’ll publish the po files for translation.
    Maybe we can even get a GlotPress for translations.

    Added http://github.com/scholarpress/buddypress-courseware/issues#issue/6

    Thanks.

  • Profile picture of Stas Sușcov Stas Suscov said 1 year, 8 months ago:

    I will add a pot file along with version 0.1.2 which will come up these days.

  • Profile picture of Stas Sușcov Stas Suscov said 1 year, 8 months ago:

    You can get the latest translations along with the template file for translations from here:

    http://svn.wp-plugins.org/buddypress-courseware/trunk/i18n/

    Thanks.

  • Profile picture of John Gøtze John Gøtze said 1 year, 8 months ago:

    I will make and share a Danish translation, but am new to translations and just learning about po and mo and stuff, and getting a bit confused …
    Does my translation fo here:
    /wp-content/plugins/buddypress-courseware/i18n/buddypress-courseware-da_DK.po
    or somewhere in BP or WP?

    Also, can you please explain this:
    #: groups/templates/_no_course_group_header.php:3
    msgid “You can manage this group Courseware.”
    ? not sure what it means, and where it’s used.

  • Profile picture of Stas Sușcov Stas Suscov said 1 year, 8 months ago:

    @gotze, it’s a notification a teacher sees is he can manage the group Courseware.
    And yes, the location of the file is correct, except you will need the .mo file instead of .po to make it work.

    Thanks for translating.

  • Profile picture of John Gøtze John Gøtze said 1 year, 8 months ago:

    I will complete the translation soon. Still not sure how the mo and po files work.
    I downloaded poedit, and opening your .pot and saving it as a po file gives “found 2 fata erros”, but saves it and creates a mo file too.
    To test my translation, I upload both in the /wp-content/plugins/buddypress-courseware/i18n/
    Nothing happens, it seems.
    Do I need to ‘tell’ courseware to change language?

  • Profile picture of Stas Sușcov Stas Suscov said 1 year, 8 months ago:

    Yes, in wp-config.php you will need to define the language.
    Check the codex:

    http://codex.wordpress.org/Installing_WordPress_in_Your_Language

    The pot file after download, has to be updated with your locale settings, like plurals expression and other stuff. This causes the errors, though it should work anyway.

  • Profile picture of John Gøtze John Gøtze said 1 year, 8 months ago:

    Oh, I have WP+BP running in Danish, and have changed the wp-config already.

    So, I’ve changed
    “Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;n”
    to
    “Plural-Forms: nplurals=2; plural=n != 1;n”
    (as the wp-da_DK uses)

    That doesn’t seem to have helped :-(
    Files are here:

    http://itue.dk/wp-content/plugins/buddypress-courseware/i18n/buddypress-courseware-da_DK.po

    http://itue.dk/wp-content/plugins/buddypress-courseware/i18n/buddypress-courseware-da_DK.mo

    Any suggestions?
    (I have not translated everything yet, so this is only for testing)

  • Profile picture of Stas Sușcov Stas Suscov said 1 year, 8 months ago:

    I can see the errors gone now.

    About translations, there was a bug: I forgot to update the path to translations, the constant was obsolete.
    Here’s the modifications I did in courseware.php

    http://github.com/scholarpress/buddypress-courseware/commit/b8c91cd2c0c91c42db194928118742172658a890

    Also, rename the translation file into bpsp-da_DK.po/.mo, I used this textdomain because it was shorter, and it’s much cleaner to read the code.

    Thanks for helping squash this bug.

  • Profile picture of Stas Sușcov Stas Suscov said 1 year, 8 months ago:

    One thing about localizations, AN IMPORTANT ONE!
    If you will install Courseware in one language, and then switch the languages, the roles might not work.
    The issue might be caused by Profile Fields, that can’t be localized, so we need to use them in one language at a time.

    This is not tested 100%, by it’s good to know in case you stumble upon.

  • Profile picture of John Gøtze John Gøtze said 1 year, 8 months ago:

    Good job. I changed courseware.php and the file names, and now the translation works.
    Uhm, where do I see if there are role problems?
    (so should I avoid translating “Student” and “Teacher”, or how does it work?)
    Thanks.

  • Profile picture of Stas Sușcov Stas Suscov said 1 year, 8 months ago:

    No, you can translate them, I’m not sure yet 100% that it is an issue, just wanted to warn people.
    If you find a problem with it, please report.
    Thanks.

  • Profile picture of Oliver Fuhrmann Oliver Fuhrmann said 1 year, 7 months ago:

    got it working now with the german translation…

    but why is ths .pot file now in /languages but the actual translations are still seasrched in /i18n ? that’s a bit confusing…

    how do i fix this “2 Fatal Errors” Problem mentioned above? you say I should change the plural-forms, but where? in the .po file?

  • Profile picture of Oliver Fuhrmann Oliver Fuhrmann said 1 year, 7 months ago:

    fixed it…