From afb0d61e8b411927ddfb39ca097cbf7ae99428d1 Mon Sep 17 00:00:00 2001 From: Shawn Kwang Date: Fri, 3 Mar 2017 14:27:26 -0600 Subject: [PATCH] Drupal: Added menu items to boinc translations, with context details. https://dev.gridrepublic.org/browse/DBOINCP-317 --- .../boinc_standard.features.menu_links.inc | 9 ++++----- .../sites/all/features/news/news.features.menu_links.inc | 2 +- .../user_preferences.features.menu_links.inc | 6 ++++-- .../user_profiles/user_profiles.features.menu_links.inc | 5 ++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/drupal/sites/all/features/boinc_standard/boinc_standard.features.menu_links.inc b/drupal/sites/all/features/boinc_standard/boinc_standard.features.menu_links.inc index b776bd43d7..dec415c7e2 100644 --- a/drupal/sites/all/features/boinc_standard/boinc_standard.features.menu_links.inc +++ b/drupal/sites/all/features/boinc_standard/boinc_standard.features.menu_links.inc @@ -82,11 +82,10 @@ function boinc_standard_menu_default_menu_links() { ); // Translatables // Included for use with string extractors like potx. - t('BOINC'); - t('Credentials'); - t('Dashboard'); - t('Home'); - + bts('Home', array(), NULL, 'boinc:menu-link'); + bts('Credentials', array(), NULL, 'boinc:menu-link'); + bts('Dashboard', array(), NULL, 'boinc:menu-link'); + bts('BOINC', array(), NULL, 'boinc:footer-link'); return $menu_links; } diff --git a/drupal/sites/all/features/news/news.features.menu_links.inc b/drupal/sites/all/features/news/news.features.menu_links.inc index 23f71537b6..bf7df5b9c8 100644 --- a/drupal/sites/all/features/news/news.features.menu_links.inc +++ b/drupal/sites/all/features/news/news.features.menu_links.inc @@ -27,7 +27,7 @@ function news_menu_default_menu_links() { ); // Translatables // Included for use with string extractors like potx. - t('News'); + bts('News', array(), NULL, 'boinc:menu-link'); return $menu_links; diff --git a/drupal/sites/all/features/user_preferences/user_preferences.features.menu_links.inc b/drupal/sites/all/features/user_preferences/user_preferences.features.menu_links.inc index 4845978d75..d26c394168 100644 --- a/drupal/sites/all/features/user_preferences/user_preferences.features.menu_links.inc +++ b/drupal/sites/all/features/user_preferences/user_preferences.features.menu_links.inc @@ -27,8 +27,10 @@ function user_preferences_menu_default_menu_links() { ); // Translatables // Included for use with string extractors like potx. - t('Preferences'); - + bts('Preferences', array(), NULL, 'boinc:menu-link'); + bts('Community', array(), NULL, 'boinc:menu-link'); + bts('Privacy', array(), NULL, 'boinc:menu-link'); + bts('Subscriptions', array(), NULL, 'boinc:menu-link'); return $menu_links; } diff --git a/drupal/sites/all/features/user_profiles/user_profiles.features.menu_links.inc b/drupal/sites/all/features/user_profiles/user_profiles.features.menu_links.inc index 078a0adda9..99857bc2e7 100644 --- a/drupal/sites/all/features/user_profiles/user_profiles.features.menu_links.inc +++ b/drupal/sites/all/features/user_profiles/user_profiles.features.menu_links.inc @@ -46,9 +46,8 @@ function user_profiles_menu_default_menu_links() { ); // Translatables // Included for use with string extractors like potx. - t('Queue'); - t('Profile'); - + bts('Queue', array(), NULL, 'boinc:menu-link'); + bts('Profile', array(), NULL, 'boinc:menu-link'); return $menu_links; }