[Banshee-devel-list] Localization of extensions



Dear extension developpers !

Yesterday I pushed a big commit, to fix localization of all extensions :
http://gitorious.org/banshee-community-extensions/banshee-community-extensions/commit/432076210cdfcec183f7d5af47ef32a733458c54

Most extensions were using calls like Catalog.GetString ("Translate me")
for translatable strings. But that doesn't work for addins/extensions.
Well, it might work if you're using a string identical to one already in
Banshee itself...

The proper way to do it is to use the methods provided by the
Mono.Addins library, to get something like that :

  AddinManager.CurrentLocalizer.GetString ("I'm translated")

For more details, you can take a look here :
http://www.mono-project.com/Mono.Addins_Reference_Manual#Localization_of_Add-ins

So think about this when you add user-visible strings to your
extensions.
We don't have a lot of translations for now, but better be ready for
them !

-- 
Bertrand Lorentz <bertrand lorentz gmail com>
> http://bl-log.blogspot.com <

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]