Adding A New Language To Enterprise Apps
Search
Adding A New Language To Enterprise Apps
To add a new language for the newer PHP-API Enterprise apps, follow the pattern established by this commit to clubspeedapps: https://github.com/clubspeed/clubspeedapps/commit/6286f69d3186eb2a18c196806f7b3872afda0544
This touches the following files:
- admin/laravel/app/controllers/BookingController.php
- admin/laravel/app/controllers/ChannelController.php
- admin/laravel/app/controllers/MobileAppController.php
- admin/laravel/app/controllers/RegistrationController.php
- booking/laravel/app/config/resources/strings.php
- cs-registration/laravel/app/config/resources/strings.php
The process is a bit disjointed and is overdue for a refactor. :)
Some corner cases:
- Speed Screens - Only the main speed screen view and the scoreboard slide have a translations editing section. For other slides, their slides (which live in c:\clubspeedapps\api\slides on their server) need to be copy/pasted and edited with the new translation strings hardcoded. They then needed to be added to each channel as custom slides. They can also just be edited in-place, but this may break the auto-updater in the future.
- When copy/pasting slides, please include the following folders one level above them:
- js
- img
- css
- When copy/pasting slides, please include the following folders one level above them:
After making the above changes, give the apps a quick runthrough, ensuring translations work as expected.
If you have any questions, please contact Brian.
Thanks!