samslunch / openmeetings

Automatically exported from code.google.com/p/openmeetings
0 stars 0 forks source link

Default language #238

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The language should take effect from the start of use.

For now, although the language other than English is selectable, the login
panel is always English at a first login. 

Original issue reported on code.google.com by minamoto...@gmail.com on 28 Dec 2007 at 12:39

GoogleCodeExporter commented 9 years ago
The default language selection should be available during install and on the 
Settings
page.  GUI is more desirable than directly edittng any config file for general 
user.

Original comment by minamoto...@gmail.com on 28 Dec 2007 at 1:03

GoogleCodeExporter commented 9 years ago

Original comment by seba.wag...@gmail.com on 7 Jan 2008 at 5:45

GoogleCodeExporter commented 9 years ago
I ve gave higher priority to this task as it should be availible for the next
release. Would you like to do it / get involved?

To select the language during installation you have to:
add a language-id to the language.xml cause you need to know the language_id to 
set
it as default lang. You cannot load the languages from the database as they are 
not
imported yet (at this point of installation there are no values at database) so 
you
have to get it from the XML-File.
then you have to add a key to configurations-table during isntallation.
this can be seen here how to do that:
http://openmeetings.googlecode.com/svn/branches/dev/xmlcrm/java/src/app/org/xmlc
rm/app/installation/ImportInitvalues.java
Code example:
Configurationmanagement.getInstance().addConfByKey(3, "smtp_server", smtpServer,
null, "this is the smtp server to send messages");

then you need to add some logic during startup _before_ loading the default 
lang.
Default lang is loaded at:
http://openmeetings.googlecode.com/svn/branches/dev/laszlo/client/xmlcrm/videoco
nference/xmlcrm/hibernate/rtmphib.lzx
Line: 136
  parent.getLanguageById.doCall();
_before_ that you'll have to request or get the languages_id from the 
config-table
and set that.
cause users can also login directly (using an invitation) you'll also have to 
do the
same at:
http://openmeetings.googlecode.com/svn/branches/dev/laszlo/client/xmlcrm/videoco
nference/xmlcrm/content/invitation/invitationquickloader.lzx
Line: 70 
this.getLanguageById.doCall();
by setting the variable *userlang* in these classes to languages_id. At the
*invitationquickloader.lzx* you'll should also update the variable in the
rtmp-connection-class canvas.thishib.userlang = $YOUR_LANGUAGE_ID.

Original comment by seba.wag...@gmail.com on 7 Jan 2008 at 5:59

GoogleCodeExporter commented 9 years ago
i had to change 
this.getLanguageById.doCall();
to
parent.getLanguageByIdAndMax.doCall();

but that does not change somethign from the logical point of view

Original comment by seba.wag...@gmail.com on 7 Jan 2008 at 11:47

GoogleCodeExporter commented 9 years ago
Why does getLanguageByIdAndMax treat label-fields every 100 items ?

Original comment by minamoto...@gmail.com on 14 Mar 2008 at 3:01

GoogleCodeExporter commented 9 years ago
cause the app loads and stores labels by 100, that way you can load and store 
the
labels in an array by 100. Otherwise you would have one very big remotecall and 
would
have to iterate through all labels. Now it calls them by 100 and only iterates
maximum 100 Labels.

Original comment by seba.wag...@gmail.com on 14 Mar 2008 at 7:29

GoogleCodeExporter commented 9 years ago

Original comment by seba.wag...@gmail.com on 15 Mar 2008 at 2:55

GoogleCodeExporter commented 9 years ago
fixed in r1119 and r1120

Original comment by seba.wag...@gmail.com on 15 Mar 2008 at 3:28

GoogleCodeExporter commented 9 years ago

Original comment by seba.wag...@gmail.com on 29 Aug 2011 at 7:57