diff --git a/functions.php b/functions.php index c2a5c24..9cdb1e2 100644 --- a/functions.php +++ b/functions.php @@ -27,16 +27,26 @@ function openmamba_download_link($milestone, $medium, $currarch, $ext, $mlword, $displaymilestone = "$milestone"; } $currreleasetag=$releaseTag[$medium.'-'.$milestone.'-'.$lang.'-'.$currarch]; - echo ""; - echo "
"; - echo "openmamba $displaymilestone $medium "; - echo _e('for','responsive')." $currarch ($mlword) 
"; - echo ""; - echo _e('File size:','responsive').' '.$sizeMedium[$medium.'-'.$currreleasetag.'-'.$lang.'-'.$currarch].'B; '; - echo _e('Date','responsive').': '.substr($builddateMedium[$medium.'-'.$currreleasetag.'-'.$lang.'-'.$currarch], - 0, strpos($builddateMedium[$medium.'-'.$currreleasetag.'-'.$lang.'-'.$currarch], ' ')); - echo "; Md5: " . $md5Medium[$medium.'-'.$currreleasetag.'-'.$lang.'-'.$currarch]; - echo "
"; + if ("$currreleasetag" != "") { + echo ""; + echo "
"; + echo "openmamba $displaymilestone $medium "; + echo _e('for','responsive')." $currarch ($mlword) 
"; + echo ""; + echo _e('File size:','responsive').' '.$sizeMedium[$medium.'-'.$currreleasetag.'-'.$lang.'-'.$currarch].'B; '; + echo _e('Date','responsive').': '.substr($builddateMedium[$medium.'-'.$currreleasetag.'-'.$lang.'-'.$currarch], + 0, strpos($builddateMedium[$medium.'-'.$currreleasetag.'-'.$lang.'-'.$currarch], ' ')); + echo "; Md5: " . $md5Medium[$medium.'-'.$currreleasetag.'-'.$lang.'-'.$currarch]; + echo "
"; + } else { + echo ""; + echo "
"; + echo "openmamba $displaymilestone $medium "; + echo _e('for','responsive')." $currarch ($mlword) 
"; + echo ""; + echo _e('Sorry, download is temporary unavailable. If the problem persists please report the problem.','responsive'); + echo "
"; + } } function openmamba_download_func( $atts ) { diff --git a/languages/README b/languages/README index 541cc60..be4dd06 100644 --- a/languages/README +++ b/languages/README @@ -4,7 +4,7 @@ Translation management: xgettext --default-domain=responsive --language=PHP --keyword=__ --keyword=_e --sort-by-file --copyright-holder="Silvan Calarco" --package-name=openmamba --package-version=1.0 --msgid-bugs-address="bugs@openmamba.org" ../*.php 2) -msgmerge it.po responsive.pot -o it.new.po +msgmerge it.po responsive.po -o it.po 3) msgcat it.po | msgfmt -o it.mo - diff --git a/languages/it.mo b/languages/it.mo index 2392ab3..c5e72b0 100644 Binary files a/languages/it.mo and b/languages/it.mo differ diff --git a/languages/it.po b/languages/it.po index 397fc13..3df717d 100644 --- a/languages/it.po +++ b/languages/it.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Responsive Theme\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2014-12-08 16:25+0100\n" +"Report-Msgid-Bugs-To: bugs@openmamba.org\n" +"POT-Creation-Date: 2014-12-29 14:26+0100\n" "PO-Revision-Date: 2014-12-08 16:25+0100\n" "Last-Translator: Silvan Calarco \n" "Language-Team: Italian, Italy\n" @@ -24,18 +24,25 @@ msgstr "Leggi di più ›" msgid "Pages:" msgstr "Pagine:" -#: ../functions.php:33 +#: ../functions.php:34 ../functions.php:45 msgid "for" msgstr "per" -#: ../functions.php:35 +#: ../functions.php:36 msgid "File size:" msgstr "Dimensione file:" -#: ../functions.php:36 +#: ../functions.php:37 msgid "Date" msgstr "Data" +#: ../functions.php:47 +msgid "" +"Sorry, download is temporary unavailable. If the problem persists please " +"report the problem." +msgstr "Il download non è temporaneamente disponibile. Se il problema persiste " +"ti ringraziamo se ci puoi segnalare il problema." + #: ../header-webbuild.php:87 msgid "↓ Skip to Main Content" msgstr "↓ Salta al contenuto principale"