another template

This commit is contained in:
Friendika 2011-03-29 15:27:14 -07:00
parent 97ae3814d9
commit e1fd2ecb16
7 changed files with 30 additions and 133 deletions

View File

@ -352,10 +352,12 @@ class App {
function init_pagehead() { function init_pagehead() {
$this->page['title'] = $this->config['sitename']; $this->page['title'] = $this->config['sitename'];
$tpl = load_view_file("view/head.tpl"); $tpl = load_view_file('view/head.tpl');
$this->page['htmlhead'] = replace_macros($tpl,array( $this->page['htmlhead'] = replace_macros($tpl,array(
'$baseurl' => $this->get_baseurl() . '/', '$baseurl' => $this->get_baseurl() . '/',
'$generator' => 'Friendika' . ' ' . FRIENDIKA_VERSION '$generator' => 'Friendika' . ' ' . FRIENDIKA_VERSION,
'$delitem' => t('Delete this item?'),
'$comment' => t('Comment')
)); ));
} }

View File

@ -8,6 +8,8 @@ $a->strings['Not Found'] = 'Not Found';
$a->strings['Page not found.' ] = 'Page not found.' ; $a->strings['Page not found.' ] = 'Page not found.' ;
$a->strings['Permission denied'] = 'Permission denied'; $a->strings['Permission denied'] = 'Permission denied';
$a->strings['Permission denied.'] = 'Permission denied.'; $a->strings['Permission denied.'] = 'Permission denied.';
$a->strings['Delete this item?'] = 'Delete this item?';
$a->strings['Comment'] = 'Comment';
$a->strings['Create a New Account'] = 'Create a New Account'; $a->strings['Create a New Account'] = 'Create a New Account';
$a->strings['Register'] = 'Register'; $a->strings['Register'] = 'Register';
$a->strings['Nickname or Email address: '] = 'Nickname or Email address: '; $a->strings['Nickname or Email address: '] = 'Nickname or Email address: ';
@ -172,6 +174,9 @@ $a->strings["%d required parameter was not found at the given location"] = array
1 => "%d required parameters were not found at the given location", 1 => "%d required parameters were not found at the given location",
); );
$a->strings['Global Directory'] = 'Global Directory'; $a->strings['Global Directory'] = 'Global Directory';
$a->strings['Age: '] = 'Age: ';
$a->strings['Gender: '] = 'Gender: ';
$a->strings["No entries \x28some entries may be hidden\x29."] = "No entries \x28some entries may be hidden\x29.";
$a->strings['Item not found.'] = 'Item not found.'; $a->strings['Item not found.'] = 'Item not found.';
$a->strings['Private Message'] = 'Private Message'; $a->strings['Private Message'] = 'Private Message';
$a->strings["I like this \x28toggle\x29"] = "I like this \x28toggle\x29"; $a->strings["I like this \x28toggle\x29"] = "I like this \x28toggle\x29";
@ -204,6 +209,14 @@ $a->strings['The profile address specified does not provide adequate information
$a->strings['Limited profile. This person will be unable to receive direct/personal notifications from you.'] = 'Limited profile. This person will be unable to receive direct/personal notifications from you.'; $a->strings['Limited profile. This person will be unable to receive direct/personal notifications from you.'] = 'Limited profile. This person will be unable to receive direct/personal notifications from you.';
$a->strings['Unable to retrieve contact information.'] = 'Unable to retrieve contact information.'; $a->strings['Unable to retrieve contact information.'] = 'Unable to retrieve contact information.';
$a->strings['following'] = 'following'; $a->strings['following'] = 'following';
$a->strings['This is Friendika version'] = 'This is Friendika version';
$a->strings['running at web location'] = 'running at web location';
$a->strings['Shared content within the Friendika network is provided under the <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 license</a>'] = 'Shared content within the Friendika network is provided under the <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 license</a>';
$a->strings['Please visit <a href="http://project.friendika.com">Project.Friendika.com</a> to learn more about the Friendika project.'] = 'Please visit <a href="http://project.friendika.com">Project.Friendika.com</a> to learn more about the Friendika project.';
$a->strings['Bug reports and issues: please visit'] = 'Bug reports and issues: please visit';
$a->strings['Suggestions, praise, donations, etc. - please email "Info" at Friendika - dot com'] = 'Suggestions, praise, donations, etc. - please email "Info" at Friendika - dot com';
$a->strings['Installed plugins/addons/apps'] = 'Installed plugins/addons/apps';
$a->strings['No installed plugins/addons/apps'] = 'No installed plugins/addons/apps';
$a->strings['Group created.'] = 'Group created.'; $a->strings['Group created.'] = 'Group created.';
$a->strings['Could not create group.'] = 'Could not create group.'; $a->strings['Could not create group.'] = 'Could not create group.';
$a->strings['Group not found.'] = 'Group not found.'; $a->strings['Group not found.'] = 'Group not found.';
@ -303,6 +316,8 @@ $a->strings['No such group'] = 'No such group';
$a->strings['Group is empty'] = 'Group is empty'; $a->strings['Group is empty'] = 'Group is empty';
$a->strings['Group: '] = 'Group: '; $a->strings['Group: '] = 'Group: ';
$a->strings['View in context'] = 'View in context'; $a->strings['View in context'] = 'View in context';
$a->strings['See more posts like this'] = 'See more posts like this';
$a->strings['See all %d comments'] = 'See all %d comments';
$a->strings['Invalid request identifier.'] = 'Invalid request identifier.'; $a->strings['Invalid request identifier.'] = 'Invalid request identifier.';
$a->strings['Discard'] = 'Discard'; $a->strings['Discard'] = 'Discard';
$a->strings['Ignore'] = 'Ignore'; $a->strings['Ignore'] = 'Ignore';
@ -368,7 +383,6 @@ $a->strings['Profile-'] = 'Profile-';
$a->strings['New profile created.'] = 'New profile created.'; $a->strings['New profile created.'] = 'New profile created.';
$a->strings['Profile unavailable to clone.'] = 'Profile unavailable to clone.'; $a->strings['Profile unavailable to clone.'] = 'Profile unavailable to clone.';
$a->strings['This is your <strong>public</strong> profile.<br />It <strong>may</strong> be visible to anybody using the internet.'] = 'This is your <strong>public</strong> profile.<br />It <strong>may</strong> be visible to anybody using the internet.'; $a->strings['This is your <strong>public</strong> profile.<br />It <strong>may</strong> be visible to anybody using the internet.'] = 'This is your <strong>public</strong> profile.<br />It <strong>may</strong> be visible to anybody using the internet.';
$a->strings['Age: '] = 'Age: ';
$a->strings['Profile Image'] = 'Profile Image'; $a->strings['Profile Image'] = 'Profile Image';
$a->strings['Invalid OpenID url'] = 'Invalid OpenID url'; $a->strings['Invalid OpenID url'] = 'Invalid OpenID url';
$a->strings['Please enter the required information.'] = 'Please enter the required information.'; $a->strings['Please enter the required information.'] = 'Please enter the required information.';
@ -418,6 +432,7 @@ $a->strings['No Plugin settings configured'] = 'No Plugin settings configured';
$a->strings['OpenID: '] = 'OpenID: '; $a->strings['OpenID: '] = 'OpenID: ';
$a->strings["&nbsp;\x28Optional\x29 Allow this OpenID to login to this account."] = "&nbsp;\x28Optional\x29 Allow this OpenID to login to this account."; $a->strings["&nbsp;\x28Optional\x29 Allow this OpenID to login to this account."] = "&nbsp;\x28Optional\x29 Allow this OpenID to login to this account.";
$a->strings['Profile is <strong>not published</strong>.'] = 'Profile is <strong>not published</strong>.'; $a->strings['Profile is <strong>not published</strong>.'] = 'Profile is <strong>not published</strong>.';
$a->strings['Export Personal Data'] = 'Export Personal Data';
$a->strings['Default Post Permissions'] = 'Default Post Permissions'; $a->strings['Default Post Permissions'] = 'Default Post Permissions';
$a->strings['Tag removed'] = 'Tag removed'; $a->strings['Tag removed'] = 'Tag removed';
$a->strings['Remove Item Tag'] = 'Remove Item Tag'; $a->strings['Remove Item Tag'] = 'Remove Item Tag';
@ -725,6 +740,7 @@ $a->strings['America/Managua'] = 'America/Managua';
$a->strings['America/Manaus'] = 'America/Manaus'; $a->strings['America/Manaus'] = 'America/Manaus';
$a->strings['America/Marigot'] = 'America/Marigot'; $a->strings['America/Marigot'] = 'America/Marigot';
$a->strings['America/Martinique'] = 'America/Martinique'; $a->strings['America/Martinique'] = 'America/Martinique';
$a->strings['America/Matamoros'] = 'America/Matamoros';
$a->strings['America/Mazatlan'] = 'America/Mazatlan'; $a->strings['America/Mazatlan'] = 'America/Mazatlan';
$a->strings['America/Mendoza'] = 'America/Mendoza'; $a->strings['America/Mendoza'] = 'America/Mendoza';
$a->strings['America/Menominee'] = 'America/Menominee'; $a->strings['America/Menominee'] = 'America/Menominee';
@ -743,6 +759,7 @@ $a->strings['America/Nome'] = 'America/Nome';
$a->strings['America/Noronha'] = 'America/Noronha'; $a->strings['America/Noronha'] = 'America/Noronha';
$a->strings['America/North_Dakota/Center'] = 'America/North_Dakota/Center'; $a->strings['America/North_Dakota/Center'] = 'America/North_Dakota/Center';
$a->strings['America/North_Dakota/New_Salem'] = 'America/North_Dakota/New_Salem'; $a->strings['America/North_Dakota/New_Salem'] = 'America/North_Dakota/New_Salem';
$a->strings['America/Ojinaga'] = 'America/Ojinaga';
$a->strings['America/Panama'] = 'America/Panama'; $a->strings['America/Panama'] = 'America/Panama';
$a->strings['America/Pangnirtung'] = 'America/Pangnirtung'; $a->strings['America/Pangnirtung'] = 'America/Pangnirtung';
$a->strings['America/Paramaribo'] = 'America/Paramaribo'; $a->strings['America/Paramaribo'] = 'America/Paramaribo';
@ -759,6 +776,7 @@ $a->strings['America/Regina'] = 'America/Regina';
$a->strings['America/Resolute'] = 'America/Resolute'; $a->strings['America/Resolute'] = 'America/Resolute';
$a->strings['America/Rio_Branco'] = 'America/Rio_Branco'; $a->strings['America/Rio_Branco'] = 'America/Rio_Branco';
$a->strings['America/Rosario'] = 'America/Rosario'; $a->strings['America/Rosario'] = 'America/Rosario';
$a->strings['America/Santa_Isabel'] = 'America/Santa_Isabel';
$a->strings['America/Santarem'] = 'America/Santarem'; $a->strings['America/Santarem'] = 'America/Santarem';
$a->strings['America/Santiago'] = 'America/Santiago'; $a->strings['America/Santiago'] = 'America/Santiago';
$a->strings['America/Santo_Domingo'] = 'America/Santo_Domingo'; $a->strings['America/Santo_Domingo'] = 'America/Santo_Domingo';
@ -787,6 +805,7 @@ $a->strings['America/Yellowknife'] = 'America/Yellowknife';
$a->strings['Antarctica/Casey'] = 'Antarctica/Casey'; $a->strings['Antarctica/Casey'] = 'Antarctica/Casey';
$a->strings['Antarctica/Davis'] = 'Antarctica/Davis'; $a->strings['Antarctica/Davis'] = 'Antarctica/Davis';
$a->strings['Antarctica/DumontDUrville'] = 'Antarctica/DumontDUrville'; $a->strings['Antarctica/DumontDUrville'] = 'Antarctica/DumontDUrville';
$a->strings['Antarctica/Macquarie'] = 'Antarctica/Macquarie';
$a->strings['Antarctica/Mawson'] = 'Antarctica/Mawson'; $a->strings['Antarctica/Mawson'] = 'Antarctica/Mawson';
$a->strings['Antarctica/McMurdo'] = 'Antarctica/McMurdo'; $a->strings['Antarctica/McMurdo'] = 'Antarctica/McMurdo';
$a->strings['Antarctica/Palmer'] = 'Antarctica/Palmer'; $a->strings['Antarctica/Palmer'] = 'Antarctica/Palmer';
@ -849,6 +868,7 @@ $a->strings['Asia/Makassar'] = 'Asia/Makassar';
$a->strings['Asia/Manila'] = 'Asia/Manila'; $a->strings['Asia/Manila'] = 'Asia/Manila';
$a->strings['Asia/Muscat'] = 'Asia/Muscat'; $a->strings['Asia/Muscat'] = 'Asia/Muscat';
$a->strings['Asia/Nicosia'] = 'Asia/Nicosia'; $a->strings['Asia/Nicosia'] = 'Asia/Nicosia';
$a->strings['Asia/Novokuznetsk'] = 'Asia/Novokuznetsk';
$a->strings['Asia/Novosibirsk'] = 'Asia/Novosibirsk'; $a->strings['Asia/Novosibirsk'] = 'Asia/Novosibirsk';
$a->strings['Asia/Omsk'] = 'Asia/Omsk'; $a->strings['Asia/Omsk'] = 'Asia/Omsk';
$a->strings['Asia/Oral'] = 'Asia/Oral'; $a->strings['Asia/Oral'] = 'Asia/Oral';

View File

@ -1,31 +0,0 @@
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<base href="$baseurl" />
<link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
<link rel="shortcut icon" href="$baseurl/images/friendika-32.png" />
<!--[if IE]>
<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="$baseurl/include/jquery.js" ></script>
<script type="text/javascript" src="$baseurl/include/main.js" ></script>
<script>
function confirmDelete() { return confirm("Delete this item?"); }
function commentOpen(obj,id) {
if(obj.value == 'Comment') {
obj.value = '';
obj.className = "comment-edit-text-full";
openMenu("comment-edit-submit-wrapper-" + id);
}
}
function commentClose(obj,id) {
if(obj.value == '') {
obj.value = 'Comment';
obj.className="comment-edit-text-empty";
closeMenu("comment-edit-submit-wrapper-" + id);
}
}
</script>

View File

@ -1,32 +0,0 @@
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<base href="$baseurl" />
<meta name="generator" content="$generator" />
<link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
<link rel="shortcut icon" href="$baseurl/images/friendika-32.png" />
<!--[if IE]>
<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="$baseurl/include/jquery.js" ></script>
<script type="text/javascript" src="$baseurl/include/main.js" ></script>
<script>
function confirmDelete() { return confirm("Delete this item?"); }
function commentOpen(obj,id) {
if(obj.value == 'Comment') {
obj.value = '';
obj.className = "comment-edit-text-full";
openMenu("comment-edit-submit-wrapper-" + id);
}
}
function commentClose(obj,id) {
if(obj.value == '') {
obj.value = 'Comment';
obj.className="comment-edit-text-empty";
closeMenu("comment-edit-submit-wrapper-" + id);
}
}
</script>

View File

@ -1,32 +0,0 @@
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<base href="$baseurl" />
<meta name="generator" content="$generator" />
<link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
<link rel="shortcut icon" href="$baseurl/images/friendika-32.png" />
<!--[if IE]>
<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="$baseurl/include/jquery.js" ></script>
<script type="text/javascript" src="$baseurl/include/main.js" ></script>
<script>
function confirmDelete() { return confirm("Effacer cet élément?"); }
function commentOpen(obj,id) {
if(obj.value == 'Comment') {
obj.value = '';
obj.className = "comment-edit-text-full";
openMenu("comment-edit-submit-wrapper-" + id);
}
}
function commentClose(obj,id) {
if(obj.value == '') {
obj.value = 'Comment';
obj.className="comment-edit-text-empty";
closeMenu("comment-edit-submit-wrapper-" + id);
}
}
</script>

View File

@ -11,9 +11,9 @@
<script type="text/javascript" src="$baseurl/include/main.js" ></script> <script type="text/javascript" src="$baseurl/include/main.js" ></script>
<script> <script>
function confirmDelete() { return confirm("Ta bort?"); } function confirmDelete() { return confirm("$delitem"); }
function commentOpen(obj,id) { function commentOpen(obj,id) {
if(obj.value == 'Comment') { if(obj.value == '$comment') {
obj.value = ''; obj.value = '';
obj.className = "comment-edit-text-full"; obj.className = "comment-edit-text-full";
openMenu("comment-edit-submit-wrapper-" + id); openMenu("comment-edit-submit-wrapper-" + id);
@ -21,10 +21,12 @@
} }
function commentClose(obj,id) { function commentClose(obj,id) {
if(obj.value == '') { if(obj.value == '') {
obj.value = 'Comment'; obj.value = '$comment';
obj.className="comment-edit-text-empty"; obj.className="comment-edit-text-empty";
closeMenu("comment-edit-submit-wrapper-" + id); closeMenu("comment-edit-submit-wrapper-" + id);
} }
} }
</script> </script>

View File

@ -1,32 +0,0 @@
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<base href="$baseurl" />
<meta name="generator" content="$generator" />
<link rel="stylesheet" type="text/css" href="$stylesheet" media="all" />
<link rel="shortcut icon" href="$baseurl/images/friendika-32.png" />
<!--[if IE]>
<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script type="text/javascript" src="$baseurl/include/jquery.js" ></script>
<script type="text/javascript" src="$baseurl/include/main.js" ></script>
<script>
function confirmDelete() { return confirm("Cancellare questo elemento?"); }
function commentOpen(obj,id) {
if(obj.value == 'Comment') {
obj.value = '';
obj.className = "comment-edit-text-full";
openMenu("comment-edit-submit-wrapper-" + id);
}
}
function commentClose(obj,id) {
if(obj.value == '') {
obj.value = 'Comment';
obj.className="comment-edit-text-empty";
closeMenu("comment-edit-submit-wrapper-" + id);
}
}
</script>