java: public void setParams(String params) {super.setParams(params);language = country = variant = "";StringTokenizer st = new StringTokenizer(params, ",");if (st.hasMoreTokens())language = st.nextToken();if (st.hasMoreTokens())country = st.nextToken();if (st.hasMoreTokens())variant = st.nextToken();}
C#: public override void SetParams(string @params){base.SetParams(@params);culture = "";string ignore;StringTokenizer st = new StringTokenizer(@params, ",");if (st.MoveNext())culture = st.Current;if (st.MoveNext())culture += "-" + st.Current;if (st.MoveNext())ignore = st.Current;}