by shpiel · 12y ago · 0 comments
<%= tr("App", :max_length => 6) %>
If translators try to submit something longer than 6 chars, they will get a warning to adjust to the constraints.
In Russian "App" is "Приложение". So they would have to provide something shorter or an abbreviation.
The hard part I've encountered is that you have to think about text differently. Things that are identical in English but have different semantic meanings must be split. Plurals. Almost-never concatenating or .join(',')ing or .split()ing. It's pretty easy to write yourself into a corner unless you stick to doing it right all the time, which takes some time to learn.