Uploaded image for project: 'ASTPP Community'
  1. ASTPP Community
  2. ASTPPCOM-353

Change Default Language

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Done
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      For change the default language, I change in file: astpp/application/libraries/locale.php
      the line:
      function set_lang($lang = FALSE) {
      $current_locale = $this->CI->session->userdata ( 'user_language' );
      if (empty ( $current_locale )) {
      $current_locale = 'en_US';

      to

      function set_lang($lang = FALSE) {
      $current_locale = $this->CI->session->userdata ( 'user_language' );
      if (empty ( $current_locale )) {
      $current_locale = 'pt_BR';

      This works fine. But when I use the footer flags to change language to English, the language don't change to english. Change to French and Spanish, but to english no.

      I thinks is something with url:
      /application/modules/user/language/' . $lang . '/LC_MESSAGES/messages.mo

      In thie folder /application/modules/user/language/ don't have folder en_US.

        Attachments

          Activity

            People

            Assignee:
            samir.doshi Samir Doshi
            Reporter:
            leandrowcampos leandrowcampos
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: