i18n

25 views
Skip to first unread message

Roparz

unread,
Feb 15, 2010, 11:02:31 AM2/15/10
to MooEditable
Hi,

I'm a french MooEditable user and i was thinking about the
internationalization of the project.
Today, MooEditable is only available in english and i think it could
be interesting to have it in other languages.
So this is my question : is an internationalization of MooEditable
planed ?
Of course i could rewrite the code myself, create my own i18n class
and share it with you, but maybe someone already did it ?

Best regards,

Roparz

ryan

unread,
Feb 15, 2010, 12:26:09 PM2/15/10
to MooEditable
Hello

I'm happy to help with this - I can go through and separate out the
lang into variables that you can then translate (or we could do it
together).
Its definitely something I want to have in there for a number of
projects I'm working on, and something I was planning on doing anyway.

Thanks,
Ryan

Roparz

unread,
Feb 16, 2010, 4:05:24 AM2/16/10
to MooEditable
OK.
I can help you to do this.
How could we proceed ?

Roparz

ryan

unread,
Feb 16, 2010, 4:40:05 AM2/16/10
to MooEditable
Great - I'll go ahead and start separating out the language items into
variables and create a mooeditable branch for that. I'll keep updating
this thread with my progress - it shouldnt take me too long
If you can start translating the phrases then that will be a good
start at your end.

ryan

unread,
Feb 16, 2010, 5:19:16 AM2/16/10
to MooEditable
Ok I've set up MooTools.lang support on the main MooEditable.js file -
haven't done extras or any plugins yet, but will work on those when I
get some more time.
You can see it in my github repo at:

http://github.com/ryanmitchell/mooeditable/commit/5233a7d64a033cb3304d6a3d02e9735d7e9aeb06

Cheeaun - are you happy with how I've done this? I've provided
fallback for when MooTools.lang isn't included.

On Feb 16, 9:05 am, Roparz <christophe.gourme...@gmail.com> wrote:

Roparz

unread,
Feb 16, 2010, 6:10:06 AM2/16/10
to MooEditable
I signed up to github but I don't realy have time to use it for now,
so I put here my french translation :
MooTools.lang.set('fr-FR', 'MooEditable', {
ok: 'OK',
cancel: 'Annuler',
bold: 'Gras',
italic: 'Italique',
underline: 'Souligner',
strikethrough: 'Barrer',
ul: 'Liste à puces',
ol: 'Liste numéroté',
indent: 'Augmenter le retrait',
outdent: 'Diminuer le retrait',
undo: 'Annuler',
redo: 'Répéter',
removelink: 'Supprimer le lien',
addlink: 'Insérer un lien',
createlinkalert: 'Sélectionnez le texte sur lequel appliquer le
lien.',
enterurl: 'Entrez une adresse web',
enterimageurl: 'Entrez l\'adresse de l\'image',
addimage: 'Ajouter une image',
toggleview: 'Changer de vue'
});

Thanks,
Roparz

On Feb 16, 11:19 am, ryan <rtnetwo...@gmail.com> wrote:
> Ok I've set up MooTools.lang support on the main MooEditable.js file -
> haven't done extras or any plugins yet, but will work on those when I
> get some more time.
> You can see it in my github repo at:
>

> http://github.com/ryanmitchell/mooeditable/commit/5233a7d64a033cb3304...

ryan

unread,
Feb 16, 2010, 6:29:11 AM2/16/10
to MooEditable
Great - no problem at all.

cheeaun

unread,
Feb 28, 2010, 2:34:38 AM2/28/10
to MooEditable
Hey guys,

Sorry for the late reply, but just to inform that I've landed a commit
on the localization stuff:
http://github.com/cheeaun/mooeditable/commit/aace8ae8c31953cc68ec08877941e195a8e09396

Roparz, thanks for mentioning this issue here. Localization has always
been in my todo list :) Note that there are few more phrases to be
localized, some of which are in the plugins. I've made an example
locale file here:
http://github.com/cheeaun/mooeditable/blob/aace8ae8c31953cc68ec08877941e195a8e09396/Source/Localization/MooEditable.English.US.example.js

Ryan, sorry that I didn't pull in your commit, though I've coded a
different way to do basically the same thing :)

Cheers.

Reply all
Reply to author
Forward
0 new messages