Join Dennis Meyer for an in-depth discussion in this video Avoiding string concatenation and string reuse, part of Localization for Developers.
- While you're still in the process…of taking all of the strings out of your code,…you also need to pay attention…to how those strings are being used.…In particular, I'd like to warn you…against treating language programmatically.…Sometimes we want to create…what are called Natural Language Statements…by cobbling different strings and variables together,…for example, what you see here.…Here, we're defining the log variable…as equal to a string,…"You sent a message to ".…
Then we're going to concatenate on another variable,…which is the user name.…We're going to concatenate…another small string, " at ",…and then we're going to concatenate a time variable.…Now, this generates a very nice,…easy to read, log entry for our end users…that says,…"You sent a message to Arthur at 10:15."…This becomes problematic…because you can't make any assumptions…about how other languages are structured or formatted.…In Japanese, for example,…the parts of this message…are basically reversed.…
I've color-coded that so that you can see it.…
- Timing internationalization and localization efforts
- Researching localization targets
- Evaluating and localizing text
- Internationalizing media
- Converting to Unicode
- Supporting right-to-left languages
- Working with translators
- Testing your localization
Skill Level Beginner
1. Introducing Internationalization and Localization
2. Internationalizing Content
Internationalizing media9m 25s
3. Internationalizing a GUI
4. Managing Localization
5. Modifying Your Quality-Assurance Strategy
Next steps2m 43s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.