|
From: Lars W. <la...@wi...> - 2006-02-06 17:36:23
|
On Monday 06 February 2006 14:09, Stian Grenborgen wrote: > We need to decide where the i18n-keys should be translated into localized > text. Currently, some methods returns the key while other methods returns > the localized text. > > I suggest we make the translations at the same position as they appear and > stop returning i18n-keys from methods. The only methods which should be > accepting i18n-keys is the "Messages"-class which is currently in the > "net.sf.freecol.client.gui.i18n"-package. I agree. > > The "i18n"-package is also used by the server and should be moved into > "net.sf.freecol.common". Indeed, if we translate the IDs as soon as possible then the i18n package should move. Also, the server admin would be able to read the error messages (in the log or stdout) in his own language. > > Note: We should still transmit i18n-keys across the network, since the > clients might use different translations of the game. The keys would then > be translated by the control-method which handles the network message. This could possibly lead to passing around i18n-keys within the server right before it gets sent to the client, but there's not much we can do about that. -Lars |