Skip to content

Translation of regions #14822

Open
Open

Description

@Valdnet

In Transifex there are no names of regions to be translated for the Nextcloud settings.

obraz

It can do as with the choice of language, for example.: __region_name__.

Activity

  1. MorrisJobke commented on Mar 25, 2019

    @MorrisJobke
    Member

    Makes sense 👍

  2. added
    papercutAnnoying recurring UX issue with possibly simple fix.
    on Mar 25, 2019
  3. self-assigned this
    on Mar 25, 2019
  4. added this to the Nextcloud 16 milestone on Mar 25, 2019
  5. MorrisJobke commented on Mar 25, 2019

    @MorrisJobke
    Member

    This is all defined in the file resources/locales.json:

    https://github.com/nextcloud/server/blob/8c73b13ac870b0a6b75b701f4f52463c198421a5/resources/locales.json

    @nickvergessen @rullzer @ChristophWurst: Do you have a clever way to translate this?

  6. MorrisJobke commented on Mar 25, 2019

    @MorrisJobke
    Member

    I would just add a new attribute localizedName and then put in there the name in the related language.

  7. MorrisJobke commented on Mar 25, 2019

    @MorrisJobke
    Member

    But even better would be if it would be depending on the currently selected language. Maybe I can somehow extract the name there and then put it into the lib translation files.

  8. Valdnet commented on Mar 25, 2019

    @Valdnet
    ContributorAuthor

    @MorrisJobke why is it twice Polish? The Polish language has no dialects.

    { "code":"pl_PL", "name":"Polish (Poland)"},
    { "code":"pl", "name":"Polish"},
    
  9. MorrisJobke commented on Mar 25, 2019

    @MorrisJobke
    Member

    It's how locale works I guess. There are just per language and then per language and per country. I would keep that for now and open a separate ticket for this duplicate entry.

  10. removed their assignment
    on Mar 26, 2019
  11. Valdnet commented on Feb 6, 2021

    @Valdnet
    ContributorAuthor

    @MorrisJobke In NC version 20.0.6 there are still no translated region.

    obraz

  12. reopened this on Feb 6, 2021
  13. 1 remaining item

  14. added
    1. to developAccepted and waiting to be taken care of
    and removed
    0. Needs triagePending check for reproducibility or if it fits our roadmap
    papercutAnnoying recurring UX issue with possibly simple fix.
    on Jun 23, 2021
  15. removed this from the Nextcloud 16 milestone on Jun 23, 2021
  16. Valdnet commented on Aug 28, 2021

    @Valdnet
    ContributorAuthor

    @MorrisJobke @nickvergessen Until now, there are no translated regions in Nextcloud 22.1.1. I looked at the translations in Transifex and there are also no text strings to translate about the names of the regions in this file "locales.json".

  17. Valdnet commented on Aug 29, 2021

    @Valdnet
    ContributorAuthor

    Translated text strings of region names from the file "locales.json" should be in the l10n directory for "settings".

    Here are the translated names of the regions:

    obraz

    @MorrisJobke @rakekniven How do I get region name text strings in Transifex for "settings-1"?

    He can put the locales.php file in the settings/lib/locales directory with the contents of the text strings with the region names to be scanned by nextcloud-bot and added to Transifex.

    An example of the locales.php file:

    <?php
    p($l->t('Afrikaans'));
    p($l->t('Afrikaans (Namibia)'));
    p($l->t('Afrikaans (South Africa)'));
    p($l->t('Aghem'));
    //...
    ?>
    
  18. nickvergessen commented on Aug 30, 2021

    @nickvergessen
    Member

    Morris is not here anymore.

    The problem is it might overload translators a lot if they have to do it to finish the settings.
    Maybe instead we can put it into a new l10n dir "regions" or something a like

  19. Salvador1313 commented on Aug 30, 2021

    @Salvador1313
  20. Valdnet commented on Aug 30, 2021

    @Valdnet
    ContributorAuthor

    Morris is not here anymore.

    I did not know 😮.
    Who has taken over his duties now?

    Maybe instead we can put it into a new l10n dir "regions" or something a like

    A very good thought 😉.

  21. Valdnet commented on Aug 30, 2021

    @Valdnet
    ContributorAuthor

    I can prepare region name text strings in a php file because it takes some time and developers have other more important things to do. I just need help changing the code in the personal.info.php file to reference the new l10n location.

  22. nickvergessen commented on Aug 30, 2021

    @nickvergessen
    Member

    Isn't this ticket about regions and not locales?

  23. Valdnet commented on Aug 30, 2021

    @Valdnet
    ContributorAuthor

    Isn't this ticket about regions and not locales?

    Hmmm. It concerns supposedly regions. This is what the setting option is called, but the settings are more suited to the localization settings.

    In general, text strings are taken from the locales.json. However, in commit #14853 the code has been changed, where names should be changed to a given language. Only the translated text strings in l10n are missing.

  24. Valdnet commented on Nov 6, 2021

    @Valdnet
    ContributorAuthor

    The Issue somehow stood still.
    I can still do the translation, I just need help changing the code in the personal.info.php file to reference the new l10n location.

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions