Commit Graph

50 Commits

Author SHA1 Message Date
Valentin Lorentz 489ec1b065 i18n: Move the pot files parsing to a separate function. 2014-01-26 20:45:27 +01:00
Valentin Lorentz 6a8b7889ea Remove unnecessary call to i18n.reloadLocalesIfRequired. 2014-01-26 20:45:27 +01:00
Valentin Lorentz 4a9d3ccd3e Fix previous merge. 2014-01-03 17:15:32 +00:00
nyuszika7h 0e480b4e52 Fix file descriptor leaks 2014-01-03 17:44:01 +01:00
Valentin Lorentz be04677995 Fix typo in a comment. 2013-03-08 20:26:50 +01:00
Valentin Lorentz c1f19b3353 Fix locales path resolution with Python 3. 2013-01-11 18:29:04 +01:00
Valentin Lorentz 6cbc6a14dd Rename all 'locale' directories to 'locales'.
Firstly, these directories contains more than one locale. Secondly, it conflicts with the 'locale' python module.
2012-12-26 15:43:35 +01:00
Valentin Lorentz 097ea23dfc Fix handling of PluginNotFoundException in i18n. 2012-12-22 00:06:26 +00:00
Valentin Lorentz d58ad0c86f Reload translation of command helps when language changes. 2012-12-21 20:08:34 +01:00
Valentin Lorentz 989c674c58 Reset translation dict when reloading a locale. 2012-12-21 19:19:03 +01:00
Valentin Lorentz 97b48abaa2 i18n: Initialize translations in __init__. 2012-12-19 17:04:39 +00:00
Valentin Lorentz 089be4c8a5 src/i18n.py: Use 'str' as a base class instead of 'unicode'. 2012-08-05 13:48:11 +02:00
Valentin Lorentz 306105abad src/i18n.py: Fix encoding issue with Python 3. 2012-08-05 13:37:37 +02:00
Valentin Lorentz 505fd580f8 Use unicode in src/i18n.py 2012-08-04 12:09:11 +02:00
Valentin Lorentz 6ccfe95751 Prevent last string of a file from being untranslated if .po does not end with a blank like. 2012-07-30 14:33:22 +00:00
Valentin Lorentz 9d6b132233 i18n: Fix issue with the bot sending the repr() of the string on IRC when translation has 'new line' characters in it. 2012-04-17 11:45:25 +02:00
Valentin Lorentz 1c366a2899 src/i18n.py: fix error when running @reloadlocale with a plugin loaded before but not available any longer. 2011-06-28 19:52:18 +02:00
Valentin Lorentz ebb3aae81c Raise an exception when plugin is not found instead of returning None in i18n.getPluginDir() 2011-06-17 15:36:38 +02:00
Valentin Lorentz 8979475e13 Fix compatibility with Windows ('u' flag not supported by open()) 2011-05-07 09:12:03 +02:00
Valentin Lorentz db849e21a0 Add a try/catch arround plugin directory determination (might be useful for some utilities...) 2011-02-28 16:02:17 +01:00
Valentin Lorentz 5629b4585c Fix bolding for help strings (because of i18n) 2010-12-22 18:15:46 +01:00
Valentin Lorentz 3fafd31f51 Remove redundant spaces in src/i18n.py 2010-11-19 17:00:55 +01:00
Valentin Lorentz 827ff7df5b Merge branch 'i18n' into l10n-fr 2010-11-11 12:02:57 +01:00
Valentin Lorentz 323ffe1a1f i18n: Fix internationalization problems 2010-11-11 12:01:56 +01:00
Valentin Lorentz 17fc98a3ee Merge branch 'i18n' into l10n-fr 2010-11-01 19:57:23 +01:00
Valentin Lorentz c0ff3c3f92 Bug fix in i18n.py (decorated commands without docstring raise an error) 2010-11-01 19:57:18 +01:00
Valentin Lorentz 249eace2cf Merge branch 'i18n' into l10n-fr
Conflicts:
	src/i18n.py
2010-11-01 19:52:56 +01:00
Valentin Lorentz 79930a7435 Bug fix in src/i18n.py 2010-11-01 19:48:45 +01:00
Valentin Lorentz 22fa9f4098 Merge branch 'i18n' into l10n-fr 2010-11-01 15:01:57 +01:00
Valentin Lorentz 30a1ca06b2 Fix the @Misc help formatting
Stop removing the \n in the translated docstrings
2010-11-01 15:01:50 +01:00
Valentin Lorentz 56f2c38137 Merge branch 'i18n' into l10n-fr
Conflicts:
	src/i18n.py
2010-11-01 14:34:57 +01:00
Valentin Lorentz 1f4b3b83e1 Make the src/i18n.py code cleaner 2010-11-01 14:33:43 +01:00
Valentin Lorentz ddb3dd5a50 Merge branch 'i18n' into l18n-fr 2010-11-01 11:49:04 +01:00
Valentin Lorentz 4dcd7f7fb4 Bug fixes (mainly the &config help internationalization) 2010-11-01 11:42:33 +01:00
Valentin Lorentz 198f8267eb Bug fixes 2010-10-31 18:36:33 +01:00
Valentin Lorentz 4a516c5f46 Makes the code of i18n.py cleaner
More comments; docstrings; remove the % auto-handling (useless).
2010-10-30 21:41:25 +02:00
Valentin Lorentz 3ea8115095 Internationalize src/utils/str.py and modify src/i18n.py to fit this changes 2010-10-30 21:10:49 +02:00
Valentin Lorentz 5150c4ef60 Now tests if a plugin has the _ object before using it 2010-10-30 12:49:43 +02:00
Valentin Lorentz b85d289bbb Fix wrong method name 2010-10-30 12:14:54 +02:00
Valentin Lorentz 6737424bc6 Shorten PluginInternationalisation.get* in src/i18n.py 2010-10-29 15:33:36 +02:00
Valentin Lorentz ec6a267c09 Internationalize more functions in src/utils/str.py 2010-10-29 15:31:36 +02:00
Valentin Lorentz e8bc966827 Add locale abitrary code
Add the capability for Supybot to load code depending on the locale
src/utils/str.py now imports pluralize and depluralize from this code
2010-10-28 17:28:27 +02:00
Valentin Lorentz 97f51ab08e Fix i18n bug for global Supybot 2010-10-28 16:42:52 +02:00
Valentin Lorentz 5e2e858ac5 Removed debug information 2010-10-20 19:01:22 +02:00
Valentin Lorentz df3d096ab1 Modified i18n.py, in order to handle internationalization before conf is loaded 2010-10-20 18:26:52 +02:00
Valentin Lorentz f1d5d9d832 Fix a pygettext warning 2010-10-20 10:27:31 +02:00
Valentin Lorentz b44401dd1c Remove a forgotten debug print 2010-10-10 16:35:31 +02:00
Valentin Lorentz a8319d3c6f Remove debug message and internationalize config.py in ChannelStats 2010-10-10 15:11:41 +02:00
Valentin Lorentz a750fe6a2e Fix the internationalisation problem for the docstrings 2010-10-10 14:45:25 +02:00
Valentin Lorentz 50acd3d8d9 Creating the internationalization module and internationalize/localize ChannelStats into French 2010-10-09 11:36:22 +02:00