<div class="gmail_quote">This might have something to do with a few messages related with i.tasscap translation.</div><div class="gmail_quote"><br></div><div class="gmail_quote">Ok (I have tested this at my WinGRASS installation due to limit access to my LINUX machine):</div>
<div class="gmail_quote">1- I downloaded grassmods_es.po file (the first language where I want to have my NDVI calculator available). Other will be Brazilian and of course English (already available in the Script code).</div>
<div class="gmail_quote">2- Just like Glynn said, At the po file header is some information: "Content-Type: text/plain; charset=ISO-8859-1\n"</div><div class="gmail_quote">3- At grassmods.mo the following was there:</div>
<div class="gmail_quote"><div class="gmail_quote">#: ../locale/scriptstrings/i.tasscap_to_translate.c:1</div><div class="gmail_quote">msgid "Tasseled Cap (Kauth Thomas) transformation for LANDSAT-TM data"</div><div class="gmail_quote">
msgstr "Transformación Tasseled Cap (Kauth Thomas) para datos LANDSAT-TM"</div><div class="gmail_quote">4- using po Editor I created mo files and renamed and put them in location/es/LC_Messages</div></div><div class="gmail_quote">
4- I added the following to my Init.bat </div><div class="gmail_quote"><div class="gmail_quote">set LANGUAGE=es_ES</div><div class="gmail_quote">set LANG=es_ES</div><div class="gmail_quote">set LC_ALL=es_ES</div><div class="gmail_quote">
5- I Started GRASS and realize that:</div><div class="gmail_quote">- GUI is in spanish (bueno :) buttons, text in status bar in the bottom; menu</div><div class="gmail_quote">- But i.tasscap and neither other scripts are translated even If I have them in my mo file.</div>
<div class="gmail_quote">6- I decided to compare the type of files I mean, wxpython_es.po that is working againts grassmods_es.po that isn't.</div><div class="gmail_quote">Conclusions: The one that is working is UTF-8 and Content-Transfer-Encoding: 8bit\n and the other one is charset=ISO-8859-1.</div>
<div class="gmail_quote"><br></div><div class="gmail_quote">Is this the problem? If it's how can we contour this problem, I mean use special characters? (I also experiment with De and it also didnt' work).</div></div>
<div class="gmail_quote"><br>Thank you</div><div class="gmail_quote"><br></div><div class="gmail_quote">Kim<br><br><div class="im"><br>
Kim Besson wrote:<br>
<br>
> Ok. I have tested what Antonio sent to the mailing list and the problem is<br>
> that one: I used special characters in the Module/Option description.<br>
><br>
> So, it seems that I cannot use those special characters.<br>
> My question is: If I want to add a text line in *.po files, regarding a<br>
> description in a Script, in wich *.po file I have to add an extra line?<br>
<br>
</div>For scripts, the translation is performed by g.parser, which uses the<br>
"grassmods" file.<br>
<div class="im"><br>
> And how can I tell if it's a UTF-8 or a ISO-8859-* file?<br>
<br>
</div>At the top of the file, there should be a line like:<br>
<br>
"Content-Type: text/plain; charset=ISO-8859-15\n"<br>
<font color="#888888"><br>
--<br>
</font><div><div></div><div class="h5">Glynn Clements <<a href="mailto:glynn@gclements.plus.com">glynn@gclements.plus.com</a>><br>
</div></div></div><br>