Rename menu item in Backend?

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
rowild

Rename menu item in Backend?

Post by rowild » 03 Mar 2023, 08:52

I would like to rename "Suppliers" to something else. Is that at all possible, and if so, how?

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: Rename menu item in Backend?

Post by aimeos » 05 Mar 2023, 08:52

Yes, it can be translated to a different string. The translation domain is "admin" and the string "supplier". For TYPO3, this setting in the TSConfig may work:

Code: Select all

module.tx_aimeos.settings.i18n.de.0 {
  domain = admin
  string = supplier
  trans = Hersteller
}
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

rowild

Re: Rename menu item in Backend?

Post by rowild » 05 Mar 2023, 09:57

Thank you!

I have to place the snippet into the "Page tsConfig" field of the Shop root page, if I am not using a sitepackage, right? (As described here: https://docs.typo3.org/m/typo3/referenc ... getsconfig)

(In my case, that is the same site where the Aimeos Distribution includes its own ts-scripts.)

If so, then this does not work, the Aimeos backend still shows "Supplier".

I did upload a wrong image in my initial post, sorry for that. Here are the ones that show the "Supplier" string, where I would like to have it changed to sth else.

I tried this, since the menu item in the "Catalog" submenu is actually plural:

Code: Select all

module.tx_aimeos.settings.i18n.en_US.0 {
  domain = admin
  string = supplier
  trans {
    0 = Event Organiser
    1 = Event Organisers
  }
}

module.tx_aimeos.settings.i18n.en.0 {
  domain = admin
  string = supplier
  trans {
    0 = Event Organiser
    1 = Event Organisers
  }
}
  
module.tx_aimeos.settings.i18n.de.0 {
  domain = admin
  string = supplier
  trans {
    0 = Veranstalter
    1 = Veranstalter
  }
}
I also tried with "module" removed and, in another try, "plugin" instead of "module" as described in the Aimeos docu:
https://aimeos.org/docs/2022.x/typo3/cu ... nformation
But I assume that does not make sense at all, since I want to change things in the backend, which require the "module" prefix, right?

How do I find out if my installation uses "en" or "en_US"? (I used the Aimeos Distribution on a composer-installed TYPO3 11.)

rowild

Re: Rename menu item in Backend?

Post by rowild » 07 Mar 2023, 11:21

...doesn't work in TYPO3 10 either...

User avatar
aimeos
Administrator
Posts: 7858
Joined: 01 Jan 1970, 00:00

Re: Rename menu item in Backend?

Post by aimeos » 08 Mar 2023, 07:35

Seems like TS-based translations doesn't work here. Use Gettext translations instead:
https://aimeos.org/docs/latest/developer/translations/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply