Re: translate bit flux editor 2 to french

Christian Stocker <[email protected]> Wed, 20 Jul 2005 17:07:41 +0200
Newsgroups gmane.editors.bitflux.devel
Message-ID <[email protected]>

On 20.7.2005 17:01 Uhr, Ludovic Gasc wrote:
> Le Mercredi 20 Juillet 2005 16:40, Christian Stocker a =E9crit :
>=20
>>On 20.7.2005 16:34 Uhr, Ludovic Gasc wrote:
>>
>>>Hi,
>>>
>>>We will translate certainly bxe 2 in french, but I don't see a
>>>translation file, all english messages are in source code.
>>>It's possible that you create a separate file with all messages in bxe=
 ?
>>>With this, it's possible to translate and add easily languages in bit
>>>flux. a default lang option will be added in config.xml.
>>
>>The question is just, how do we want to integrate it? Just a large
>>array, which is called? Some XML file? Any suggestion?
>=20
>=20
> Maybe we use a javascript array with two dimensions :
> text["welcome_on_bxe"]["fr"] =3D "Bienvenue dans BitFlux Editor";
> each language is in separate javascript file.

Why 2 dimensions, if you put each language in a seperate file? You
should only the file/language you need.

> a XML language file is also possible, but maybe it's much slow that a b=
asic=20
> javascript array ? I don't know it's fast to convert a xml file to java=
script=20
> array.

We would access that via xpath, don't know about speed, we would have to
test it with large enough datasets. XML is basically just easier to edit
(IMHO), than direct JS arrays.

Another solution would be to provide a converter from the XML to native
JS script. That's easily be done in PHP or your preferred language.

> How language problem have resolved in bitflux CMS ?

with the i18n class. Here's some info
http://wiki.bitflux.org/I18n

> In free software, .po files are used to translate applications.

*Some* free software uses .po :) But that doesn't help here, since the
browser do not understand .po. And it's IMHO not that easy to
edit/generate po files, if you never did it.

chregu

>=20
>>We certainly can do it, I just don't know the right and best way right =
now.
>>
>>chregu
>>
>>
>>>I can help to realize this task.
>>>
>>>Thanks you very much for your response.
>=20
>=20

--=20
christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60  | fax +41 1 240 56 71
http://www.bitflux.ch  |  [email protected]  |  gnupg-keyid 0x5CE1DECB
--=20
bx-editor-dev mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev