Jump to content

wish-fulfillment

Members
  • Posts

    21
  • Joined

  • Last visited

Posts posted by wish-fulfillment

  1. <?php namespace ProcessWire;

    // basic-page.php template file 

    // Primary content is the page's body copy
    $content = $page->body; 

    // If the page has children, then render navigation to them under the body.
    // See the _func.php for the renderNav example function.
    if($page->hasChildren) {
        $content .= renderNav($page->children);
    }

    // if the rootParent (section) page has more than 1 child, then render 
    // section navigation in the sidebar (see _func.php for renderNavTree).
    if($page->rootParent->hasChildren > 1) {
        $sidebar = renderNavTree($page->rootParent, 3); 
        // make any sidebar text appear after navigation
        $sidebar .= $page->sidebar; 
    }

  2. I did that but  Russian instead of  Italian

    To use Italian as your default language on the frontend, and considering your want "example.com/" to open in Italian and "example.com/en/" to change to English, do the following:

    1. As this is a new installation, and you have no real data yet, delete all languages but the default one, of course. 
    2. Change the default language title to Italiano
    3. Upload Italian translation files to it
    4. Create a new language, name "en", title "English"
    5. Edit the homepage and set the "en" language as active and the url as  "en". 
  3. Note: your current server locale setting isn’t working as expected with the UTF-8 charset and may cause minor issues. Your current locale setting is “en_EN.UTF-8”. Please translate the “C” locale setting for each language to the compatible locale in /wire/modules/LanguageSupport/LanguageSupport.module:
     English
     rus

    this appears again & again despite i did translate the “C” locale setting for each language  

    here why can't i see Russian?

    Opera Снимок_2019-05-13_110320_school-vr.ru.png

×
×
  • Create New...