I want to provide translation to OMS state machine button.
mohammed.shamim
Posts: 35 🧑🏻🚀 - Cadet
How can I provide translation to spryker oms machine button.
1
Comments
-
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 ⚖️ - Guardians (admin)
Heyhey @mohammed.shamim ,
very good question! I just had a look and can give you the following hints:
- Make sure to name your event in OMS unique. Example:
<event name="oms.event.ship" manual="true"/>
- Create a translation file, i.E.
src/Pyz/Zed/Translator/data/MyCustomModule/en_US.csv
- Map the event name with a translation in that file →
"oms.event.ship","Let Santa Clause ship it"
- Reload the Back Office translation:
docker/sdk console translator:clean-cache && docker/sdk console translator:generate-cache
Then it could look like this in the order status:
Small note: The OMS graph (the svg image) does not support this kind of translation.
Hope this answers your question :)
All the best,
Florian
2 - Make sure to name your event in OMS unique. Example:
-
Thanks, I was following doc for translator part but missing the event name format.
0 -
fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,056 ⚖️ - Guardians (admin)
I also did not find any special rule about that event-naming format, but since it will be translated together with the other translation-strings I thought it makes sense to use a more unique token :)
Glad I could help 💪
1
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 69 Spryker News
- 896 Developer Corner
- 758 Spryker Development
- 83 Spryker Dev Environment
- 361 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 23 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 68 Spryker Safari Questions
- 50 Random