What are string identifiers and how to use them in content localization?
String identifiers, or string IDs, are alphanumeric sequences attached to each #string of text in a #localization project. In this article, we’ll explain what string IDs are, why string IDs are important to the localization process. Then, find out how specialized localization software helps you avoid the most common challenges of working with string IDs.
What is a string ID?
A string ID is a sequence of letters and/or numbers that identifies a text string within a content database or a development project. Each entry in the database is a single text string, regardless of length — strings may be single words, phrases, sentences, or even entire paragraphs, depending on how you’ve structured your project.
Developers can generate string IDs depending on the technology they use. Additionally, tools such as content management systems will automatically generate unique string IDs for each new string, and they may also allow you to create your own custom string IDs as well. A #cms with a full-featured string ID system is an essential component to any optimized localization workflow.
What are string IDs used for?
In localization and #gamedevelopment, string IDs are important for a variety of reasons. Not only do they help you manage your content, they also play a key role in localization automation.
Common challenges when localizing with string IDs
String IDs can be a big help during the entire localization process, but they can sometimes be a bit tricky to manage. If you’re introducing string IDs into your localization process, you may have run into some — or even all — of the following pitfalls:
How Gridly makes it easy to localize with string IDs
The right tooling will help you enjoy all the benefits of managing string IDs while sidestepping the many ways things can easily go wrong. Gridly is a #contentmanagement platform designed to optimize your localization workflow — and that includes a full-featured setup for creating, managing, and using string IDs.
In Gridly, strings are represented by records in a spreadsheet and identified by an Internal ID that cannot be changed. Gridly uses this ID to identify records within the whole system. It is visible only in export files for controlling purposes. Re-importing a record with a different Internal ID value would cause Gridly to ignore this record, unless you select the option to create a new one.
Public string IDs for string management are handled by the Record ID, which must be unique across an entire Grid or in each folder within the Grid, depending on your project settings. These folders are known as Paths — more on this below.
Display the Record ID as a system column in every Grid to manage public string IDs. You can manage whether it can be updated and by whom, refer to it in your API calls or integrations, and update it during import.
Avoid duplicate IDs
There’s no way to create duplicate string IDs. By enforcing Record ID uniqueness, Gridly ensures that each string you add will appear exactly where it should in your project, and nowhere else.
Recommended by LinkedIn
This string ID management applies to all the content sources feeding into Gridly. Whether you’re importing Excel files, integrating with a CAT tool, or connecting via #api to your project, you can count on all strings having unique IDs.
Avoid complex string ID names
Gridly prevents users from creating string IDs with special characters that can make it harder to work with those strings later in the pipeline. When naming strings in Gridly, you’re sure to have unique string IDs that are easy to type.
Reuse custom string IDs within your content structure
Since one Grid can easily contain thousands of individual strings, we’ve made it easier to create custom string IDs while maintaining uniqueness. Gridly’s Paths feature organizes your content into an intuitive and filterable folder-based structure that allows for string ID reuse.
Having a duplicate string ID can make sense when using it in different contexts to identify a range of objects. For example, when creating a game, you might have a different main character for every level, and you might want to use the same string ID every time to identify them. Paths make this easy — add a Path to cover the content for every level, then decide whether to maintain string ID uniqueness within each Path, or within your entire Grid.
Within each Path, all strings will need unique IDs. But from one Path to another, you’re free to recycle string IDs — the Path destination itself is what ensures these strings remain unique from one another. It’s just like two files in your computer with the same name, but stored in separate folders. Your computer knows that C:\Documents\ABC isn’t the same file as C:\Documents\Favorites\ABC.
Support string IDs from other systems
When importing strings from external sources, you can easily map the external ID to the Record ID in Gridly and use it across your project. This allows you to search within your Grid for strings by their externally-created IDs as well as ensure smooth importing and exporting between Gridly and other services.
What other types of IDs can you leverage with Gridly?
In addition to identifying strings with Internal IDs and Record IDs, Gridly provides native support for a range of ID features, such as:
Every object in Gridly is represented by an ID, which means you can work programmatically with them via API — from Grids, users, groups, or projects, all the way to entire companies.
Stay on top of string IDs with Gridly
String IDs are essential to smooth content management, especially when localizing. And Gridly makes it easy to avoid the many complications that can arise from imperfect string ID implementation.
Maintain string ID uniqueness when creating your own string IDs or when importing strings from external sources. Or use Paths to reuse string IDs while still keeping everything organized.
You can standardize your string ID naming system while also ensuring uniqueness across your project. And with external string ID compatibility, you’re able to import and export strings across your content ecosystem while keeping everything organized.
Get the most out of string IDs when you localize with Gridly. Try Gridly for free today.
Credit: Ivan Belcic Vaclav Kamenicek