[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OOC Library and Locales



Hallo!

> Partially supported already in OOC.  Just define a localized
> string such as "The disk %s contains %d files." and then have
> a simple parser as an extension in the application file in
> the missing fields.  I believe OOC already uses such a mechanism
> in the compiler.

If it is done this way, we need a extension for positional information.
If a message has 2 string parameters:

Volume %s is of type %s, arguments are expected in the order
"volumename" "type".

If I write the same sentense in another language, the type may come
first. A solution is to number arguments:

Volume %1s is of type %2s. So I can reorder the orguments in my
language.

--
Gruß...
       Tim.