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 398067 - plugin.in files are not localized
plugin.in files are not localized
Status: VERIFIED FIXED
Product: anjuta
Classification: Applications
Component: unknown
SVN TRUNK
Other Linux
: Normal normal
: ---
Assigned To: Anjuta maintainers
Anjuta maintainers
Depends on:
Blocks:
 
 
Reported: 2007-01-18 16:51 UTC by Gabor Kelemen
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add plugin.in files to POTFILES.in, with type: tags (2.42 KB, patch)
2007-01-22 15:12 UTC, Gabor Kelemen
none Details | Review
Corrected patch (2.33 KB, patch)
2007-01-22 15:29 UTC, Gabor Kelemen
committed Details | Review

Description Gabor Kelemen 2007-01-18 16:51:08 UTC
The plugin.in files contain translatable strings, but the files are not recognized by intltool-update, therefore they can not be translated. Adding the files to potfiles.in doesn't solves the problem, also the existing makefile.am macros don't seem to work, as the manually added translations to hu.po are not used in plugin.in files.
Comment 1 Naba Kumar 2007-01-18 21:06:11 UTC
(In reply to comment #0)
> The plugin.in files contain translatable strings, but the files are not
> recognized by intltool-update, therefore they can not be translated. Adding the
> files to potfiles.in doesn't solves the problem, also the existing makefile.am
> macros don't seem to work, as the manually added translations to hu.po are not
> used in plugin.in files.
> 
So what do you suggest we do?
Comment 2 Gabor Kelemen 2007-01-19 14:42:51 UTC
Well, after a little more investigation, i have found that the problem is not serious at all.
After renaming a plugin.in file to plugin.desktop.in, the translation process worked fine: messages appeared in hu.po and after translating them and make, they were merged back to plugin.desktop. 
So, the solution is trivial now. The files must be renamed, the plugin parsing should be changed to search for renamed files and they must be added to POTFILES.in. 
Comment 3 Naba Kumar 2007-01-22 09:07:04 UTC
Thanks for your investigation, Gabor. But isn't there a better way? Such as writing an autoconf macro or something? Calling a file .desktop when it is not could be a source of huge problem later. Everyting that parses .desktop expects it to be a Desktop file. Our .plugin files, although uses the same format, is not even remotely similar to Desktop files. I would prefer to wait for a better solution.
Comment 4 Gabor Kelemen 2007-01-22 15:11:29 UTC
I have found bug #319609, which says there is a better way: adding some tags to the beginning of lines does the trick. Attaching patch.
Comment 5 Gabor Kelemen 2007-01-22 15:12:47 UTC
Created attachment 80897 [details] [review]
Add plugin.in files to POTFILES.in, with type: tags
Comment 6 Gabor Kelemen 2007-01-22 15:29:44 UTC
Created attachment 80898 [details] [review]
Corrected patch

The plugins/project-wizard/templates/anjuta-plugin/src/plugin.plugin.in file is not a "real" plugin, removing it.
Comment 7 Naba Kumar 2007-01-22 18:37:29 UTC
Thanks! that's much better :). Committed.
Comment 8 Naba Kumar 2007-02-11 21:46:59 UTC
Closed all old bugs since last release