Add/Update i18n enhancement

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

Add/Update i18n enhancement

Postby Karel Broer » Wed May 04, 2011 10:36 am

Pressing the Add/Update button in the Servoy i18n Editor add or updates a key only in the workspace.
One thing we would REALLY like is having Servoy also add or update the key in the -solution defined- messages table.
Please can this be included in Servoy 5.2.8 :) ?
(Case 381926 created for this feature request)
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Re: Add/Update i18n enhancement

Postby Gabi Boros » Wed May 04, 2011 11:18 am

in Servoy 6 there is already a feature, that you can push the
messages from the the workspace into the solution defined table,
in the context menu of the i18n node from solution explorer
Gabi Boros
Servoy
Gabi Boros
 
Posts: 346
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Add/Update i18n enhancement

Postby Karel Broer » Wed May 04, 2011 11:39 am

Thanks a bunch, that's really nice Gabi!
Does that feature overwrites all keys in the database or does it merge the current keys in the database?
My Add/Update button enhancement request would still be a nice to have feature, btw.
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Re: Add/Update i18n enhancement

Postby Gabi Boros » Wed May 04, 2011 1:10 pm

it's overwrites all keys, you would use that feature when you have all
your keys in the workspace
I don't know if it would worth to update the table on each change in the developer,
as it is using the values from the workspace
Gabi Boros
Servoy
Gabi Boros
 
Posts: 346
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Add/Update i18n enhancement

Postby Karel Broer » Wed May 04, 2011 4:12 pm

Gabi Boros wrote:it's overwrites all keys, you would use that feature when you have all
your keys in the workspace

Good enough for me right now. thanks.
I don't know if it would worth to update the table on each change in the developer,
as it is using the values from the workspace

Reason why we like to have this feature is that we perform tests with smartclient, so the keys must be in the database. Now we export a module including all i18n keys > importing module into app server incl i18n keys, however this takes way too much time. Pressing a button beforehand would save us significant amount of time.
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Re: Add/Update i18n enhancement

Postby Harjo » Wed May 04, 2011 8:55 pm

Karel, how are you testing with (more than one) smart-client??
In developer you can only test, with the 1 debug client, or 1 debug web-client
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4296
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Add/Update i18n enhancement

Postby Karel Broer » Thu May 05, 2011 9:45 am

Harjo wrote:Karel, how are you testing with (more than one) smart-client??
In developer you can only test, with the 1 debug client, or 1 debug web-client

I'll explain. We actually test with both client types, because in some cases they have different behaviour.

The developers test en debug with the debugclient, and the testers use the smart client (both debug-en smart clients are connected to the same database).
In order to test the smart client, the solution has to be imported into the application server ofcourse.
It often happens that some i18n keys need to be modified after the tests, so in that case it's nice to be able to update a -specific- key, instead of overwrite them all again.
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem

Re: Add/Update i18n enhancement

Postby jcompagner » Thu May 05, 2011 10:19 am

then i guess what you need is a merge: (with the options we have now in 6)

write to db -> an option to only write new keys and there values, don't touch the rest.
read from db -> an option to only get the new values don't delete new keys that are in the workspace.

you could make a case for this, it could be that we only need to have the second option
because then your workspace is completely up to date and you could then write it (but the question is then what to do with keys that don't exist in the workspace anymore, i guess those can be deleted)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8214
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Add/Update i18n enhancement

Postby Karel Broer » Thu May 05, 2011 3:17 pm

jcompagner wrote:then i guess what you need is a merge: (with the options we have now in 6)
write to db -> an option to only write new keys and there values, don't touch the rest.
read from db -> an option to only get the new values don't delete new keys that are in the workspace.

Hi Johan, that sounds great, but we need these functions a little bit more extended:
write to db -> an option to update existing keys and write new keys
read from db -> an option to update existing values and get the new values (don't delete new keys that are in the workspace)
You could make a case for this, it could be that we only need to have the second option
because then your workspace is completely up to date and you could then write it (but the question is then what to do with keys that don't exist in the workspace anymore, i guess those can be deleted)

Keys that don't exist in the workspace should never be deleted, because the messages table can contain custom keys that we do not have in the workspace, but use in other products (like our saas applications that run on same database).
I reopened case 381926 and added these options to it.
Karel Broer
ServoyCamp - http://www.servoycamp.com
User avatar
Karel Broer
 
Posts: 779
Joined: Mon May 03, 2004 12:49 am
Location: Doetinchem


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest