Skip to content
Permalink
Browse files

variable for age of Piwigo on home page

  • Loading branch information...
plegall committed Apr 10, 2019
1 parent 6e37c5d commit e85c302fc926376a0de23ed55344d6f613046945
@@ -5,12 +5,7 @@
// find numbers to display: number of years, number of releases, number of downloads, number of forum messages, number of extensions
// 1) number of years
$d1 = new DateTime('2002-04-15');
$d2 = new DateTime();
$diff = $d2->diff($d1);
$years = $diff->y;
$template->assign('NB_YEARS', $years);
$template->assign('NB_YEARS', porg_get_nb_years());
// 2) releases
include(PORG_PATH . '/data/release.data.php');
@@ -444,4 +444,12 @@ function porg_date_format($datetime, $is_timestamp=false)
return format_date($timestamp, array('day', 'month', 'year'));
}
function porg_get_nb_years()
{
$d1 = new DateTime('2002-04-15');
$d2 = new DateTime();
$diff = $d2->diff($d1);
return $diff->y;
}
?>
@@ -31,5 +31,5 @@
$lang['porg_home_high_volume_desc'] = 'Piwigo brillierer når det gælder om at klassificere tusinder eller endda hundredtusinder af fotografier.';
$lang['porg_home_open_source_desc'] = 'Kildekoden er tilgængelig, redigerbar, auditerbar og udvidbar takket være plugins og temaer.';
$lang['porg_home_organisation_title'] = 'Tusinder af organisationer og millioner af enkeltpersoner elsker at benytte Piwigo';
$lang['porg_home_sustainable_desc'] = 'Siden sin fødsel i 2002 har Piwigo hjulpet sine brugere i flere end 15 år. Altid under udvikling!';
$lang['porg_home_sustainable_desc'] = 'Siden sin fødsel i 2002 har Piwigo hjulpet sine brugere i flere end %d år. Altid under udvikling!';
$lang['porg_home_title'] = 'Hold styr på din fotosamling med Piwigo';
@@ -31,5 +31,5 @@
$lang['porg_home_high_volume_desc'] = 'Piwigo glänzt, wenn es darum geht tausende oder sogar hunderttausende Fotos zu klassifizieren.';
$lang['porg_home_open_source_desc'] = 'Der Quellcode ist verfügbar, auditierbar und dank Plugins und Themen erweiterbar.';
$lang['porg_home_organisation_title'] = 'Tausende von Organisationen und Millionen von Privatpersonen lieben es Piwigo zu benutzen';
$lang['porg_home_sustainable_desc'] = 'Geboren im Jahr 2002 hat Piwigo seine Nutzer seit mehr als 15 Jahren unterstützt. Und sich verbessert!';
$lang['porg_home_sustainable_desc'] = 'Geboren im Jahr 2002 hat Piwigo seine Nutzer seit mehr als %d Jahren unterstützt. Und sich verbessert!';
$lang['porg_home_title'] = 'Organisieren Sie Ihre Fotosammlung';
@@ -5,7 +5,7 @@
$lang['porg_home_desc2'] = 'Designed for organisations, teams and individuals.';
$lang['porg_home_organisation_title'] = 'Thousands of organizations and millions of individuals love using Piwigo';
$lang['porg_home_high_volume_desc'] = 'Piwigo shines when it comes to classifying thousands or even hundreds of thousands of photos.';
$lang['porg_home_sustainable_desc'] = 'Born in 2002, Piwigo has been supporting its users for more than 15 years. Always evolving!';
$lang['porg_home_sustainable_desc'] = 'Born in 2002, Piwigo has been supporting its users for more than %d years. Always evolving!';
$lang['porg_home_open_source_desc'] = 'Source code is available, editable, auditable and extendable thanks to plugins and themes.';
$lang['Start discovering Piwigo'] = 'Start discovering Piwigo';
$lang['Albums Hierarchy'] = 'Albums Hierarchy';
@@ -31,5 +31,5 @@
$lang['porg_home_high_volume_desc'] = 'Piwigo brilla cuando se trata de clasificar miles o cientos de miles de fotos.';
$lang['porg_home_open_source_desc'] = 'El código de la aplicación está disponible, es editable, auditable y extensible gracias a plugins y temas.';
$lang['porg_home_organisation_title'] = 'Miles de organizaciones y millones de particulares aman Piwigo.';
$lang['porg_home_sustainable_desc'] = 'Nacido en 2002, Piwigo ha estado ayudando a sus usuarios desde hace más de 15 años. ¡Siempre creciendo!';
$lang['porg_home_sustainable_desc'] = 'Nacido en 2002, Piwigo ha estado ayudando a sus usuarios desde hace más de %d años. ¡Siempre creciendo!';
$lang['porg_home_title'] = 'Administra tu colección de fotos con Piwigo';
@@ -7,7 +7,7 @@
$lang['High Volume'] = 'Forte volumétrie';
$lang['porg_home_high_volume_desc'] = 'Piwigo brille quand il s\'agit d\'organiser des milliers voire des centaines de milliers de photos.';
$lang['Sustainable'] = 'Pérenne';
$lang['porg_home_sustainable_desc'] = 'Né en 2002, Piwigo est présent pour ses utilisateurs depuis plus de 15 ans. Et toujours en évolution !';
$lang['porg_home_sustainable_desc'] = 'Né en 2002, Piwigo est présent pour ses utilisateurs depuis plus de %d ans. Et toujours en évolution !';
$lang['Open Source'] = 'Open Source';
$lang['porg_home_open_source_desc'] = 'Le code source est disponible, modifiable, auditable et extensible grâce aux plugins et aux thèmes.';
$lang['Start discovering Piwigo'] = 'Commencez à découvrir Piwigo';
@@ -31,5 +31,5 @@
$lang['porg_home_high_volume_desc'] = 'Piwigoban könnyen kezelhetsz akár több ezer vagy több százezer fényképet is. ';
$lang['porg_home_open_source_desc'] = 'A forráskód elérhető, szerkeszthető, ellenőrizhető és bővíthető a kiegészítőknek és témáknak köszönhetően. ';
$lang['porg_home_organisation_title'] = 'Több ezer cég, és több millió magánszemély szereti és használja a Piwigo rendszerét.';
$lang['porg_home_sustainable_desc'] = '2002-ben kezdődött a Piwigo fejlesztése és több, mint 15 éve használják már világszerte. Mindig megújul és fejlődik. ';
$lang['porg_home_sustainable_desc'] = '2002-ben kezdődött a Piwigo fejlesztése és több, mint %d éve használják már világszerte. Mindig megújul és fejlődik. ';
$lang['porg_home_title'] = 'Kezelje Ön is a kép gyűjteményét a Piwigoval. ';
@@ -32,4 +32,4 @@
$lang['porg_home_high_volume_desc'] = 'Piwigo brilla quando si tratta di organizzare migliaia o addirittura centinaia di migliaia di foto.';
$lang['porg_home_open_source_desc'] = 'Il codice sorgente è disponibile, modificabile, controllabile ed estensibile grazie ai plugin ed i temi.';
$lang['porg_home_organisation_title'] = 'Migliaia di organizzazioni e molte altre persone amano usare il loro Piwigo';
$lang['porg_home_sustainable_desc'] = 'Nato nel 2002, Piwigo è presente per i suoi utenti da oltre 15 anni. E sempre in evoluzione!';
$lang['porg_home_sustainable_desc'] = 'Nato nel 2002, Piwigo è presente per i suoi utenti da oltre %d anni. E sempre in evoluzione!';
@@ -24,17 +24,12 @@
$lang['Permissions Control'] = 'Controle toestemming';
$lang['Piwigo - Manage your photo collection'] = 'Piwigo-beheer van jouw foto-collectie';
$lang['Start discovering Piwigo'] = 'Start het verkennen van Piwigo';
$lang['View more showcases'] = '
Bekijk meer vitrines';
$lang['View more showcases'] = 'Bekijk meer vitrines';
$lang['Who are Piwigo users?'] = 'Wie zijn Piwigo-gebruikers?';
$lang['porg_home_desc1'] = 'Piwigo is open source foto-galerij-software voor het internet.';
$lang['porg_home_desc2'] = 'Ontworpen voor organisaties, teams en individuelen';
$lang['porg_home_high_volume_desc'] = '
Piwigo schittert als het gaat om het classificeren van duizenden of zelfs honderdduizenden foto\'s.';
$lang['porg_home_open_source_desc'] = '
Broncode is beschikbaar, bewerkbaar, controleerbaar en uitbreidbaar dankzij plug-ins en thema\'s.';
$lang['porg_home_organisation_title'] = '
Duizenden organisaties en miljoenen mensen gebruiken Piwigo graag.';
$lang['porg_home_sustainable_desc'] = '
Piwigo werd in 2002 geboren en ondersteunt al meer dan 15 jaar haar gebruikers. Altijd evoluerend!';
$lang['porg_home_title'] = 'Beheer je fotocollectie met Piwigo';
$lang['porg_home_high_volume_desc'] = 'Piwigo schittert als het gaat om het classificeren van duizenden of zelfs honderdduizenden foto\'s.';
$lang['porg_home_open_source_desc'] = 'Broncode is beschikbaar, bewerkbaar, controleerbaar en uitbreidbaar dankzij plug-ins en thema\'s.';
$lang['porg_home_organisation_title'] = 'Duizenden organisaties en miljoenen mensen gebruiken Piwigo graag.';
$lang['porg_home_sustainable_desc'] = 'Piwigo werd in 2002 geboren en ondersteunt al meer dan %d jaar haar gebruikers. Altijd evoluerend!';
$lang['porg_home_title'] = 'Beheer je fotocollectie met Piwigo';
@@ -32,4 +32,4 @@
$lang['porg_home_desc1'] = 'Piwigo jest aplikacją "open source" służąca do przechowywania zdjęć w sieci.';
$lang['porg_home_high_volume_desc'] = 'Piwigo wyróżnia się, zwłaszcza jeśli chodzi o klasyfikowanie tysięcy lub nawet setek tysięcy zdjęć!';
$lang['porg_home_organisation_title'] = 'Tysiące organizacji i miliony użytkowników kocha używać Piwigo';
$lang['porg_home_sustainable_desc'] = 'Powstałe w 2002 roku, Piwigo wspiera swoich użytkowników przez ponad 15 lat. Zawsze ewoluując!';
$lang['porg_home_sustainable_desc'] = 'Powstałe w 2002 roku, Piwigo wspiera swoich użytkowników przez ponad %d lat. Zawsze ewoluując!';
@@ -10,5 +10,5 @@
$lang['porg_home_high_volume_desc'] = 'Piwigo brilha quando se trata de classificar milhares ou mesmo centenas de milhares de fotos.';
$lang['porg_home_open_source_desc'] = 'O código-fonte está disponível, editável, auditavel e extensível graças a plugins e temas.';
$lang['porg_home_organisation_title'] = 'Milhares de organizações e milhões de pessoas adoram usar o Piwigo';
$lang['porg_home_sustainable_desc'] = 'Nascido em 2002, o Piwigo tem apoiado seus usuários há mais de 15 anos. Sempre evoluindo!';
$lang['porg_home_sustainable_desc'] = 'Nascido em 2002, o Piwigo tem apoiado seus usuários há mais de %d anos. Sempre evoluindo!';
$lang['porg_home_title'] = 'Gerencie sua coleção de fotos com o Piwigo';
@@ -31,5 +31,5 @@
$lang['porg_home_desc1'] = 'Piwigo - галерея для изображений в Интернете. Все программные элементы - с открытым кодом.';
$lang['porg_home_desc2'] = 'Предназначено и для организаций, и для групп, и для отдельных лиц.';
$lang['porg_home_organisation_title'] = 'Тысячам организаций всех форм собственности и милллионам индивидуальных пользователей нравится Piwigo';
$lang['porg_home_sustainable_desc'] = 'Созданная в 2002 году, Piwigo поддерживается своими пользователями более 15 лет. Постоянное развитие, только вперед!';
$lang['porg_home_sustainable_desc'] = 'Созданная в 2002 году, Piwigo поддерживается своими пользователями более %d лет. Постоянное развитие, только вперед!';
$lang['porg_home_title'] = 'Управляйте своим собранием изображений';
@@ -25,7 +25,7 @@
$lang['Piwigo - Manage your photo collection'] = 'Piwigo - Fotoğraf kolleksiyonunuzu yönetin';
$lang['porg_home_desc2'] = 'Organizasyonlar, takımlar ve kişisel kullanımlar için geliştirilmiştir.';
$lang['porg_home_open_source_desc'] = 'Mevcut açık kaynak kodu, eklentiler ve temalar sayesinde düzenlenebilir, denetlenebilir ve genişletilebilir.';
$lang['porg_home_sustainable_desc'] = 'Piwigi 2002\'de doğduğundan beri 15 yıldan fazla süredir kullanıcılarına destek vermekte. Her zaman gelişmekte!';
$lang['porg_home_sustainable_desc'] = 'Piwigi 2002\'de doğduğundan beri %d yıldan fazla süredir kullanıcılarına destek vermekte. Her zaman gelişmekte!';
$lang['View more showcases'] = 'Daha fazla örnek göster';
$lang['porg_home_title'] = 'Fotoğraf kolleksiyonunuzu Piwigo ile yönetin';
$lang['Albums Hierarchy'] = 'Albüm Hiyerarşisi';
@@ -31,5 +31,5 @@
$lang['porg_home_high_volume_desc'] = '当需要分类上万乃至数十万的照片时,Piwigo 的表现出类拔萃。';
$lang['porg_home_open_source_desc'] = '由于插件和主题的存在,源代码是可取得、可编辑、可审计、且可扩展的。';
$lang['porg_home_organisation_title'] = 'Piwigo 受到了数万组织和数百万个人的喜爱';
$lang['porg_home_sustainable_desc'] = '始于2002,Piwigo 对用户的支持已超过了15年。我们永远在进步!';
$lang['porg_home_sustainable_desc'] = '始于2002,Piwigo 对用户的支持已超过了%d年。我们永远在进步!';
$lang['porg_home_title'] = '用 Piwigo 管理您的图像收藏';
@@ -266,6 +266,7 @@ function porg_load_content()
'TESTIMONIALS' => porg_get_testimonials_sample(),
'LATEST_VERSION_NUMBER' => $latest_version['version'],
'LATEST_VERSION_DATE' => porg_date_format($latest_version['released_on']),
'NB_YEARS' => porg_get_nb_years(),
)
);
@@ -77,7 +77,7 @@ $(document).ready(function() {
<div class="col-md-4">
<img src="{$PORG_ROOT_URL}images/home/diploma.svg"/>
<h2>{'Sustainable'|translate}</h2>
<p>{'porg_home_sustainable_desc'|translate}</p>
<p>{'porg_home_sustainable_desc'|translate:$NB_YEARS}</p>
</div>
<div class="col-md-4">
<img src="{$PORG_ROOT_URL}images/home/code.svg"/>

0 comments on commit e85c302

Please sign in to comment.
You can’t perform that action at this time.