Skip to content

RFC: Remove localization from format! - #93

Merged
brson merged 2 commits into
rust-lang:masterfrom
alexcrichton:fmt-remove-intl
Jun 11, 2014
Merged

RFC: Remove localization from format!#93
brson merged 2 commits into
rust-lang:masterfrom
alexcrichton:fmt-remove-intl

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

No description provided.

@alexcrichton

Copy link
Copy Markdown
MemberAuthor

cc rust-lang/rust#12553

@lilyball

Copy link
Copy Markdown
Contributor

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

@bstrie

Copy link
Copy Markdown
Contributor

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
Copy Markdown
MemberAuthor

@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
Copy Markdown
Contributor

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.

@alexcrichtonalexcrichton changed the title RFC: Remove internationalization from format!RFC: Remove localization from format!May 28, 2014
@alexcrichton

Copy link
Copy Markdown
MemberAuthor

Indeed, updated with internationalization => localization

@brson

Copy link
Copy Markdown
Contributor

@jibal

Copy link
Copy Markdown

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

@CentrilCentril added the A-fmt Proposals relating to std::fmt and formatting macros. label Nov 23, 2018
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-fmtProposals relating to std::fmt and formatting macros.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@alexcrichton@lilyball@bstrie@brson@jibal@Centril