-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13 Sep 2010, at 22:32, nil wrote:
hi all,

I'l looking for a solid solution to translate the database content,
that is have several versions of attributes, one for each language.
This is not about the application translation with babel/gettext for
the templates and code messages.

I have found traces of a exlixir.ext.localized (tests) but no sources.

can anyone point me in the right direction fot this ?


The code is here:

http://groups.google.com/group/sqlelixir/files

in localized.patch (2)

I investigated it a couple of years ago and patched it up to run with elixir 0.4.1 but in the end I didn't use it and it's now out of date w.r.t. elixir>=0.7 :-(

Running the test currently causes elixir to throw an Exception:

File "elixir/elixir/ext/localized.py", line 107, in __init__
  entity._descriptor.add_column(defaultLocaleCol)
File "elixir/elixir/entity.py", line 500, in add_column
  table = self.entity.table
AttributeError: type object 'Article' has no attribute 'table'

I've pastebinned my updated version here in case you want to try your luck:

http://pastebin.ca/1940136


(I've set the pastebin to expire in a week, avoids leaving bum code lying around for people to trip over.)

- --
Cheers,

Graham

http://www.linkedin.com/in/ghiggins






-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkyOtrYACgkQOsmLt1NhivziyQCgy8+Td8GEBEZ2A9smPuF0k5uQ
UtEAoNFCTKICNNefd8m2nDaH7kdZyyREiQCVAgUBTI62tlnrWVZ7aXD1AQJAPAP8
Caigqr7Agi3hqDRLjgkXgEEEzN0Cjg6B/+38CM+ppPnUb6SHwJ6zAha1GwAjNvSk
yJ28+Bdy3hMJXcz/zGdUoDvjAaKrcLYTCTvxOkWehIPhRZJ3SrHuf5zwSr2QQ/DE
oGSI8jaMzPCJ+ZC51s/zErw0+4glkJffJCTOQairzTU=
=9+OO
-----END PGP SIGNATURE-----

--
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en.

Reply via email to