Subversion Repositories LCARS

Compare Revisions

Last modification

Ignore whitespace Rev 210 → Rev 209

/trunk/index.ru.php
File deleted
\ No newline at end of file
/trunk/index.vu.php
File deleted
\ No newline at end of file
/trunk/application/layouts/index/index.phtml
File deleted
/trunk/application/layouts/index/content.phtml
File deleted
\ No newline at end of file
/trunk/application/layouts/index/multi-display.phtml
File deleted
/trunk/application/layouts/index/footer.phtml
File deleted
/trunk/application/scripts/ua.js
File deleted
\ No newline at end of file
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: application/scripts/vulcan-media-script.js
===================================================================
--- application/scripts/vulcan-media-script.js (revision 210)
+++ application/scripts/vulcan-media-script.js (nonexistent)
@@ -1,151 +0,0 @@
-var vulcan_texts = null;
-
-var media_map = {
- S: "?",
- T: "Y",
- P: "]",
- K: "ß",
- R: "²",
- L: "ζ",
- A: "Ŧ",
- D: "S",
- O: "Ŋ",
- E: "σ",
- V: "³",
- U: "¶",
- H: "ξ",
- G: "^",
- Ch: ")",
- I: "ƒ",
- N: "(",
- Z: "ε",
- M: "δ",
- Y: "ς",
- F: "[",
- W: "¬",
- B: "Ξ",
- SH: "§",
- TH: "λ",
- KH: "Φ",
- ZH: "ω",
- TS: "θ",
- DZH: "C",
- J: "C",
- KS: "φ",
- X: "φ",
- LL: "μ",
- M: "&",
- NG: "ρ",
- NN: "þ",
- SS: "β",
- TCH: "M",
- ", ": " - ",
- ":": " – ",
- " – ": " – ",
- " — ": " – ",
- "…": "—",
- "~": "=",
- "!": "..",
- "!!!": "...",
- "(": "|",
- ")": "|",
- "[": "||",
- "]": "||",
- "&": "•",
- "°": "¯"
-};
-
-//jsx.object.flip = function (obj) {
-// var flipped = jsx.object.inheritFrom(obj);
-// var keys = jsx.object.getKeys(obj);
-//
-// for (var i = 0, len = keys.length; i < len; ++i)
-// {
-// var key = keys[i];
-// var value = obj[key];
-// if (typeof value != "function")
-// {
-// flipped[value] = key;
-// }
-// }
-//
-// return flipped;
-//};
-
-var media_caption;
-
-function mediaScript (button)
-{
- vulcan_texts = jsx.dom.xpath.evaluate(
- './/*[@lang = "' + LANG_VULCAN + '"]//*[(not(@lang) or (@lang = "' + LANG_VULCAN + '")) and (@class = "text")]',
- document.body);
-
- if (!vulcan_texts)
- {
- return;
- }
-
- var previous_parent = null;
-
- for (var i = 0, len = vulcan_texts.length; i < len; ++i)
- {
- var text = vulcan_texts[i];
-
- text.style.textTransform = "none";
- if (!text.hasAttribute("data-html"))
- {
- text.setAttribute("data-html", text.innerHTML);
-
- if (!text.title)
- {
- text.title = text.textContent;
- }
- }
-
- var text_nodes = jsx.dom.xpath.evaluate(
- './/text()[parent::*[not(@lang) or (@lang = "' + LANG_VULCAN + '")]]',
- text);
-
- for (var j = 0, len2 = text_nodes.length; j < len2; ++j)
- {
- var text_node = text_nodes[j];
-
- if (text_node.parentNode.lang != LANG_VULCAN)
- {
- text_node.nodeValue = text_node.nodeValue.replace(
- /Tch|Ch|Sh|Th|Kh|Zh|Ts|Dzh|Ks|Ll|Ng|Nn|Ss| [–—] |, |!!!|[!STPKRLADOEVUHGINZMYFWBJX:()[\]&°…~]/gi,
- function (s) {
- return jsx.object.getProperty(media_map, s.toUpperCase(), s);
- });
- }
- }
-
- text.parentNode.lang = "vuh-Media-Gol-modern";
- }
-
- if (button)
- {
- media_caption = button.firstChild.textContent;
- button.firstChild.textContent = "Latin-Zukitan";
- button.onclick = function () {
- latinScript(this);
- };
- }
-}
-
-function latinScript (button)
-{
- for (var i = 0, len = vulcan_texts.length; i < len; ++i)
- {
- var text = vulcan_texts[i];
-
- text.style.textTransform = "";
- text.innerHTML = text.getAttribute('data-html');
- text.parentNode.lang = "vuh-Latn-Gol-modern";
- }
-
- button.firstChild.textContent = media_caption;
- button.onclick = function () {
- mediaScript(this);
- };
-}
/application/scripts/vulcan-media-script.js
Property changes:
Deleted: svn:mime-type
## -1 +0,0 ##
-text/plain
\ No newline at end of property
Index: i18n/ru.po
===================================================================
--- i18n/ru.po (revision 210)
+++ i18n/ru.po (revision 209)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PE 0.3.9.19\n"
"Report-Msgid-Bugs-To: Thomas 'PointedEars' Lahn <webmaster@PointedEars.de>\n"
-"POT-Creation-Date: 2014-04-05 00:57+0200\n"
+"POT-Creation-Date: 2014-04-05 00:40+0200\n"
"PO-Revision-Date: 2013-11-27 05:00+0200\n"
"Last-Translator: Thomas 'PointedEars' Lahn <webmaster@PointedEars.de>\n"
"Language-Team: Russian <webmaster@PointedEars.de>\n"
@@ -400,7 +400,3 @@
#, php-format
msgid "%s of %s episodes"
msgstr ""
-
-#: ../media/video/series/application/layouts/index/index.phtml:224
-msgid "last time"
-msgstr ""
Index: i18n/LocaleData/vuh-Latn-Gol-modern/LC_MESSAGES/de.pointedears.mo
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: i18n/LocaleData/ru/LC_MESSAGES/de.pointedears.mo
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: i18n/LocaleData/en/LC_MESSAGES/de.pointedears.mo
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: i18n/LocaleData/de/LC_MESSAGES/de.pointedears.mo
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: i18n/vuh-Latn-Gol-modern.po
===================================================================
--- i18n/vuh-Latn-Gol-modern.po (revision 210)
+++ i18n/vuh-Latn-Gol-modern.po (revision 209)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PE 0.3.9.20\n"
"Report-Msgid-Bugs-To: Thomas 'PointedEars' Lahn <webmaster@PointedEars.de>\n"
-"POT-Creation-Date: 2014-04-05 00:57+0200\n"
+"POT-Creation-Date: 2014-04-05 00:40+0200\n"
"PO-Revision-Date: 2013-11-27 05:00+0200\n"
"Last-Translator: Thomas 'PointedEars' Lahn <webmaster@PointedEars.de>\n"
"Language-Team: Modern Golic Vulcan <webmaster@PointedEars.de>\n"
@@ -403,7 +403,3 @@
#, php-format
msgid "%s of %s episodes"
msgstr ""
-
-#: ../media/video/series/application/layouts/index/index.phtml:224
-msgid "last time"
-msgstr ""
Index: i18n/en.po
===================================================================
--- i18n/en.po (revision 210)
+++ i18n/en.po (revision 209)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PE 0.3.9.20\n"
"Report-Msgid-Bugs-To: Thomas 'PointedEars' Lahn <webmaster@PointedEars.de>\n"
-"POT-Creation-Date: 2014-04-05 00:57+0200\n"
+"POT-Creation-Date: 2014-04-05 00:40+0200\n"
"PO-Revision-Date: 2013-11-26 03:19+0200\n"
"Last-Translator: Thomas 'PointedEars' Lahn <webmaster@PointedEars.de>\n"
"Language-Team: English <webmaster@PointedEars.de>\n"
@@ -396,7 +396,3 @@
#, php-format
msgid "%s of %s episodes"
msgstr ""
-
-#: ../media/video/series/application/layouts/index/index.phtml:224
-msgid "last time"
-msgstr ""
Index: i18n/de.po
===================================================================
--- i18n/de.po (revision 210)
+++ i18n/de.po (revision 209)
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PE 0.3.9.20\n"
"Report-Msgid-Bugs-To: Thomas 'PointedEars' Lahn <webmaster@PointedEars.de>\n"
-"POT-Creation-Date: 2014-04-05 00:57+0200\n"
+"POT-Creation-Date: 2014-04-05 00:40+0200\n"
"PO-Revision-Date: 2013-12-01 18:57+0200\n"
"Last-Translator: Thomas 'PointedEars' Lahn <webmaster@PointedEars.de>\n"
"Language-Team: German <webmaster@PointedEars.de>\n"
@@ -414,10 +414,6 @@
msgid "%s of %s episodes"
msgstr "%s von %s Episoden"
-#: ../media/video/series/application/layouts/index/index.phtml:224
-msgid "last time"
-msgstr "zuletzt am"
-
#~ msgid ""
#~ "Access to the United Federation of Planets Databanks, an online songbook "
#~ "and software downloads always worth a click. Coming soon: The best "
/trunk/i18n/de.pointedears.pot
6,9 → 6,9
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PE 0.3.9.19\n"
"Project-Id-Version: PE 0.3.9.20\n"
"Report-Msgid-Bugs-To: Thomas 'PointedEars' Lahn <webmaster@PointedEars.de>\n"
"POT-Creation-Date: 2014-04-05 00:57+0200\n"
"POT-Creation-Date: 2014-04-05 00:40+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
390,7 → 390,3
#, php-format
msgid "%s of %s episodes"
msgstr ""
 
#: ../media/video/series/application/layouts/index/index.phtml:224
msgid "last time"
msgstr ""
/trunk/styles/lcars22.css
431,6 → 431,7
background-color: #7d7d7d; /* c9c */
color: #000 !important;
text-decoration: none !important;
text-transform: uppercase;
/* overflow: hidden; */
cursor: pointer !important;
}
439,12 → 440,7
position: absolute;
bottom: 0;
right: 0.5em;
max-width: 3.5em;
overflow: hidden;
cursor: pointer !important;
text-overflow: ellipsis;
text-transform: uppercase;
white-space: nowrap;
}
 
.button.command {
612,8 → 608,6
.multi-display .upper .content .analysis th {
padding: 0 0.4em 0 0.1em;
font-weight: normal;
background-color: #000;
color: #fc0;
text-align: left;
text-transform: uppercase;
white-space: nowrap;
665,13 → 659,9
margin: 0;
height: 1.8em;
border-radius: 0.9em;
text-transform: none;
}
 
.multi-display .commands .button .text
{
text-transform: none !important;
}
 
.multi-display .upper .content .commands .button .text {
right: 1em;
}
/trunk/styles/lcars.css.php
109,7 → 109,7
);
?>
 
*[lang^="vuh-Latn"] {
*[lang^="x-vulcan-latin"] {
font-family: cursive;
}
 
/trunk/global.php
23,48 → 23,12
/* Cached resource expires in HTTP/1.0 caches 24h after last retrieval */
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT');
 
// $vulcan = 'x-vulcan-latin';
$vulcan = 'vuh-Latn-Gol-modern';
$languages = array(
'en' => 'English',
'de' => 'Deutsch',
'ru' => 'по-русски',
// 'x-klingon-latin' => array(
// 'key' => 'tlh',
// 'name' => 'tlhIngan Hol'
// ),
$vulcan => array(
'key' => 'vu',
'name' => '<abbr title="Gen-lis">G-l</abbr> Vuhlkansu'
)
// 'ru' => 'По-русски',
);
 
 
/**
* Returns the short language key.
*
* Needed for safely mapping extra-terrestrial languages.
*/
function language_key_short ($key)
{
global $languages;
preg_match('/^[^-]{2,3}/', $key, $matches);
$language = $languages[$key];
return isset($language['key']) ? $language['key'] : $matches[0];
}
 
/**
* Returns the language name.
*
* Needed for safely mapping extra-terrestrial languages.
*/
function language_name ($key)
{
global $languages;
$language = $languages[$key];
return isset($language['name']) ? $language['name'] : $language;
}
 
require_once 'Zend/Loader/StandardAutoloader.php';
$loader = new Zend\Loader\StandardAutoloader(array('autoregister_zf' => true));
$loader->register();
84,31 → 48,26
* @param string $s
* @return string
*/
function tr ($s, $lang = null)
function tr ($s)
{
global $translator;
global $textDomain;
global $language;
 
if ($lang === null)
{
$lang = $language;
}
 
/* DEBUG */
// echo "return \$translator->translate(\"$s\", \"$textDomain\", \"$language\");<br>\n";
 
return $translator->translate($s, $textDomain, $lang);
return $translator->translate($s, $textDomain, $language);
}
 
$menu = array(
'scripts' => array('path' => 'scripts/', 'text' => tr('Scripting')),
'scripts' => array('path' => 'scripts/', 'text' => 'Scripting'),
'es-matrix' => array(
'path' => 'es-matrix',
'text' => 'ES Matrix',
'title' => 'ECMAScript Support Matrix: ' . tr("A comparison of features of ECMAScript implementations")
),
'devel' => array('path' => 'wsvn/', 'text' => tr('Software projects')),
'devel' => array('path' => 'websvn/', 'text' => tr('Software projects')),
'series' => array('path' => "media/video/series/", 'text' => 'Seri-o-meter'),
'ufpdb' => array(
'path' => "ufpdb/index.$language",
/trunk/index.php
105,32 → 105,15
font-size: 136%;
}
 
.instruction {
line-height: 1.2;
#languages .key {
min-width: 0.65em;
}
 
.group {
width: 9.92em;
}
 
#languages .button {
width: 8.25em;
}
 
#languages .button .key {
min-width: 0.675em;
}
 
#languages .button .text {
max-width: 4.55em;
}
-->
</style>
<?php /*
<script type="text/javascript" src="scripts/builder?src=object,dom,dom/css,dom/css/color,dom/ani,dom/window"></script>
*/ ?>
<script type="text/javascript" src="scripts/builder?src=object,dom,dom/xpath,dom/window,dom/xpath,regexp"></script>
<script type="text/javascript" src="application/scripts/vulcan-media-script.js"></script>
<script type="text/javascript" src="scripts/builder?src=object,dom/window"></script>
<script type="text/javascript">
<?php /*
/* Hardcore Frame Buster
211,58 → 194,8
});
animation.play();
}
*/
?>
var translatables;
*/ ?>
 
function lcars_translate (language)
{
if (!translatables)
{
translatables = jsx.dom.xpath.evaluate(
'.//li[(@lang and (../../*[@id and (@id != "languages")]))'
+ ' or (p and p[@lang])]',
document.body);
}
 
if (!translatables)
{
return;
}
 
var language_prefix = language.match(/^[^-]+/);
 
for (var i = translatables.length; i--;)
{
var translatable = translatables[i];
translatable.style.display =
(translatable.lang.indexOf(language_prefix) == 0
|| translatable.firstChild.lang == language
|| translatable.firstChild.lang.indexOf("vuh") == 0
|| (translatable.firstChild.lang == "en" && language.indexOf("vuh") == 0))
? ""
: "none";
}
}
 
function lcars_translate_reset ()
{
lcars_translate('en');
}
 
var LANG_VULCAN = "<?php echo $vulcan; ?>";
 
function body_load (body)
{
if (typeof body.ontouchstart != 'undefined')
{
body.ontouchstart = function () {};
}
 
lcars_translate_reset();
mediaScript();
}
 
function navigateTo (link)
{
<?php /*
276,7 → 209,7
}
</script>
</head>
<body class="fade-in empty" onload="body_load(this)">
<body class="fade-in empty" onload="if (typeof this.ontouchstart != 'undefined') this.ontouchstart = function () {}">
<div id="LCARS">
<div id="bow">
<div id="bow-top">
305,35 → 238,26
onmouseout="return resetStatus()"></div>
 
<ul id="greeting">
<li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $vulcan; ?>">Dif-tor heh smusma</p></li>
<?php foreach ($languages as $key => $name): ?>
<?php if ($key != $vulcan): ?>
<li style="white-space: nowrap"><p style="text-align: center" lang="<?php echo $key; ?>"><?php echo tr('Live long and prosper', $key); ?></p></li>
<?php endif; ?>
<?php endforeach; ?>
<li style="white-space: nowrap"><p style="text-align: center" lang="x-vulcan-latin">Dif-tor heh smusma</p></li>
<li style="white-space: nowrap"><p style="text-align: center" lang="en">Live long and prosper</p></li>
<li style="white-space: nowrap"><p style="text-align: center" lang="de">Leben Sie lang und erfolgreich</p></li>
</ul>
 
<ul style="text-align: center">
<?php foreach ($languages as $key => $name): ?>
<li class="instruction" lang="<?php echo $key; ?>"><span class="text"><?php echo tr('Please select your language', $key); ?></span></li>
<?php endforeach; ?>
<li class="instruction" lang="en">Please select your language</li>
<li class="instruction" lang="de">Bitte w&auml;hlen Sie Ihre Sprache</li>
</ul>
 
<div class="group">
<div class="separator">&nbsp;</div>
<ul id="languages" onmouseout="lcars_translate_reset()">
<?php foreach ($languages as $key => $name): ?>
<li><a href="index.<?php echo language_key_short($key); ?>"
class="button right" lang="<?php echo $key; ?>"
hreflang="<?php echo $key; ?>"
accesskey="<?php echo strtolower($key[0]); ?>"
onfocus="lcars_translate('<?php echo $key; ?>')"
onmouseover="lcars_translate('<?php echo $key; ?>')"
<ul id="languages">
<li><a href="index.en" class="button right" lang="en"
hreflang="en" accesskey="e"
><span class="key">en</span> <span class="text">English</span></a></li>
<li><a href="index.de" class="button right" lang="de"
hreflang="de" accesskey="d"
onclick="return navigateTo(this)"
onblur="lcars_translate_reset()"
><span class="key"><?php echo language_key_short($key); ?></span>
<span class="text"><?php echo language_name($key); ?></span></a></li>
<?php endforeach; ?>
><span class="key">de</span> <span class="text">Deutsch</span></a></li>
</ul>
<div style="clear: both"><!-- --></div>
</div>
340,7 → 264,7
 
<?php
$app = 'Language';
require_once 'application/layouts/index/footer.phtml';
require_once 'footer.phtml';
?>
</div>
</body>
/trunk/index.en.php
4,7 → 4,7
$locale = 'en_US.UTF-8';
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
 
require_once 'global.php';
require_once 'application/layouts/index/index.phtml';
require_once 'index.phtml';
?>
/trunk/index.de.php
4,7 → 4,7
$locale = 'de_DE.UTF-8';
putenv("LC_ALL=$locale");
setlocale(LC_ALL, $locale);
 
require_once 'global.php';
require_once 'application/layouts/index/index.phtml';
require_once 'index.phtml';
?>