After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 307195 - Mark strings in operations as translatable.
Mark strings in operations as translatable.
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: general
git master
Other All
: Normal minor
: ---
Assigned To: Default Gegl Component Owner
Default Gegl Component Owner
Depends on:
Blocks:
 
 
Reported: 2005-06-10 18:48 UTC by geert jordaens
Modified: 2008-10-21 16:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for i18n support Gegl (4.16 KB, patch)
2005-06-10 18:50 UTC, geert jordaens
none Details | Review
Makefile.in for po dir (7.25 KB, text/plain)
2005-06-10 18:51 UTC, geert jordaens
  Details
Makefile.in.in for po dir (7.30 KB, text/plain)
2005-06-10 18:52 UTC, geert jordaens
  Details
POTFILES.in fro po dir (129 bytes, text/plain)
2005-06-10 18:53 UTC, geert jordaens
  Details
i18n macros for gegl (1009 bytes, text/plain)
2005-06-10 18:54 UTC, geert jordaens
  Details
Patch for i18n support Gegl (4.16 KB, patch)
2005-06-10 18:56 UTC, geert jordaens
none Details | Review
Missing file (1.27 KB, text/plain)
2005-06-11 11:16 UTC, geert jordaens
  Details
i18n strings for affine/ (7.29 KB, patch)
2008-07-06 19:51 UTC, yahvuu
none Details | Review
i18n strings for common/ (52.38 KB, patch)
2008-07-06 19:52 UTC, yahvuu
none Details | Review
i18n strings for core/ (4.67 KB, patch)
2008-07-06 19:53 UTC, yahvuu
none Details | Review
i18n strings for external/ (12.71 KB, patch)
2008-07-06 19:53 UTC, yahvuu
none Details | Review
i18n strings for generated/ (4.13 KB, patch)
2008-07-06 19:54 UTC, yahvuu
none Details | Review
i18n strings for workshop/** (26.35 KB, patch)
2008-07-06 19:54 UTC, yahvuu
none Details | Review
PO dir adding patch (9.03 KB, application/x-bzip)
2008-10-06 13:19 UTC, Alexandre Prokoudine
  Details
new patch that adds po direfctory (6.88 KB, application/octet-stream)
2008-10-21 16:45 UTC, Alexandre Prokoudine
  Details

Description geert jordaens 2005-06-10 18:48:01 UTC
Add i18n support to Gegl

Other information:
see attachments 

gegl_i18n.patch
gegl/po/Makefile.in
gegl/po/Makefile.in.in
gegl/po/POTFILES.in
gegl/gegl/gegl-intl.h
Comment 1 geert jordaens 2005-06-10 18:50:16 UTC
Created attachment 47562 [details] [review]
Patch for i18n support Gegl

contains patch for:

Makefile.am
configure.in
autogen.sh
gegl-object.c
gegl/gegl-object.h
Comment 2 geert jordaens 2005-06-10 18:51:40 UTC
Created attachment 47563 [details]
Makefile.in for po dir

create additional dir po under gegl root dir.

/gegl/po/Makefile.in
Comment 3 geert jordaens 2005-06-10 18:52:24 UTC
Created attachment 47564 [details]
Makefile.in.in for po dir

file for po dir.

/gegl/po/Makefile.in.in
Comment 4 geert jordaens 2005-06-10 18:53:01 UTC
Created attachment 47565 [details]
POTFILES.in fro po dir

file for po dir

/gegl/po/POTFILES.in
Comment 5 geert jordaens 2005-06-10 18:54:51 UTC
Created attachment 47566 [details]
i18n macros for gegl

Macro

/gegl/gegl/gegl-init.h
Comment 6 geert jordaens 2005-06-10 18:56:31 UTC
Created attachment 47567 [details] [review]
Patch for i18n support Gegl

Contents of patch

/gegl/Makefile.am
/gegl/configure.in
/gegl/autogen.sh
/gegl/gegl/gegl-object.c
/gegl/gegl/gegl-object.h
/gegl/gegl/gegl-init.c
Comment 7 Sven Neumann 2005-06-11 10:46:47 UTC
You didn't attach gegl-i18n.h but gegl-init.h. But I think we should get away
w/o gegl-init.h by using gi18n-lib.h from glib.
Comment 8 geert jordaens 2005-06-11 11:16:54 UTC
Created attachment 47600 [details]
Missing file

i18n Macros for gegl
Comment 9 geert jordaens 2005-06-11 14:55:25 UTC
>>by using gi18n-lib.h from glib.

no problem this works
Comment 10 Sven Neumann 2006-01-03 00:01:32 UTC
It would be nicer to actually depend on gi18n-lib.h from glib but IMO this patch should be committed and we can continue from there.
Comment 11 Øyvind Kolås (pippin) 2006-09-20 23:05:52 UTC
The only thing that needs translation in GEGL currently is the descriptions of the operations and their properties. This probably doesn't work right now, and might some more thought as well, if the plug-ins are to install their own translations, or perhaps translation packs for third party plug-ins?
Comment 12 Øyvind Kolås (pippin) 2008-02-12 00:34:12 UTC
How will we handle storing and distribution of translations for GEGL opertations?
One single .po file for all the GEGL provided operations, and optional language packs for others? Or does GEGL operations distributed by third party developers
install their own .po files?
Comment 13 Sven Neumann 2008-02-12 07:32:40 UTC
How can they not use their own .po files? They are independent third-party developers and you might not even know about them. Either all strings used in the registration of a GEGL operation have to be translated when they are passed GEGL, or GEGL needs to provide a framework that allows modules to specify their translation domain and the location of the compiled message catalogs.

But I guess you can get away with the much simpler solution of accepting translated strings. Or is there any reason why GEGL would need access to the untranslated strings?
Comment 14 Øyvind Kolås (pippin) 2008-02-24 12:22:00 UTC
Initial support for translation has now been added to GEGL, and a single operation has been flagged for translation.
Comment 15 Øyvind Kolås (pippin) 2008-05-17 12:42:26 UTC
More of the default operations should be translated. (the generated ops should probably be generated when the translation databases are).
Comment 16 yahvuu 2008-07-06 19:51:55 UTC
Created attachment 114073 [details] [review]
i18n strings for affine/

i've put "config.h" and <gi18n-lib.h> on top of the other includes here. Hope that is fine
Comment 17 yahvuu 2008-07-06 19:52:42 UTC
Created attachment 114074 [details] [review]
i18n strings for common/
Comment 18 yahvuu 2008-07-06 19:53:07 UTC
Created attachment 114075 [details] [review]
i18n strings for core/
Comment 19 yahvuu 2008-07-06 19:53:31 UTC
Created attachment 114076 [details] [review]
i18n strings for external/
Comment 20 yahvuu 2008-07-06 19:54:17 UTC
Created attachment 114077 [details] [review]
i18n strings for generated/
Comment 21 yahvuu 2008-07-06 19:54:46 UTC
Created attachment 114079 [details] [review]
i18n strings for workshop/**
Comment 22 yahvuu 2008-07-06 20:37:40 UTC
A note for external/display.c (id=114076):
the properties blurbed as 'private' are not included for translation. 
Also, this is the only op which has empty nicks. shouldn't matter, though.
Comment 23 Øyvind Kolås (pippin) 2008-10-02 23:39:07 UTC
Thank you, GEGL still has some needs in the build system to make the ops be fully translated. If that is the case a new bug should be opened about it.

2008-10-03  Øyvind Kolås  <pippin@gimp.org>

        Applied patches from  yahvuu at gmail.com for bug #307195 that
        marks strings in operation for translation.

        * operations/*/*.c:
Comment 24 Alexandre Prokoudine 2008-10-06 13:19:57 UTC
Created attachment 120021 [details]
PO dir adding patch

This silly straightforward patch adds a 'po' directory, Makefile.in.in, POTFILES.in, LINGUAS and an initial ru.po.
Comment 25 Sven Neumann 2008-10-06 19:37:50 UTC
po/Makefile.in.in should not be added to SVN. Instead configure.ac needs a call to IT_PROG_INTLTOOL(). And the files in the workshop folder should be removed from POTFILES.in and the workshop folder be added to POTFILES.skip instead.
Comment 26 Alexandre Prokoudine 2008-10-21 16:45:35 UTC
Created attachment 121041 [details]
new patch that adds po direfctory

Removed po/Makefile.in.in, moved workshop files to po/POTFILES.skip, patched configure.ac