[Konversation-devel] [Bug 256612] Scripts are not translatable
Eike Hein
hein at kde.org
Wed May 25 12:31:10 CEST 2011
https://bugs.kde.org/show_bug.cgi?id=256612
Eike Hein <hein at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
CC| |hein at kde.org
Ever Confirmed|0 |1
--- Comment #1 from Eike Hein <hein kde org> 2011-05-25 12:31:08 ---
This has been partially addressed now, for Python scripts. Python scripts can
import an i18n module from a konversation package that makes the usual
i18n/i18nc/i18np/i18ncp calls available. The two bundled Python scripts, cmd
and media, have been converted and scripty has been extracting their strings
for a while now.
We're considering porting the rest of the bundled scripts to Python as well,
but the downside of that is that it would mean stopping to ship scripting
examples in a variety of language. We would have to find some other way to make
up for that. We're not considering implementing i18n support for other
scripting languages at this time due to the maintenance cost.
For the completeness, here are the relevant changelog entries:
* Scripts executed by Konversation can now access Konversation's current UI
locale in the KONVERSATION_LANG environment variable.
* Konversation now installs an experimental Python scripting support package
named 'konversation' into a subdirectory of its application data directory
and appends all 'konversation/scripting_support/python' directories found
in any KDE application data resource directories (i.e. within $KDEHOME,
$KDEDIRS, etc.) to the PYTHONPATH environment variable available in the
script execution context, thereby allowing Python scripts executed by
Konversation to import the package. The package currently sports modules
providing APIs for i18n support and D-Bus communication with Konversation.
* User-facing information and error message strings in the bundled 'cmd' and
'media' scripts now finally enjoy translation support, making use of the
experimental new Python scripting support package described above.
As mentioned this new Python API is currently still considered experimental
with regard to third-party scripts.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Konversation-devel
mailing list