Back to project page oidarSample.
The source code is released under:
GNU General Public License
If you think the Android project oidarSample listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.oidar.util; //from www. jav a 2 s.c om import android.content.Context; /** * Helper class for fetching translatable names of our exercises. */ public class StringHelper { public static String getTranslatableName(Context context, String workoutName) { // if (workoutName.equals(Constants.EXERCISES[0])) { // return context.getString(R.string.press); // } else if (workoutName.equals(Constants.EXERCISES[1])) { // return context.getString(R.string.deadlift); // } else if (workoutName.equals(Constants.EXERCISES[2])) { // return context.getString(R.string.bench); // } else { // return context.getString(R.string.squat); // } return ""; } }