CC-1960: Internationalize Airtime / Support translations

-added gettext wrapper functions for all strings in view/scripts, and forms
This commit is contained in:
denise 2012-11-15 10:59:06 -05:00
parent a69ff167d4
commit e5f67c8b05
78 changed files with 481 additions and 423 deletions

View file

@ -1,8 +1,21 @@
<div class="text-content">
<h2><? echo _("About") ?></h2>
<p>
<a href="http://airtime.sourcefabric.org" target="_blank"><? echo _("Airtime") ?></a><? echo _(" "); ?><?php echo $this->airtime_version ?><? echo _(", the open radio software for scheduling and remote station management."); ?><br>
© 2012 <a href="http://www.sourcefabric.org" target="_blank"><? echo _("Sourcefabric") ?></a><? echo _(" o.p.s. Airtime is distributed under the "); ?><a href="http://www.gnu.org/licenses/gpl-3.0-standalone.html" target="_blank">GNU GPL v.3</a>
<?php
echo sprintf(_("%sAirtime%s %s, , the open radio software for scheduling and remote station management. %s"),
"<a href='http://airtime.sourcefabric.org' target='_blank'>",
"</a>",
$this->airtime_version,
"<br />")
?>
<br>© 2012
<?php
echo sprintf(_("%sSourcefabric%s o.p.s. Airtime is distributed under the %sGNU GPL v.3%s"),
"<a href='http://www.sourcefabric.org' target='_blank'>",
"</a>",
"<a href='http://www.gnu.org/licenses/gpl-3.0-standalone.html' target='_blank'>",
"</a>")
?>
</p>
</div>
<br>

View file

@ -1,15 +1,17 @@
<div class="gray-logo"></div>
<div class="text-content">
<h2>Welcome to Airtime!</h2>
<p>Here's how you can get started using Airtime to automate your broadcasts: </p>
<h2><?php echo _("Welcome to Airtime!") ?></h2>
<p><?php echo _("Here's how you can get started using Airtime to automate your broadcasts: ")?></p>
<ol>
<li>Begin by adding your files to the library using the "Add Media" menu button. You can drag and drop your files to this window too.</li>
<li>Create a show by going to "Calendar" in the menu bar, and then clicking the "+ Show" icon. This can be either a one-time or repeating show. Only admins and program managers can add shows.</li>
<li>Add media to the show by going to your show in the Schedule calendar, left-clicking on it and selecting "Add / Remove Content".</li>
<li><? echo _("Select your media from the left pane and drag them to your show in the right pane."); ?></li>
<li><?php echo _("Begin by adding your files to the library using the 'Add Media' menu button. You can drag and drop your files to this window too.")?></li>
<li><?php echo _("Create a show by going to 'Calendar' in the menu bar, and then clicking the '+ Show' icon. This can be either a one-time or repeating show. Only admins and program managers can add shows.")?></li>
<li><?php echo _("Add media to the show by going to your show in the Schedule calendar, left-clicking on it and selecting 'Add / Remove Content'")?>.</li>
<li><?php echo _("Select your media from the left pane and drag them to your show in the right pane."); ?></li>
</ol>
<p><strong>Then you're good to go!</strong><br />
For more detailed help, read the <a href="http://www.sourcefabric.org/en/airtime/manuals/" target="_blank"><? echo _("user manual") ?></a><? echo _("."); ?></p>
<p><strong><?php echo _("Then you're good to go!")?></strong><br />
<?php echo sprintf(_("For more detailed help, read the %suser manual%s."),
"<a href='http://www.sourcefabric.org/en/airtime/manuals/' target='_blank'>",
"</a>") ?></p>
</div>

View file

@ -1 +0,0 @@
<br /><br /><center><? echo _("View script for controller "); ?><b><? echo _("Dashboard") ?></b><? echo _(" and script/action name "); ?><b><? echo _("index"); ?></b></center>