Elgg 1.9, Elgg 1.8 and Elgg 1.7 - Brazilian Portuguese Language vv1.8.3

Release Notes

update the portuguese archives.

Thanks to contributions by:

@shyfti.com: 'extendafriend', 'hypeAlive' and 'hypeMaps'

@socialtem.com.br: 'facebooktheme', 'river_addon' and 'tidypics'.

This package contains:

/mod/blog, bookmarks, categories, custom_index, dashboard, developers,diagnostics, elgg_update_services, embed, extendafriend, externalpages, facebook_theme, file, garbagecollector, groups, hypeAlive, hypeMaps, invitefriends, likes, logbrowser, logrotate, members, messageboard, messages, notifications, pages, profile, reportedcontent,river_addon, search, tagcloud, thewire, tidypics, tinymce, translationbrowser, twitter, twitter_api, uservalidationbyemail

  • This package contains:

    /mod/blog, bookmarks, categories, custom_index, dashboard, developers,diagnostics, elgg_update_services, embed, extendafriend, externalpages, facebook_theme, file, garbagecollector, groups, hypeAlive, hypeMaps, invitefriends, likes, logbrowser, logrotate, members, messageboard, messages, notifications, pages, profile, reportedcontent,river_addon, search, tagcloud, thewire, tidypics, tinymce, translationbrowser, twitter, twitter_api, uservalidationbyemail

  • Hi,

    Thank you for the modifications in the translationbrowser plugin.

    I installed on elgg 1.8.3 and had some problems: I already had some language files and in the module list  I was getting a list with only the last language found for each module so I couldn't select the english language file to translate. The problem was the results array index being rewritten when more than one language were found for each module. I solved it making a slight modification in the function translationbrowser_get_language_files_for_active_plugins.

    function translationbrowser_get_language_files_for_active_plugins()
    {

      //the beginning directory is already stored in the configuration
      global $CONFIG;
      $len_dir= strlen($CONFIG->path);
      $results = array();
      //all the language files are already installed in global $CONFIG..
      //for every file that matches \w{2}.php 
      $regex = "/^\w{2}.php$/";
      foreach($CONFIG->language_paths as $d => $valid)
      {
            $ficheros = array_diff(scandir($d), array('.', '..'));
            foreach( $ficheros as $f)
            {
                //if we're a file and we match the iso_639_1 format like elgg says
                //then we add to the result list and send it up
                if(is_file($d . $f) && (($regex) ? preg_match($regex, $f) : 1))
                {

                $text = str_replace('//','/',"".$d.$f."\n");
                $text = trim(substr($text,$len_dir));
                $module_text = elgg_echo('translationbrowser:undefined');
                if (preg_match('%^mod/([^\\s|^\\/]+)/%', $text, $matches))
                {
                   if(isset($matches[1])){
                        //paco adimedia
                        //$module_text = elgg_echo($matches[1]);
                           $module_text = elgg_echo($matches[1])."_".$f;
                   }
                   else {
                        //paco adimedia
                        //$module_text = $text;
                        $module_text = $text."_".$f;
                   }
                }
                 else
                   {
                      if($text == 'languages/en.php'){
                            $module_text = elgg_echo('translationbrowser:languagecore');
                      }
                      else {
                            $module_text = $text;
                      }
                   }
               
                    $results[$module_text]= $d . $f;
              
                }
            }
      }

      return $results;
    }

     

  • Renato,

    O blog está sem tradução... ao invés dela está a tradução da instalação. Não sei se existe esse mesmo problema em outros arquivos. Você pode sisponilizar a correção?

    abs

    Alexandre

Stats

  • Category: Language packs
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 11570
  • Recommendations: 9

Other Projects

View R.Cerceau's plugins