Scilab Function
eng - fr


change_contents_line - change label of content in a html file

Library

Calling Sequence

tt = change_contents_line(htmf,lang)

Parameters

Description

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

Add here a paragraph of the function description

Example

Add here scilab instructions and comments

File content


//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

Used function(s)

Add here the used function name and references

See Also

Authors

enter here the author name Add here the author references

Bibliography

Add here the function bibliography if any