Fonction Scilab
eng - fr


change_contents_line - modifie le libellé du sommaire dans un fichier html

Librairie

Séquence d'appel

tt = change_contents_line(htmf,lang)

Paramètres

Description

Add here a paragraph of the function description. Other paragraph can be added

Add here a paragraph of the function description

Exemple

Add here scilab instructions and comments

Contenu du fichier


//change_contents_line
//Fonction qui change le texte "contents"
//d'une page d'aide html
//Entrée : htmf  : un nom de fichier à modifier
//         lang : langue
//Sortie : tt le texte du fichier htm
function tt=change_contents_line(htmf,lang)
 if fileinfo(htmf(1,1))<>[] then
  tt=mgetl(htmf(1,1));
  if tt<>[] then
   printf("Change contents line... ")
   for i=1:size(tt,1)
    a=strindex(tt(i),"Contents</A>");
    if a<>[] then
      if lang=='fr' then
       tt(i)=strsubst(tt(i),"Contents</A>","Contenu</A>")
      end
    end
   end
   printf("Done\n")
  end
 else
  tt=[]
 end
endfunction

Fonction(s) utilisée(s)

Add here the used function name and references

Auteurs

enter here the author name Add here the author references