Mathieu Tozer's Dev Blog

Cocoa, the development of Words, and other software projects (including those dang assessment tasks).




Language Management


E-mail this post



Remember me (?)



All personal information that you provide here will be governed by the Privacy Policy of Blogger.com. More...



It is now possible to create languages in the 'language
factory' (including an icon) export them to file, import them from
file using the language factory. Words will also look for files
contained within the bundle and display a list of them to choose from
in the 'supported languages' list when you add a language, and the
language will be added when you click add.

The next thing is to do the same for dictionaries, and see if it all
matches up. Perhaps language objects can keep an array of dictionary
names that it will try to set as 'in use' if they are available.

On export
Put all the dictionaries that a language should try to set itself up
for when initialised into an array and archive it with the rest of
the language.

On import
Fetch dictionaries to that capability.
Take the array and search the available dictionary names and if there
is a match then connect it up!

Words will also need some initialiser text - the text that is
displayed first when you import a language.

But now I think I need to talk about dictionaries.
They need to be created, for whichever type they are, able to be
exported, and then fetched by the system when it loads, imported into
the user's database (not the whole file of index / definitions for
local dictionaries of course, just their Words management part).

Once I manage to get it into the managed object context, the existing
code should take care of the rest.


0 Responses to “Language Management”

Leave a Reply

      Convert to boldConvert to italicConvert to link

 


+RSS | dev blog | Portfolio

About me

My status

Previous posts

  • my del.icio.us
  • my flickr