[Bug 875530] New: Allow to localize/translate sax3 interface
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c0 Summary: Allow to localize/translate sax3 interface Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: All OS/Version: openSUSE 13.1 Status: NEW Severity: Enhancement Priority: P5 - None Component: YaST2 AssignedTo: yast2-maintainers@suse.de ReportedBy: embar@super.lt QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:28.0) Gecko/20100101 Firefox/28.0 Now SAX3 is in english. Seems, that it's messages can not be translated. Maybe it could be? Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c Mindaugas Baranauskas <embar@super.lt> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |manugupt1@gmail.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c1 --- Comment #1 from Manu Gupta <manugupt1@gmail.com> 2014-04-28 19:29:09 UTC --- SaX3 was always meant to be localized. Let me check how to do that and I will provide you steps. This weekend maybe :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c2 --- Comment #2 from Manu Gupta <manugupt1@gmail.com> 2014-05-04 09:47:57 UTC --- If I provide you with po files and the code modified, is that enough. I will try to push an update with these, can you try, check and let me know. Regards Manu -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c3 --- Comment #3 from Mindaugas Baranauskas <embar@super.lt> 2014-05-04 12:53:47 UTC --- OK -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c4 Manu Gupta <manugupt1@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |embar@super.lt --- Comment #4 from Manu Gupta <manugupt1@gmail.com> 2014-05-04 12:56:24 UTC --- Hi https://build.opensuse.org/package/show/home:manugupt1:branches:X11:Utilitie... is ready, and will go into X11:Utilities soon. You can find po files in /usr/share/sax3/translation Once you have updated it. Let me know your results. Thanks a lot Manu -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c5 --- Comment #5 from Manu Gupta <manugupt1@gmail.com> 2014-05-04 13:06:25 UTC --- https://build.opensuse.org/package/show/X11:Utilities/sax3 Landed up. Thanks a lot Please check and let me know. BR Manu -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c6 --- Comment #6 from Mindaugas Baranauskas <embar@super.lt> 2014-05-04 14:00:59 UTC --- Created an attachment (id=588635) --> (http://bugzilla.novell.com/attachment.cgi?id=588635) SAX3 0.1.2 translation to lt (Lithuanian) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c7 Mindaugas Baranauskas <embar@super.lt> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|embar@super.lt | --- Comment #7 from Mindaugas Baranauskas <embar@super.lt> 2014-05-04 14:05:47 UTC --- I translated strings, compiled .mo files. But I don't see translation of sax3 (I tested sax3-keyboard). I tryied to put *.mo files in /usr/share/locale/lt/LC_MESSAGES/ /usr/share/sax3/translation/ /usr/share/sax3/translation/lt_LT /usr/share/sax3/translation/lt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c8 --- Comment #8 from Manu Gupta <manugupt1@gmail.com> 2014-05-04 17:25:50 UTC --- I need to check.. this thorughly I am sorry for thr trouble you are going through. I will check with someone and get you some kind of updates. Thanks for your patience Manu -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c9 --- Comment #9 from Manu Gupta <manugupt1@gmail.com> 2014-05-04 17:33:02 UTC --- I think only the keyboard module has some problems, can you check with others and let me know. BR Manu -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c10 --- Comment #10 from Mindaugas Baranauskas <embar@super.lt> 2014-05-05 11:50:58 UTC --- Yes, only sax3-keyboard did not show messages in Lithuanian. sax3-mouse, sax3-touchpad and sax3-monitor show messages in Lithuanian now. .mo files are in /usr/share/locale/lt/LC_MESSAGES/ . P.S. translation sources should be named with POT extension. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c11 Mindaugas Baranauskas <embar@super.lt> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |carlos.e.r@opensuse.org --- Comment #11 from Mindaugas Baranauskas <embar@super.lt> 2014-05-05 11:51:56 UTC --- Why not to include these POT files to http://svn.opensuse.org/svn/opensuse-i18n/trunk/yast/50-pot/ or http://svn.opensuse.org/svn/opensuse-i18n/trunk/lcn/50-pot/ ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c12 --- Comment #12 from Mindaugas Baranauskas <embar@super.lt> 2014-05-05 11:53:53 UTC --- Carlos, can you look for including these files in http://svn.opensuse.org/svn/opensuse-i18n/trunk ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c13 --- Comment #13 from Carlos Robinson <carlos.e.r@opensuse.org> 2014-05-05 12:23:07 UTC --- (In reply to comment #12)
Carlos, can you look for including these files in http://svn.opensuse.org/svn/opensuse-i18n/trunk ?
No, I can not. I'm a translator, I don't know the precise steps needed to add a translation to the tree. I think that you should contact Karl Eichwalder. I don't know if it is him who has to do it, but at least he can tell you the steps. Basically, a mechanism is needed so that when your package is updated, you submit the .pot file to the translation trunk (or stable tree if appropriate), and later you pick the translated .po files for each language to add to your project, and rebuild. I don't know if they do this thing automatically (cron?) or manually. And your file may have to be added to lists in scripts and such, I think. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c14 --- Comment #14 from Manu Gupta <manugupt1@gmail.com> 2014-05-05 15:58:25 UTC --- I am not sure, how to go about building a .pot file, Can you tell me how do I do that? I will check it out. I used the following tutorial, http://www.tuxamito.com/joomla/index.php/es/component/content/article/60-get... Regards Manu -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c Manu Gupta <manugupt1@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|YaST2 |SaX2 Version|Final |13.2 Milestone 0 Product|openSUSE 13.1 |openSUSE Factory Target Milestone|--- |13.2 Milestone 1 QAContact|jsrain@suse.com |sax2-maintainer-bugs@forge. | |provo.novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c15 --- Comment #15 from Carlos Robinson <carlos.e.r@opensuse.org> 2014-05-05 16:29:18 UTC --- (In reply to comment #14)
I am not sure, how to go about building a .pot file,
Can you tell me how do I do that? I will check it out.
Well, I know about it from the translator point of view, not as a coder: I've read the manual, but I've never done it. I think that the tutorial got a typo, or is missing something, as "xgettext" is what is used to create the .pot file. I think you should contact fellow openSUSE coders to find out how they do it. I'm sure they do it automatically. They only need write the code correctly; instead of using: printf("Hello World!\n"); they use: printf(_("Hello World!\n")); and then the "xgettext" run that must be part of the Makefile takes care of the rest. Just grab the source code of an openSUSE package similar to yours (same programming language), and find out the relevant sections in the Makefile, it should be there. HTH. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c16 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|SaX2 |Other QAContact|sax2-maintainer-bugs@forge. |qa-bugs@suse.de |provo.novell.com | --- Comment #16 from Stefan Dirsch <sndirsch@suse.com> 2014-05-05 21:10:50 UTC --- This is *not* SaX2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c17 --- Comment #17 from Manu Gupta <manugupt1@gmail.com> 2014-05-08 15:04:41 UTC --- Seems that I need to rename po files as pot files, can you attach a standard .pot file that is used in openSUSE projects. I wil rename it then accordingly and push an update. Next thing, can anyone take care that the pot files reach http://svn.opensuse.org/svn/opensuse-i18n/trunk/ or describe the method? thanks Manu -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c18 --- Comment #18 from Manu Gupta <manugupt1@gmail.com> 2014-05-08 18:02:44 UTC --- I have pushed the files to SaX3 git repo, once I receive confirmation, I will release to the repos and close it Thanks -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c19 --- Comment #19 from Mindaugas Baranauskas <embar@super.lt> 2014-05-08 19:03:56 UTC --- Examples is here: http://svn.opensuse.org/svn/opensuse-i18n/trunk/lcn/50-pot/ http://svn.opensuse.org/svn/opensuse-i18n/trunk/yast/50-pot/ BUT Your POT name should be like sax3-mouse.pot . That is all :) Translated YaST files are named like sax3-mouse.lt.po sax3-mouse.pl.po sax3-mouse.de.po sax3-mouse.fr.po ... See examples in: http://svn.opensuse.org/svn/opensuse-i18n/trunk/lcn/lt/po/ http://svn.opensuse.org/svn/opensuse-i18n/trunk/yast/fr/po/ But I think, that it is not good idea to try push translations to http://svn.opensuse.org/svn/opensuse-i18n/trunk/yast , if sax3 is not part of YAST2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c20 --- Comment #20 from Manu Gupta <manugupt1@gmail.com> 2014-05-08 19:12:16 UTC --- https://github.com/openSUSE/sax3/tree/master/src/translation Check this out. I renamed like this -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c21 --- Comment #21 from Carlos Robinson <carlos.e.r@opensuse.org> 2014-05-09 01:40:02 UTC --- Please, just ask the chap I told you in comment 13 how this is done. He coordinates translations, so either he knows or he can point you to a document explaining it, or tells you whom to contact. Or post an email on the translation mail list. Sax in 2009 was part of the lcn tree, not yast, by the way. I just looked. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c22 Manu Gupta <manugupt1@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #22 from Manu Gupta <manugupt1@gmail.com> 2014-05-11 19:52:48 UTC --- I have fixed everything it seems, the po files needed to be renamed. We needed to get it in Localization trunk. For that, embar has already put in an email to opensuse-translation, I will take it from there. So, it is safe to close this, let me know Thanks a lot Manu -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=875530 https://bugzilla.novell.com/show_bug.cgi?id=875530#c23 Manu Gupta <manugupt1@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #23 from Manu Gupta <manugupt1@gmail.com> 2014-06-08 17:51:50 UTC --- Closed as no more code changes are required for this particular bug. Thanks a lot Manu -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com