Scilab Function
eng - fr


change_biblio_line - change label of bibliography in a html file

Library

Calling Sequence

tt = change_biblio_line(htmf,lang)

Parameters

Description

Other paragraph can be added

Add here a paragraph of the function description

Example

Add here scilab instructions and comments

File content


//change_biblio_line
//Fonction qui change le texte "Bibliography"
//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_biblio_line(htmf,lang)
 if fileinfo(htmf(1,1))<>[] then
  tt=mgetl(htmf(1,1));
  if tt<>[] then
   printf("Change Bibliography line... ")
   for i=1:size(tt,1)
    a=strindex(tt(i),"Bibliography</A>");
    //pause
    if a<>[] then
      if lang=='fr' then
       tt(i)=strsubst(tt(i),"Bibliography</A>","Bibliographie</A>")
      end
    end
   end
   printf("Done\n")
  end
 else
  tt=[]
 end
endfunction

Used function(s)

Add here the used function name and references

Authors

IRCOM Group Alan Layec