Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I18N for File actions menu (Top Menu Entry and Talk bots) #162

Open
StefanRichterHuber opened this issue Dec 18, 2023 · 1 comment
Open
Labels
Question for Meeting To discuss with engenieers

Comments

@StefanRichterHuber
Copy link

Describe why it is important and where it will be useful

In Nextcloud each user can set the applications language to have the best user experience and lowest entry barrier. Unfortunately the current implementation of the registration of File Actions Menu, Top Menu Entry and Talk Bots does only support to register a menu in one single language without any hint which is the (preferred) language of the Nextcloud instance.

Describe your proposed solution

Enhance the registration of menu entries like that. If you check if displayName is a plain string or an object this solution is downwards compatible,too.

{
        "name": "unique_name_of_file_actions_menu",
        "displayName": [
            {
                "lang": "en",
                "text": "Display name (for UI listing)"
            },
            {
                "lang": "de",
                "text": "Anzeige name"
            },
            {
                "lang": "default",
                "text": "Display name (for UI listing)"
            }
        ],
        "actionHandler": "/action_handler_route"
        "mime": "mime of files where to display action menu",
        "icon": "img/icon.svg",
        "permissions": "permissions",
        "order": "order_in_file_actions_menu",
}

Describe alternatives you've considered, if relevant

No response

Additional context

No response

@bigcat88
Copy link
Member

Questions related to translation support for ExApp

We know about this, perhaps this will be our next task, but specifically in this case it is not us who decide.

At the moment, we have not yet decided how ExApp will support translations...

@bigcat88 bigcat88 added the Question for Meeting To discuss with engenieers label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question for Meeting To discuss with engenieers
Projects
None yet
Development

No branches or pull requests

2 participants