Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Internationalise banner message #105

Open
dnyamy opened this issue Jul 27, 2019 · 4 comments
Open

Internationalise banner message #105

dnyamy opened this issue Jul 27, 2019 · 4 comments
Labels

Comments

@dnyamy
Copy link

dnyamy commented Jul 27, 2019

Hello,
I have just discovered this plugin
Thanks a lot for the work done

I will nevertheless have one need.
My users speak various language ?

Is there a way to configure/tweak it to have the right message displayed to each user according to his language ?

Thanks
dn

@akiko-pusu
Copy link
Owner

Hi, thanks for your reporting.
I'm sorry now banner can only hold a message which does not support multilingual message.

But personally, I think this request is interesting to me :)
Now you can set a global banner and project scope one. Which banner do you hope to support internationalization first?

@DarkSideGeek
Copy link

DarkSideGeek commented Jul 27, 2019 via email

@dnyamy
Copy link
Author

dnyamy commented Jul 27, 2019

Reply to akiko-pusu,
I need a multilingual banner first at global scope.
Project scope internationalisation can wait.
Thanks
dn

@akiko-pusu
Copy link
Owner

akiko-pusu commented Jul 29, 2019

@DarkSideGeek Thanks for your comment.
I'm sorry if I can't figure out what you say...

On Redmine, each user can choose their preferred language.
So, I think it's better that administrator can set multi-language banner messages per one topic with language informations.

Exp.

  • banner_type: info
  • default_message: Hello
    • This is a default message displayed to anonymous user or to user who has not defined the preferred language yet.
    • Default message is mandatory.
  • ja_message: こんにちは
    • This message is shown if user prefers Japanese.
    • Language specified message is an optional one.

To implement this feature, personally I have to refactor the data model to store global banner message, because now the global banner message is stored Settings table as serialized data.
(Maybe need to define some tables)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants