Hey,
I just installed OpenBoxes and I can’t change the language because every character of the language options is a link that doesn’t do anything.
Is there any way to fix this?
-Torksi
Hey,
I just installed OpenBoxes and I can’t change the language because every character of the language options is a link that doesn’t do anything.
Is there any way to fix this?
-Torksi
That’s odd. Did you edit the supported locales property in openboxes-config.properties or openboxes-config.groovy?
No I haven’t edited any configs after installation.
Here is my openboxes-config.properties:
# Database connection settings
dataSource.username=openboxes
dataSource.password=<My password is here>
dataSource.url=jdbc:mysql://localhost:3306/openboxes?useSSL=false
# Used primarily with g:link when absoluteUrl is true (e.g. links in emails)
grails.serverURL=http://localhost:8080/openboxes
# OpenBoxes mail settings - disabled by default (unless you set up an SMTP server)
#grails.mail.enabled=true
So for some reason the application is evaluating the property
openboxes.locale.supportedLocales
as a String rather than an array of Strings. In other it words, the application is seeing this
openboxes.locale.supportedLocales = "['ar', 'en', 'fr', 'de', 'it', 'es', 'pt']"
rather than this
openboxes.locale.supportedLocales = ['ar', 'en', 'fr', 'de', 'it', 'es', 'pt']
The default is set to the latter (an array of strings) so this is getting
Questions:
What version of the application are you using? In fact these three fields in the footer would be helpful
Can you try to restart the server and see if it just needed to recombobulate?
If not, any chance I can get temporary access to your OB instance?
Can you check whether there’s another file under /opt/tomcat/.grails?
No, the only file in there is openboxes-config.properties
I changed some file permissions and now it seems to be working.
Ok, so here’s what you can try to do. Create a new file /opt/tomcat/.grails/openboxes-config.groovy and add the following line to it and restart Tomcat.
openboxes.locale.supportedLocales = ['ar', 'en', 'fr', 'de', 'it', 'es', 'pt']
NOTE: You can remove the language codes that you don’t plan to use.
If that doesn’t work, we can try declaring a list variable and setting it this way.
def supportedLocales = ['ar', 'en', 'fr', 'de', 'it', 'es', 'pt']
openboxes.locale.supportedLocales = new List(supportedLocales)
I changed some file permissions and now it seems to be working.
Awesome. I was going to suggest that earlier but then figured there was no way that could be the issue. I guess I was wrong.