original_string: public function untranslatedLanguages($includeUnpublished = false)
      {
          $filename = substr($this->name, 0, -strlen($this->extension()));
          $config = Grav::instance()['config'];
          $languages = $config->get('system.languages.supported', []);
          $untranslatedLanguages = [];
  
          foreach ($languages as $language) {
              $path = $this->path . DS . $this->folder . DS . $filename . '.' . $language . '.md';
              if (file_exists($path)) {
                  $aPage = new Page();
                  $aPage->init(new \SplFileInfo($path), $language . '.md');
                  if ($includeUnpublished && !$aPage->published()) {
                      $untranslatedLanguages[] = $language;
                  }
              } else {
                  $untranslatedLanguages[] = $language;
              }
          }
  
          return $untranslatedLanguages;
      }
code: public function untranslatedLanguages($includeUnpublished = false)
      {
          $filename = substr($this->name, 0, -strlen($this->extension()));
          $config = Grav::instance()['config'];
          $languages = $config->get('system.languages.supported', []);
          $untranslatedLanguages = [];
  
          foreach ($languages as $language) {
              $path = $this->path . DS . $this->folder . DS . $filename . '.' . $language . '.md';
              if (file_exists($path)) {
                  $aPage = new Page();
                  $aPage->init(new \SplFileInfo($path), $language . '.md');
                  if ($includeUnpublished && !$aPage->published()) {
                      $untranslatedLanguages[] = $language;
                  }
              } else {
                  $untranslatedLanguages[] = $language;
              }
          }
  
          return $untranslatedLanguages;
      }
code_tokens: public function untranslatedLanguages ( $ includeUnpublished = false ) { $ filename = substr ( $ this -> name , 0 , - strlen ( $ this -> extension ( ) ) ) ; $ config = Grav :: instance ( ) [ 'config' ] ; $ languages = $ config -> get ( 'system.languages.supported' , [ ] ) ; $ untranslatedLanguages = [ ] ; foreach ( $ languages as $ language ) { $ path = $ this -> path . DS . $ this -> folder . DS . $ filename . '.' . $ language . '.md' ; if ( file_exists ( $ path ) ) { $ aPage = new Page ( ) ; $ aPage -> init ( new \ SplFileInfo ( $ path ) , $ language . '.md' ) ; if ( $ includeUnpublished && ! $ aPage -> published ( ) ) { $ untranslatedLanguages [ ] = $ language ; } } else { $ untranslatedLanguages [ ] = $ language ; } } return $ untranslatedLanguages ; }
docstring: Return an array listing untranslated languages available
  
  @param bool $includeUnpublished also list unpublished translations
  
  @return array the page untranslated languages
docstring_tokens: Return an array listing untranslated languages available