phetsims / babel

This repo contains the translated strings for PhET's simulations.
MIT License
4 stars 9 forks source link

create an example sim that shows representative string types #1

Closed pixelzoom closed 9 years ago

pixelzoom commented 9 years ago

This sim will be for testing translation of these various types of strings that we have.

Examples include:

plain text: "It's not easy being green."

multiline text: eg, "Give me a\nbreak."

HTML text: e.g. "Turning left on red is a bold move."

pattern: eg "{0}: {1}"

pixelzoom commented 9 years ago

@samreid @jbphet @jonathanolson Am I missing any other types of text?

jonathanolson commented 9 years ago

HTML strings for HTML5 should never contain the "" and "" tags, and HTML multi-line text should generally use
(might be an extra example?)

pixelzoom commented 9 years ago

Does HTML multi-line text work? I thought it didn't, and that's why we have scenery-phet.MultiLineText.

pixelzoom commented 9 years ago

Another type of string is accessibility.

pixelzoom commented 9 years ago

[1/12/15, 2:45:18 PM] Chris Malley: JO, does multi-line HTML text work in scenery? [1/12/15, 2:46:03 PM] Jonathan Olson: I don't recall at this point, it should probably be documented [1/12/15, 2:46:22 PM] Jonathan Olson: I think HTMLText works with it [1/12/15, 2:46:29 PM] Chris Malley: I seem to recall that there were some problems which necessitated scenery-phet.MultiLineText. [1/12/15, 2:47:11 PM] Jonathan Olson: HTMLText forces DOM, so it splits layers (less than ideal usually). Checking now [1/12/15, 2:48:29 PM] Jonathan Olson: it looks like HTMLText is improperly detecting height, since it assumes it's an inline element [1/12/15, 2:48:55 PM] Jonathan Olson: For multi-line, probably MultiLineText or use DOM node directly [1/12/15, 2:49:33 PM] Chris Malley: might be good to document that in HTMLText. [1/12/15, 2:50:20 PM] Jonathan Olson: agreed, adding in a comment

pixelzoom commented 9 years ago

Created the 'chains' repository, and we will add text types as they are identified. Closing this issue.

samreid commented 9 years ago

I couldn't think of any other string types.