We already have in gretl a very useful structure to build (graphical)
user function packages. But when we are working in a non-english
language and want to create a function package, we have to decide
whether to write the parameter strings in English or in our specific
language.
Allin, do you think it would be possible to allow a second (or third
...) language in the parameter strings? I mean to implement a way that
the user could create a package function such that if the function is
run in an English environment, the dialog box strings appears in
English, but if the function is executed for example, in a Spanish
system these strings appear in Spanish.
I don't know if what I am thinking is very complicated to code or not.
I am thinking that the user could specify, the strings for example in
this way:
<script>
function series rate(series y "Variable to transform", scalar k
"order")
string param1_es = "Variable a transformar"
string param2_es = "Orden"
series y_rate=(y-y(-k))/y(-k)
return y_rate
end function
</script>
--
Ignacio Diaz-Emparanza
DEPARTAMENTO DE ECONOMÍA APLICADA III (ECONOMETRÍA Y ESTADÍSTICA)
UPV/EHU Avda. Lehendakari Aguirre, 83 | 48015 BILBAO
T.: +34 946013732 | F.: +34 946013754
www.ea3.ehu.es