It is currently Wed Aug 05, 2026 3:09 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: G'mic in other languages.(Solved)
PostPosted: Thu Jan 24, 2013 10:17 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Dec 02, 2012
Posts: 203
Location: Cantabria, Spain
One user of Gimp.Org.Es ask me if there is a way to translate G'mic from english to spanish.

He is in the idea to translate it himself.

May be it possible?. And, ...How to?.

Thanks.

_________________
Image



My Gimp rides on Antergos (Arch), Linux Mint, Debian and Fedora


Last edited by jamac4k on Fri Jan 25, 2013 5:04 pm, edited 1 time in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: G'mic in other languages.
PostPosted: Thu Jan 24, 2013 11:47 am  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Yes, it is possible of course.
G'MIC doesn't use an usual translation file for this task, and translating the interface means modifying some code, but it is quite simple to do, once we get the idea.
Just to show how it works, here is translation code for the Catalan language :
// Catalan translation
  if (!std::strcmp(get_locale(),"ca")) {
    if (!s) {
      static const char *const ns = "<b>No ha estat possible establir una connexi&#243; a Internet !</b>\n\n"
        "<i>No es possible arribar a aquestes fonts de filtres :</i>\n";
      return ns;
    }
    _t("G'MIC for GIMP","G'MIC per al GIMP");
    _t("<i>Select a filter...</i>","<i>Selecciona un filtre...</i>");
    _t("<i>No parameters to set...</i>","<i>Sense par\303\240metres...</i>");
    _t("<b> Input / Output : </b>","<b> Entrades / Sortides : </b>");
    _t("Input layers...","Capes d'entrada...");
    _t("None","Cap");
    _t("Active (default)","Actiu (predet.)");
    _t("All","Tots");
    _t("Active & below","L'activa i les de sota");
    _t("Active & above","L'activa i les de sobre");
    _t("All visibles","Totes les visibles");
    _t("All invisibles","Totes les invisibles");
    _t("All visibles (decr.)","Totes les visibles (decr.)");
    _t("All invisibles (decr.)","Totes les invisibles (decr.)");
    _t("All (decr.)","Totes (decr.)");
    _t("Output mode...","Mode de sortida...");
    _t("In place (default)","A la capa actual (predet.)");
    _t("New layer(s)","Nova/es capa/es");
    _t("New active layer(s)","Nova/es capa/es actius");
    _t("New image","Nova imatge");
    _t("Output preview...","Previsualitzaci\303\263 de sortida...");
    _t("1st output (default)","1era imatge (predet.)");
    _t("2nd output","2ona imatge");
    _t("3rd output","3era imatge");
    _t("4th output","4rta imatge");
    _t("1st -> 2nd","1era -> 2ona");
    _t("1st -> 3rd","1era -> 3era");
    _t("1st -> 4th","1era -> 4rta");
    _t("All outputs","Totes les imatges");
    _t("Output messages...","Missatges de sortida...");
   _t("Quiet (default)","Sense missatges (predet.)");
    _t("Verbose (console)","Verb\303\263s (consola)");
    _t("Verbose (logfile)","Verb\303\263s (arxiu)");
    _t("Very verbose (console)","Molt verb\303\263s (consola)");
    _t("Very verbose (logfile)","Molt verb\303\263s (arxiu)");
    _t("Debug mode (console)","Depuraci\303\263 (consola)");
    _t("Debug mode (logfile)","Depuraci\303\263 (arxiu)");
    _t(" Available filters (%u) :"," Filtres disponibles (%u) :");
    _t("_Maximize","_Maximitzar");
    _t("_Restore","_Restaurar");
    _t("Update","Actualitzaci\303\263");
    _t("Rename","Canviar");
  }


If you can send me the same piece of code with the Spanish translation instead, then I'll be able to add it to the plug-in.


Top
 Post subject: Re: G'mic in other languages.
PostPosted: Thu Jan 24, 2013 1:16 pm  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
In my translation does not work for Windows - I do not know why?

_________________
Image


Top
 Post subject: Re: G'mic in other languages.
PostPosted: Thu Jan 24, 2013 5:31 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Dec 02, 2012
Posts: 203
Location: Cantabria, Spain
# Ronounours:

I'm working on it, but I don't know the correct idiom of Verbose. May be "very verbose" means "too much comments"?.

Thanks!!

Translation:
// Castillan (Spanish) translation
  if (!std::strcmp(get_locale(),"es")) {
    if (!s) {
      static const char *const ns = "<b>No es posible establecer conexión a Internet !</b>\n\n"
        "<i>No es posible acceder a estas fuentes de filtros :</i>\n";
      return ns;
    }
    _t("G'MIC for GIMP","G'MIC para GIMP");
    _t("<i>Select a filter...</i>","<i>Selecciona un filtro...</i>");
    _t("<i>No parameters to set...</i>","<i>Sin parámetros...</i>");
    _t("<b> Input / Output : </b>","<b> Entrada / Salida : </b>");
    _t("Input layers...","Capas de entrada...");
    _t("None","Ninguna");
    _t("Active (default)","Activa (predet.)");
    _t("All","Todas");
    _t("Active & below","Activa e inferior");
    _t("Active & above","Activa y superior");
    _t("All visibles","Todas las visibles");
    _t("All invisibles","Todas las invisibles");
    _t("All visibles (decr.)","Todas las visibles (decr.)");
    _t("All invisibles (decr.)","Todas las invisibles (decr.)");
    _t("All (decr.)","Todas (decr.)");
    _t("Output mode...","Modo de salida...");
    _t("In place (default)","En la capa actual (predet.)");
    _t("New layer(s)","Capa/as nueva/as");
    _t("New active layer(s)","Capa/as nueva/as activa");
    _t("New image","Imagen nueva");
    _t("Output preview...","Previsualización de la salida...");
    _t("1st output (default)","1ra imagen (predet.)");
    _t("2nd output","2da imagen");
    _t("3rd output","3ra imagen");
    _t("4th output","4ta imagen");
    _t("1st -> 2nd","1ra -> 2da");
    _t("1st -> 3rd","1ra -> 3ra");
    _t("1st -> 4th","1ra -> 4ta");
    _t("All outputs","Todas las imagenes (salida)");
    _t("Output messages...","Mensajes de salida...");
    _t("Quiet (default)","Sin mensajes (predet.)");
    _t("Verbose (console)","Redundante (consola)");
    _t("Verbose (logfile)","Redundante (archivo_registro)");
    _t("Very verbose (console)","Muy redundante (consola)");
    _t("Very verbose (logfile)","Muy redundante (archivo_registro)");
    _t("Debug mode (console)","Depuración (consola)");
    _t("Debug mode (logfile)","Depuración (archivo_registro)");
    _t(" Available filters (%u) :"," Filtros disponibles (%u) :");
    _t("_Maximize","_Maximizar");
    _t("_Restore","_Restaurar");
    _t("Update","Actualitzación");
    _t("Rename","Renombrar");
  }

_________________
Image



My Gimp rides on Antergos (Arch), Linux Mint, Debian and Fedora


Top
 Post subject: Re: G'mic in other languages.
PostPosted: Fri Jan 25, 2013 3:12 am  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
@MareroQ : The translation is enabled when the corresponding locale of the system is found to be equal to the string put on the first line. Maybe your locale is not the same ?

EDIT : Looks like the translation feature in G'MIC is broken, so that may explain a lot of things :) Trying to fix it as soon as possible.
EDIT2 : Found it ! Next release should work as expected.

@Jamac4k : For me, verbose simply means 'which print informations on the standard output', and 'Very verbose' means 'which print a lot of informations on the standard output'. But 'too much comments' has a negative meaning that is maybe not adapted here. Also, 'Verbose' is a very common term used in software and there are probably already some 'standard' translation available in Spanish for this term.

Thanks for the translation, I'm currently compiling the code to see if this is working as expected.

EDIT : Looks like it is working like a charm. Thanks Jamac4k !


Top
 Post subject: Re: G'mic in other languages.
PostPosted: Fri Jan 25, 2013 4:40 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: Dec 02, 2012
Posts: 203
Location: Cantabria, Spain
Then, I think that the best term is:

"Detallado" instead "Redundante"

and

"Muy detallado" instead "Muy redundante".



Thanks!!

_________________
Image



My Gimp rides on Antergos (Arch), Linux Mint, Debian and Fedora


Top
 Post subject: Re: G'mic in other languages.
PostPosted: Fri Jan 25, 2013 4:58 am  (#7) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Got it. Thanks !


Top
 Post subject: Re: G'mic in other languages.
PostPosted: Fri Jan 25, 2013 1:45 pm  (#8) 
Offline
GimpChat Member
User avatar

Joined: Dec 02, 2012
Posts: 203
Location: Cantabria, Spain
Forgive my ignorance about programming. If the translation works, What is the next step?, Should we wait for the new release?

Thanks!!

_________________
Image



My Gimp rides on Antergos (Arch), Linux Mint, Debian and Fedora


Top
 Post subject: Re: G'mic in other languages.
PostPosted: Fri Jan 25, 2013 2:09 pm  (#9) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Yes, it will be able in the next release 1.5.4.0.


Top
 Post subject: Re: G'mic in other languages.(Solved)
PostPosted: Fri Jan 25, 2013 2:15 pm  (#10) 
Offline
GimpChat Member
User avatar

Joined: Dec 02, 2012
Posts: 203
Location: Cantabria, Spain
Thanks again.

I'll tell it to guy who requests the translation.

Edit the subject as solved.

_________________
Image



My Gimp rides on Antergos (Arch), Linux Mint, Debian and Fedora


Top
 Post subject: Re: G'mic in other languages.(Solved)
PostPosted: Mon Jan 28, 2013 12:05 pm  (#11) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2648
Location: Poland
I think translation for Linux works in all languages (when added to translation). The problem is for Windows - what language does it work?
In the GMIC 1.5.4.0 version, unfortunately Poland version not!

_________________
Image


Top
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group