lightspeedretail / webstore

Web Store eCommerce solution for Lightspeed
http://www.lightspeedpos.com/webstore
Open Software License 3.0
85 stars 63 forks source link

Translation module issues #601

Closed echantigny closed 10 years ago

echantigny commented 10 years ago

Build: webstore-2014-04-15-1553

I'm having some issues with the translation functionality. I am building a new theme, which seems to be much easier than on the last version of the system, but the translation system seems to have some issues. If they are not, please point me in the right direction.

The page title is not being translated. I added the Yii:t function to the head, but since the title is actually the whole app name, the separator and the page title, it is obviously not working. I found where I could be doing this in the controller, but how can I override an init() function of a controller without risking to create issues with future upgrades?

I'm also trying to add some strings to the system by using things like: <?php echo Yii::t('global','Have a Question?');?> <?php echo Yii::t('footer','Have a Question?');?>

None of those seems to have any effect, and yes, the Add Missing Translations While Navigating. No matter what I do, it doesn't appear in the Database Admin translation options.

I would also like to be able to translate all the category names, the store hours ... but there is no option in the admin panel to do so.

ktwbc commented 10 years ago

Category translation filed as WS-1946, available as of 3.1.6

Please verify that you actually select your foreign language off the home page, then navigate to your page with the t() command since it wont' be added if you still have English selected.

echantigny commented 10 years ago

Yes, thank you. This seems to have all been fixed now.

I still find string here and there in the original templates that are not wrapped in the t() function yet. Not sure where I should put these but in example, some labels in the wishlist/create template.