Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various i18n problems #17

Open
oberhamsi opened this issue Jul 13, 2015 · 1 comment
Open

various i18n problems #17

oberhamsi opened this issue Jul 13, 2015 · 1 comment

Comments

@oberhamsi
Copy link
Contributor

  • dates and date/time formatting does not use locale-sensitive formats, although it does allow custom date format templates if you happen to know the right template for each and every locale your app needs to support.
  • arrays.sortByKey - only sorts with English rules
  • logic.yesno - defaults to English stringscapitalization rules for Turkish, Serbian, Croatian, etc.
  • strings.title - Only uses English title case rules for deciding which words to capitalize, and does it not do locale-sensitive upper-casing
  • strings.floatformat - Only formats numbers with English conventions
  • strings.ljust - Only left-justifies strings, which might not work correctly in right-to-left languages like Arabic or Hebrew
  • strings.truncatewords, strings.wordcount, strings.wordwrap - Does not work correctly in languages that are not written with whitespaces between every word, such as Chinese, Japanese, or Thai.
@ehoogerbeets
Copy link

The following functionality can already be handled by ilib and/or the JDK itself. For those cases where the JDK provides the right thing already, we should modify the Reinhardt filters themselves, since the JDK is always guaranteed to be there. For those functions that require some other code, we should leave them alone (with the caveats in the documentation) and make an ilib-filters Ringo package that implements them.

Can be implemented in Reinhardt filters using the JDK:

  • date and time formatting - java.text.DateFormat - Although ilib has a more extensive and flexible date formatting library than the JDK and supports a lot more calendars, so ilib-filters will also offer that as well.
  • arrays.sortByKey - java.text.Collator
  • strings.floatformat - java.text.NumberFormat
  • strings.truncatewords, strings.wordcount, strings.wordwrap - java.text.BreakIterator

These should be implemented in a separate package like ilib-filters:

  • logic.yesno
  • strings.title
  • strings.ljust

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants