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

Change messages for each project #63

Open
sk-ys opened this issue Mar 7, 2024 · 1 comment
Open

Change messages for each project #63

sk-ys opened this issue Mar 7, 2024 · 1 comment

Comments

@sk-ys
Copy link

sk-ys commented Mar 7, 2024

Thanks for the useful plugin.
I request a new feature to change the message for each project.

@sk-ys
Copy link
Author

sk-ys commented Mar 23, 2024

I have tried to support customization of messages for each project.
https://github.com/sk-ys/redmine_message_customize/tree/configure-per-project

After some consideration, I finally decided to store the project's custom messages in the Hash, just like the global custom messages.

The following is an example of a Hash:

:custom_messages:
  en:
    label_help: HelpGlobal
:enabled: 'true'
:enabled_per_project: '1'
:active_project:
  :id: ecookbook
  :timestamp: '1711209136'
:project_settings:
  :ecookbook:
    :enabled: 'true'
    :custom_messages:
      en:
        label_help: HelpProject
    :timestamp: '1711209136'
  :private-child:
    :enabled: 'true'
    :custom_messages:
      en:
        label_help: HelpPrivateProject
    :timestamp: '1711209310'

As a known issue, I am unable to display custom messages correctly when multiple projects are viewed collectively. So, this program may be difficult to implement.
If you have any suggestions, please let me know.
Sorry, but I have not created a test.

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

No branches or pull requests

1 participant