Datagrid visibilty based on current user language

I have to show a data grid with conditional visibity based on current user langauge. like based on arabic, how i can accomplish this?
1 answers

My suggestion would be to create different translations for the pages and these will be automatically shown to the user based on their selected language. See

If it really needs to be on 1 language page then you’ll need to make sure that you can access the user language object from the system module on the page and use the conditional visibility options. A simple example would be a dataview of the userlanguage object containing 2 datagrids with different captions for different languages and set the visibilty option based on an expression like $currentObject/language = ‘en_US’ e.g.