Is there a way to load a localized safercracker_lang.php
Posted: 24 February 2011 05:02 AM   [ Ignore ]
Wallflower
Rank
Total Posts:  4
Joined  2011-02-15

Hi,
for a german webpage I want the formvalidation error messages, which are localized in the safecracker_lang.php translated into german. So what is the cleanest way to do this. Is there a way to add a safecracker_lang.php in german into the safecracker language folder and trigger the load of the file in the program or what is the best way to do that ?
Rgds Felix

Profile
 
 
Posted: 24 February 2011 05:04 AM   [ Ignore ]   [ # 1 ]
Teen Scream
Avatar
RankRankRank
Total Posts:  3541
Joined  2009-05-29

Sure, just create a german folder in the language folder of safecracker, in inside add your custom safecracker_lang.php file with german error messages. Also, you must set your site’s default language to german.

Profile
 
 
Posted: 24 February 2011 05:17 AM   [ Ignore ]   [ # 2 ]
Wallflower
Rank
Total Posts:  4
Joined  2011-02-15

Easy thx

Profile