Skip to content

Add translations for other languages #15

Closed

Description

@justinclift

Although this one could be a bit of a pain to initially implement, it would be useful to have the UI text strings be internationalised.

This way we can enable translations of the UI to other languages.

Getting the UI translated would rely on something like Ubuntu Launchpad, Transifex, or whatever else is suitable.

We're already "kind of" in Launchpad already, so we may be able to leverage that for translations:

Activity

  1. rp- commented on May 24, 2014

    @rp-
    Contributor

    As we are consistently use tr() in our code (at least I think so) it shouldn't be to hard to do translation.
    Actually that was one of my next "feature" ideas

  2. piacentini commented on May 24, 2014

    @piacentini

    The tool of choice to translate pure Qt applications (like sqlitebrowser) is Qt Linguist. As Rene said, the code is mostly ready for it, as it uses tr() to display strings. If possible I would like to stay away from Launchpad, as it is too specific to Ubuntu/Canonical. We had a lot of problems in the past in KDE, with Launchpad translations taking precedence over upstream ones in some cases.

  3. MKleusberg commented on May 24, 2014

    @MKleusberg
    Member

    As Rene and Mauricio already said, the application is basically ready for translations. I just fixed a minor bug in the code that loads the translation files (see commits 51be349 and dac1ed1). It now tries to load a translation according to the current locale settings of the user which I think is enough for now (and what the average user is expecting anyway).

    The actual translation work is done by using lupdate to create a ts file which is then opened and edited in Qt Linguist. As a last step it needs to be converted to a qm file using qrelease. If this qm file is called something like 'tr_{locale}.qm' and is placed in the translations directory it'll be used automatically. I just started this process for a German translation but probably won't finish it (soon), this really is a lot of work 😒

  4. justinclift commented on May 24, 2014

    @justinclift
    MemberAuthor

    Cool, not one of my crap ideas then. 😃

  5. VanDerSam commented on Jul 16, 2014

    @VanDerSam
    Contributor

    In issue #57 I made translation to Russian.

  6. justinclift commented on Jul 16, 2014

    @justinclift
    MemberAuthor

    Thanks @VanDerSam, that's awesome. 😄

  7. justinclift commented on Sep 22, 2014

    @justinclift
    MemberAuthor

    Closing this, as translations are up and running (just need more of them).

    Btw @VanDerSam is the Russian translation still completely in sync with all of our text strings? The project rename might mean some adjustment is needed. Unsure. 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions