Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 May 2020 01:04:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 243615] graphics/inkscape: upgrade to 1.0, use GraphicsMagick by default, enable OpenMP on amd64
Message-ID:  <bug-243615-6497-9nFAAoKsLi@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-243615-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-243615-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243615

--- Comment #67 from VVD <vvd@unislabs.com> ---
Created attachment 214570
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D214570&action=
=3Dedit
/usr/ports/graphics/inkscape/work/inkscape-1.0_2020-05-01_4035a4fb49/share/=
templates/create_default_templates.py
with debug output

This file make svg files:
/usr/ports/graphics/inkscape/work/inkscape-1.0_2020-05-01_4035a4fb49/share/=
templates/create_default_templates.py

cd
/tmp/work/usr/ports/graphics/inkscape/work/inkscape-1.0_2020-05-01_4035a4fb=
49/share/templates
&& python3.7 ./create_default_templates.py
/tmp/work/usr/ports/graphics/inkscape/work/inkscape-1.0_2020-05-01_4035a4fb=
49
/tmp/work/usr/ports/graphics/inkscape/work/.build

I did:
# cd /usr/ports/graphics/inkscape/
# make configure
Then replace edited with a lot of debug output file
create_default_templates.py:
# cp /backup/create_default_templates.py
/tmp/work/usr/ports/graphics/inkscape/work/inkscape-1.0_2020-05-01_4035a4fb=
49/share/templates/
# make

This is the normal output with create file default.sl.svg:
[VVD] 0. language =3D sl
[VVD] 1. destination_dir
[VVD] 2. shutil.copy
[VVD] 3.0. translation
[VVD] 3.1. translation
[VVD] 3.2. translated_string =3D Plast
[VVD] 3.3. LAYER_STRING =3D Layer
[VVD] 3.5. translated_string =3D Plast
[VVD] 4. output_file =3D
/tmp/work/usr/ports/graphics/inkscape/work/.build/share/templates/default.s=
l.svg
[VVD] 5.1. os.path.isfile
[VVD] 5.2. translated_string !=3D LAYER_STRING
[VVD] 5.3. file.read
[VVD] 5.4. filedata.replace
[VVD] 6. open

This is output for es_MX
[VVD] 0. language =3D es_MX
[VVD] 1. destination_dir
[VVD] 2. shutil.copy
[VVD] 3.0. translation
[VVD] 3.1. translation
[VVD] 3.2. translated_string =3D Layer
[VVD] 3.3. LAYER_STRING =3D Layer
[VVD] 3.5. translated_string =3D Layer
[VVD] 4. output_file =3D
/tmp/work/usr/ports/graphics/inkscape/work/.build/share/templates/default.e=
s_MX.svg
[VVD] 5.1. os.path.isfile
[VVD] 6. open

Check attache file, no strings in output:
[VVD] 5.2. translated_string !=3D LAYER_STRING
[VVD] 5.3. file.read
[VVD] 5.4. filedata.replace

"translated_string =3D=3D LAYER_STRING" for es_MX.

But if I do manual steps:=20
[1078/1079] cd
/tmp/work/usr/ports/graphics/inkscape/work/inkscape-1.0_2020-05-01_4035a4fb=
49/share/templates
&& python3.7 ./create_default_templates.py
/tmp/work/usr/ports/graphics/inkscape/work/inkscape-1.0_2020-05-01_4035a4fb=
49
/tmp/work/usr/ports/graphics/inkscape/work/.build
I got:
[VVD] 0. language =3D es_MX
[VVD] 1. destination_dir
[VVD] 2. shutil.copy
[VVD] 3.0. translation
[VVD] 3.1. translation
[VVD] 3.2. translated_string =3D Capa
[VVD] 3.3. LAYER_STRING =3D Layer
[VVD] 3.5. translated_string =3D Capa
[VVD] 4. output_file =3D
/tmp/work/usr/ports/graphics/inkscape/work/.build/share/templates/default.e=
s_MX.svg
[VVD] 5.1. os.path.isfile
[VVD] 5.2. translated_string !=3D LAYER_STRING
[VVD] 5.3. file.read
[VVD] 5.4. filedata.replace
[VVD] 6. open

And file default.es_MX.svg was created!!!
I'm not python programmer - who can say WTF?

Why 1st time after:
> translation =3D gettext.translation('inkscape', localedir=3Dbinary_dir + =
'/po/locale', languages=3D[language])
> translated_string =3D translation.gettext(LAYER_STRING)
translated_string =3D=3D 'Layer', but during manual run translated_string =
=3D=3D 'Capa'
???

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243615-6497-9nFAAoKsLi>