chimeric / dokuwiki-plugin-wikicalendar

http://dokuwiki.org/plugin:wikicalendar
GNU General Public License v2.0
10 stars 8 forks source link

Words not translatable in admin #5

Closed Floriang closed 14 years ago

Floriang commented 14 years ago

In syntax.php, lines 216 and 246, 'Sunday' is written in clear. You should use index of the day in $langDays (or $lang['days']). In conf/metadata.php, you should use the translation instead of english text. In conf/default.php, you should use the index of the day. :-)

Best regards.

chimeric commented 14 years ago

Why? This is just du determine the weekstart and the configuration options are english (Sunday/Monday) - I'll not localize "values" of options ;-).

Floriang commented 14 years ago

Why?

Because it's better when we speak the same language. :-) And incidentally, that makes it cleaner. ;-P

and the configuration options are english (Sunday/Monday) - I'll not localize "values" of options

Ok, but I don't know if it was possible.

Floriang commented 14 years ago

In fact, it is possible without changing code of plugin but just the file "lang/fr/settings.php" :

$lang['weekstart'] = 'Jour de début de semaine';

$lang['weekstart_o_Monday'] = 'Lundi'; // "Lundi" is displayed but "Monday" is returned

$lang['weekstart_o_Sunday'] = 'Dimanche'; // "Dimanche" is displayed but "Sunday" is returned

That's all !