cppbestpractices icon indicating copy to clipboard operation
cppbestpractices copied to clipboard

i18n Guidelines

Open MikaelSmith opened this issue 10 years ago • 7 comments

Use Leatherman logging, locale, i18n support.

Use http://www.boost.org/doc/libs/1_56_0/libs/locale/doc/html/collation.html for sorting.

MikaelSmith avatar Nov 26 '15 00:11 MikaelSmith

Document uses of Boost.Locale: sorting, multiple pluralization, masculine/feminine, casing, splitting strings (by words, separators, white-space).

Translate individual strings or smaller.

What do we use utfcpp for?

MikaelSmith avatar Nov 26 '15 00:11 MikaelSmith

TODO: update Facter fact output sorting to use locale. Custom facts can introduce any character and need to be sorted correctly.

MikaelSmith avatar Nov 26 '15 00:11 MikaelSmith

Blocked on https://github.com/puppetlabs/leatherman/pull/99.

MikaelSmith avatar Dec 02 '15 20:12 MikaelSmith

@MikaelSmith or @ahenroid: today's lunch-and-learn reminded me. Are our i18n best practices for c++ ready to be captured here?

kylog avatar Aug 30 '16 19:08 kylog

@kylog, yes, as far as I'm aware, C++ i18n best practices have been demonstrated by the cpp-project-template, but really not documented here or anywhere else internally. I'm happy to take a first pass at this, unless @MikaelSmith, you have this written down elsewhere and/or have lots of detail in your head that you want to get down first.

ahenroid avatar Aug 30 '16 22:08 ahenroid

And I'm thinking specifically of string externalization. There is already some info around UTF-8.

ahenroid avatar Aug 30 '16 22:08 ahenroid

I think I've pointed you at everything I previously wrote.

MikaelSmith avatar Aug 30 '16 22:08 MikaelSmith