Skip to content

Provide translations for contrib projects #41

Open

Description

@olafgrabienski

Currently Backdrop-specific translations are only available for core. Let's also provide translations for modules and other contrib projects.

Activity

  1. olafgrabienski commented on Nov 4, 2020

    @olafgrabienski
    Author

    IIRC, it's not difficult to setup additional projects on the translation server. Will have a look at it when I find time, starting with one of the popular modules (e.g. Backup and Migrate, or Webform).

  2. alanmels commented on Jan 23, 2021

    @alanmels

    I second this idea as we have started translation of number of contrib modules into Russian and would like to share with the community as we progress further.

  3. olafgrabienski commented on Jan 24, 2021

    @olafgrabienski
    Author

    Great! Let me know when you're ready to share some module translations.

  4. olafgrabienski commented on Feb 23, 2022

    @olafgrabienski
    Author

    Chatting about contrib translations recently, I noticed the following challenge which I wasn't aware of before: While it is quite easy to add contrib projects to the translation server, we don't have a good way to add English language source files to their releases. I do that manually for Backdrop core minor releases, but won't be able to do it for more projects and releases.

    So, I raised some questions for the Dev meeting on February 10th, 2022:

    Below a link to the meeting's video, starting where the topic was discussed.

    https://www.youtube.com/watch?v=EysmdI3XIlQ&t=190s

  5. robertgarrigos commented on Jul 4, 2023

    @robertgarrigos

    I'm also really interested in this. Any news?

  6. olafgrabienski commented on Jul 4, 2023

    @olafgrabienski
    Author

    Yes, there are some news! @argiepiano, who did the main work for the translation server upgrade to Backdrop, wrote to me at that time:

    I noticed (in the current localize site) that you have only enabled the Gettext connector, and imported existing PO files to create the database of translatable strings. That part works well in the ported module.

    It's also possible to enable the "Backdrop packages from the file system" connector. The way this one works: it can scan tar.gz files for instances of t() and format_plural() and automatically create the database of translatable strings.

    This is something we can try in the future, rather than importing already-made PO files. This is particularly useful for contrib modules, to create other projects beyond backdrop core.

    This sounds really promising! I'll have a look at the "Backdrop packages from the file system" connector when I find time (and if nobody beats me to it).

  7. robertgarrigos commented on Jul 4, 2023

    @robertgarrigos

    I actually tried locally this feature of reading packages from the file system and it works fine.

    Explore_projects___Localize_Barckdrop_Cat
    Translate_references_dialog_to_Catalan___Localize_Barckdrop_Cat

  8. argiepiano commented on Jul 5, 2023

    @argiepiano
    Contributor

    As @robertgarrigos pointed out it's possible to use that local file connector to translate contrib placed in specific folders in the file system. However, even more useful, would be to get the connector "Localization server for Drupal (REST API)" working in the Backdrop version of the module. Right now that connector can't be enabled.

    The main issue in porting that connector is that Drupal provides a TSV file (tab separated text file) with all its contrib module latest releases - you can actually download that with your browser at https://www.drupal.org/files/releases.tsv

    Currently, Backdrop does not provide such a file. It would actually be easy to provide it, but we'd need to help of someone with admin access to backdropcms.org. In a nutshell, it would involve creating a Views that has a Views Export with those 4 needed columns. Then we can work on porting that submodule with the connector. By doing so we'd avoid having to manually put the zip files in a folder - the Localization server connector would take care of downloading that directly.

    Perhaps @jenlampton or @bugfolder can help (I think they both have admin access to backdropcms.org)

  9. added theissue type on Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions