Skip to content

Commit

Permalink
language fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed May 10, 2009
1 parent 42ac66c commit 5d556b0
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ production:

env:

site_title: Latest Updates
site_title: Recent Updates
site_subtitle:
site_description:

Expand Down
2 changes: 1 addition & 1 deletion app/omb/views/_index.rss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'."\n"; ?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://web.resource.org/cc/" xmlns="http://purl.org/rss/1.0/">
<channel rdf:about="<?php url_for( array( 'resource'=>'posts.rss' )); ?>">
<title>Latest Updates</title>
<title>Recent Updates</title>
<link><?php base_url(); ?></link>
<description>All updates for <?php base_url(); ?></description>
<cc:licence rdf:resource="http://creativecommons.org/licenses/by/3.0/"></cc:licence>
Expand Down
10 changes: 8 additions & 2 deletions db/library/dbscript/mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,17 @@ function get_query( $id=NULL, $find_by=NULL, &$model ) {
else
$field = $col;

if ($eq == 'IS')
$eqval = $val;
else
$eqval = "'$val'";

if ($findfirst) {
$sql .= " WHERE $field $eq '$val' ";
$sql .= " WHERE $field $eq $eqval ";
} else {
$sql .= " $op $field $eq '$val' ";
$sql .= " $op $field $eq $eqval ";
}

$findfirst = false;

}
Expand Down
12 changes: 5 additions & 7 deletions wp-content/language/lang_chooser.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@

} else {

if (signed_in()) {
$Setting =& $db->model('Setting');
$lang = $Setting->find_by(array('name'=>'lang','profile_id'=>get_profile_id()));
if ($lang)
$txt = unserialize($lang->data);
}
$Translation =& $db->model('Translation');
$lang = $Translation->find_by('code',$language_selected);
if ($lang)
$txt = unserialize($lang->data);

}

if (!(count($txt) > 10))
if (!(count($txt) > 1))
include 'wp-content/language/eng.php';


5 changes: 4 additions & 1 deletion wp-content/themes/p2/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,12 @@
<li id="nav_help" style="display:inline;padding:5px;">
<a href="<?php echo ''; ?>" title="Help">Help</a>
</li>
<li id="nav_logout" style="display:inline;padding:5px;">
<li id="nav_login" style="display:inline;padding:5px;">
<a href="<?php url_for(array('resource'=>'email_login')); ?>" title="Sign in">Sign in</a>
</li>
<li id="nav_reg" style="display:inline;padding:5px;">
<a href="<?php url_for(array('resource'=>'register')); ?>" title="Register">Register</a>
</li>

<?php endif; ?>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/p2/tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
?>
<div class="sleeve_main">
<div id="main">
<h2>Latest Updates: <?php single_tag_title( ); ?> <a class="rss" href="<?php echo get_tag_feed_link( $tag_obj->term_id ); ?>">RSS</a></h2>
<h2>Recent Updates: <?php single_tag_title( ); ?> <a class="rss" href="<?php echo get_tag_feed_link( $tag_obj->term_id ); ?>">RSS</a></h2>
<ul id="postlist">

<?php
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/prologue-theme/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
?>

<div id="main">
<h2>Latest Updates <a class="rss" href="<?php bloginfo( 'rss2_url' ); ?>">RSS</a></h2>
<h2>Recent Updates <a class="rss" href="<?php bloginfo( 'rss2_url' ); ?>">RSS</a></h2>
<ul>

<?php
Expand Down
2 changes: 1 addition & 1 deletion wp-content/themes/prologue-theme/tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
?>

<div id="main">
<h2>Latest Updates: <?php single_tag_title( ); ?> <a class="rss" href="<?php echo get_tag_feed_link( $tag_obj->term_id ); ?>">RSS</a></h2>
<h2>Recent Updates: <?php single_tag_title( ); ?> <a class="rss" href="<?php echo get_tag_feed_link( $tag_obj->term_id ); ?>">RSS</a></h2>
<ul>

<?php
Expand Down

0 comments on commit 5d556b0

Please sign in to comment.