• Devi18n
  • Simplify translation process with Weblate

Medelinor The first question: After entering the translations in the “Weblate”, what is required of me after that in order for the translation to be applied?

It takes about 1 hour to export translations from Weblate to language pack. But you may need to use composer require "flarum-lang/arabic:dev-master" command to install it (by default Composer installs only tagged versions, which probably will not contain your new changes).

Medelinor The second question: I want, for example, to insert translations for my own forum (which contain phrases that may not apply to other Flarum forums), is there a possibility for that?

You may take a look at this blog post: https://rob006.net/en/blog/how-to-change-or-add-missing-translations-for-flarum/

    rob006 you may need to use composer require "flarum-lang/arabic:dev-master".

    This was a really helpful answer. Thank you.

    I may not be very experienced in managing the forum, can you give me a hint or instructions on how I can use composer require "flarum-lang/arabic:dev-master"?

    Thanks in advance

      Medelinor I'm assuming you installed this language pack by executing composer require flarum-lang/arabic in console command through ssh. So you need to execute the new one in exactly the same way.

        rob006 I will research more on the topic, and follow your instructions.

        Once again Thank you

        Medelinor The second question: I want, for example, to insert translations for my own forum (which contain phrases that may not apply to other Flarum forums), is there a possibility for that?

        You can continue using Linguist for your site-specific translations. If you find any issue with Linguist, please report them in the Linguist discussion. It's supposed to work with all extensions as long as they use the official Flarum API to register their translations.

          clarkwinkelmann Hello
          Thank you very much.

          Indeed, I think there is a problem with the tool, because it does not show me all the installed extensions on the forum.

          I will share this in theLinguist discussion extension as you advised me.

          Thank you very much once again

          17 days later

          Hello

          I have translated many extensions and admin module in the forum using this tool.
          Now, I've downloaded those translations and want to contribute them to all Flarum users who use that language.

          Is there a way to send these files?

            Medelinor Do you have these files uploaded somewhere (like GitHub repo)? Regular users do not have permissions to upload files directly, but I have a script to import translations to Weblate, I could try to use it on your translations.

              Hello rob006 and thanks for your response
              I don't think I have the authority to do that.

              How do I get permission to do this or how can I send you files so you can add them? please
              Thank you very much

                23 days later

                Hey @rob006, being able to do the releases with the bot is really cool, very grateful with that, I wanted to ask you if it's possible to change the versioning for the spanish package (not sure if I can do it myself somehow), so they become normally minor versions instead of 1.5.0 ->1.4.1, is that possible?

                  Darkle What do you mean by "normally minor versions"? 1.5.0 is a minor release according to semver.

                  If you want to release 1.4.1 by flarum-lang/spanish14, what should trigger release of 1.5.0?

                    rob006 Ah I understand, actually it was just the habit until now, for new translations and string updates we used x.x.1 and so on, the switch to x.1.x was done when there was something breaking, like with flarum stable, Webpack 5 or some JS problem with the registry change.

                    But ok, I think it's good that we're sticking to the semver guidelines then.

                    2 months later

                    I updated Weblate to latest (4.15.2) version. Detailed list of changes can be found in changelog.

                    4 days later
                    3 months later

                    I'm updating Weblate to latest version. It could take a while and service will not be available until it is done.

                      3 months later

                      I updated Weblate to the latest (4.18.2) version. Detailed list of changes can be found in changelog, but I would like to highlight the addition of the dark mode:

                      🥳