I used LANG=en_US.utf8. Had the following report :
(process:20100): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
and worked fine for me.
An indice, when I list locale supported by my system, I've a c.UTF-8, ou
can verify that by locale -a.
In my case :
$ locale -a
C
C.UTF-8
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
POSIX
zh_CN.utf8
zh_SG.utf8
The C.UTF-8 can be generated by localdef, I'm not sure, but this should
be something like this, but I'm not sure at all, perhaps your system
locale (libc-bin package for debian derived distros) should be updated) :
localedef -c -f UTF-8 -i C C.UTF-8
I only know that the following line display compiled locales :
localedef --list-archive
In my case, there is no POSIX or C* :
fr_BE.utf8
fr_CA.utf8
fr_CH.utf8
fr_FR.utf8
fr_LU.utf8
zh_CN.utf8
zh_SG.utf8
Popolon
Le 08/12/2012 19:37, Manuel Quiñones a écrit :
Hey Jon,
do I need to set the encoding of my terminal too? Is currently
unicode (utf8), I get UnicodeEncodeError:
[manuq@manuq-laptop mypaint]$ LANG=C ./mypaint
0
Using GTK2
builtin python 2.6 json support
DEBUG: getlocale(): (None, None)
DEBUG: localepath: po
DEBUG: localepath_brushlib: brushlib/po
confpath = /home/manuq/.mypaint/
DEBUG: mode stack updated: <ModeStack [SwitchableFreehandMode]>
Traceback (most recent call last):
File "./mypaint", line 199, in <module>
main.main(datapath, extradata, confpath)
File "/home/manuq/prog/mypaint/gui/main.py", line 77, in main
run()
File "/home/manuq/prog/mypaint/gui/main.py", line 52, in run
app = application.Application(datadir, extradata, options.config, args)
File "/home/manuq/prog/mypaint/gui/application.py", line 117, in __init__
self.filehandler = filehandling.FileHandler(self)
File "/home/manuq/prog/mypaint/gui/filehandling.py", line 77, in __init__
self.set_recent_items()
File "/home/manuq/prog/mypaint/gui/filehandling.py", line 113, in
set_recent_items
if "mypaint" in i.get_applications() and
os.path.exists(helpers.uri2filename(i.get_uri()))
File "/usr/lib64/python2.7/genericpath.py", line 18, in exists
os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in
position 14: ordinal not in range(128)
[manuq@manuq-laptop mypaint]$
2012/12/8 Jon Nordby <[email protected]>:
Hi Manuel,
Using LANG=C should get you the original strings, as they appear in the
code.
On 8 December 2012 19:10, Manuel Quiñones <[email protected]> wrote:
What is the LANG parameter to get the original English strings in the
UI? This doesn't work for me:
LANG=en_US.utf8 ./mypaint
Althougth I see this line in the output:
DEBUG: getlocale(): ('en_US', 'UTF-8')
I'm trying to have two instances of MyPaint with two languages side by
side, to test my translation.
2012/12/8 Martin Renold <[email protected]>:
There was a bug, brushlib translations were not displayed at all. The
problem is fixed now in git.
There was also an additional untranslatable string found (frame window
title). Please re-run "scons translate=xx" to get those.
Let me know if there still are problems left.
Regards
Martin
On Mon, Dec 03, 2012 at 08:03:12PM +0100, Martin Renold wrote:
hi
You are right, the 3 tooltips where not translatable.
I have pushed your translation to git, I have made the tooltips
translatable, and I have also run "scons translate=it" for you (runs
without
problem here, and produces slightly different output).
Will look at the brushlib string problem later.
Regards
Martin
On Mon, Dec 03, 2012 at 01:26:42PM +0100, Lamberto Tedaldi wrote:
Hi Martin,
here attached there are po file for Italian language.
There are troubles with various strings that are not translated at
runtime.
In main po file (mypaint/po/it.po) some tooltip strings are not
translated , "Lines and Curves" or "Connected Lines" tooltips for
example.
I suspect it depends from the fact they contains some line break
character in source code.
In brushlib po file (mypaint/brushlib/po/it.po) the problem seems
affect all short and long description strings of brush settings.
Is this due to an error when I run the command "scons translate=it"?
The command returns:
[cut]
cd .. && ls *.{h,c} | sort > po/POTFILES.in
ls: can't access to *.{h,c}: File or directory does not exist
intltool-update -g libmypaint --pot
intltool-update -g libmypaint it
intltool-update: libmypaint.pot does not exist.
scons: *** Error 2
[cut]
I'm using ubuntu 12.10 32bit python 2.7 and poedit 1.4.6 for working
on po files.
Best regards,
Lamberto Tedaldi
--
---------------------------------------------------------------
Officine Pixel S.n.c.
produzioni multimediali
via Ardenne 3 - 47100 Forlì
Tel. +39 (0)543 405035
Fax. +39 (0)543 409315
www.officinepixel.com
www.ffx.it
--
Martin Renold
_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss
--
Martin Renold
_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss
--
.. manuq ..
_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss
--
Jon Nordby - www.jonnor.com
_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss