www/sites/www
Albert Astals Cid
aacid at kde.org
Tue Feb 14 19:27:06 UTC 2017
SVN commit 1482701 by aacid:
Bring back i18n for plasma announcements
there's no reason to remove it
CCMAIL: kde-www at kde.org
CCMAIL: jr at jriddell.org
M +35 -0 aether/header.php
M +50 -42 announcements/plasma-5.9.2.php
--- trunk/www/sites/www/aether/header.php #1482700:1482701
@@ -34,6 +34,41 @@
echo ('<link href="'.$pageConfig['cssFile'].'" rel="stylesheet" type="text/css" />');
}
+ include_once ("functions.inc");
+ setup_site();
+
+ if (!isset($site_locale))
+ {
+ if (isset($_GET['site_locale']))
+ {
+ $site_locale = htmlentities($_GET['site_locale']);
+ setcookie('site_locale', $site_locale, time()+31536000, '/', "." . $_SERVER['SERVER_NAME']);
+ }
+ else
+ {
+ if (isset($_COOKIE['site_locale']))
+ {
+ $site_locale = htmlentities($_COOKIE['site_locale']);
+ }
+ else
+ {
+ if (!isset($default_site_locale))
+ {
+ $site_locale = "en";
+ }
+ else
+ {
+ $site_locale = $default_site_locale;
+ }
+ }
+ }
+ }
+
+ // set php locale
+ setlocale(LC_ALL, $site_locale);
+
+ // start up our i18n stuff
+ startTranslation($site_locale);
?>
<!-- Standard JS Files, bootstrap Async -->
--- trunk/www/sites/www/announcements/plasma-5.9.2.php #1482700:1482701
@@ -1,16 +1,18 @@
<?php
+ include_once ("functions.inc");
+ $translation_file = "www";
+
require('../aether/config.php');
$pageConfig = array_merge($pageConfig, [
- 'title' => "KDE Plasma 5.9.2, bugfix Release for February",
+ 'title' => i18n_var("KDE Plasma 5.9.2, bugfix Release for February"),
'cssFile' => 'content/home/portal.css'
]);
- function i18n ($v) { print $v; }
-
require('../aether/header.php');
$site_root = "../";
- $release = "5.9.2";
+ $release = 'plasma-5.9.2'; // for i18n
+ $version = '5.9.2';
?>
<style>
@@ -89,8 +91,10 @@
<main class="releaseAnnouncment container">
- <h1 class="announce-title"><a href="/announcements/">Release Announcements</a>Plasma 5.9.2</h1>
+ <h1 class="announce-title"><a href="/announcements/"><?php i18n("Release Announcements")?></a><?php print i18n_var("Plasma %1", $version)?></h1>
+ <?php include "./announce-i18n-bar.inc"; ?>
+
<figure class="videoBlock">
<iframe width="560" height="315" src="https://www.youtube.com/embed/lm0sqqVcotA?rel=0" allowfullscreen></iframe>
</figure>
@@ -100,91 +104,95 @@
<a href="plasma-5.9/plasma-5.9.png">
<img src="plasma-5.9/plasma-5.9-wee.png" width="600" height="338" alt="Plasma 5.9" />
</a>
- <figcaption>KDE Plasma 5.9</figcaption>
+ <figcaption><?php print i18n_var("KDE Plasma %1", "5.9")?></figcaption>
</figure>
<p>
- Tuesday, 14 February 2017.
- Today KDE releases a bugfix update to KDE Plasma 5, versioned 5.9.2.
- <a href='https://www.kde.org/announcements/plasma-5.9.0.php'>Plasma 5.9</a>
- was released in January with many feature refinements and new modules to complete the desktop experience.
+ <?php i18n("Tuesday, 14 February 2017.")?>
+ <?php print i18n_var("Today KDE releases a bugfix update to KDE Plasma 5, versioned %1.", $version);?>
+ <?php print i18n_var("<a href='%1'>Plasma %2</a> was released in January with many feature refinements and new modules to complete the desktop experience.",
+ "https://www.kde.org/announcements/plasma-5.9.0.php", "5.9"); ?>
</p>
<p>
- This release adds a two week's worth of new
- translations and fixes from KDE's contributors. The bugfixes are
- typically small but important and include:
+ <?php i18n("This release adds a two week's worth of new translations and fixes from KDE's contributors. The bugfixes are typically small but important and include:"); ?>
</p>
<ul>
-<li>Fix crash in Screen Locker KCM on teardown. <a href='https://commits.kde.org/kscreenlocker/51c4d6c8db8298dbd471fa91de6cb97bf8b4287a'>Commit.</a> See bug <a href='https://bugs.kde.org/373628'>#373628</a></li>
-<li>Fix Discover Appstream Support: make sure we don't show warnings unless it's absolutely necessary. <a href='https://commits.kde.org/discover/d79cb42b7d77dd0c6704a3a40d85d06105de55b4'>Commit.</a> </li>
+ <li>
+ <?php print i18n_var("Fix crash in Screen Locker KCM on teardown. <a href='%1'>Commit.</a> See bug <a href='%2'>%3</a>", "https://commits.kde.org/kscreenlocker/51c4d6c8db8298dbd471fa91de6cb97bf8b4287a", "https://bugs.kde.org/373628", "#373628"); ?>
+ </li>
+ <li>
+ <?php print i18n_var("Fix Discover Appstream Support: make sure we don't show warnings unless it's absolutely necessary. <a href='%1'>Commit.</a>", "https://commits.kde.org/discover/d79cb42b7d77dd0c6704a3a40d85d06105de55b4");?>
+ </li>
</ul>
- <a href="plasma-5.9.1-5.9.2-changelog.php">Full Plasma 5.9.2 changelog</a>
+ <a href="plasma-5.9.1-5.9.2-changelog.php"><?php print i18n_var("Full Plasma %1 changelog", $version);?></a>
<!-- // Boilerplate again -->
<section class="row get-it">
<article class="col-md">
- <h2>Live Images</h2>
+ <h2><?php i18n("Live Images");?></h2>
<p>
- The easiest way to try it out is with a live image booted off a
- USB disk. Docker images also provide a quick and easy way to test Plasma.
+ <?php i18n("The easiest way to try it out is with a live image booted off a USB disk. Docker images also provide a quick and easy way to test Plasma.");?>
</p>
- <a href='https://community.kde.org/Plasma/Live_Images' class="learn-more">Download live images with Plasma 5</a>
- <a href='https://community.kde.org/Plasma/Docker_Images' class="learn-more">Download Docker images with Plasma 5</a>
+ <a href='https://community.kde.org/Plasma/Live_Images' class="learn-more"><?php i18n("Download live images with Plasma 5");?></a>
+ <a href='https://community.kde.org/Plasma/Docker_Images' class="learn-more"><?php i18n("Download Docker images with Plasma 5");?></a>
</article>
<article class="col-md">
- <h2>Package Downloads</h2>
+ <h2><?php i18n("Package Downloads");?></h2>
<p>
- Distributions have created, or are in the process
- of creating, packages listed on our wiki page.
+ <?php i18n("Distributions have created, or are in the process of creating, packages listed on our wiki page.");?>
</p>
- <a href='https://community.kde.org/Plasma/Packages' class="learn-more">Package download wiki page</a>
+ <a href='https://community.kde.org/Plasma/Packages' class="learn-more"><?php i18n("Package download wiki page");?></a>
</article>
<article class="col-md">
- <h2>Source Downloads</h2>
+ <h2><?php i18n("Source Downloads");?></h2>
<p>
- You can install Plasma 5 directly from source.
+ <?php i18n("You can install Plasma 5 directly from source.");?>
</p>
- <a href='http://community.kde.org/Frameworks/Building'>Community instructions to compile it</a>
- <a href='../info/plasma-5.9.2.php' class='learn-more'>Source Info Page</a>
+ <a href='http://community.kde.org/Frameworks/Building'><?php i18n("Community instructions to compile it");?></a>
+ <a href='../info/plasma-5.9.2.php' class='learn-more'><?php i18n("Source Info Page");?></a>
</article>
</section>
<section class="give-feedback">
- <h2>Feedback</h2>
+ <h2><?php i18n("Feedback");?></h2>
<p>
- You can give us feedback and get updates on
- <a href='https://www.facebook.com/kde'><img src='https://www.kde.org/announcements/facebook.gif' /></a> <a href='https://www.facebook.com/kde'>Facebook</a>
- or <a href='https://twitter.com/kdecommunity'><img src='https://www.kde.org/announcements/twitter.png' /></a> <a href='https://twitter.com/kdecommunity'>Twitter</a>
- or <a href='https://plus.google.com/105126786256705328374/posts'><img src='https://www.kde.org/announcements/googleplus.png' /></a> <a href='https://plus.google.com/105126786256705328374/posts'>Google+</a>.
+ <?php print i18n_var("You can give us feedback and get updates on <a href='%1'><img src='%2' /></a> <a href='%3'>Facebook</a>
+ or <a href='%4'><img src='%5' /></a> <a href='%6'>Twitter</a>
+ or <a href='%7'><img src='%8' /></a> <a href='%9'>Google+</a>.", "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"); ?>
</p>
<p>
- Discuss Plasma 5 on the <a href='https://forum.kde.org/viewforum.php?f=289'>KDE Forums Plasma 5 board</a>.
+ <?php print i18n_var("Discuss Plasma 5 on the <a href='%1'>KDE Forums Plasma 5 board</a>.", "https://forum.kde.org/viewforum.php?f=289");?>
</p>
- <p>You can provide feedback direct to the developers via the <a href='irc://#plasma@freenode.net'>#Plasma IRC channel</a>,
- <a href='https://mail.kde.org/mailman/listinfo/plasma-devel'>Plasma-devel mailing list</a> or report issues via
- <a href='https://bugs.kde.org/enter_bug.cgi?product=plasmashell&format=guided'>bugzilla</a>. If you like what the
- team is doing, please let them know!
+ <p><?php print i18n_var("You can provide feedback direct to the developers via the <a href='%1'>#Plasma IRC channel</a>, <a href='%2'>Plasma-devel mailing list</a> or report issues via <a href='%3'>bugzilla</a>. 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"); ?>
- <p>Your feedback is greatly appreciated.</p>
+ <p><?php i18n("Your feedback is greatly appreciated.");?></p>
</section>
<h2>
- Supporting KDE
+ <?php i18n("Supporting KDE");?>
</h2>
<p align="justify">
+ <?php print i18n_var("KDE is a <a href='%1'>Free Software</a> 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 <a href='%2'>Supporting KDE page</a> for further information or become a KDE e.V. supporting member through our <a href='%3'>Join the Game</a> initiative.", "http://www.gnu.org/philosophy/free-sw.html", "/community/donations/", "https://relate.kde.org/civicrm/contribute/transact?id=5"); ?>
+ </p>
- KDE is a <a href='http://www.gnu.org/philosophy/free-sw.html'>Free Software</a> 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 <a href='/community/donations/'>Supporting KDE page</a> for further information or become a KDE e.V. supporting member through our <a href='https://relate.kde.org/civicrm/contribute/transact?id=5'>Join the Game</a> initiative. </p>
<?php
include($site_root . "/contact/about_kde.inc");
?>
+
+<h2><?php i18n("Press Contacts");?></h2>
+
+<?php
+ include($site_root . "/contact/press_contacts.inc");
+?>
+
</main>
<?php
require('../aether/footer.php');
More information about the kde-www
mailing list