Translations update

Official Announcements about Source.Python.
User avatar
satoon101
Project Leader
Posts: 2697
Joined: Sat Jul 07, 2012 1:59 am

Translations update

Postby satoon101 » Fri Mar 04, 2016 4:16 pm

Just wanted to give everyone a heads up that we have removed the string.Template.substitution implementation in translations.strings.

A few months ago, we added in the string formatting ability. This, for the time being, allowed developers to use either substitution (ie $substitute_name) or string formatting (ie {substitute_name}). We decided it would be best to only have one of these instead of both, as there are compatibility issues that could arise. Since string formatting is a bit more useful (ie using {player.name}, {player.weapon}, {player.language} and only passing in the 'player'), we went with that option.

If you have any translations that use the substitution pattern style, you will need to update them to work for string formatting.
Image

Return to “News & Announcements”

Who is online

Users browsing this forum: No registered users and 21 guests