Ignore:
Timestamp:
Nov 18, 2011, 1:54:29 PM (12 years ago)
Author:
flop25
Message:

adding one new key in language files
adding a link to see the current default plugin.lang.php, via localfiles editor
"overloading" the local language files to apply customization

Location:
extensions/adult_content
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • extensions/adult_content/admin/admin.php

    r12621 r12646  
    4141                  'AD_C_block_on_index' => $index,
    4242                  'AD_C_block_on_index_disabled' => $disabled,
     43                  'AD_C_LANG' => $user['language'],
    4344                )
    4445          );
    45 
    4646$template->set_filename('plugin_admin_content', $ad_c->plugin_path.'admin/admin.tpl');
    4747$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
  • extensions/adult_content/admin/admin.tpl

    r12621 r12646  
    2828<div style="text-align:left">
    2929  {'ad_c_howitworks'|@translate}
     30  <br />
     31  <a href="{$ROOT_URL}plugins/LocalFilesEditor/show_default.php?file=plugins/adult_content/language/{$AD_C_LANG}/plugin.lang.php" target="_blank">{'ad_c_linktolang'|@translate} </a>
    3032</div>
  • extensions/adult_content/charte.php

    r12621 r12646  
    1919//include(get_language_filepath('plugin.lang.php', $adult_content->plugin_path));
    2020load_language('plugin.lang', $adult_content->plugin_path);
     21load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) );
    2122$template->assign(
    2223  array(
  • extensions/adult_content/charte_user.php

    r12621 r12646  
    3737elseif (!isset( $_POST['groupe'] ))
    3838{
    39    $title = 'Adult content';
    40    $page['body_id'] = 'adult_content_page';
    41    include(PHPWG_ROOT_PATH.'include/page_header.php');
    42    load_language('plugin.lang', $adult_content->plugin_path);
    43 
    44    $template->assign(
    45      array(
    46        'PLUGIN_NAME' => $adult_content->plugin_name
    47        ));
     39  $title = 'Adult content';
     40  $page['body_id'] = 'adult_content_page';
     41  include(PHPWG_ROOT_PATH.'include/page_header.php');
     42  load_language('plugin.lang', $adult_content->plugin_path);
     43  load_language('lang', PHPWG_ROOT_PATH.PWG_LOCAL_DIR, array('no_fallback'=>true, 'local'=>true) );
     44  $template->assign(
     45   array(
     46     'PLUGIN_NAME' => $adult_content->plugin_name
     47  ));
    4848////////////lié à quoi/////     
    49                         $adult_content->fill_idgroups_user();
    50                         $adult_content->fill_idgroups_ad_c();   
     49  $adult_content->fill_idgroups_user();
     50  $adult_content->fill_idgroups_ad_c();
    5151
    5252        if (!$adult_content->is_in_ad_c_group())
  • extensions/adult_content/language/cs_CZ/plugin.lang.php

    r12621 r12646  
    123123be changed in this way.
    124124";
     125/*TODO*/$lang['ad_c_linktolang']="Go to the language file of Adult Content (need LocalFiles Editor enabled)"
     126
    125127?>
  • extensions/adult_content/language/en_UK/plugin.lang.php

    r12621 r12646  
    124124be changed in this way.
    125125";
     126$lang['ad_c_linktolang']="Go to the language file of Adult Content (need LocalFiles Editor enabled)"
    126127?>
  • extensions/adult_content/language/es_ES/plugin.lang.php

    r12621 r12646  
    123123be changed in this way.
    124124";
     125/*TODO*/$lang['ad_c_linktolang']="Go to the language file of Adult Content (need LocalFiles Editor enabled)"
    125126?>
  • extensions/adult_content/language/fr_FR/plugin.lang.php

    r12623 r12646  
    8282Les âges limites peuvent aussi être changés de cette façon.<br />
    8383';
     84$lang['ad_c_linktolang']="Lien vers le fichier langue d'Adult Content (Nécessite localFiles Editor)"
    8485?>
  • extensions/adult_content/language/hu_HU/plugin.lang.php

    r12621 r12646  
    122122be changed in this way.
    123123";
     124/*TODO*/$lang['ad_c_linktolang']="Go to the language file of Adult Content (need LocalFiles Editor enabled)"
    124125?>
  • extensions/adult_content/language/it_IT/plugin.lang.php

    r12621 r12646  
    8080Il limite di età può anche esso essere cambiato in questo modo.<br />
    8181';
     82/*TODO*/$lang['ad_c_linktolang']="Go to the language file of Adult Content (need LocalFiles Editor enabled)"
    8283?>
  • extensions/adult_content/language/lv_LV/plugin.lang.php

    r12621 r12646  
    123123be changed in this way.
    124124";
     125/*TODO*/$lang['ad_c_linktolang']="Go to the language file of Adult Content (need LocalFiles Editor enabled)"
    125126?>
Note: See TracChangeset for help on using the changeset viewer.