Nearly there (see attached image).
One question. Is Galician your default language on your Ubuntu set up?
If it is, I will send a package which will automatically displays the
default language (or fall back to English). If not, I can send a
version which defaults to Galician.
All the best, Grant
Indalecio Freiría Santos wrote:
> Hi Grant,
>
> My default language on my Ubuntu is set to Galician.
Excellent. In that case, I will send a deb package to you soon which
automatically displays the default language (fingers crossed ;-)).
>
> BTW, the string "Default project so users can get started without
> having to understand projects ;-) . NB read only." is not
> internationalized, this string is in file: "SOFA_Default_Project.proj"
> . Galician translation will be "Proxecto predeterminado para que os
> usuarios poidan comezar sen ter que coñecer os proxectos ;-)"
Actually there are a handful of strings that have slipped through. I
will have to regenerate the pot, po, and mo files later. For the
specific string you have mentioned, I have added some code so that a
translated string will be displayed, rather than the source notes as
stored in the file, if the project is the default one.
But let's deal with the gaps a little later. At this point, I would
like to make sure you successfully see everything working. Does the
application even detect your locale successfully at all? Do you know
any Windows users (with Galician as the default of course) who could
check it on that OS as well?
The remaining issues will be:
- updating a complete po file
- shortening long labels/adding line breaks where necessary for layout.
E.g. in English I might change Information to Info or Configuration to
Config. NB if that is too hard in some cases, please let me know. I
may need to tweak layout a little bit.
- anything we've missed, esp on Windows ;-)
We are very close to a multilingual SOFA Statistics. Thank you very
much for your assistance. Of course, you will be formerly credited with
the translation on the SOFA Statistics site once we are finished.
All the best, Grant
>
> Thanks for all
>
> 2009/10/30 Grant Paton-Simpson <gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>>
> <ifrei...@gmail.com <mailto:ifrei...@gmail.com>>
I have made a fresh deb package for you (0.8.10.5). Good luck!
All the best, Grant
Indalecio Freiría Santos wrote:
> Hi Grant,
>
> My default language on my Ubuntu is set to Galician.
>
> BTW, the string "Default project so users can get started without
> having to understand projects ;-) . NB read only." is not
> internationalized, this string is in file: "SOFA_Default_Project.proj"
> . Galician translation will be "Proxecto predeterminado para que os
> usuarios poidan comezar sen ter que coñecer os proxectos ;-)"
>
> Thanks for all
>
> 2009/10/30 Grant Paton-Simpson <gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>>
> <ifrei...@gmail.com <mailto:ifrei...@gmail.com>>
Hi Indalecio,Excellent. In that case, I will send a deb package to you soon which automatically displays the default language (fingers crossed ;-)).
Indalecio Freiría Santos wrote:
Hi Grant,
My default language on my Ubuntu is set to Galician.
Actually there are a handful of strings that have slipped through. I will have to regenerate the pot, po, and mo files later. For the specific string you have mentioned, I have added some code so that a translated string will be displayed, rather than the source notes as stored in the file, if the project is the default one.
BTW, the string "Default project so users can get started without having to understand projects ;-) . NB read only." is not internationalized, this string is in file: "SOFA_Default_Project.proj" . Galician translation will be "Proxecto predeterminado para que os usuarios poidan comezar sen ter que coñecer os proxectos ;-)"
But let's deal with the gaps a little later. At this point, I would like to make sure you successfully see everything working. Does the application even detect your locale successfully at all? Do you know any Windows users (with Galician as the default of course) who could check it on that OS as well?
The remaining issues will be:
- updating a complete po file
- shortening long labels/adding line breaks where necessary for layout. E.g. in English I might change Information to Info or Configuration to Config. NB if that is too hard in some cases, please let me know. I may need to tweak layout a little bit.
I have made a fresh Windows package for 0.8.10.9
(http://www.sofastatistics.com/misc/sofa-0.8.10.9_python-2.6_for_win.zip).
It has been tested, but not as thoroughly as a proper release. There
was a bit of a delay as I dealt with some Windows-specific bugs to do with:
- new line support in project files,
- the need to initialise wx.App before referring to anything from the wx
module,
- and the absence of line breaks in checkbox labels.
I also resized the main form to better cater to longer strings (when
translated out of English).
If everything works OK with your Windows testing, the next and final
step will be to produce a fresh pot file, and a fresh sofa_gl_ES.po
file. The starting po file will be mostly complete but a few additions
and minor changes are needed.
I will then release 0.8.11.
There are only 6 small additions in the revised (and attached)
sofa_gl_ES.po file to bring it completely up-to-date with what will be
0.8.11:
lines 171, 464, 504, 1068, 1351, and 1414
All the best, Grant
Very relieved to hear that. I'll look into that error message in a
couple of days. I have a presentation on SOFA Statistics to deliver at
the Kiwi PyCon this weekend :-).
BTW The code that failed was:
# make default db if not already there
connSqlite = sqlite.connect(os.path.join(LOCAL_PATH,
my_globals.INTERNAL_FOLDER,
my_globals.SOFA_DEFAULT_DB))
connSqlite.close()
I suspect this will be one of the easier bugs to fix.
I can test the Galician version in Windows when I get back - both on my
standard, working virtualbox installation, and my clean virtualbox
installation.
All the best, Grant
Indalecio Freiría Santos wrote:
> Hi Grant,
>
> Maybe I just misstated, the program works, the only problem is that it
> is not shown in Galician.
>
> BTW, I glanced at the output.txt file and saw the following message:
>
> Traceback (most recent call last):
> File "C:\Program Files\sofa\start.pyw", line 369, in OnPaint
> my_globals.SOFA_DEFAULT_DB))
> pysqlite2._sqlite.OperationalError: unable to open database file
>
> One clarification, the galician "version" of Windows is merely a
> language pack, maybe the problem could be there?.
> How does gettext check on windows which language to use? I am not the
> biggest expert in Microsoft windows, to say the truth... ;)
>
> Regards
>
>
>
>
> 2009/11/5 pyGrant <gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>>
>
>
> Hi Indalecio,
>
> Thanks for the translation.
>
> Sad to hear about the problems. What didn't work? If you look at "C:
> \Documents and Settings\username\sofa\internal" there is a file called
> output.txt (If in Vista or Windows 7 it will be "C:\Users ..."). Does
> that have any error messages you could pass on?
>
> I have found a couple of bugs affecting table reporting and stats
> reporting. Was it about this area of functionality or did it even
> affect opening the default database table?
>
> Thanks for your testing - even though it was not the desired
> outcome ;-).
>
>
> All the best, Grant
>
>
> On Nov 5, 10:36 pm, Indalecio Freiría Santos <ifrei...@gmail.com
> <mailto:ifrei...@gmail.com>>
> wrote:
> > Hi Grant,
> >
> > I attach the updated sofa_gl_ES.po
> >
> > Also, I tested the windows version, and unfortunately its seems
> not to work.
> >
> > Regards.
> >
> > 2009/11/4 Grant Paton-Simpson <gr...@p-s.co.nz
> <mailto:gr...@p-s.co.nz>>
> <ifrei...@gmail.com <mailto:ifrei...@gmail.com>>
> > >>> wrote:
> >
> > >>>> 2009/10/30 Grant Paton-Simpson <gr...@p-s.co.nz
> <mailto:gr...@p-s.co.nz>>
> <mailto:gr...@p-s.co.nz> <mailto:
> <mailto:ifrei...@gmail.com <mailto:ifrei...@gmail.com>>>
Thanks for the new po file. That will be the basis for the next version.
I will need to do some more research on Python i18n on Windows.
BTW you now get an acknowledgement under the "Speaking your language"
section of the SOFA Statistics features page
(http://www.sofastatistics.com/features.php). Thanks you so much for
getting things started and following through on it.
All the best, Grant
Indalecio Freiría Santos wrote:
>
> Hi Grant,
>
> I think this could be a problem relative with UTF vs ISO-8859. Do you
> know wether windows can work with UTF8?
> I'm sorry for not being able to help you more...
>
> BTW, I send you to the updated Galician translation of sofa, reviewed
> by a linguist!
>
> Regards.
>
>
> 2009/11/9 pyGrant <gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>>
>
>
> Hi Indalecio,
>
> I was unable to repeat the error that you experienced. Did it stop
> you opening the test data? If not, we can probably overlook it for
> the time being.
>
> Re: language settings: I have selected Galician for my regional/
> language settings in XP but everything still seems to be in English.
> The keyboard is now different but none of the actual Windows XP text
> is in Galician.
>
> If I change start.py so it is:
>
> test_lang = True
>
> on line 5, I see the strings you gave me but the text is not quite
> right (e.g. táboa is shown as t, then a capital A with a squiggle on
> top, then an i, then boa).
>
> I also get a Pythonw warning "Locale 'Galician' not supported by OS".
>
> Anybody out there know what XP is meant to function like in Galician?
> Any help or expertise is very much welcomed. My system seems to be
> English with Galician language support. If I can't figure this out
> properly I'll release 0.8.11 as is with a mention that Galician
> support is currently only available in Ubuntu.
>
> BTW everything works very well in Ubuntu. Perhaps Windows isn't ready
> for the Desktop ;-).
>
>
> All the best, Grant
>
> On Nov 6, 8:03 am, Grant Paton-Simpson <gr...@p-s.co.nz
> <mailto:gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>>>
> >
> > > Hi Indalecio,
> >
> > > Thanks for the translation.
> >
> > > Sad to hear about the problems. What didn't work? If you
> look at "C:
> > > \Documents and Settings\username\sofa\internal" there is a
> file called
> > > output.txt (If in Vista or Windows 7 it will be "C:\Users
> ..."). Does
> > > that have any error messages you could pass on?
> >
> > > I have found a couple of bugs affecting table reporting
> and stats
> > > reporting. Was it about this area of functionality or did
> it even
> > > affect opening the default database table?
> >
> > > Thanks for your testing - even though it was not the desired
> > > outcome ;-).
> >
> > > All the best, Grant
> >
> > > On Nov 5, 10:36 pm, Indalecio Freiría Santos
> <ifrei...@gmail.com <mailto:ifrei...@gmail.com>
> > > <mailto:ifrei...@gmail.com <mailto:ifrei...@gmail.com>>>
> > > wrote:
> > > > Hi Grant,
> >
> > > > I attach the updated sofa_gl_ES.po
> >
> > > > Also, I tested the windows version, and unfortunately
> its seems
> > > not to work.
> >
> > > > Regards.
> >
> > > > 2009/11/4 Grant Paton-Simpson <gr...@p-s.co.nz
> <mailto:gr...@p-s.co.nz>
> > > <mailto:gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>>>
> >
> > > > > Hi Indalecio,
> >
> > > <mailto:gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>> <mailto:
> > > > >>>>>> gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>
> <mailto:gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>>>>
We're getting somewhere. Did you also get a Pythonw warning "Locale
'Galician' not supported by OS"?
I'm not sure what a Windows XP system is meant to look like when it
support Galician. Are menus, buttons etc all in Galician, including
with the non-English characters e.g. í ? The fact that everything is
correct in Ubuntu without any changes in code suggests that the SOFA
Statistics code isn't entirely broken. Are there any Galician Windows
users (whether or not using SOFA Statistics) who could advise on what is
a normal Galician setup in Windows. Can you think of any Indalecio (not
so many down here in New Zealand ;-))? And does it have to be Galician
at installation or are the Control Panel>Regional/Language Settings
relevant? Etc.
I can get dates and currency in Windows XP to display in Galician with
some Control Panel settings but there is still the problem with
non-ascii characters. That seems to be the real issue.
The goal is to draft a simple how to, or at least an explanation of when
it will or won't work.
All the best, Grant
Indalecio Freiría Santos wrote:
> Hi Grant,
>
> First of all, thanks for acknowledgement, but the fact that the
> program is internationalized is already an acknowledgement in itself.
>
> If I edit C:\Program Files\sofa\start.pyw it shows correct galician,
> but the problem is in words with non-ascii symbols (the same that
> happen to you with "táboa").
>
> Regards.
>
>
> 2009/11/10 pyGrant <gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>>
>
>
> Hi Indalecio,
>
> What happens if you edit (in Windows) C:\Program Files\sofa\start.pyw
> so that line 5 becomes:
>
> test_lang = True
>
> Does it show:
> a) English?
> b) mangled Galician?
> c) correct Galician?
>
>
> All the best, Grant
>
> On Nov 6, 1:31 am, Indalecio Freiría Santos <ifrei...@gmail.com
> <mailto:ifrei...@gmail.com>>
> wrote:
> > Hi Grant,
> >
> > Maybe I just misstated, the program works, the only problem is
> that it is
> > not shown in Galician.
> >
> > BTW, I glanced at the output.txt file and saw the following message:
> >
> > Traceback (most recent call last):
> > File "C:\Program Files\sofa\start.pyw", line 369, in OnPaint
> > my_globals.SOFA_DEFAULT_DB))
> > pysqlite2._sqlite.OperationalError: unable to open database file
> >
> > One clarification, the galician "version" of Windows is merely a
> language
> > pack, maybe the problem could be there?.
> > How does gettext check on windows which language to use? I am
> not the
> > biggest expert in Microsoft windows, to say the truth... ;)
> >
> > Regards
> >
> > 2009/11/5 pyGrant <gr...@p-s.co.nz <mailto:gr...@p-s.co.nz>>
> >
> >
> >
> > > Hi Indalecio,
> >
> > > Thanks for the translation.
> >
> > > Sad to hear about the problems. What didn't work? If you
> look at "C:
> > > \Documents and Settings\username\sofa\internal" there is a
> file called
> > > output.txt (If in Vista or Windows 7 it will be "C:\Users
> ..."). Does
> > > that have any error messages you could pass on?
> >
> > > I have found a couple of bugs affecting table reporting and stats
> > > reporting. Was it about this area of functionality or did it even
> > > affect opening the default database table?
> >
> > > Thanks for your testing - even though it was not the desired
> > > outcome ;-).
> >
> > > All the best, Grant
> >
> > > On Nov 5, 10:36 pm, Indalecio Freiría Santos
> <ifrei...@gmail.com <mailto:ifrei...@gmail.com>>
> > > wrote:
> > > > Hi Grant,
> >
> > > > I attach the updated sofa_gl_ES.po
> >
> > > > Also, I tested the windows version, and unfortunately its
> seems not to
> > > work.
> >
> > > > Regards.
> >
> > > > 2009/11/4 Grant Paton-Simpson <gr...@p-s.co.nz
> <mailto:gr...@p-s.co.nz>>
> <ifrei...@gmail.com <mailto:ifrei...@gmail.com>>
> > > > >>> wrote:
> >
> > > > >>>> 2009/10/30 Grant Paton-Simpson <gr...@p-s.co.nz
> <mailto:gr...@p-s.co.nz>>
> >
> > > > >>>>> Hi Indalecio,
> > > > >>>>> Indalecio Freiría Santos wrote:
> >
> > > > >>>>>> Hi Grant,
> > > > >>>>>> My default language on my Ubuntu is set to
> Galician.
> >
> > > > >>>>> Excellent. In that case, I will send a deb package to
> you soon
> > > which
> > > > >>>>> automatically displays the default language (fingers
> crossed ;-)).
> >
> > > > >>>>>> BTW, the string "Default project so users can get
> started without
> > > > >>>>>> having
> > > > >>>>>> to understand projects ;-) . NB read only." is not
> > > internationalized,
> > > > >>>>>> this
> > > > >>>>>> string is in file: "SOFA_Default_Project.proj" . Galician
> > > translation
> > > > >>>>>> will
> > > > >>>>>> be "Proxecto predeterminado para que os usuarios
> poidan comezar
> > > sen
> > > > >>>>>> ter que
> > > > >>>>>> cońecer os proxectos ;-)"
> <gr...@p-s.co.nz <mailto:gr...@p-s.co.nz> <mailto:
> <mailto:ifrei...@gmail.com <mailto:ifrei...@gmail.com>>>
Regards
2009/11/10 Grant Paton-Simpson <gr...@p-s.co.nz>