Parser in Scripting prevents using the "-" character in token names. So, all culture-xxx rules are unusable. Renaming is needed in CultureRuleProvider.cs. For example, "culture-lang" has to be "culturelang" or something similar.
ProcessCultureId() in CultureRuleProvider.cs is actually a copy-paste of ProcessCultureCode(). What you really need is to compare c.Name with currentUserCulture.LCID.ToString().
thims created: https://orchard.codeplex.com/workitem/21120
Parser in Scripting prevents using the "-" character in token names. So, all culture-xxx rules are unusable. Renaming is needed in CultureRuleProvider.cs. For example, "culture-lang" has to be "culturelang" or something similar. ProcessCultureId() in CultureRuleProvider.cs is actually a copy-paste of ProcessCultureCode(). What you really need is to compare c.Name with currentUserCulture.LCID.ToString().