I noticed there is a jiveLocalizedProp table which looks like it's designed to store translated localised content.
How do I add fields to this programatically? Also how do I read them. I assumed they would just be added to the internal list along with the i18n properties files, but whenI inserted a row into the DB and tried to access it, it wasn't there.
Thanks,
Martin
Hey Martin,
I don't understand what you're trying to use this for. If you would explain that to me, I might be able to find functionality built-in for it, or we could discuss ways of accomplishing what you want.
Thanks,
Kevin
I wanted to be able to create localised strings in the DB rather than in an awkward to use properties file.
As Jive has almost no multi-lingual abilities, it's really hard for us to support widgets in multiple languages for our users. I was intending to create a version of the html widget that could store localised versions.
I already have a version of the html widget that you can program in an i18n string, but these have to be already created in a properties file. I wanted to create a page in the admin where new language properties could be added, saved in the DB and then used.
Unless you can suggest another way of adding translations that does not require a restart?
Hey Martin,
Unfortunately, we don't support i18n in our widgets at the moment. Doing that yourself would require building a custom plugin. If you would like to go that route, you should check out some of our documentation:
http://www.jivesoftware.com/jivespace/docs/DOC-3275
http://www.jivesoftware.com/builds/docs/jive_sbs_employee/latest/developer/BuildingPlugins.html
We do have an improvement listed in our system to add multilingual contexts to our widgets, so it is on our radar. The improvement ID is CS-11907. Hope that helps.
Thanks,
Kevin
Hi,
No that doesn't really help.
I know how to build plugins, that's what I'm doing here. Hence my original question about how to programatically access and store data in the i18n table in the DB. I had hoped that any data added into that table could be read by the jiveglobals.whatever function, but that doesn't seem to work.
Is the table I mentioned even used in the system?
Thanks,
Martin
Hi Martin,
Yes, the jiveLocalizedProp table is used in the system. Official description: holds localized system wide Jive properties. Working description: as far as I've seen, the only thing being held in that table are email templates (with some promise for other future uses as well). You've tried using JiveGlobals, and it didn't work? The methods that should be able to interact with the jiveLocalizedProp table are:
String JiveGlobals.getLocalizedJiveProperty(String name, java.util.Locale locale)
List<Locale> JiveGlobals.getLocalizedPropertyLocales(String name)
void JiveGlobals.setLocalizedJiveProperty(String name, String value, java.util.Locale locale)
void JiveGlobals.deleteLocalizedJiveProperty(String name, java.util.Locale locale)
Hope that helps.
Thanks,
Kevin
Ok thanks kevin,
I'll give it another go and see if I can get it working
Thanks again
Sent from my iPhone
Jive combines the most powerful features of collaboration software, community software,
social networking software & social media monitoring into the leading SBS solution.
© Copyright 2000–2010 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205
Sales: 877-495-3700 | General: 503-295-3700
Privacy Policy | Sitemap | Jobs | Contact Us