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

RFC: Remove localization from format! #93

Merged
merged 2 commits into from
Jun 11, 2014

Conversation

alexcrichton
Copy link
Member

No description provided.

@alexcrichton
Copy link
Member Author

cc rust-lang/rust#12553

@lilyball
Copy link
Contributor

FWIW we could make # work without escaping today, at the "top level", and only require escaping inside a {} specifier.

@bstrie
Copy link
Contributor

bstrie commented May 28, 2014

The problem with escaping { in format strings bit me just the other day, so that change would be welcome.

What support would the compiler or stdlib need to provide in order to someday support localization in an external library? I'm completely unfamiliar with the needs of localization (as we all are, it seems). Would be nice to have a domain expert weigh in. Can we borrow one from Mozilla?

@alexcrichton
Copy link
Member Author

@brson, @aturon, and I talked with a domain expert at Mozilla, and the conclusion was to basically implement the ECMA 402 spec as well as l20n in a library. The major conclusion from the discussions we had was that no language support was needed, but rather it only all needed to be in a library.

@brson
Copy link
Contributor

brson commented May 28, 2014

Based on my understanding, the word 'internationalization' in this RFC should be changed to 'localization'. Localization is the process of supplying alternate translations, whereas internationalization is doing automatic format conversion for standard types like dates.

@alexcrichton alexcrichton changed the title RFC: Remove internationalization from format! RFC: Remove localization from format! May 28, 2014
@alexcrichton
Copy link
Member Author

Indeed, updated with internationalization => localization

@brson
Copy link
Contributor

brson commented Jun 11, 2014

@jibal
Copy link

jibal commented Oct 24, 2018

Based on my understanding, the word 'internationalization' in this RFC should be changed to 'localization'. Localization is the process of supplying alternate translations, whereas internationalization is doing automatic format conversion for standard types like dates.

This is not correct. See http://www.ecma-international.org/ecma-402/1.0/#sec-4.1

@Centril Centril added the A-fmt Proposals relating to std::fmt and formatting macros. label Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-fmt Proposals relating to std::fmt and formatting macros.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants