Silme:Tutorial:IOClient: Difference between revisions

Jump to navigation Jump to search
(Created page with 'As you probably noticed, until now we did not get into any way to actually operate on the l10n objects outside of memory. At this point you should know how to create an Entity, C...')
 
Line 43: Line 43:
   # Manager fires client.matches_path(path) on each client and returns the one which will return True first
   # Manager fires client.matches_path(path) on each client and returns the one which will return True first
   ioclient2 = silme.io.Manager.get(path='./data/test.jar')
   ioclient2 = silme.io.Manager.get(path='./data/test.jar')
 
 
   l10npackage2 = ioclient2.get_l10npackage(path='./test.jar')
   l10npackage2 = ioclient2.get_l10npackage(path='./test.jar')


In result we have two L10nPackages, one from the directory on the hard drive, and another extracted from the .jar file.
In result we have two L10nPackages, one from the directory on the hard drive, and another extracted from the .jar file.
Also, we have an L10nObject from the hard drive.
Also, we have an L10nObject from the hard drive.


=== Writing ===
=== Writing ===
Confirmed users
1,016

edits

Navigation menu