Hi Daniel, On Sa 18 Feb 2012 21:34:58 CET Daniel Lindgren wrote:
Hi MIke,
are you also willing to translate pyhoca-gui??? If so, I can provide empty language files for your languages.
Sure, I'll have a look. Is it in the same git repo as x2goclient?
Cheers, Daniel
git clone git://code.x2go.org/pyhoca-gui.git The translation file is in pyhoca-gui/po/sv.po. http://code.x2go.org/gitweb?p=pyhoca-gui.git;a=commitdiff;h=e4cf19f755c47360... You have to use a gettext based i18n editor, like e.g. poedit. Greets, Mike -- DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419 GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Mike,
git clone git://code.x2go.org/pyhoca-gui.git
The translation file is in pyhoca-gui/po/sv.po.
Attached is the swedish translation. I couldn't test it because of problems running pyhoca-gui (I followed the build instructions in READMI.i18n): ### PyHoca-GUI running in development mode ### Traceback (most recent call last): File "./pyhoca-gui", line 333, in <module> main() File "./pyhoca-gui", line 325, in main thisPyHocaGUI = PyHocaGUI(args, logger, liblogger, version=VERSION) File "pyhoca/wxgui/frontend.py", line 144, in __init__ x2go.X2goClient.__init__(self, **_x2goclient_kwargs) TypeError: __init__() got an unexpected keyword argument 'auto_update_listmounts_cache' The build output (I've already build it once before, hence no change): /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'windows' warnings.warn(msg) running build_i18n intltool-update -p -g pyhoca-gui The "windows" warning looks like it's related to MS Windows, shouldn't be a problem. Cheers, Daniel
Hi Daniel, On So 19 Feb 2012 11:12:53 CET Daniel Lindgren wrote:
Hi Mike,
git clone git://code.x2go.org/pyhoca-gui.git
The translation file is in pyhoca-gui/po/sv.po.
Attached is the swedish translation. I couldn't test it because of problems running pyhoca-gui (I followed the build instructions in READMI.i18n):
### PyHoca-GUI running in development mode ### Traceback (most recent call last): File "./pyhoca-gui", line 333, in <module> main() File "./pyhoca-gui", line 325, in main thisPyHocaGUI = PyHocaGUI(args, logger, liblogger, version=VERSION) File "pyhoca/wxgui/frontend.py", line 144, in __init__ x2go.X2goClient.__init__(self, **_x2goclient_kwargs) TypeError: __init__() got an unexpected keyword argument 'auto_update_listmounts_cache'
Latest pyhoca-gui from Git needs latest python-x2go from Git. You can clone both Git projects next to each other, then everything should work out fine.
The build output (I've already build it once before, hence no change):
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'windows' warnings.warn(msg) running build_i18n intltool-update -p -g pyhoca-gui
The "windows" warning looks like it's related to MS Windows, shouldn't be a problem.
The distribution option: 'windows' can be ignored... You translation has been applied, packages for Debian heuler repos are currently building (20 more minutes and they should be online). http://code.x2go.org/gitweb?p=pyhoca-gui.git;a=commitdiff;h=f54d44f85151ef27... Greets + thanks, Mike -- DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419 GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Mike, I've updated to the latest (heuler) version and have caught a couple of mistakes in the swedish translation, see attached patch. Although I only updated a few lines, the patch recorded 87 insertions and 67 deletions ... not sure why, perhaps it has to do with how poedit updates a file. I attached the po file as well in case something went awry. Some other things I noted: - The string "Custom session window title" is truncated to "Custom session" in PyHoca-GUI (Profile Manager -> Profile tab), at least on my Debian Gnome install. The translated text is also truncated, I guess that the label is too short or limited in some way. - The labels for "Keyboard layout" and "Keyboard model" are too short for the swedish strings, the last 2-3 characters are truncated. - Would it be possible to add the keyboard layout ("us") and model ("pc105/us") strings to the translation? That way you could preset the correct values for each language, as was possible in x2goclient. - Nothing happens if I choose "Printing Preferences" from the context menu. This error message is printed to the terminal: Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/pyhoca/wxgui/frontend.py", line 734, in OnPrintingPreferences _pp_dialog = printingprefs.PyHocaGUI_PrintingPreferences(self) File "/usr/lib/pymodules/python2.7/pyhoca/wxgui/printingprefs.py", line 141, in __init__ self.__update_fields() File "/usr/lib/pymodules/python2.7/pyhoca/wxgui/printingprefs.py", line 225, in __update_fields _printer_name = self._availablePrinters[self._defaultPrinter] KeyError: None Cheers, Daniel
Hi Daniel, On So 19 Feb 2012 18:28:52 CET Daniel Lindgren wrote:
Hi Mike,
I've updated to the latest (heuler) version and have caught a couple of mistakes in the swedish translation, see attached patch. Although I only updated a few lines, the patch recorded 87 insertions and 67 deletions ... not sure why, perhaps it has to do with how poedit updates a file. I attached the po file as well in case something went awry.
Ok, patch applied.
Some other things I noted:
- The string "Custom session window title" is truncated to "Custom session" in PyHoca-GUI (Profile Manager -> Profile tab), at least on my Debian Gnome install. The translated text is also truncated, I guess that the label is too short or limited in some way.
Fixed in Git.
- The labels for "Keyboard layout" and "Keyboard model" are too short for the swedish strings, the last 2-3 characters are truncated.
Fixed in Git.
- Would it be possible to add the keyboard layout ("us") and model ("pc105/us") strings to the translation? That way you could preset the correct values for each language, as was possible in x2goclient.
Great idea, available in Git. This adds one more i18n tag.
- Nothing happens if I choose "Printing Preferences" from the context menu. This error message is printed to the terminal:
Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/pyhoca/wxgui/frontend.py", line 734, in OnPrintingPreferences _pp_dialog = printingprefs.PyHocaGUI_PrintingPreferences(self) File "/usr/lib/pymodules/python2.7/pyhoca/wxgui/printingprefs.py", line 141, in __init__ self.__update_fields() File "/usr/lib/pymodules/python2.7/pyhoca/wxgui/printingprefs.py", line 225, in __update_fields _printer_name = self._availablePrinters[self._defaultPrinter] KeyError: None
This probably fails because you have to printers installed in CUPS. This is, of course, a bug. Fixed in Git.
Cheers, Daniel
A package build is currently running, I will be glad if you cross check my latest patches. Mike -- DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419 GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Mike, Attached is a patch with the new strings translated to swedish. I still get the error message (in the terminal windows where I started pyhoca-gui) when choosing Printing Preferences. I do not have a printer defined, but CUPS is installed. Cheers, Daniel
Hi Daniel On Mo 20 Feb 2012 18:56:15 CET Daniel Lindgren wrote:
Hi Mike,
Attached is a patch with the new strings translated to swedish.
Committed!
I still get the error message (in the terminal windows where I started pyhoca-gui) when choosing Printing Preferences. I do not have a printer defined, but CUPS is installed.
Fixed now, with proper testing!
Cheers, Daniel
Mike -- DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419 GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...
Hi Mike, Attached is a patch with swedish translation of the new published application strings for pyhoca-gui. Cheers, Daniel PS I was lazy and used the same patch description as the x2goclient patch, be aware that the patch file names are identical. DS
Hi Daniel, On Fr 06 Apr 2012 10:02:04 CEST Daniel Lindgren wrote:
Hi Mike,
Attached is a patch with swedish translation of the new published application strings for pyhoca-gui.
Cheers, Daniel
committed: http://code.x2go.org/gitweb?p=pyhoca-gui.git;a=commitdiff;h=32a8c5a5fe0d4b13... Thanks a lot! Mike PS: my wife is a real Sweden fan and you make her very happy with the Swedish translation of PyHoca-GUI, she says. -- DAS-NETZWERKTEAM mike gabriel, dorfstr. 27, 24245 barmissen fon: +49 (4302) 281418, fax: +49 (4302) 281419 GnuPG Key ID 0xB588399B mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de freeBusy: https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xf...