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

Do you know how to go about translating this module? #13

Open
itsgucci opened this issue May 6, 2023 · 1 comment
Open

Do you know how to go about translating this module? #13

itsgucci opened this issue May 6, 2023 · 1 comment

Comments

@itsgucci
Copy link

itsgucci commented May 6, 2023

Your issue may already be reported!
Please search on the issue tracker before creating one.

Expected Behavior

i thought i would create a ~/humhub/protected/config/messages/en-US/UsermapModule.base.php file and add return [ 'Usermap' => 'Global Map' ]; to it and it would change the top nav menu title

Current Behavior

it remains 'Usermap'

Possible Solution

maybe there is some trick to translating? maybe the filename i am trying to use is not correct? i noticed there are no messages folder in the module like there are in most of the hubhub core modules...

Context

i'd like to be able to rename the top nav menu item in english, but then also translate it into other languages as well.

Your Environment

  • Version used: 1.2.4
  • Browser Name and version: chrome
  • Operating System and version (desktop or mobile): mac
  • Link to your project:

Log Output

// Specify the contents of the log file. You should replace personal information.
@codiflow
Copy link

Seems like the string is hardcoded:

'label' => 'Usermap',

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

No branches or pull requests

2 participants