diff --git a/plasma/templates/plasma_announce_template.php.erb b/plasma/templates/plasma_announce_template.php.erb index 51f5f39..212bada 100644 --- a/plasma/templates/plasma_announce_template.php.erb +++ b/plasma/templates/plasma_announce_template.php.erb @@ -1,119 +1,119 @@ "KDE Plasma <%= version %>, <%= releasetype %> Release for <%= releasemonth %>", 'cssFile' => '/css/announce.css' ]); require('../aether/header.php'); $site_root = "../"; $release = 'plasma-<%= version %>'; // for i18n $version = "<%= version %>"; ?>

Plasma <%= short_version %>
")?>

.")?> update to KDE Plasma 5, versioned %1", "<%= version %>");?>. Plasma %1 - was released in %2 with many feature refinements and new modules to complete the desktop experience.", "<%= short_version %>", "<%= minor_release_month %>");?> + was released in <%= minor_release_month %> with many feature refinements and new modules to complete the desktop experience.", "<%= short_version %>");?>

-");?> + worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:");?>

"); ?>

Facebook or Twitter or Google+.", "https://www.facebook.com/kde", "https://www.kde.org/announcements/facebook.gif", "https://www.facebook.com/kde", "https://twitter.com/kdecommunity", "https://www.kde.org/announcements/twitter.png", "https://twitter.com/kdecommunity", "https://plus.google.com/105126786256705328374/posts", "https://www.kde.org/announcements/googleplus.png", "https://plus.google.com/105126786256705328374/posts"); ?>

KDE Forums Plasma 5 board.", "https://forum.kde.org/viewforum.php?f=289");?>

#Plasma IRC channel, Plasma-devel mailing list or report issues via bugzilla. If you like what the team is doing, please let them know!", "irc://#plasma@freenode.net", "https://mail.kde.org/mailman/listinfo/plasma-devel", "https://bugs.kde.org/enter_bug.cgi?product=plasmashell&format=guided"); ?>

Free Software community that exists and grows only because of the help of many volunteers that donate their time and effort. KDE is always looking for new volunteers and contributions, whether it is help with coding, bug fixing or reporting, writing documentation, translations, promotion, money, etc. All contributions are gratefully appreciated and eagerly accepted. Please read through the Supporting KDE page for further information or become a KDE e.V. supporting member through our Join the Game initiative.", "http://www.gnu.org/philosophy/free-sw.html", "/community/donations/", "https://relate.kde.org/civicrm/contribute/transact?id=5"); ?>

"KDE Plasma 5.9.1, Bugfix Release for January", 'cssFile' => '/css/announce.css' ]); require('../aether/header.php'); $site_root = "../"; $release = 'plasma-5.9.1'; // for i18n $version = "5.9.1"; ?>

Plasma 5.9

. Plasma %1 - was released in %2 with many feature refinements and new modules to complete the desktop experience.", "5.9", "January");?> + was released in January with many feature refinements and new modules to complete the desktop experience.", "5.9");?>

- +

Facebook or Twitter or Google+.", "https://www.facebook.com/kde", "https://www.kde.org/announcements/facebook.gif", "https://www.facebook.com/kde", "https://twitter.com/kdecommunity", "https://www.kde.org/announcements/twitter.png", "https://twitter.com/kdecommunity", "https://plus.google.com/105126786256705328374/posts", "https://www.kde.org/announcements/googleplus.png", "https://plus.google.com/105126786256705328374/posts"); ?>

KDE Forums Plasma 5 board.", "https://forum.kde.org/viewforum.php?f=289");?>

#Plasma IRC channel, Plasma-devel mailing list or report issues via bugzilla. If you like what the team is doing, please let them know!", "irc://#plasma@freenode.net", "https://mail.kde.org/mailman/listinfo/plasma-devel", "https://bugs.kde.org/enter_bug.cgi?product=plasmashell&format=guided"); ?>

Free Software community that exists and grows only because of the help of many volunteers that donate their time and effort. KDE is always looking for new volunteers and contributions, whether it is help with coding, bug fixing or reporting, writing documentation, translations, promotion, money, etc. All contributions are gratefully appreciated and eagerly accepted. Please read through the Supporting KDE page for further information or become a KDE e.V. supporting member through our Join the Game initiative.", "http://www.gnu.org/philosophy/free-sw.html", "/community/donations/", "https://relate.kde.org/civicrm/contribute/transact?id=5"); ?>

# # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of # the License or (at your option) version 3 or any later version # accepted by the membership of KDE e.V. (or its successor approved # by the membership of KDE e.V.), which shall act as a proxy # defined in Section 14 of version 3 of the license. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . require 'fileutils' require_relative 'lib/testme' require_relative '../plasma/lib/plasma_info_template' require_relative '../plasma/lib/plasma_announce_template' class TestPlasmaWebpages < Testme def setup PlasmaVersion.versions_path = data('plasma-webpages/VERSIONS.inc') end def teardown PlasmaVersion.versions_path = nil end def test_info_render ref = File.read(data('plasma-webpages/info-plasma-5.9.1.php')) refute_equal('', ref) template = PlasmaInfoTemplate.new output = template.render assert_equal(ref, output) end def test_announce_render ref = File.read(data('plasma-webpages/announce-plasma-5.9.1.php')) refute_equal('', ref) template = PlasmaAnnounceTemplate.new output = template.render + # File.open('/home/jr/tmp/OUTPUT', 'w') { |file| file.write(output) } + # File.open('/home/jr/tmp/REF', 'w') { |file| file.write(ref) } assert_equal(ref.split($/), output.split($/)) end def test_versions plasma_versions = PlasmaVersion.new refute_equal({}, plasma_versions.values) assert_equal('5.9.1', plasma_versions.values['VERSION']) assert_equal('5.9.1', plasma_versions.version) assert_equal('Bugfix', plasma_versions.values['RELEASETYPE']) assert_equal('Bugfix', plasma_versions.releasetype) assert_raises NoMethodError do plasma_versions.yolo end end end