Bugs mainly in I10n(locale)

Events happening in the community are now at Drupal community events on www.drupal.org.
guolii's picture

I'm chinese, when using openscholar, I can't translate some english words in openscholar into chinese. Some lines of code lake the drupal's t() funtion.

I added the t() funtion and they work fine now. see below:

sites/all/themes/openscholar/scholar_base/templates/page.tpl.php

        $login_link = theme('vsite_login_link',t("Log in"),array('class' => 'footer-login'));

sites/all/modules/openscholar_sitewide/openscholar_front/openscholar_front.module
$site_text = (count($vsites) > 1) ? t('Go to your sites') : t("Go to your site");

sites/all/modules/os/includes/os.crud.inc
'og_description' => $domain.t("'s web site"),

sites/all/modules/openscholar_vsite/cp/cp.module
$user_links[] = l(t('Control Panel'), 'cp/build/features', array('attributes' => array('class' => 'wrench', 'title' => t('Manage this Site'))));

    $link = ctools_modal_text_button(t('customize'), 'features/nojs/' . $f_name, 'customize ' . $f_name, $s_class); //, 

      l(t('My Account'), 'user'),
      l(t('Logout'), 'logout'),

sites/all/modules/openscholar_scholar/scholar/scholar.module
$s_email = ($contact_anon !== 0 || user_is_logged_in())?l(t("(email)"),"contact_owner"):"";

openscholar_features/scholar_announcements/scholar_announcements.context.inc
'label' => t('Latest Announcements'),

openscholar_features/scholar_announcements/scholar_announcements.views_default.inc
$handler->override_option('block_description', t('Latest Announcements'));

sites/all/modules/openscholar_vsite/vsite_support/vsite_support.module
drupal_set_title(t("Contact Site Owner"));

sites/all/modules/openscholar_vsite/vsite_design/vsite_design.module
$output .= '

<

ul class = "theme-picker">

'.t('Theme Picker').'

('.t('To choose a theme click on a tumbnail, then click the Save button at the bottom of the screen').')

';

sites/all/modules/openscholar_vsite/vsite_design/theme/vsite_design-theme-picker.tpl.php

<?php
echo t('Flavors') .'  '. $sub_theme
?>

sites/all/modules/openscholar_vsite/vsite/vsite.module
'#description' => t("If private your vsite will only be avalible when you are logged in, regular users will see a message and be giving the choice to login."),

sites/all/modules/openscholar_vsite/vsite_domain/vsite_domain.module
$a_settings['vsite_domain_name']['form']['value']['#title'] = t("Your Sites Custom Domain");

    '#description' => t("Is your site the only one that uses this domain or is it one site of several that share the domain?"),

sites/all/modules/openscholar_vsite/vsite_news/vsite_news.module
'#title' => t("Should an activity be recorded when you create a post?"),

  '#title' => t("Should an activity be recorded when you update a post?"),

sites/all/modules/openscholar_scholar/scholar/scholar.module
$form['title']['#title'] = t("Web site title");
$form['og_description']['#title'] = t("Web site subtitle");
$form['field_vsite_address'][0]['#title'] = t("Address line");
$form['field_vsite_logo'][0]['#title'] = t("Photograph/Portrait");

sites/all/modules/openscholar_vsite/vsite_menus/includes/vsite_menus.admin.inc
ctools_modal_text_button(t('Add new Link'), "cp/build/menus/add/nojs", 'add a link', 'context-button')

$menus += array('none' => t('Not in a Menu'));

sites/all/modules/openscholar_vsite/vsite_taxonomy/vsite_taxonomy.module
'title' => t('Create vocabulary'),
'title' => t('Edit vocabulary'),
'title' => t('delete vocabulary'),
'title' => t('Add term to this vocabulary'),
'title' => t('Edit term'),

sites/all/modules/openscholar_vsite/vsite_taxonomy/vsite_taxonomy.admin.inc
'#value' => l(t('Add new term to this vocabulary'), "vsite/taxonomy/nojs/terms/".$vid."/add_term", array

   'title'            => t('Edit vocabulary'),
  l(t('Add New Vocabulary'), 'vsite/taxonomy/nojs/add/vocabulary',  array('attributes' => array('class' => 'ctools-use-dialog context-button')))

    $form_frag[$k]['edit']['#value'] = l(t('Edit'), "vsite/taxonomy/nojs/terms/edit/".$field['#term']['tid'], array('attributes' => array('class' => 'ctools-use-dialog')));

sites/all/modules/openscholar_features/scholar_book/scholar_book.box.inc
$box->title = t('Recent Documents');

os_boxes.module:
'title' => t('Custom text / html'),
......
......
'title' => t('Configure this Widget'),

    'title' => t('Configure Widget'),

vsite_layout.module:
'title' => t('Remove Widget'),

vsite_contextual.module:
$vars['vsite_admin_links'] = theme('ctools_dropdown', t("Admin"), $links , false, 'vsite-admin');


BTW, how can i create issue in https://redmine.hmdc.harvard.edu/projects/openscholar/issues .

Comments

No way for anon users to enter issues...yet

rbrandon's picture

However, I have added this to our roadmap, thanks for the patch.

https://redmine.hmdc.harvard.edu/issues/1424

-Richard

OpenScholar

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: