Member
Member
DrSlony   28-07-2009, 15:10
#1

Hey

My ZenPhoto theme optionally uses the Polish translation, but I also use my own strings that need translating. What is the best way of being able to use my own strings and not have to worry about lots of work on every ZenPhoto upgrade? Is it possible to use two different locale files so that I can gettext my own strings and also the default ZenPhoto ones?

Administrator
Administrator
acrylian   28-07-2009, 15:27
#2

Yes and no. You can use the setPluginDomain() function to call a separate getext translation.
http://www.zenphoto.org/2009/03/theming-tutorial/#theme-translations
http://www.zenphoto.org/2008/05/translating-tutorial/#theme-translation

But that has a big disadvantage as this will then not translated the normal zenphoto strings as these are in an other domain. This is a conflict we could not solve.

The best is to use the polish translation and add the strings from your theme by just parsing the installation with your theme installed. This way you get a custom translation. Or you join the separate translations. See the translating tutorial:
http://www.zenphoto.org/2008/05/translating-tutorial/#joining-separatate-translations

Member
Member
DrSlony   28-07-2009, 15:33
#3

Ok, merging the two doesn't seem too hard even with regular ZenPhoto updates. Thank you for the quick reply Acrylian!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.