rejetto forum

Software => Other languages => HFS ~ HTTP File Server => Español => Topic started by: marianof2000 on July 20, 2016, 01:30:44 PM

Title: Pasar menúes al castellano
Post by: marianof2000 on July 20, 2016, 01:30:44 PM
Buenos días
mi intención es tratar de pasar los menúes del servidor al castellano, ya que el HFS nos es muy útil en el entorno educativo donde trabajo y por desgracia no todos los usuarios docentes entienden el inglés.
Bajé los fuente y probé con varia versiones de Turbo Delphi como también con Delphi y con ninguna de ellas logro compilar, algún error se genera.
Instalé todas las librerías (uses) que pide pero genera errores.
Cuál es la versión recomendada para que compile y se genere correctamente el "hfs.exe"?
Mi intención es hacer un módulo que se cargue y contenga la traducción de los botones y menúes al castellano, por ejemplo "castellano.pas".
Espero los comentarios y ayudas.
Saludos
Mariano (desde Argentina)
Title: Re: Pasar menúes al castellano
Post by: LeoNeeson on July 21, 2016, 06:02:21 AM
Hola Mariano, bienvenido al foro. Es una idea genial que yo siempre tuve ganas de hacer, pero nunca tuve el tiempo suficiente como para ponerme a hacerlo. Seria una buena idea si Rejetto agregase soporte multilenguaje a HFS.

Rejetto utiliza el "Turbo Delphi 2006 Explorer Edition", sino me equivoco exactamente la versión 10.0.2558.35231 (o sea que utiliza la última actualización disponible para esa edición), aunque se puede utilizar Delphi 7 sin problemas. Ahora no tengo una computadora libre como para hacer pruebas, sino te ayudaría un poco más. En este (http://www.rejetto.com/forum/programmers-corner/want-to-compile-cant-find-libs/msg1031534/#msg1031534) hilo puedes encontrar más información (en inglés).

Sería bueno si escribieras aquí los errores que te saltan, asi podremos intentar ayudarte (yo o cualquiera del foro). Por lo general, si entiendes ingles, vas a conseguir más ayuda si publicas tus preguntas en inglés, porque aqui casi no hay usuarios activos de habla hispana (los que hay, hace mucho que no visitan el foro).

Si metes mano al asunto, seria bueno hacerlo bien. Y una buena forma sería ayudando a Rejetto a agregar soporte multilenguaje. Yo hace un tiempo atrás me encontré con este proyecto: "Kryvich's Delphi Localizer (https://sites.google.com/site/kryvich/localizer)", el cual sería un componente ideal para agregar oficialmente a HFS, ya que es muy liviano (solo agrega ~14Kb al ejecutable), y permite hacer una traducción total en forma sencilla. Según esa página, sólo basta con agregar estas dos líneas para empezar a utilizar este componente:
Code: [Select]
FreeLocalizer.AutoTranslate := True;
FreeLocalizer.LanguageFile := 'myapp.english.lng';

La versión que habría que utilizar es ésta: "Kryvich's Delphi Localizer 3.2 (April 29, 2008) (https://sites.google.com/site/kryvich/localizer/downloads/kdl32.zip?attredirects=0)", ya que es la última versión en soportar Delphi 5/6/7, Delphi 2006/2007 y Turbo Delphi (Explorer and Professional). Las versiones subsiguientes: 4.0 y 4.1, no funcionan con Turbo Delphi (ya que son para versiones nuevas de Delphi), asi que habría que utilizar la v3.2.

Sería bueno si contactas directamente con Rejetto (escribíendole un mensaje privado en inglés o un email), para que el agregue este componente a HFS, asi luego podríamos comenzar la traducción. Tendrías que ayudarle a él, diciéndole en que parte poner el código, asi lo tiene fácil (el no tiene mucho tiempo libre, ya que hace esto como hobbie). Yo luego te ayudaría en lo que haga falta para traducir HFS al español, no tengo problemas.

Suerte! :)
Leo
Title: Re: Pasar menúes al castellano
Post by: LeoNeeson on August 13, 2016, 07:18:22 AM
Alguna novedad? A pesar de que no haya respuesta de Mariano, si Rejetto lee esto, ojalá pueda sacar algo útil de mi mensaje, y pueda agregar a HFS el "Kryvich's Delphi Localizer" (https://sites.google.com/site/kryvich/localizer).

Any news about this? Even if Mariano doesn't reply here anymore, I hope if Rejetto read this, he can try to add the "Kryvich's Delphi Localizer" (https://sites.google.com/site/kryvich/localizer), since that's the first step to translate HFS.
Title: Re: Pasar menúes al castellano
Post by: marianof2000 on August 17, 2016, 12:43:23 PM
Hola Leo
recién veo tu respuesta.
Te cuento mi idea sería colocar algún archivo externo (algún *.ini) que contenga las traducciones. Para no tener que recompilar por cambios en los textos.
No he visto tu propuesta, pero en los próximos días me voy a sentar a verlo y ver si está a mi alcance como programador.
En cuanto al inglés lo leo sin dificultad, pero escribirlo a veces me resulta tedioso. Pero no imposible.
Seguimos en contacto.
Saludos
Mariano
Title: Re: Pasar menúes al castellano
Post by: bmartino1 on August 17, 2016, 01:32:59 PM
i don't know about translations, but hfs has an ini option

http://www.rejetto.com/wiki/index.php?title=HFS:_Command_line_parameters

it can be generated by the save options:

menu > save options ...
to file : hfs.ini  inside the hfs.exe directory
Title: Re: Pasar menúes al castellano
Post by: Mars on August 17, 2016, 02:40:11 PM
To obtain HFS in another language, it is possible only by translating all the texts in the source code, resize and realign the display areas of translated texts, and then recompile the whole for get a new executable
Title: Re: Pasar menúes al castellano
Post by: LeoNeeson on August 18, 2016, 05:05:23 AM
To obtain HFS in another language, it is possible only by translating all the texts in the source code, resize and realign the display areas of translated texts, and then recompile the whole for get a new executable
That's the old and hard way, but it's much easier than that. I see you you have not understood how "Kryvich's Delphi Localizer" works. The translated text strings are store in easy-to-edit EXTERNAL ini-style files and Rejetto should only add the "Kryvich's Delphi Localizer v3.2 (https://sites.google.com/site/kryvich/localizer/downloads/kdl32.zip?attredirects=0)" component, and add TWO(!) lines to the project (.DPR) source file:

Code: [Select]
FreeLocalizer.AutoTranslate := True;
FreeLocalizer.LanguageFile := 'myapp.english.lng';

It's that easy! So, minimum modifications to project source are needed (since Kryvich's Delphi Localizer adds only ~14Kb to the application executable file). The language files are NOT bundled inside HFS, so it will not make it bigger. The .lng file is loaded dynamically when HFS runs, so it's not necessary to recompile anything to do the translation. Many programs work that way, by simply loading a simple language text file.

And about resizing and realigning the display areas of translated texts, that can be done automatically (programmatically), or make it wide enough to make fit any language. And that needs to be done only once, then all future releases can be easily translated by any HFS user, to any language. I think it's a win-win solution for anyone. :)

Hola Leo
recién veo tu respuesta.
Te cuento mi idea sería colocar algún archivo externo (algún *.ini) que contenga las traducciones. Para no tener que recompilar por cambios en los textos.
No he visto tu propuesta, pero en los próximos días me voy a sentar a verlo y ver si está a mi alcance como programador.
En cuanto al inglés lo leo sin dificultad, pero escribirlo a veces me resulta tedioso. Pero no imposible.
Seguimos en contacto.
Saludos
Mariano
Me alegro de verte de vuelta por el foro. Tranquilo, no hay apuro, haz lo que puedas en medida de tu tiempo libre. La idea que yo propongo es que Rejetto agregue el componente llamado "Kryvich's Delphi Localizer", el cual permitirá a cualquier usuario traducir HFS, sencillamente editando un archivo .ini o .lng (que para el caso es lo mismo, porque es un archivo de texto).
Title: Re: Pasar menúes al castellano
Post by: rejetto on August 19, 2016, 07:37:22 PM
gonna give it a try
Title: Re: Pasar menúes al castellano
Post by: LeoNeeson on August 21, 2016, 04:32:30 PM
gonna give it a try
Good!... ;)
Title: Re: Pasar menúes al castellano
Post by: rejetto on August 23, 2016, 10:12:39 PM
sorry, i started but didn't make it in time, and now i'm leaving for 2 weeks :(

Japan i'm coming :D
Title: Re: Pasar menúes al castellano
Post by: LeoNeeson on August 24, 2016, 06:28:06 AM
sorry, i started but didn't make it in time, and now i'm leaving for 2 weeks :(

Japan i'm coming :D
Don't worry, it's OK, there is no hurry.

(http://i.imgur.com/Ve2ijZb.png)
Enjoy Japan...
Sayonara! 8)
Title: Re: Pasar menúes al castellano
Post by: LeoNeeson on September 18, 2016, 07:20:02 AM
sorry, i started but didn't make it in time, and now i'm leaving for 2 weeks :(

Japan i'm coming :D
@Rejetto: Did you have any chance to check this?... ???
Title: Re: Pasar menúes al castellano
Post by: rejetto on September 18, 2016, 09:08:52 AM
not yet, only today i could look into the forum
Title: Re: Pasar menúes al castellano
Post by: LeoNeeson on September 19, 2016, 06:52:20 AM
It's OK, don't worry. As I've said, there is no hurry. :)

Keep us updated if you do any progress on this.
Title: Re: Pasar menúes al castellano
Post by: clyman on December 28, 2016, 12:37:32 PM
Disculpa mi ignorancia en el tema, pero es algo que tambien me interesa mucho y de hecho he estado trabajando enn ello (soy traductor)  y uso esta aplicacion en una solucion local.

Entiendo que no basta con intercambiarnos el hfs.tpl para dejar es español los menues y titulos traducidos al español?

Porque yo hice una prueba en una terminal y despues solo tuve que cargar el hfs.tpl para que me quedara igual en castellano de Chile.

Bueno inisto, soy ignorante en esto y no quiero decir mas sobre algo que quizas no es lo que quieren hacer.

Muchos saludos

Title: Re: Pasar menúes al castellano
Post by: LeoNeeson on December 29, 2016, 01:34:43 AM
Hola y bienvenido al foro! :)

Sobre este tema, todo depende de que Rejetto agregue el componente llamado "Kryvich's Delphi Localizer", para que cualquiera de nosotros podamos traducir HFS facilmente, pero hace más de 3 meses que no hay noticias del tema (muy posiblemente por falta de tiempo no haya podido mirarlo aún).

La otra opción es tomar el codigo fuente, traducir cada palabra y luego compilar el ejecutable, pero eso no es nada práctico comparado con la opción que escribí más arriba. Recomiendo esperar un poco más a ver si Rejetto puede hecharle un vistazo a esto. Mientras tanto, lo único que es fácilmente traducible es el 'template' (hfs.tpl).

Saludos,
Leo.-
Title: Re: Pasar menúes al castellano
Post by: sergio on March 27, 2017, 02:19:03 PM
Hola,

Considero que es el momento de agregar el idioma "ESPAÑOL" Ya que los hispanoablantes somos muchos mas.
Asi de la misma forma como se ha agregado en los demas servidores, y aplicaciones de gran uso.

Creo que esto se deberia haber hecho hace mucho tiempo.

¿ Se agregara el idioma español a HFS ?