Dynamically adding languages at runtime
Posted: Wed Jan 17, 2007 6:11 pm
Our users want to dynamically add languages at run time, and although we can do this by changing LangDispatcher.LangNames, when you go to use the si translation form to translate, they only see columns for languages created at design time, even though we are loading / saving translations to an external file on FormCreate and FormClose.
e.g. We give our vanilla product to a Swiss customer, with English and French as two languages set-up at design time. They wish to add Italian and German at runtime, (we allow them to do that and save to the DB). When they start our app next time, we read all of their languages from DB, and populate LangDispatcher.LangNames accodingly. When they go to translate a form, all they get are columns for English and French, even though the dispatcher has Italian and German. Why???? This is a major problem for us because it is impractical to have lots of different versions of the same DFMs just to store the combinations of languages involved.
Any ideas how we can solve this?
e.g. We give our vanilla product to a Swiss customer, with English and French as two languages set-up at design time. They wish to add Italian and German at runtime, (we allow them to do that and save to the DB). When they start our app next time, we read all of their languages from DB, and populate LangDispatcher.LangNames accodingly. When they go to translate a form, all they get are columns for English and French, even though the dispatcher has Italian and German. Why???? This is a major problem for us because it is impractical to have lots of different versions of the same DFMs just to store the combinations of languages involved.
Any ideas how we can solve this?