Coder Social home page Coder Social logo

Comments (4)

o-ram avatar o-ram commented on July 4, 2024 1

@thekaveman Translations here: https://docs.google.com/document/d/1uzGaFF73CKoC7nftYhQ5329obHcz9SJj/edit

I highlighted the two places changes were made to the screens in yellow. They're very minor and India and I have already communicated about them, but I know you all are very busy right now so I want to make sure they don't get lost with everything going on :)

from benefits.

vykster avatar vykster commented on July 4, 2024

@thekaveman @machikoyasuda I know Lex loaded the last batch of spanish translation files. What do you need, or what is the process to add additional translated content for a new screen?

from benefits.

thekaveman avatar thekaveman commented on July 4, 2024

@vykster here's our current translation files:

Each piece of text in there looks like:

msgid "id"
msgstr "This is where the text goes"

For pages like https://test-benefits.calitp.org/eligibility where the text is displayed in formatted HTML (labels, icons, lists, etc.) we have to break each one of those atomic text units into its own entry in the translation files:

msgid "eligibility.index.content_title"
msgstr "Great, you’ll need two things before we get started..."

msgctxt "image alt text"
msgid "core.icons.idcardcheck"
msgstr "Identification card icon with checkmark"

msgid "eligibility.index.item1.title"
msgstr "Your California ID"

msgid "eligibility.index.item1.text"
msgstr "Driver’s license or ID card"

msgctxt "image alt text"
msgid "core.icons.bankcardcheck"
msgstr "Bank card icon with contactless symbol and checkmark"

msgid "eligibility.index.item2.title"
msgstr "Your bank card"

msgid "eligibility.index.item2.text"
msgstr "A debit or credit card"

msgid "eligibility.index.p1"
msgstr ""
"This program is currently open to those who are 65 or older. Not over 65? "
"Get in touch with your transit provider to learn about other available "
"discount programs."

msgid "eligibility.index.button"
msgstr "Ready to continue"

(Note: we also have image alt text in here, so any new icons/images need alt text and translations).

So to start, it would help to break the Figma file into "atomic text units"; essentially each piece of text - word(s) and/or phrase(s) - that is displayed in a single string with the same formatting. Any time new formatting is introduced: bold, italics, size, lists, new paragraph, etc... it has to be a new "atomic text unit".

from benefits.

thekaveman avatar thekaveman commented on July 4, 2024

Initial work on this was done in #317.

Moving back to the Backlog as we shift priorities for next Sprint. This User Story will be completed when we fully integrate with a verification server for Courtesy Cards.

from benefits.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.