Hi all,

A question: Are there any solutions for 4D using the ICU MessageFormat outside?
We want to solve some problems regarding pluralization of texts in our mostly 
web based application.

The first approach I found is using the mentioned MessageFormat utilizing the 
ICU library. This library is already linked to 4D and is used for string 
comparison, reg. expression and similar things. But it provides the ICU 
MessageFormat class too. This class could be useful to do i18n and l10n with 
pluralization. For the uses of i18n and l10n 4D recommends the xliff 
"architecture" but it doesn't provide a way for pluralization AFAIK, see here: 
https://wiki.oasis-open.org/xliff/XLIFF2.0/Feature/Plural%20Entries

For our web based frontend we use AngularJS and there is an extension called 
angular-translate which utilizes the mentioned MessageFormat. It's based on 
https://github.com/messageformat/messageformat.js by Alex Sexton. Since this 
could be used in the javascript world it would be a nice idea to use the same 
mechanism and the same sources of translation patterns in 4D.

Regards
Lutz Epperlein

--  
Lutz Epperlein  
----------------------------------------------
Agendo Gesellschaft für politische Planung mbH
Köpenicker Str. 9
10997 Berlin
http://www.agendo.de/
----------------------------------------------



**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to