Hi all,
This is not yet a comprehensive list of actions to migrate your 2.0 themes to 2.1 new architecture. As I realized in [Forum, post 112750 by plg in topic 15831] Not repeat the slideshow ?, the language keys conversion is the biggest part of the work if you have some *.tpl files in your theme.
This is the case for Simple Grey, Gally, flopPure, flopOS.
If you want to send me a zip file with your *.tpl inside, then I will perform an automatic conversion from 2.0 language keys to 2.1 language keys. I already did it for gally (and I expect some feedback from grum about this ;-) Give me an URL to your zip file or send it by email.
Offline
nicolas advised me to commit my script if you want to perform the conversion by yourself. So here it is : tools/convert_template_to_2.1.pl (in trunk of course).
Backup your *.tpl directory first.
cd trunk cp -r themes/gallyDefault/template cp -r themes/gallyDefault/template.orig perl tools/convert_template_to_2.1.pl themes/gallyDefault/template diff -ru themes/gallyDefault/template.orig themes/gallyDefault/template
On the gally *.tpl, I saw that *.tpl files related to NBM (notification by email) were not corectly converted I think. I advised grum to remove them from gally, if they should be the same as in the new "default" theme.
Offline
I finished to check my tpl files (other than NBM, not the time for now to checks them)
Only two kind of keys have been forgotten :
'return to homepage' => 'Home'
{$pwg->l10n_dec('%d element', '%d elements', => {$pwg->l10n_dec('%d image', '%d images',
Offline
grum wrote:
I finished to check my tpl files (other than NBM, not the time for now to checks them)
Only two kind of keys have been forgotten :
'return to homepage' => 'Home'
{$pwg->l10n_dec('%d element', '%d elements', => {$pwg->l10n_dec('%d image', '%d images',
It's difficult to find that key in a template. I think we must find an another syntax for plurals form and avoid using that php syntax.
Offline
plg wrote:
If you want to send me a zip file with your *.tpl inside, then I will perform an automatic conversion from 2.0 language keys to 2.1 language keys. I already did it for gally (and I expect some feedback from grum about this ;-) Give me an URL to your zip file or send it by email.
Hi,
I will try your script, thanks plg, but if you want to look at it, the code is here : http://bitbucket.org/saimon/simple-piwigo/
get the code : $ hg clone http://bitbucket.org/saimon/simple-piwigo/
make a "bundle" you can send me with the modifications: $ hg -t tgz bundle
Offline
another thing :
in picture.tpl, the key '%.2f (rated %d times, standard deviation = %.2f)' is replaced by '%.2f (rated %d times)'
for theme creators, be carefull : you have to update the javascript too, the standard deviation is not available anymore.
replace the string {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count, $rate_summary.std) } by the string {$pwg->sprintf($rate_text, $rate_summary.average, $rate_summary.count) }
Offline
grum wrote:
in picture.tpl, the key '%.2f (rated %d times, standard deviation = %.2f)' is replaced by '%.2f (rated %d times)'
details on [Subversion] r5500
Offline
saimon wrote:
make a "bundle" you can send me with the modifications: $ hg -t tgz bundle
Sorry, I couldn't make the "bundle" action work. Here comes a simple "tar.gz": http://piwigo.org/tmp/simple-piwigo.tar.gz
Offline
Hi Guys
I'm currently using a modified version of the theme yoga/sylvia. I’ve changed the colour of the icons and changed the png for the top left picture. Do I have to change something before I upgrade from 2.0.10 to 2.1.0?
Offline
Yes, make sure you back them up. I also modified my .png file for top-left and it was over-written when I upgraded.
You should be able to back them up and simply replace them again when the upgrade is complete.
Offline
Thanks Darryl.
It seems to work, although there are some infos that I don't know what to change. The one thing that I had to look for was the favicon, because I didn't realised that it should be in the same folder than the Icons. ^^
At the moment I can use the theme without any problems so I think, I let this like it is :D
Offline