Permalink
Browse files

internationalized strings for tabs, add them to page using JS

  • Loading branch information...
alexkingorg committed Feb 16, 2009
1 parent f875b32 commit e5ef5e164fb730a700830f968e6074243bab40c7
Showing with 4 additions and 5 deletions.
  1. +0 −4 footer/footer-default.php
  2. +3 −1 header/header-default.php
  3. +1 −0 js/mobile.js
@@ -39,10 +39,6 @@
<hr />
<div class="tabbed">
- <ul class="tabs hide">
- <li class="active"><a href="#recent">Recent Posts</a></li>
- <li><a href="#pages">Pages</a></li>
- </ul>
<div id="recent_tab">
<hr />
<h2 class="table-title" id="recent"><?php _e('Recent Posts'); ?></h2>
@@ -36,7 +36,9 @@
<?php
is_page() ? $page = 'true' : $page = 'false';
-echo ' CFMOBI_IS_PAGE = '.$page.';';
+echo ' CFMOBI_IS_PAGE = '.$page.';';
+echo ' CFMOBI_PAGES_TAB = '.str_replace("'", "\'", __('Pages', 'carrington-mobile')).';';
+echo ' CFMOBI_POSTS_TAB = '.str_replace("'", "\'", __('Recent Posts', 'carrington-mobile')).';';
if (function_exists('cfmobi_check_mobile')) {
global $cfmobi_touch_browsers;
View
@@ -14,6 +14,7 @@
// **********************************************************************
jQuery(function($) {
+ $('div.tabbed').prepend('<ul class="tabs hide"><li class="active"><a href="#recent">' + CFMOBI_POSTS_TAB + '</a></li><li><a href="#pages">' + CFMOBI_PAGES_TAB + '</a></li></ul>');
var tabs = $('ul.tabs');
if (tabs.size()) {
tabs.removeClass('hide');

0 comments on commit e5ef5e1

Please sign in to comment.