Welcome Guest, Not a member yet? Register   Sign In
*idea* - Translation system *idea*
#7

[eluser]Twisted1919[/eluser]
The category param is used mainly to get multiple translatable strings together.
Say you have your application built on modules, each module can be a category, and in that module you only load the translation category with same name as the module.
Also, using lazy loading here helps allot, because you don't load all the items from a category at the begin of the request, instead you load them only when an item from that category is requested first time and you store them in memory during runtime so that, the next call to an intem from a loaded category will serve the translation from memory rather than checking the database or the file system once again.
Makes sense ?


Messages In This Thread
*idea* - Translation system *idea* - by El Forum - 06-09-2011, 09:16 AM
*idea* - Translation system *idea* - by El Forum - 06-09-2011, 11:26 AM
*idea* - Translation system *idea* - by El Forum - 06-09-2011, 12:24 PM
*idea* - Translation system *idea* - by El Forum - 06-09-2011, 01:12 PM
*idea* - Translation system *idea* - by El Forum - 06-09-2011, 01:35 PM
*idea* - Translation system *idea* - by El Forum - 06-09-2011, 01:45 PM
*idea* - Translation system *idea* - by El Forum - 06-09-2011, 01:50 PM
*idea* - Translation system *idea* - by El Forum - 06-09-2011, 01:54 PM
*idea* - Translation system *idea* - by El Forum - 06-09-2011, 02:02 PM
*idea* - Translation system *idea* - by El Forum - 06-09-2011, 02:07 PM
*idea* - Translation system *idea* - by El Forum - 06-10-2011, 01:25 AM
*idea* - Translation system *idea* - by El Forum - 06-10-2011, 08:37 AM
*idea* - Translation system *idea* - by El Forum - 06-10-2011, 09:39 AM
*idea* - Translation system *idea* - by El Forum - 06-10-2011, 10:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB