Skip to content

Introducing i18n.freshrss.org #648

Closed

Description

@marienfressinaud

To @Alkarex and @aledeg

I have created a new website this afternoon : http://i18n.freshrss.org
Code is available at https://github.com/marienfressinaud/i18n.freshrss.org

Objective is to facilitate translations. It's a first draft : there are surely missing features and it may doesn't work as expected (and it's not secured!).

For the moment, I have to add translation keys in list_keys.txt and they appear then to be translated on the website. By clicking on "Save", file is saved in ./i18n_files/.

Later I will try to connect the application to the FreshRSS repository in order to do something like git grep '_t' (note I have to take care to Minz_Translate too) and parse the result to find automatically translation keys.

I didn't separate installation file from main one, but with this system I hope it will be possible to group translation keys easily…

What do you think about that? I see with Werner (who give a hand for the German file) if it's good for him.

Activity

  1. added this to the 0.10-dev milestone on Oct 1, 2014
  2. aledeg commented on Oct 1, 2014

    @aledeg
    Member

    👍
    I think it could be useful to have a percentage of translation next to the language and something to visualize which translation is missing

  3. aledeg commented on Oct 1, 2014

    @aledeg
    Member

    I don't know if it is the proper place to talk about that, but changing strings for something carrying more meaning could be nice. For instance having something like:

    array(
    'configuration' => array(
        'reading' => array(
            'sort_order' => 'Sort order',
            'default_view' => 'Default view'
        ),
        'display' = array(
            'language' => 'Language'
        )
    ))

    Then the _t function should handle translation in the following way:

    echo _t('configuration.reading.sort_order')

    Then it would be easier to split files.

  4. marienfressinaud commented on Oct 1, 2014

    @marienfressinaud
    MemberAuthor

    Sounds nice! But it means we will have to rewrite strings ^^ And what about strings common to several places? Should we duplicate the string or using a generic key?

    echo _t('index.formLogin.password');
    echo _t('index.resetAuth.password');

    or

    echo _t('password');

    ?

    I like the first since we can attribute a translation file to a specific view. But it can lead to unexpected problems (e.g. what about layout and helpers?)

  5. aledeg commented on Oct 1, 2014

    @aledeg
    Member

    It was not meant to be specific to a view but more to a feature. I took the configuration example because it is easy to understand.
    For generic key, password for example, we can use something like general.password

  6. marienfressinaud commented on Oct 1, 2014

    @marienfressinaud
    MemberAuthor

    It was not meant to be specific to a view but more to a feature.

    Yes sure! But I found it useful to group strings :)

    I have updated the application with your suggestions ;)

  7. aledeg commented on Oct 1, 2014

    @aledeg
    Member

    Nice

  8. Alkarex commented on Oct 1, 2014

    @Alkarex
    Member

    Super 👍

  9. marienfressinaud commented on Oct 6, 2014

    @marienfressinaud
    MemberAuthor

    Last commit update i18n/* files with those from i18n.freshrss.org. Please don't change these files directly but use the website instead.

  10. aledeg commented on Oct 6, 2014

    @aledeg
    Member

    Aren't you worried that someone might break the translations?

  11. marienfressinaud commented on Oct 6, 2014

    @marienfressinaud
    MemberAuthor

    There are backup at each saving :)

  12. 3 remaining items

  13. marienfressinaud commented on Dec 3, 2014

    @marienfressinaud
    MemberAuthor

    Based on our experience, I think i18n.freshrss.org is more problematic than the previous process. I think we all prefer to update i18n files directly in the FRSS repository instead of using another website. I suggest we abandon this method and use back the "in-repertory process".

    What do you think?

  14. aledeg commented on Dec 3, 2014

    @aledeg
    Member

    I think it is easier to go the old way. To ease contributions, we might need to develop some tools though

  15. marienfressinaud commented on Dec 3, 2014

    @marienfressinaud
    MemberAuthor

    Indeed. I think I will keep the subdomain to give some advice to contribute. It will explain how to suggest a new language and I want to keep the percentage of translations done for each language.

  16. aledeg commented on Dec 3, 2014

    @aledeg
    Member

    Sounds good

  17. removed this from the 0.10-dev milestone on Dec 9, 2014
  18. marienfressinaud commented on Dec 11, 2014

    @marienfressinaud
    MemberAuthor

    The last i18n task will be to document the translation process.

  19. ealdraed commented on Jan 20, 2015

    @ealdraed
    Contributor

    Hello,

    I used http://i18n.freshrss.org to rework and finish the German translation of FreshRSS.

    I know there is some work going on with the i18n, so maybe @marienfressinaud can easily transfer the translated strings to the new multi-file i18n. That would allow to take a look at the translation in action.

    I also notiecd some inconsistency in the English (and possibly French) languages with sentences sometimes ending with a period and sometimes not.

  20. marienfressinaud commented on Jan 21, 2015

    @marienfressinaud
    MemberAuthor

    Hi,

    first, thanks a lot for your contribution! Unfortunately, problem is not only transferring your translated strings into the new files (that could be easy) but there are new strings, some sentences have been improved or entirely rewritten :s. If you want, I can have a look to help you in order to transfer strings. It could be really great to have a German translation of FRSS for the version 1.0 :).

    And it's my fault, I should shut-down the ability to translate on i18n.freshrss.org or, at least, add a word on the website to explain how to contribute.

  21. sjeon87 commented on Jun 9, 2017

    @sjeon87
    Contributor

    Is there any guide to reproduce a certain situation showing a certain message? Or should I find _t symbol through all files?

    I am working on Korean, but a bit hard to find that which message appears when and which condition is triggered.

  22. marienfressinaud commented on Jun 10, 2017

    @marienfressinaud
    MemberAuthor

    @gsongsong I'm sorry but there is no such method to find locations of messages :( (unless someone has an idea…). However, I see that you finally managed to translate FRSS in Korean so thanks a lot! :) (I'll have a look to your PR later or let @Alkarex take the lead).

    Btw, I close this ticket since i18n.freshrss.org is dead since a long time and there is no plan to set it up back.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions